/* Generated by Cython 3.2.5 */

/* BEGIN: Cython Metadata
{
    "distutils": {
        "define_macros": [
            [
                "HB_NO_MT",
                "1"
            ],
            [
                "HB_EXPERIMENTAL_API",
                "1"
            ],
            [
                "HB_HAS_SUBSET",
                "1"
            ],
            [
                "HB_HAS_RASTER",
                "1"
            ],
            [
                "Py_LIMITED_API",
                "0x030A0000"
            ],
            [
                "HAVE_MMAP",
                "1"
            ],
            [
                "HAVE_UNISTD_H",
                "1"
            ],
            [
                "HAVE_SYS_MMAN_H",
                "1"
            ]
        ],
        "depends": [
            "harfbuzz/src/hb-ot.h",
            "harfbuzz/src/hb-raster.h",
            "harfbuzz/src/hb-subset-serialize.h",
            "harfbuzz/src/hb-subset.h",
            "harfbuzz/src/hb.h"
        ],
        "extra_compile_args": [
            "-std=c++11",
            "-g0"
        ],
        "include_dirs": [
            "harfbuzz/src"
        ],
        "language": "c++",
        "name": "uharfbuzz._harfbuzz",
        "sources": [
            "src/uharfbuzz/_harfbuzz.pyx",
            "harfbuzz/src/harfbuzz-world.cc"
        ]
    },
    "module_name": "uharfbuzz._harfbuzz"
}
END: Cython Metadata */

#ifndef PY_SSIZE_T_CLEAN
#define PY_SSIZE_T_CLEAN
#endif /* PY_SSIZE_T_CLEAN */
/* InitLimitedAPI */
#if defined(Py_LIMITED_API)
  #if !defined(CYTHON_LIMITED_API)
  #define CYTHON_LIMITED_API 1
  #endif
#elif defined(CYTHON_LIMITED_API)
  #ifdef _MSC_VER
  #pragma message ("Limited API usage is enabled with 'CYTHON_LIMITED_API' but 'Py_LIMITED_API' does not define a Python target version. Consider setting 'Py_LIMITED_API' instead.")
  #else
  #warning Limited API usage is enabled with 'CYTHON_LIMITED_API' but 'Py_LIMITED_API' does not define a Python target version. Consider setting 'Py_LIMITED_API' instead.
  #endif
#endif

#include "Python.h"
#ifndef Py_PYTHON_H
    #error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x03080000
    #error Cython requires Python 3.8+.
#else
#define __PYX_ABI_VERSION "3_2_5"
#define CYTHON_HEX_VERSION 0x030205F0
#define CYTHON_FUTURE_DIVISION 1
/* CModulePreamble */
#include <stddef.h>
#ifndef offsetof
  #define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
#endif
#if !defined(_WIN32) && !defined(WIN32) && !defined(MS_WINDOWS)
  #ifndef __stdcall
    #define __stdcall
  #endif
  #ifndef __cdecl
    #define __cdecl
  #endif
  #ifndef __fastcall
    #define __fastcall
  #endif
#endif
#ifndef DL_IMPORT
  #define DL_IMPORT(t) t
#endif
#ifndef DL_EXPORT
  #define DL_EXPORT(t) t
#endif
#define __PYX_COMMA ,
#ifndef PY_LONG_LONG
  #define PY_LONG_LONG LONG_LONG
#endif
#ifndef Py_HUGE_VAL
  #define Py_HUGE_VAL HUGE_VAL
#endif
#define __PYX_LIMITED_VERSION_HEX PY_VERSION_HEX
#if defined(GRAALVM_PYTHON)
  /* For very preliminary testing purposes. Most variables are set the same as PyPy.
     The existence of this section does not imply that anything works or is even tested */
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_LIMITED_API 0
  #define CYTHON_COMPILING_IN_GRAAL 1
  #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 0
  #undef CYTHON_USE_TYPE_SPECS
  #define CYTHON_USE_TYPE_SPECS 0
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #undef CYTHON_AVOID_BORROWED_REFS
  #define CYTHON_AVOID_BORROWED_REFS 1
  #undef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
  #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 0
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #undef CYTHON_ASSUME_SAFE_SIZE
  #define CYTHON_ASSUME_SAFE_SIZE 0
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_GIL
  #define CYTHON_FAST_GIL 0
  #undef CYTHON_METH_FASTCALL
  #define CYTHON_METH_FASTCALL 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #undef CYTHON_PEP489_MULTI_PHASE_INIT
  #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #undef CYTHON_USE_MODULE_STATE
  #define CYTHON_USE_MODULE_STATE 0
  #undef CYTHON_USE_SYS_MONITORING
  #define CYTHON_USE_SYS_MONITORING 0
  #undef CYTHON_USE_TP_FINALIZE
  #define CYTHON_USE_TP_FINALIZE 0
  #undef CYTHON_USE_AM_SEND
  #define CYTHON_USE_AM_SEND 0
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 1
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC 0
  #endif
  #undef CYTHON_USE_FREELISTS
  #define CYTHON_USE_FREELISTS 0
  #undef CYTHON_IMMORTAL_CONSTANTS
  #define CYTHON_IMMORTAL_CONSTANTS 0
#elif defined(PYPY_VERSION)
  #define CYTHON_COMPILING_IN_PYPY 1
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_LIMITED_API 0
  #define CYTHON_COMPILING_IN_GRAAL 0
  #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 1
  #ifndef CYTHON_USE_TYPE_SPECS
    #define CYTHON_USE_TYPE_SPECS 0
  #endif
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #undef CYTHON_AVOID_BORROWED_REFS
  #define CYTHON_AVOID_BORROWED_REFS 1
  #undef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
  #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 1
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #ifndef CYTHON_ASSUME_SAFE_SIZE
    #define CYTHON_ASSUME_SAFE_SIZE 1
  #endif
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_GIL
  #define CYTHON_FAST_GIL 0
  #undef CYTHON_METH_FASTCALL
  #define CYTHON_METH_FASTCALL 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #if PY_VERSION_HEX < 0x03090000
    #undef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT 0
  #elif !defined(CYTHON_PEP489_MULTI_PHASE_INIT)
    #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #endif
  #undef CYTHON_USE_MODULE_STATE
  #define CYTHON_USE_MODULE_STATE 0
  #undef CYTHON_USE_SYS_MONITORING
  #define CYTHON_USE_SYS_MONITORING 0
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE (PYPY_VERSION_NUM >= 0x07030C00)
  #endif
  #undef CYTHON_USE_AM_SEND
  #define CYTHON_USE_AM_SEND 0
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 0
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC (PYPY_VERSION_NUM >= 0x07031100)
  #endif
  #undef CYTHON_USE_FREELISTS
  #define CYTHON_USE_FREELISTS 0
  #undef CYTHON_IMMORTAL_CONSTANTS
  #define CYTHON_IMMORTAL_CONSTANTS 0
#elif defined(CYTHON_LIMITED_API)
  #ifdef Py_LIMITED_API
    #undef __PYX_LIMITED_VERSION_HEX
    #define __PYX_LIMITED_VERSION_HEX Py_LIMITED_API
  #endif
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_LIMITED_API 1
  #define CYTHON_COMPILING_IN_GRAAL 0
  #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 0
  #undef CYTHON_USE_TYPE_SPECS
  #define CYTHON_USE_TYPE_SPECS 1
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #ifndef CYTHON_USE_UNICODE_WRITER
    #define CYTHON_USE_UNICODE_WRITER 0
  #endif
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #ifndef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
    #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 0
  #endif
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #undef CYTHON_ASSUME_SAFE_SIZE
  #define CYTHON_ASSUME_SAFE_SIZE 0
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_GIL
  #define CYTHON_FAST_GIL 0
  #undef CYTHON_METH_FASTCALL
  #define CYTHON_METH_FASTCALL (__PYX_LIMITED_VERSION_HEX >= 0x030C0000)
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #endif
  #ifndef CYTHON_USE_MODULE_STATE
    #define CYTHON_USE_MODULE_STATE 0
  #endif
  #undef CYTHON_USE_SYS_MONITORING
  #define CYTHON_USE_SYS_MONITORING 0
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE 0
  #endif
  #ifndef CYTHON_USE_AM_SEND
    #define CYTHON_USE_AM_SEND (__PYX_LIMITED_VERSION_HEX >= 0x030A0000)
  #endif
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 0
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC 0
  #endif
  #ifndef CYTHON_USE_FREELISTS
  #define CYTHON_USE_FREELISTS 1
  #endif
  #undef CYTHON_IMMORTAL_CONSTANTS
  #define CYTHON_IMMORTAL_CONSTANTS 0
#else
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_CPYTHON 1
  #define CYTHON_COMPILING_IN_LIMITED_API 0
  #define CYTHON_COMPILING_IN_GRAAL 0
  #ifdef Py_GIL_DISABLED
    #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 1
  #else
    #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0
  #endif
  #if PY_VERSION_HEX < 0x030A0000
    #undef CYTHON_USE_TYPE_SLOTS
    #define CYTHON_USE_TYPE_SLOTS 1
  #elif !defined(CYTHON_USE_TYPE_SLOTS)
    #define CYTHON_USE_TYPE_SLOTS 1
  #endif
  #ifndef CYTHON_USE_TYPE_SPECS
    #define CYTHON_USE_TYPE_SPECS 0
  #endif
  #ifndef CYTHON_USE_PYTYPE_LOOKUP
    #define CYTHON_USE_PYTYPE_LOOKUP 1
  #endif
  #ifndef CYTHON_USE_PYLONG_INTERNALS
    #define CYTHON_USE_PYLONG_INTERNALS 1
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    #undef CYTHON_USE_PYLIST_INTERNALS
    #define CYTHON_USE_PYLIST_INTERNALS 0
  #elif !defined(CYTHON_USE_PYLIST_INTERNALS)
    #define CYTHON_USE_PYLIST_INTERNALS 1
  #endif
  #ifndef CYTHON_USE_UNICODE_INTERNALS
    #define CYTHON_USE_UNICODE_INTERNALS 1
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING || PY_VERSION_HEX >= 0x030B00A2
    #undef CYTHON_USE_UNICODE_WRITER
    #define CYTHON_USE_UNICODE_WRITER 0
  #elif !defined(CYTHON_USE_UNICODE_WRITER)
    #define CYTHON_USE_UNICODE_WRITER 1
  #endif
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    #undef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
    #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 1
  #elif !defined(CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS)
    #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 0
  #endif
  #ifndef CYTHON_ASSUME_SAFE_MACROS
    #define CYTHON_ASSUME_SAFE_MACROS 1
  #endif
  #ifndef CYTHON_ASSUME_SAFE_SIZE
    #define CYTHON_ASSUME_SAFE_SIZE 1
  #endif
  #ifndef CYTHON_UNPACK_METHODS
    #define CYTHON_UNPACK_METHODS 1
  #endif
  #ifndef CYTHON_FAST_THREAD_STATE
    #define CYTHON_FAST_THREAD_STATE 1
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    #undef CYTHON_FAST_GIL
    #define CYTHON_FAST_GIL 0
  #elif !defined(CYTHON_FAST_GIL)
    #define CYTHON_FAST_GIL (PY_VERSION_HEX < 0x030C00A6)
  #endif
  #ifndef CYTHON_METH_FASTCALL
    #define CYTHON_METH_FASTCALL 1
  #endif
  #ifndef CYTHON_FAST_PYCALL
    #define CYTHON_FAST_PYCALL 1
  #endif
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #endif
  #ifndef CYTHON_USE_MODULE_STATE
    #define CYTHON_USE_MODULE_STATE 0
  #endif
  #ifndef CYTHON_USE_SYS_MONITORING
    #define CYTHON_USE_SYS_MONITORING (PY_VERSION_HEX >= 0x030d00B1)
  #endif
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE 1
  #endif
  #ifndef CYTHON_USE_AM_SEND
    #define CYTHON_USE_AM_SEND 1
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    #undef CYTHON_USE_DICT_VERSIONS
    #define CYTHON_USE_DICT_VERSIONS 0
  #elif !defined(CYTHON_USE_DICT_VERSIONS)
    #define CYTHON_USE_DICT_VERSIONS  (PY_VERSION_HEX < 0x030C00A5 && !CYTHON_USE_MODULE_STATE)
  #endif
  #ifndef CYTHON_USE_EXC_INFO_STACK
    #define CYTHON_USE_EXC_INFO_STACK 1
  #endif
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC 1
  #endif
  #ifndef CYTHON_USE_FREELISTS
    #define CYTHON_USE_FREELISTS (!CYTHON_COMPILING_IN_CPYTHON_FREETHREADING)
  #endif
  #if defined(CYTHON_IMMORTAL_CONSTANTS) && PY_VERSION_HEX < 0x030C0000
    #undef CYTHON_IMMORTAL_CONSTANTS
    #define CYTHON_IMMORTAL_CONSTANTS 0  // definitely won't work
  #elif !defined(CYTHON_IMMORTAL_CONSTANTS)
    #define CYTHON_IMMORTAL_CONSTANTS (PY_VERSION_HEX >= 0x030C0000 && !CYTHON_USE_MODULE_STATE && CYTHON_COMPILING_IN_CPYTHON_FREETHREADING)
  #endif
#endif
#ifndef CYTHON_COMPRESS_STRINGS
  #define CYTHON_COMPRESS_STRINGS 1
#endif
#ifndef CYTHON_FAST_PYCCALL
#define CYTHON_FAST_PYCCALL  CYTHON_FAST_PYCALL
#endif
#ifndef CYTHON_VECTORCALL
#if CYTHON_COMPILING_IN_LIMITED_API
#define CYTHON_VECTORCALL  (__PYX_LIMITED_VERSION_HEX >= 0x030C0000)
#else
#define CYTHON_VECTORCALL  (CYTHON_FAST_PYCCALL)
#endif
#endif
#if CYTHON_USE_PYLONG_INTERNALS
  #undef SHIFT
  #undef BASE
  #undef MASK
  #ifdef SIZEOF_VOID_P
    enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
  #endif
#endif
#ifndef __has_attribute
  #define __has_attribute(x) 0
#endif
#ifndef __has_cpp_attribute
  #define __has_cpp_attribute(x) 0
#endif
#ifndef CYTHON_RESTRICT
  #if defined(__GNUC__)
    #define CYTHON_RESTRICT __restrict__
  #elif defined(_MSC_VER) && _MSC_VER >= 1400
    #define CYTHON_RESTRICT __restrict
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define CYTHON_RESTRICT restrict
  #else
    #define CYTHON_RESTRICT
  #endif
#endif
#ifndef CYTHON_UNUSED
  #if defined(__cplusplus)
    /* for clang __has_cpp_attribute(maybe_unused) is true even before C++17
     * but leads to warnings with -pedantic, since it is a C++17 feature */
    #if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L)
      #if __has_cpp_attribute(maybe_unused)
        #define CYTHON_UNUSED [[maybe_unused]]
      #endif
    #endif
  #endif
#endif
#ifndef CYTHON_UNUSED
# if defined(__GNUC__)
#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#     define CYTHON_UNUSED __attribute__ ((__unused__))
#   else
#     define CYTHON_UNUSED
#   endif
# elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER))
#   define CYTHON_UNUSED __attribute__ ((__unused__))
# else
#   define CYTHON_UNUSED
# endif
#endif
#ifndef CYTHON_UNUSED_VAR
#  if defined(__cplusplus)
     template<class T> void CYTHON_UNUSED_VAR( const T& ) { }
#  else
#    define CYTHON_UNUSED_VAR(x) (void)(x)
#  endif
#endif
#ifndef CYTHON_MAYBE_UNUSED_VAR
  #define CYTHON_MAYBE_UNUSED_VAR(x) CYTHON_UNUSED_VAR(x)
#endif
#ifndef CYTHON_NCP_UNUSED
# if CYTHON_COMPILING_IN_CPYTHON && !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#  define CYTHON_NCP_UNUSED
# else
#  define CYTHON_NCP_UNUSED CYTHON_UNUSED
# endif
#endif
#ifndef CYTHON_USE_CPP_STD_MOVE
  #if defined(__cplusplus) && (\
    __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1600))
    #define CYTHON_USE_CPP_STD_MOVE 1
  #else
    #define CYTHON_USE_CPP_STD_MOVE 0
  #endif
#endif
#define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None)
#include <stdint.h>
typedef uintptr_t  __pyx_uintptr_t;
#ifndef CYTHON_FALLTHROUGH
  #if defined(__cplusplus)
    /* for clang __has_cpp_attribute(fallthrough) is true even before C++17
     * but leads to warnings with -pedantic, since it is a C++17 feature */
    #if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L)
      #if __has_cpp_attribute(fallthrough)
        #define CYTHON_FALLTHROUGH [[fallthrough]]
      #endif
    #endif
    #ifndef CYTHON_FALLTHROUGH
      #if __has_cpp_attribute(clang::fallthrough)
        #define CYTHON_FALLTHROUGH [[clang::fallthrough]]
      #elif __has_cpp_attribute(gnu::fallthrough)
        #define CYTHON_FALLTHROUGH [[gnu::fallthrough]]
      #endif
    #endif
  #endif
  #ifndef CYTHON_FALLTHROUGH
    #if __has_attribute(fallthrough)
      #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
    #else
      #define CYTHON_FALLTHROUGH
    #endif
  #endif
  #if defined(__clang__) && defined(__apple_build_version__)
    #if __apple_build_version__ < 7000000
      #undef  CYTHON_FALLTHROUGH
      #define CYTHON_FALLTHROUGH
    #endif
  #endif
#endif
#ifndef Py_UNREACHABLE
  #define Py_UNREACHABLE()  assert(0); abort()
#endif
#ifdef __cplusplus
  template <typename T>
  struct __PYX_IS_UNSIGNED_IMPL {static const bool value = T(0) < T(-1);};
  #define __PYX_IS_UNSIGNED(type) (__PYX_IS_UNSIGNED_IMPL<type>::value)
#else
  #define __PYX_IS_UNSIGNED(type) (((type)-1) > 0)
#endif
#if CYTHON_COMPILING_IN_PYPY == 1
  #define __PYX_NEED_TP_PRINT_SLOT  (PY_VERSION_HEX < 0x030A0000)
#else
  #define __PYX_NEED_TP_PRINT_SLOT  (PY_VERSION_HEX < 0x03090000)
#endif
#define __PYX_REINTERPRET_FUNCION(func_pointer, other_pointer) ((func_pointer)(void(*)(void))(other_pointer))

/* CppInitCode */
#ifndef __cplusplus
  #error "Cython files generated with the C++ option must be compiled with a C++ compiler."
#endif
#ifndef CYTHON_INLINE
  #if defined(__clang__)
    #define CYTHON_INLINE __inline__ __attribute__ ((__unused__))
  #else
    #define CYTHON_INLINE inline
  #endif
#endif
template<typename T>
void __Pyx_call_destructor(T& x) {
    x.~T();
}
template<typename T>
class __Pyx_FakeReference {
  public:
    __Pyx_FakeReference() : ptr(NULL) { }
    __Pyx_FakeReference(const T& ref) : ptr(const_cast<T*>(&ref)) { }
    T *operator->() { return ptr; }
    T *operator&() { return ptr; }
    operator T&() { return *ptr; }
    template<typename U> bool operator ==(const U& other) const { return *ptr == other; }
    template<typename U> bool operator !=(const U& other) const { return *ptr != other; }
    template<typename U> bool operator==(const __Pyx_FakeReference<U>& other) const { return *ptr == *other.ptr; }
    template<typename U> bool operator!=(const __Pyx_FakeReference<U>& other) const { return *ptr != *other.ptr; }
  private:
    T *ptr;
};

/* PythonCompatibility */
#define __PYX_BUILD_PY_SSIZE_T "n"
#define CYTHON_FORMAT_SSIZE_T "z"
#define __Pyx_BUILTIN_MODULE_NAME "builtins"
#define __Pyx_DefaultClassType PyType_Type
#if CYTHON_COMPILING_IN_LIMITED_API
    #ifndef CO_OPTIMIZED
    static int CO_OPTIMIZED;
    #endif
    #ifndef CO_NEWLOCALS
    static int CO_NEWLOCALS;
    #endif
    #ifndef CO_VARARGS
    static int CO_VARARGS;
    #endif
    #ifndef CO_VARKEYWORDS
    static int CO_VARKEYWORDS;
    #endif
    #ifndef CO_ASYNC_GENERATOR
    static int CO_ASYNC_GENERATOR;
    #endif
    #ifndef CO_GENERATOR
    static int CO_GENERATOR;
    #endif
    #ifndef CO_COROUTINE
    static int CO_COROUTINE;
    #endif
#else
    #ifndef CO_COROUTINE
      #define CO_COROUTINE 0x80
    #endif
    #ifndef CO_ASYNC_GENERATOR
      #define CO_ASYNC_GENERATOR 0x200
    #endif
#endif
static int __Pyx_init_co_variables(void);
#if PY_VERSION_HEX >= 0x030900A4 || defined(Py_IS_TYPE)
  #define __Pyx_IS_TYPE(ob, type) Py_IS_TYPE(ob, type)
#else
  #define __Pyx_IS_TYPE(ob, type) (((const PyObject*)ob)->ob_type == (type))
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_Is)
  #define __Pyx_Py_Is(x, y)  Py_Is(x, y)
#else
  #define __Pyx_Py_Is(x, y) ((x) == (y))
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsNone)
  #define __Pyx_Py_IsNone(ob) Py_IsNone(ob)
#else
  #define __Pyx_Py_IsNone(ob) __Pyx_Py_Is((ob), Py_None)
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsTrue)
  #define __Pyx_Py_IsTrue(ob) Py_IsTrue(ob)
#else
  #define __Pyx_Py_IsTrue(ob) __Pyx_Py_Is((ob), Py_True)
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsFalse)
  #define __Pyx_Py_IsFalse(ob) Py_IsFalse(ob)
#else
  #define __Pyx_Py_IsFalse(ob) __Pyx_Py_Is((ob), Py_False)
#endif
#define __Pyx_NoneAsNull(obj)  (__Pyx_Py_IsNone(obj) ? NULL : (obj))
#if PY_VERSION_HEX >= 0x030900F0 && !CYTHON_COMPILING_IN_PYPY
  #define __Pyx_PyObject_GC_IsFinalized(o) PyObject_GC_IsFinalized(o)
#else
  #define __Pyx_PyObject_GC_IsFinalized(o) _PyGC_FINALIZED(o)
#endif
#ifndef Py_TPFLAGS_CHECKTYPES
  #define Py_TPFLAGS_CHECKTYPES 0
#endif
#ifndef Py_TPFLAGS_HAVE_INDEX
  #define Py_TPFLAGS_HAVE_INDEX 0
#endif
#ifndef Py_TPFLAGS_HAVE_NEWBUFFER
  #define Py_TPFLAGS_HAVE_NEWBUFFER 0
#endif
#ifndef Py_TPFLAGS_HAVE_FINALIZE
  #define Py_TPFLAGS_HAVE_FINALIZE 0
#endif
#ifndef Py_TPFLAGS_SEQUENCE
  #define Py_TPFLAGS_SEQUENCE 0
#endif
#ifndef Py_TPFLAGS_MAPPING
  #define Py_TPFLAGS_MAPPING 0
#endif
#ifndef Py_TPFLAGS_IMMUTABLETYPE
  #define Py_TPFLAGS_IMMUTABLETYPE (1UL << 8)
#endif
#ifndef Py_TPFLAGS_DISALLOW_INSTANTIATION
  #define Py_TPFLAGS_DISALLOW_INSTANTIATION (1UL << 7)
#endif
#ifndef METH_STACKLESS
  #define METH_STACKLESS 0
#endif
#ifndef METH_FASTCALL
  #ifndef METH_FASTCALL
     #define METH_FASTCALL 0x80
  #endif
  typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject *const *args, Py_ssize_t nargs);
  typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args,
                                                          Py_ssize_t nargs, PyObject *kwnames);
#else
  #if PY_VERSION_HEX >= 0x030d00A4
  #  define __Pyx_PyCFunctionFast PyCFunctionFast
  #  define __Pyx_PyCFunctionFastWithKeywords PyCFunctionFastWithKeywords
  #else
  #  define __Pyx_PyCFunctionFast _PyCFunctionFast
  #  define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords
  #endif
#endif
#if CYTHON_METH_FASTCALL
  #define __Pyx_METH_FASTCALL METH_FASTCALL
  #define __Pyx_PyCFunction_FastCall __Pyx_PyCFunctionFast
  #define __Pyx_PyCFunction_FastCallWithKeywords __Pyx_PyCFunctionFastWithKeywords
#else
  #define __Pyx_METH_FASTCALL METH_VARARGS
  #define __Pyx_PyCFunction_FastCall PyCFunction
  #define __Pyx_PyCFunction_FastCallWithKeywords PyCFunctionWithKeywords
#endif
#if CYTHON_VECTORCALL
  #define __pyx_vectorcallfunc vectorcallfunc
  #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET  PY_VECTORCALL_ARGUMENTS_OFFSET
  #define __Pyx_PyVectorcall_NARGS(n)  PyVectorcall_NARGS((size_t)(n))
#else
  #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET  0
  #define __Pyx_PyVectorcall_NARGS(n)  ((Py_ssize_t)(n))
#endif
#if PY_VERSION_HEX >= 0x030900B1
#define __Pyx_PyCFunction_CheckExact(func)  PyCFunction_CheckExact(func)
#else
#define __Pyx_PyCFunction_CheckExact(func)  PyCFunction_Check(func)
#endif
#define __Pyx_CyOrPyCFunction_Check(func)  PyCFunction_Check(func)
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_CyOrPyCFunction_GET_FUNCTION(func)  (((PyCFunctionObject*)(func))->m_ml->ml_meth)
#elif !CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_CyOrPyCFunction_GET_FUNCTION(func)  PyCFunction_GET_FUNCTION(func)
#endif
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_CyOrPyCFunction_GET_FLAGS(func)  (((PyCFunctionObject*)(func))->m_ml->ml_flags)
static CYTHON_INLINE PyObject* __Pyx_CyOrPyCFunction_GET_SELF(PyObject *func) {
    return (__Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_STATIC) ? NULL : ((PyCFunctionObject*)func)->m_self;
}
#endif
static CYTHON_INLINE int __Pyx__IsSameCFunction(PyObject *func, void (*cfunc)(void)) {
#if CYTHON_COMPILING_IN_LIMITED_API
    return PyCFunction_Check(func) && PyCFunction_GetFunction(func) == (PyCFunction) cfunc;
#else
    return PyCFunction_Check(func) && PyCFunction_GET_FUNCTION(func) == (PyCFunction) cfunc;
#endif
}
#define __Pyx_IsSameCFunction(func, cfunc)   __Pyx__IsSameCFunction(func, cfunc)
#if PY_VERSION_HEX < 0x03090000 || (CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000)
  #define __Pyx_PyType_FromModuleAndSpec(m, s, b)  ((void)m, PyType_FromSpecWithBases(s, b))
  typedef PyObject *(*__Pyx_PyCMethod)(PyObject *, PyTypeObject *, PyObject *const *, size_t, PyObject *);
#else
  #define __Pyx_PyType_FromModuleAndSpec(m, s, b)  PyType_FromModuleAndSpec(m, s, b)
  #define __Pyx_PyCMethod  PyCMethod
#endif
#ifndef METH_METHOD
  #define METH_METHOD 0x200
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc)
  #define PyObject_Malloc(s)   PyMem_Malloc(s)
  #define PyObject_Free(p)     PyMem_Free(p)
  #define PyObject_Realloc(p)  PyMem_Realloc(p)
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno)
#elif CYTHON_COMPILING_IN_GRAAL && defined(GRAALPY_VERSION_NUM) && GRAALPY_VERSION_NUM > 0x19000000
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno) GraalPyFrame_SetLineNumber((frame), (lineno))
#elif CYTHON_COMPILING_IN_GRAAL
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno) _PyFrame_SetLineNumber((frame), (lineno))
#else
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno)  (frame)->f_lineno = (lineno)
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_PyThreadState_Current PyThreadState_Get()
#elif !CYTHON_FAST_THREAD_STATE
  #define __Pyx_PyThreadState_Current PyThreadState_GET()
#elif PY_VERSION_HEX >= 0x030d00A1
  #define __Pyx_PyThreadState_Current PyThreadState_GetUnchecked()
#else
  #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet()
#endif
#if CYTHON_USE_MODULE_STATE
static CYTHON_INLINE void *__Pyx__PyModule_GetState(PyObject *op)
{
    void *result;
    result = PyModule_GetState(op);
    if (!result)
        Py_FatalError("Couldn't find the module state");
    return result;
}
#define __Pyx_PyModule_GetState(o) (__pyx_mstatetype *)__Pyx__PyModule_GetState(o)
#else
#define __Pyx_PyModule_GetState(op) ((void)op,__pyx_mstate_global)
#endif
#define __Pyx_PyObject_GetSlot(obj, name, func_ctype)  __Pyx_PyType_GetSlot(Py_TYPE((PyObject *) obj), name, func_ctype)
#define __Pyx_PyObject_TryGetSlot(obj, name, func_ctype) __Pyx_PyType_TryGetSlot(Py_TYPE(obj), name, func_ctype)
#define __Pyx_PyObject_GetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_GetSubSlot(Py_TYPE(obj), sub, name, func_ctype)
#define __Pyx_PyObject_TryGetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_TryGetSubSlot(Py_TYPE(obj), sub, name, func_ctype)
#if CYTHON_USE_TYPE_SLOTS
  #define __Pyx_PyType_GetSlot(type, name, func_ctype)  ((type)->name)
  #define __Pyx_PyType_TryGetSlot(type, name, func_ctype) __Pyx_PyType_GetSlot(type, name, func_ctype)
  #define __Pyx_PyType_GetSubSlot(type, sub, name, func_ctype) (((type)->sub) ? ((type)->sub->name) : NULL)
  #define __Pyx_PyType_TryGetSubSlot(type, sub, name, func_ctype) __Pyx_PyType_GetSubSlot(type, sub, name, func_ctype)
#else
  #define __Pyx_PyType_GetSlot(type, name, func_ctype)  ((func_ctype) PyType_GetSlot((type), Py_##name))
  #define __Pyx_PyType_TryGetSlot(type, name, func_ctype)\
    ((__PYX_LIMITED_VERSION_HEX >= 0x030A0000 ||\
     (PyType_GetFlags(type) & Py_TPFLAGS_HEAPTYPE) || __Pyx_get_runtime_version() >= 0x030A0000) ?\
     __Pyx_PyType_GetSlot(type, name, func_ctype) : NULL)
  #define __Pyx_PyType_GetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_GetSlot(obj, name, func_ctype)
  #define __Pyx_PyType_TryGetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_TryGetSlot(obj, name, func_ctype)
#endif
#if CYTHON_COMPILING_IN_CPYTHON || defined(_PyDict_NewPresized)
#define __Pyx_PyDict_NewPresized(n)  ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n))
#else
#define __Pyx_PyDict_NewPresized(n)  PyDict_New()
#endif
#define __Pyx_PyNumber_Divide(x,y)         PyNumber_TrueDivide(x,y)
#define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceTrueDivide(x,y)
#if CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_UNICODE_INTERNALS
#define __Pyx_PyDict_GetItemStrWithError(dict, name)  _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash)
static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStr(PyObject *dict, PyObject *name) {
    PyObject *res = __Pyx_PyDict_GetItemStrWithError(dict, name);
    if (res == NULL) PyErr_Clear();
    return res;
}
#elif !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07020000
#define __Pyx_PyDict_GetItemStrWithError  PyDict_GetItemWithError
#define __Pyx_PyDict_GetItemStr           PyDict_GetItem
#else
static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStrWithError(PyObject *dict, PyObject *name) {
#if CYTHON_COMPILING_IN_PYPY
    return PyDict_GetItem(dict, name);
#else
    PyDictEntry *ep;
    PyDictObject *mp = (PyDictObject*) dict;
    long hash = ((PyStringObject *) name)->ob_shash;
    assert(hash != -1);
    ep = (mp->ma_lookup)(mp, name, hash);
    if (ep == NULL) {
        return NULL;
    }
    return ep->me_value;
#endif
}
#define __Pyx_PyDict_GetItemStr           PyDict_GetItem
#endif
#if CYTHON_USE_TYPE_SLOTS
  #define __Pyx_PyType_GetFlags(tp)   (((PyTypeObject *)tp)->tp_flags)
  #define __Pyx_PyType_HasFeature(type, feature)  ((__Pyx_PyType_GetFlags(type) & (feature)) != 0)
#else
  #define __Pyx_PyType_GetFlags(tp)   (PyType_GetFlags((PyTypeObject *)tp))
  #define __Pyx_PyType_HasFeature(type, feature)  PyType_HasFeature(type, feature)
#endif
#define __Pyx_PyObject_GetIterNextFunc(iterator)  __Pyx_PyObject_GetSlot(iterator, tp_iternext, iternextfunc)
#if CYTHON_USE_TYPE_SPECS
#define __Pyx_PyHeapTypeObject_GC_Del(obj)  {\
    PyTypeObject *type = Py_TYPE((PyObject*)obj);\
    assert(__Pyx_PyType_HasFeature(type, Py_TPFLAGS_HEAPTYPE));\
    PyObject_GC_Del(obj);\
    Py_DECREF(type);\
}
#else
#define __Pyx_PyHeapTypeObject_GC_Del(obj)  PyObject_GC_Del(obj)
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_PyUnicode_READY(op)       (0)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_ReadChar(u, i)
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   ((void)u, 1114111U)
  #define __Pyx_PyUnicode_KIND(u)         ((void)u, (0))
  #define __Pyx_PyUnicode_DATA(u)         ((void*)u)
  #define __Pyx_PyUnicode_READ(k, d, i)   ((void)k, PyUnicode_ReadChar((PyObject*)(d), i))
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != PyUnicode_GetLength(u))
#else
  #if PY_VERSION_HEX >= 0x030C0000
    #define __Pyx_PyUnicode_READY(op)       (0)
  #else
    #define __Pyx_PyUnicode_READY(op)       (likely(PyUnicode_IS_READY(op)) ?\
                                                0 : _PyUnicode_Ready((PyObject *)(op)))
  #endif
  #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   PyUnicode_MAX_CHAR_VALUE(u)
  #define __Pyx_PyUnicode_KIND(u)         ((int)PyUnicode_KIND(u))
  #define __Pyx_PyUnicode_DATA(u)         PyUnicode_DATA(u)
  #define __Pyx_PyUnicode_READ(k, d, i)   PyUnicode_READ(k, d, i)
  #define __Pyx_PyUnicode_WRITE(k, d, i, ch)  PyUnicode_WRITE(k, d, i, (Py_UCS4) ch)
  #if PY_VERSION_HEX >= 0x030C0000
    #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != PyUnicode_GET_LENGTH(u))
  #else
    #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03090000
    #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : ((PyCompactUnicodeObject *)(u))->wstr_length))
    #else
    #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
    #endif
  #endif
#endif
#if CYTHON_COMPILING_IN_PYPY
  #define __Pyx_PyUnicode_Concat(a, b)      PyNumber_Add(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  PyNumber_Add(a, b)
#else
  #define __Pyx_PyUnicode_Concat(a, b)      PyUnicode_Concat(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\
      PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b))
#endif
#if CYTHON_COMPILING_IN_PYPY
  #if !defined(PyUnicode_DecodeUnicodeEscape)
    #define PyUnicode_DecodeUnicodeEscape(s, size, errors)  PyUnicode_Decode(s, size, "unicode_escape", errors)
  #endif
  #if !defined(PyUnicode_Contains)
    #define PyUnicode_Contains(u, s)  PySequence_Contains(u, s)
  #endif
  #if !defined(PyByteArray_Check)
    #define PyByteArray_Check(obj)  PyObject_TypeCheck(obj, &PyByteArray_Type)
  #endif
  #if !defined(PyObject_Format)
    #define PyObject_Format(obj, fmt)  PyObject_CallMethod(obj, "__format__", "O", fmt)
  #endif
#endif
#define __Pyx_PyUnicode_FormatSafe(a, b)  ((unlikely((a) == Py_None || (PyUnicode_Check(b) && !PyUnicode_CheckExact(b)))) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  #define __Pyx_PySequence_ListKeepNew(obj)\
    (likely(PyList_CheckExact(obj) && PyUnstable_Object_IsUniquelyReferenced(obj)) ? __Pyx_NewRef(obj) : PySequence_List(obj))
#elif CYTHON_COMPILING_IN_CPYTHON
  #define __Pyx_PySequence_ListKeepNew(obj)\
    (likely(PyList_CheckExact(obj) && Py_REFCNT(obj) == 1) ? __Pyx_NewRef(obj) : PySequence_List(obj))
#else
  #define __Pyx_PySequence_ListKeepNew(obj)  PySequence_List(obj)
#endif
#ifndef PySet_CheckExact
  #define PySet_CheckExact(obj)        __Pyx_IS_TYPE(obj, &PySet_Type)
#endif
#if PY_VERSION_HEX >= 0x030900A4
  #define __Pyx_SET_REFCNT(obj, refcnt) Py_SET_REFCNT(obj, refcnt)
  #define __Pyx_SET_SIZE(obj, size) Py_SET_SIZE(obj, size)
#else
  #define __Pyx_SET_REFCNT(obj, refcnt) Py_REFCNT(obj) = (refcnt)
  #define __Pyx_SET_SIZE(obj, size) Py_SIZE(obj) = (size)
#endif
enum __Pyx_ReferenceSharing {
  __Pyx_ReferenceSharing_DefinitelyUnique, // We created it so we know it's unshared - no need to check
  __Pyx_ReferenceSharing_OwnStrongReference,
  __Pyx_ReferenceSharing_FunctionArgument,
  __Pyx_ReferenceSharing_SharedReference, // Never trust it to be unshared because it's a global or similar
};
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && PY_VERSION_HEX >= 0x030E0000
#define __Pyx_IS_UNIQUELY_REFERENCED(o, sharing)\
    (sharing == __Pyx_ReferenceSharing_DefinitelyUnique ? 1 :\
      (sharing == __Pyx_ReferenceSharing_FunctionArgument ? PyUnstable_Object_IsUniqueReferencedTemporary(o) :\
      (sharing == __Pyx_ReferenceSharing_OwnStrongReference ? PyUnstable_Object_IsUniquelyReferenced(o) : 0)))
#elif (CYTHON_COMPILING_IN_CPYTHON && !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING) || CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_IS_UNIQUELY_REFERENCED(o, sharing) (((void)sharing), Py_REFCNT(o) == 1)
#else
#define __Pyx_IS_UNIQUELY_REFERENCED(o, sharing) (((void)o), ((void)sharing), 0)
#endif
#if CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
  #if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
    #define __Pyx_PyList_GetItemRef(o, i) PyList_GetItemRef(o, i)
  #elif CYTHON_COMPILING_IN_LIMITED_API || !CYTHON_ASSUME_SAFE_MACROS
    #define __Pyx_PyList_GetItemRef(o, i) (likely((i) >= 0) ? PySequence_GetItem(o, i) : (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
  #else
    #define __Pyx_PyList_GetItemRef(o, i) PySequence_ITEM(o, i)
  #endif
#elif CYTHON_COMPILING_IN_LIMITED_API || !CYTHON_ASSUME_SAFE_MACROS
  #if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
    #define __Pyx_PyList_GetItemRef(o, i) PyList_GetItemRef(o, i)
  #else
    #define __Pyx_PyList_GetItemRef(o, i) __Pyx_XNewRef(PyList_GetItem(o, i))
  #endif
#else
  #define __Pyx_PyList_GetItemRef(o, i) __Pyx_NewRef(PyList_GET_ITEM(o, i))
#endif
#if CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS && !CYTHON_COMPILING_IN_LIMITED_API && CYTHON_ASSUME_SAFE_MACROS
  #define __Pyx_PyList_GetItemRefFast(o, i, unsafe_shared) (__Pyx_IS_UNIQUELY_REFERENCED(o, unsafe_shared) ?\
    __Pyx_NewRef(PyList_GET_ITEM(o, i)) : __Pyx_PyList_GetItemRef(o, i))
#else
  #define __Pyx_PyList_GetItemRefFast(o, i, unsafe_shared) __Pyx_PyList_GetItemRef(o, i)
#endif
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
#define __Pyx_PyDict_GetItemRef(dict, key, result) PyDict_GetItemRef(dict, key, result)
#elif CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
static CYTHON_INLINE int __Pyx_PyDict_GetItemRef(PyObject *dict, PyObject *key, PyObject **result) {
  *result = PyObject_GetItem(dict, key);
  if (*result == NULL) {
    if (PyErr_ExceptionMatches(PyExc_KeyError)) {
      PyErr_Clear();
      return 0;
    }
    return -1;
  }
  return 1;
}
#else
static CYTHON_INLINE int __Pyx_PyDict_GetItemRef(PyObject *dict, PyObject *key, PyObject **result) {
  *result = PyDict_GetItemWithError(dict, key);
  if (*result == NULL) {
    return PyErr_Occurred() ? -1 : 0;
  }
  Py_INCREF(*result);
  return 1;
}
#endif
#if defined(CYTHON_DEBUG_VISIT_CONST) && CYTHON_DEBUG_VISIT_CONST
  #define __Pyx_VISIT_CONST(obj)  Py_VISIT(obj)
#else
  #define __Pyx_VISIT_CONST(obj)
#endif
#if CYTHON_ASSUME_SAFE_MACROS
  #define __Pyx_PySequence_ITEM(o, i) PySequence_ITEM(o, i)
  #define __Pyx_PySequence_SIZE(seq)  Py_SIZE(seq)
  #define __Pyx_PyTuple_SET_ITEM(o, i, v) (PyTuple_SET_ITEM(o, i, v), (0))
  #define __Pyx_PyTuple_GET_ITEM(o, i) PyTuple_GET_ITEM(o, i)
  #define __Pyx_PyList_SET_ITEM(o, i, v) (PyList_SET_ITEM(o, i, v), (0))
  #define __Pyx_PyList_GET_ITEM(o, i) PyList_GET_ITEM(o, i)
#else
  #define __Pyx_PySequence_ITEM(o, i) PySequence_GetItem(o, i)
  #define __Pyx_PySequence_SIZE(seq)  PySequence_Size(seq)
  #define __Pyx_PyTuple_SET_ITEM(o, i, v) PyTuple_SetItem(o, i, v)
  #define __Pyx_PyTuple_GET_ITEM(o, i) PyTuple_GetItem(o, i)
  #define __Pyx_PyList_SET_ITEM(o, i, v) PyList_SetItem(o, i, v)
  #define __Pyx_PyList_GET_ITEM(o, i) PyList_GetItem(o, i)
#endif
#if CYTHON_ASSUME_SAFE_SIZE
  #define __Pyx_PyTuple_GET_SIZE(o) PyTuple_GET_SIZE(o)
  #define __Pyx_PyList_GET_SIZE(o) PyList_GET_SIZE(o)
  #define __Pyx_PySet_GET_SIZE(o) PySet_GET_SIZE(o)
  #define __Pyx_PyBytes_GET_SIZE(o) PyBytes_GET_SIZE(o)
  #define __Pyx_PyByteArray_GET_SIZE(o) PyByteArray_GET_SIZE(o)
  #define __Pyx_PyUnicode_GET_LENGTH(o) PyUnicode_GET_LENGTH(o)
#else
  #define __Pyx_PyTuple_GET_SIZE(o) PyTuple_Size(o)
  #define __Pyx_PyList_GET_SIZE(o) PyList_Size(o)
  #define __Pyx_PySet_GET_SIZE(o) PySet_Size(o)
  #define __Pyx_PyBytes_GET_SIZE(o) PyBytes_Size(o)
  #define __Pyx_PyByteArray_GET_SIZE(o) PyByteArray_Size(o)
  #define __Pyx_PyUnicode_GET_LENGTH(o) PyUnicode_GetLength(o)
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_InternFromString)
  #define PyUnicode_InternFromString(s) PyUnicode_FromString(s)
#endif
#define __Pyx_PyLong_FromHash_t PyLong_FromSsize_t
#define __Pyx_PyLong_AsHash_t   __Pyx_PyIndex_AsSsize_t
#if __PYX_LIMITED_VERSION_HEX >= 0x030A0000
    #define __Pyx_PySendResult PySendResult
#else
    typedef enum {
        PYGEN_RETURN = 0,
        PYGEN_ERROR = -1,
        PYGEN_NEXT = 1,
    } __Pyx_PySendResult;
#endif
#if CYTHON_COMPILING_IN_LIMITED_API || PY_VERSION_HEX < 0x030A00A3
  typedef __Pyx_PySendResult (*__Pyx_pyiter_sendfunc)(PyObject *iter, PyObject *value, PyObject **result);
#else
  #define __Pyx_pyiter_sendfunc sendfunc
#endif
#if !CYTHON_USE_AM_SEND
#define __PYX_HAS_PY_AM_SEND 0
#elif __PYX_LIMITED_VERSION_HEX >= 0x030A0000
#define __PYX_HAS_PY_AM_SEND 1
#else
#define __PYX_HAS_PY_AM_SEND 2  // our own backported implementation
#endif
#if __PYX_HAS_PY_AM_SEND < 2
    #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods
#else
    typedef struct {
        unaryfunc am_await;
        unaryfunc am_aiter;
        unaryfunc am_anext;
        __Pyx_pyiter_sendfunc am_send;
    } __Pyx_PyAsyncMethodsStruct;
    #define __Pyx_SlotTpAsAsync(s) ((PyAsyncMethods*)(s))
#endif
#if CYTHON_USE_AM_SEND && PY_VERSION_HEX < 0x030A00F0
    #define __Pyx_TPFLAGS_HAVE_AM_SEND (1UL << 21)
#else
    #define __Pyx_TPFLAGS_HAVE_AM_SEND (0)
#endif
#if PY_VERSION_HEX >= 0x03090000
#define __Pyx_PyInterpreterState_Get() PyInterpreterState_Get()
#else
#define __Pyx_PyInterpreterState_Get() PyThreadState_Get()->interp
#endif
#if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030A0000
#ifdef __cplusplus
extern "C"
#endif
PyAPI_FUNC(void *) PyMem_Calloc(size_t nelem, size_t elsize);
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
static int __Pyx_init_co_variable(PyObject *inspect, const char* name, int *write_to) {
    int value;
    PyObject *py_value = PyObject_GetAttrString(inspect, name);
    if (!py_value) return 0;
    value = (int) PyLong_AsLong(py_value);
    Py_DECREF(py_value);
    *write_to = value;
    return value != -1 || !PyErr_Occurred();
}
static int __Pyx_init_co_variables(void) {
    PyObject *inspect;
    int result;
    inspect = PyImport_ImportModule("inspect");
    result =
#if !defined(CO_OPTIMIZED)
        __Pyx_init_co_variable(inspect, "CO_OPTIMIZED", &CO_OPTIMIZED) &&
#endif
#if !defined(CO_NEWLOCALS)
        __Pyx_init_co_variable(inspect, "CO_NEWLOCALS", &CO_NEWLOCALS) &&
#endif
#if !defined(CO_VARARGS)
        __Pyx_init_co_variable(inspect, "CO_VARARGS", &CO_VARARGS) &&
#endif
#if !defined(CO_VARKEYWORDS)
        __Pyx_init_co_variable(inspect, "CO_VARKEYWORDS", &CO_VARKEYWORDS) &&
#endif
#if !defined(CO_ASYNC_GENERATOR)
        __Pyx_init_co_variable(inspect, "CO_ASYNC_GENERATOR", &CO_ASYNC_GENERATOR) &&
#endif
#if !defined(CO_GENERATOR)
        __Pyx_init_co_variable(inspect, "CO_GENERATOR", &CO_GENERATOR) &&
#endif
#if !defined(CO_COROUTINE)
        __Pyx_init_co_variable(inspect, "CO_COROUTINE", &CO_COROUTINE) &&
#endif
        1;
    Py_DECREF(inspect);
    return result ? 0 : -1;
}
#else
static int __Pyx_init_co_variables(void) {
    return 0;  // It's a limited API-only feature
}
#endif

/* MathInitCode */
#if defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)
  #ifndef _USE_MATH_DEFINES
    #define _USE_MATH_DEFINES
  #endif
#endif
#include <math.h>
#if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL)
#define __Pyx_truncl trunc
#else
#define __Pyx_truncl truncl
#endif

#ifndef CYTHON_CLINE_IN_TRACEBACK_RUNTIME
#define CYTHON_CLINE_IN_TRACEBACK_RUNTIME 0
#endif
#ifndef CYTHON_CLINE_IN_TRACEBACK
#define CYTHON_CLINE_IN_TRACEBACK CYTHON_CLINE_IN_TRACEBACK_RUNTIME
#endif
#if CYTHON_CLINE_IN_TRACEBACK
#define __PYX_MARK_ERR_POS(f_index, lineno)  { __pyx_filename = __pyx_f[f_index]; (void) __pyx_filename; __pyx_lineno = lineno; (void) __pyx_lineno; __pyx_clineno = __LINE__; (void) __pyx_clineno; }
#else
#define __PYX_MARK_ERR_POS(f_index, lineno)  { __pyx_filename = __pyx_f[f_index]; (void) __pyx_filename; __pyx_lineno = lineno; (void) __pyx_lineno; (void) __pyx_clineno; }
#endif
#define __PYX_ERR(f_index, lineno, Ln_error) \
    { __PYX_MARK_ERR_POS(f_index, lineno) goto Ln_error; }

#ifdef CYTHON_EXTERN_C
    #undef __PYX_EXTERN_C
    #define __PYX_EXTERN_C CYTHON_EXTERN_C
#elif defined(__PYX_EXTERN_C)
    #ifdef _MSC_VER
    #pragma message ("Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead.")
    #else
    #warning Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead.
    #endif
#else
    #define __PYX_EXTERN_C extern "C++"
#endif

#define __PYX_HAVE__uharfbuzz___harfbuzz
#define __PYX_HAVE_API__uharfbuzz___harfbuzz
/* Early includes */
#include <stdint.h>
#include "hb.h"
#include "hb-ot.h"
#include "hb-subset-serialize.h"
#include "hb-subset.h"
#include "hb-raster.h"
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <stddef.h>
#ifdef _OPENMP
#include <omp.h>
#endif /* _OPENMP */

#if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS)
#define CYTHON_WITHOUT_ASSERTIONS
#endif

#ifdef CYTHON_FREETHREADING_COMPATIBLE
#if CYTHON_FREETHREADING_COMPATIBLE
#define __Pyx_FREETHREADING_COMPATIBLE Py_MOD_GIL_NOT_USED
#else
#define __Pyx_FREETHREADING_COMPATIBLE Py_MOD_GIL_USED
#endif
#else
#define __Pyx_FREETHREADING_COMPATIBLE Py_MOD_GIL_USED
#endif
#define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0
#define __PYX_DEFAULT_STRING_ENCODING_IS_UTF8 0
#define __PYX_DEFAULT_STRING_ENCODING ""
#define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString
#define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#define __Pyx_uchar_cast(c) ((unsigned char)c)
#define __Pyx_long_cast(x) ((long)x)
#define __Pyx_fits_Py_ssize_t(v, type, is_signed)  (\
    (sizeof(type) < sizeof(Py_ssize_t))  ||\
    (sizeof(type) > sizeof(Py_ssize_t) &&\
          likely(v < (type)PY_SSIZE_T_MAX ||\
                 v == (type)PY_SSIZE_T_MAX)  &&\
          (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\
                                v == (type)PY_SSIZE_T_MIN)))  ||\
    (sizeof(type) == sizeof(Py_ssize_t) &&\
          (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\
                               v == (type)PY_SSIZE_T_MAX)))  )
static CYTHON_INLINE int __Pyx_is_valid_index(Py_ssize_t i, Py_ssize_t limit) {
    return (size_t) i < (size_t) limit;
}
#if defined (__cplusplus) && __cplusplus >= 201103L
    #include <cstdlib>
    #define __Pyx_sst_abs(value) std::abs(value)
#elif SIZEOF_INT >= SIZEOF_SIZE_T
    #define __Pyx_sst_abs(value) abs(value)
#elif SIZEOF_LONG >= SIZEOF_SIZE_T
    #define __Pyx_sst_abs(value) labs(value)
#elif defined (_MSC_VER)
    #define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value))
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define __Pyx_sst_abs(value) llabs(value)
#elif defined (__GNUC__)
    #define __Pyx_sst_abs(value) __builtin_llabs(value)
#else
    #define __Pyx_sst_abs(value) ((value<0) ? -value : value)
#endif
static CYTHON_INLINE Py_ssize_t __Pyx_ssize_strlen(const char *s);
static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject*);
static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
static CYTHON_INLINE PyObject* __Pyx_PyByteArray_FromString(const char*);
#define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l)
#define __Pyx_PyBytes_FromString        PyBytes_FromString
#define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*);
#if CYTHON_ASSUME_SAFE_MACROS
    #define __Pyx_PyBytes_AsWritableString(s)     ((char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsWritableSString(s)    ((signed char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsWritableUString(s)    ((unsigned char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsString(s)     ((const char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsSString(s)    ((const signed char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsUString(s)    ((const unsigned char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyByteArray_AsString(s) PyByteArray_AS_STRING(s)
#else
    #define __Pyx_PyBytes_AsWritableString(s)     ((char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsWritableSString(s)    ((signed char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsWritableUString(s)    ((unsigned char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsString(s)     ((const char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsSString(s)    ((const signed char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsUString(s)    ((const unsigned char*) PyBytes_AsString(s))
    #define __Pyx_PyByteArray_AsString(s) PyByteArray_AsString(s)
#endif
#define __Pyx_PyObject_AsWritableString(s)    ((char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableSString(s)    ((signed char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableUString(s)    ((unsigned char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsSString(s)    ((const signed char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsUString(s)    ((const unsigned char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_FromCString(s)  __Pyx_PyObject_FromString((const char*)s)
#define __Pyx_PyBytes_FromCString(s)   __Pyx_PyBytes_FromString((const char*)s)
#define __Pyx_PyByteArray_FromCString(s)   __Pyx_PyByteArray_FromString((const char*)s)
#define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s)
#define __Pyx_PyUnicode_FromOrdinal(o)       PyUnicode_FromOrdinal((int)o)
#define __Pyx_PyUnicode_AsUnicode            PyUnicode_AsUnicode
static CYTHON_INLINE PyObject *__Pyx_NewRef(PyObject *obj) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030a0000 || defined(Py_NewRef)
    return Py_NewRef(obj);
#else
    Py_INCREF(obj);
    return obj;
#endif
}
static CYTHON_INLINE PyObject *__Pyx_XNewRef(PyObject *obj) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030a0000 || defined(Py_XNewRef)
    return Py_XNewRef(obj);
#else
    Py_XINCREF(obj);
    return obj;
#endif
}
static CYTHON_INLINE PyObject *__Pyx_Owned_Py_None(int b);
static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b);
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*);
static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject*);
static CYTHON_INLINE PyObject* __Pyx_PyNumber_Long(PyObject* x);
#define __Pyx_PySequence_Tuple(obj)\
    (likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj))
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
static CYTHON_INLINE PyObject * __Pyx_PyLong_FromSize_t(size_t);
static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject*);
#if CYTHON_ASSUME_SAFE_MACROS
#define __Pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
#define __Pyx_PyFloat_AS_DOUBLE(x) PyFloat_AS_DOUBLE(x)
#else
#define __Pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
#define __Pyx_PyFloat_AS_DOUBLE(x) PyFloat_AsDouble(x)
#endif
#define __Pyx_PyFloat_AsFloat(x) ((float) __Pyx_PyFloat_AsDouble(x))
#define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x))
#if CYTHON_USE_PYLONG_INTERNALS
  #if PY_VERSION_HEX >= 0x030C00A7
  #ifndef _PyLong_SIGN_MASK
    #define _PyLong_SIGN_MASK 3
  #endif
  #ifndef _PyLong_NON_SIZE_BITS
    #define _PyLong_NON_SIZE_BITS 3
  #endif
  #define __Pyx_PyLong_Sign(x)  (((PyLongObject*)x)->long_value.lv_tag & _PyLong_SIGN_MASK)
  #define __Pyx_PyLong_IsNeg(x)  ((__Pyx_PyLong_Sign(x) & 2) != 0)
  #define __Pyx_PyLong_IsNonNeg(x)  (!__Pyx_PyLong_IsNeg(x))
  #define __Pyx_PyLong_IsZero(x)  (__Pyx_PyLong_Sign(x) & 1)
  #define __Pyx_PyLong_IsPos(x)  (__Pyx_PyLong_Sign(x) == 0)
  #define __Pyx_PyLong_CompactValueUnsigned(x)  (__Pyx_PyLong_Digits(x)[0])
  #define __Pyx_PyLong_DigitCount(x)  ((Py_ssize_t) (((PyLongObject*)x)->long_value.lv_tag >> _PyLong_NON_SIZE_BITS))
  #define __Pyx_PyLong_SignedDigitCount(x)\
        ((1 - (Py_ssize_t) __Pyx_PyLong_Sign(x)) * __Pyx_PyLong_DigitCount(x))
  #if defined(PyUnstable_Long_IsCompact) && defined(PyUnstable_Long_CompactValue)
    #define __Pyx_PyLong_IsCompact(x)     PyUnstable_Long_IsCompact((PyLongObject*) x)
    #define __Pyx_PyLong_CompactValue(x)  PyUnstable_Long_CompactValue((PyLongObject*) x)
  #else
    #define __Pyx_PyLong_IsCompact(x)     (((PyLongObject*)x)->long_value.lv_tag < (2 << _PyLong_NON_SIZE_BITS))
    #define __Pyx_PyLong_CompactValue(x)  ((1 - (Py_ssize_t) __Pyx_PyLong_Sign(x)) * (Py_ssize_t) __Pyx_PyLong_Digits(x)[0])
  #endif
  typedef Py_ssize_t  __Pyx_compact_pylong;
  typedef size_t  __Pyx_compact_upylong;
  #else
  #define __Pyx_PyLong_IsNeg(x)  (Py_SIZE(x) < 0)
  #define __Pyx_PyLong_IsNonNeg(x)  (Py_SIZE(x) >= 0)
  #define __Pyx_PyLong_IsZero(x)  (Py_SIZE(x) == 0)
  #define __Pyx_PyLong_IsPos(x)  (Py_SIZE(x) > 0)
  #define __Pyx_PyLong_CompactValueUnsigned(x)  ((Py_SIZE(x) == 0) ? 0 : __Pyx_PyLong_Digits(x)[0])
  #define __Pyx_PyLong_DigitCount(x)  __Pyx_sst_abs(Py_SIZE(x))
  #define __Pyx_PyLong_SignedDigitCount(x)  Py_SIZE(x)
  #define __Pyx_PyLong_IsCompact(x)  (Py_SIZE(x) == 0 || Py_SIZE(x) == 1 || Py_SIZE(x) == -1)
  #define __Pyx_PyLong_CompactValue(x)\
        ((Py_SIZE(x) == 0) ? (sdigit) 0 : ((Py_SIZE(x) < 0) ? -(sdigit)__Pyx_PyLong_Digits(x)[0] : (sdigit)__Pyx_PyLong_Digits(x)[0]))
  typedef sdigit  __Pyx_compact_pylong;
  typedef digit  __Pyx_compact_upylong;
  #endif
  #if PY_VERSION_HEX >= 0x030C00A5
  #define __Pyx_PyLong_Digits(x)  (((PyLongObject*)x)->long_value.ob_digit)
  #else
  #define __Pyx_PyLong_Digits(x)  (((PyLongObject*)x)->ob_digit)
  #endif
#endif
#if __PYX_DEFAULT_STRING_ENCODING_IS_UTF8
  #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL)
#elif __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
  #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeASCII(c_str, size, NULL)
#else
  #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL)
#endif


/* Test for GCC > 2.95 */
#if defined(__GNUC__)     && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)))
  #define likely(x)   __builtin_expect(!!(x), 1)
  #define unlikely(x) __builtin_expect(!!(x), 0)
#else /* !__GNUC__ or GCC < 2.95 */
  #define likely(x)   (x)
  #define unlikely(x) (x)
#endif /* __GNUC__ */
/* PretendToInitialize */
#ifdef __cplusplus
#if __cplusplus > 201103L
#include <type_traits>
#endif
template <typename T>
static void __Pyx_pretend_to_initialize(T* ptr) {
#if __cplusplus > 201103L
    if ((std::is_trivially_default_constructible<T>::value))
#endif
        *ptr = T();
    (void)ptr;
}
#else
static CYTHON_INLINE void __Pyx_pretend_to_initialize(void* ptr) { (void)ptr; }
#endif


#if !CYTHON_USE_MODULE_STATE
static PyObject *__pyx_m = NULL;
#endif
static int __pyx_lineno;
static int __pyx_clineno = 0;
static const char * const __pyx_cfilenm = __FILE__;
static const char *__pyx_filename;

/* #### Code section: filename_table ### */

static const char* const __pyx_f[] = {
  "src/uharfbuzz/_harfbuzz.pyx",
  "src/uharfbuzz/_face.pxi",
  "src/uharfbuzz/_set.pxi",
  "src/uharfbuzz/_font.pxi",
  "<stringsource>",
  "src/uharfbuzz/_map.pxi",
  "src/uharfbuzz/_blob.pxi",
  "src/uharfbuzz/_buffer.pxi",
  "src/uharfbuzz/_draw.pxi",
  "src/uharfbuzz/_paint.pxi",
  "src/uharfbuzz/_raster.pxi",
  "src/uharfbuzz/_serialize.pxi",
  "src/uharfbuzz/_subset.pxi",
  "src/uharfbuzz/_generated_docs.pxi",
};
/* #### Code section: utility_code_proto_before_types ### */
/* Atomics.proto (used by UnpackUnboundCMethod) */
#include <pythread.h>
#ifndef CYTHON_ATOMICS
    #define CYTHON_ATOMICS 1
#endif
#define __PYX_CYTHON_ATOMICS_ENABLED() CYTHON_ATOMICS
#define __PYX_GET_CYTHON_COMPILING_IN_CPYTHON_FREETHREADING() CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __pyx_atomic_int_type int
#define __pyx_nonatomic_int_type int
#if CYTHON_ATOMICS && (defined(__STDC_VERSION__) &&\
                        (__STDC_VERSION__ >= 201112L) &&\
                        !defined(__STDC_NO_ATOMICS__))
    #include <stdatomic.h>
#elif CYTHON_ATOMICS && (defined(__cplusplus) && (\
                    (__cplusplus >= 201103L) ||\
                    (defined(_MSC_VER) && _MSC_VER >= 1700)))
    #include <atomic>
#endif
#if CYTHON_ATOMICS && (defined(__STDC_VERSION__) &&\
                        (__STDC_VERSION__ >= 201112L) &&\
                        !defined(__STDC_NO_ATOMICS__) &&\
                       ATOMIC_INT_LOCK_FREE == 2)
    #undef __pyx_atomic_int_type
    #define __pyx_atomic_int_type atomic_int
    #define __pyx_atomic_ptr_type atomic_uintptr_t
    #define __pyx_nonatomic_ptr_type uintptr_t
    #define __pyx_atomic_incr_relaxed(value) atomic_fetch_add_explicit(value, 1, memory_order_relaxed)
    #define __pyx_atomic_incr_acq_rel(value) atomic_fetch_add_explicit(value, 1, memory_order_acq_rel)
    #define __pyx_atomic_decr_acq_rel(value) atomic_fetch_sub_explicit(value, 1, memory_order_acq_rel)
    #define __pyx_atomic_sub(value, arg) atomic_fetch_sub(value, arg)
    #define __pyx_atomic_int_cmp_exchange(value, expected, desired) atomic_compare_exchange_strong(value, expected, desired)
    #define __pyx_atomic_load(value) atomic_load(value)
    #define __pyx_atomic_store(value, new_value) atomic_store(value, new_value)
    #define __pyx_atomic_pointer_load_relaxed(value) atomic_load_explicit(value, memory_order_relaxed)
    #define __pyx_atomic_pointer_load_acquire(value) atomic_load_explicit(value, memory_order_acquire)
    #define __pyx_atomic_pointer_exchange(value, new_value) atomic_exchange(value, (__pyx_nonatomic_ptr_type)new_value)
    #define __pyx_atomic_pointer_cmp_exchange(value, expected, desired) atomic_compare_exchange_strong(value, expected, desired)
    #if defined(__PYX_DEBUG_ATOMICS) && defined(_MSC_VER)
        #pragma message ("Using standard C atomics")
    #elif defined(__PYX_DEBUG_ATOMICS)
        #warning "Using standard C atomics"
    #endif
#elif CYTHON_ATOMICS && (defined(__cplusplus) && (\
                    (__cplusplus >= 201103L) ||\
\
                    (defined(_MSC_VER) && _MSC_VER >= 1700)) &&\
                    ATOMIC_INT_LOCK_FREE == 2)
    #undef __pyx_atomic_int_type
    #define __pyx_atomic_int_type std::atomic_int
    #define __pyx_atomic_ptr_type std::atomic_uintptr_t
    #define __pyx_nonatomic_ptr_type uintptr_t
    #define __pyx_atomic_incr_relaxed(value) std::atomic_fetch_add_explicit(value, 1, std::memory_order_relaxed)
    #define __pyx_atomic_incr_acq_rel(value) std::atomic_fetch_add_explicit(value, 1, std::memory_order_acq_rel)
    #define __pyx_atomic_decr_acq_rel(value) std::atomic_fetch_sub_explicit(value, 1, std::memory_order_acq_rel)
    #define __pyx_atomic_sub(value, arg) std::atomic_fetch_sub(value, arg)
    #define __pyx_atomic_int_cmp_exchange(value, expected, desired) std::atomic_compare_exchange_strong(value, expected, desired)
    #define __pyx_atomic_load(value) std::atomic_load(value)
    #define __pyx_atomic_store(value, new_value) std::atomic_store(value, new_value)
    #define __pyx_atomic_pointer_load_relaxed(value) std::atomic_load_explicit(value, std::memory_order_relaxed)
    #define __pyx_atomic_pointer_load_acquire(value) std::atomic_load_explicit(value, std::memory_order_acquire)
    #define __pyx_atomic_pointer_exchange(value, new_value) std::atomic_exchange(value, (__pyx_nonatomic_ptr_type)new_value)
    #define __pyx_atomic_pointer_cmp_exchange(value, expected, desired) std::atomic_compare_exchange_strong(value, expected, desired)
    #if defined(__PYX_DEBUG_ATOMICS) && defined(_MSC_VER)
        #pragma message ("Using standard C++ atomics")
    #elif defined(__PYX_DEBUG_ATOMICS)
        #warning "Using standard C++ atomics"
    #endif
#elif CYTHON_ATOMICS && (__GNUC__ >= 5 || (__GNUC__ == 4 &&\
                    (__GNUC_MINOR__ > 1 ||\
                    (__GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ >= 2))))
    #define __pyx_atomic_ptr_type void*
    #define __pyx_nonatomic_ptr_type void*
    #define __pyx_atomic_incr_relaxed(value) __sync_fetch_and_add(value, 1)
    #define __pyx_atomic_incr_acq_rel(value) __sync_fetch_and_add(value, 1)
    #define __pyx_atomic_decr_acq_rel(value) __sync_fetch_and_sub(value, 1)
    #define __pyx_atomic_sub(value, arg) __sync_fetch_and_sub(value, arg)
    static CYTHON_INLINE int __pyx_atomic_int_cmp_exchange(__pyx_atomic_int_type* value, __pyx_nonatomic_int_type* expected, __pyx_nonatomic_int_type desired) {
        __pyx_nonatomic_int_type old = __sync_val_compare_and_swap(value, *expected, desired);
        int result = old == *expected;
        *expected = old;
        return result;
    }
    #define __pyx_atomic_load(value) __sync_fetch_and_add(value, 0)
    #define __pyx_atomic_store(value, new_value) __sync_lock_test_and_set(value, new_value)
    #define __pyx_atomic_pointer_load_relaxed(value) __sync_fetch_and_add(value, 0)
    #define __pyx_atomic_pointer_load_acquire(value) __sync_fetch_and_add(value, 0)
    #define __pyx_atomic_pointer_exchange(value, new_value) __sync_lock_test_and_set(value, (__pyx_atomic_ptr_type)new_value)
    static CYTHON_INLINE int __pyx_atomic_pointer_cmp_exchange(__pyx_atomic_ptr_type* value, __pyx_nonatomic_ptr_type* expected, __pyx_nonatomic_ptr_type desired) {
        __pyx_nonatomic_ptr_type old = __sync_val_compare_and_swap(value, *expected, desired);
        int result = old == *expected;
        *expected = old;
        return result;
    }
    #ifdef __PYX_DEBUG_ATOMICS
        #warning "Using GNU atomics"
    #endif
#elif CYTHON_ATOMICS && defined(_MSC_VER)
    #include <intrin.h>
    #undef __pyx_atomic_int_type
    #define __pyx_atomic_int_type long
    #define __pyx_atomic_ptr_type void*
    #undef __pyx_nonatomic_int_type
    #define __pyx_nonatomic_int_type long
    #define __pyx_nonatomic_ptr_type void*
    #pragma intrinsic (_InterlockedExchangeAdd, _InterlockedExchange, _InterlockedCompareExchange, _InterlockedCompareExchangePointer, _InterlockedExchangePointer)
    #define __pyx_atomic_incr_relaxed(value) _InterlockedExchangeAdd(value, 1)
    #define __pyx_atomic_incr_acq_rel(value) _InterlockedExchangeAdd(value, 1)
    #define __pyx_atomic_decr_acq_rel(value) _InterlockedExchangeAdd(value, -1)
    #define __pyx_atomic_sub(value, arg) _InterlockedExchangeAdd(value, -arg)
    static CYTHON_INLINE int __pyx_atomic_int_cmp_exchange(__pyx_atomic_int_type* value, __pyx_nonatomic_int_type* expected, __pyx_nonatomic_int_type desired) {
        __pyx_nonatomic_int_type old = _InterlockedCompareExchange(value, desired, *expected);
        int result = old == *expected;
        *expected = old;
        return result;
    }
    #define __pyx_atomic_load(value) _InterlockedExchangeAdd(value, 0)
    #define __pyx_atomic_store(value, new_value) _InterlockedExchange(value, new_value)
    #define __pyx_atomic_pointer_load_relaxed(value) *(void * volatile *)value
    #define __pyx_atomic_pointer_load_acquire(value) _InterlockedCompareExchangePointer(value, 0, 0)
    #define __pyx_atomic_pointer_exchange(value, new_value) _InterlockedExchangePointer(value, (__pyx_atomic_ptr_type)new_value)
    static CYTHON_INLINE int __pyx_atomic_pointer_cmp_exchange(__pyx_atomic_ptr_type* value, __pyx_nonatomic_ptr_type* expected, __pyx_nonatomic_ptr_type desired) {
        __pyx_atomic_ptr_type old = _InterlockedCompareExchangePointer(value, desired, *expected);
        int result = old == *expected;
        *expected = old;
        return result;
    }
    #ifdef __PYX_DEBUG_ATOMICS
        #pragma message ("Using MSVC atomics")
    #endif
#else
    #undef CYTHON_ATOMICS
    #define CYTHON_ATOMICS 0
    #ifdef __PYX_DEBUG_ATOMICS
        #warning "Not using atomics"
    #endif
#endif

/* CriticalSectionsDefinition.proto (used by CriticalSections) */
#if !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __Pyx_PyCriticalSection void*
#define __Pyx_PyCriticalSection2 void*
#define __Pyx_PyCriticalSection_End(cs)
#define __Pyx_PyCriticalSection2_End(cs)
#else
#define __Pyx_PyCriticalSection PyCriticalSection
#define __Pyx_PyCriticalSection2 PyCriticalSection2
#define __Pyx_PyCriticalSection_End PyCriticalSection_End
#define __Pyx_PyCriticalSection2_End PyCriticalSection2_End
#endif

/* CriticalSections.proto (used by ParseKeywordsImpl) */
#if !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __Pyx_PyCriticalSection_Begin(cs, arg) (void)(cs)
#define __Pyx_PyCriticalSection2_Begin(cs, arg1, arg2) (void)(cs)
#else
#define __Pyx_PyCriticalSection_Begin PyCriticalSection_Begin
#define __Pyx_PyCriticalSection2_Begin PyCriticalSection2_Begin
#endif
#if PY_VERSION_HEX < 0x030d0000 || CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_BEGIN_CRITICAL_SECTION(o) {
#define __Pyx_END_CRITICAL_SECTION() }
#else
#define __Pyx_BEGIN_CRITICAL_SECTION Py_BEGIN_CRITICAL_SECTION
#define __Pyx_END_CRITICAL_SECTION Py_END_CRITICAL_SECTION
#endif

/* IncludeStructmemberH.proto (used by FixUpExtensionType) */
#include <structmember.h>

/* #### Code section: numeric_typedefs ### */
/* #### Code section: complex_type_declarations ### */
/* #### Code section: type_declarations ### */

/*--- Type declarations ---*/
struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set;
struct __pyx_obj_9uharfbuzz_9_harfbuzz_SetIter;
struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map;
struct __pyx_obj_9uharfbuzz_9_harfbuzz_MapIter;
struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob;
struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphInfo;
struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition;
struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer;
struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face;
struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs;
struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine;
struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs;
struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font;
struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs;
struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage;
struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw;
struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint;
struct __pyx_obj_9uharfbuzz_9_harfbuzz_HBObject;
struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput;
struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetPlan;
struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated;
struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator;
struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr;
struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr;
struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr;
struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr;
struct __pyx_t_9uharfbuzz_9_harfbuzz__pen_methods;
struct __pyx_ctuple_ee55be__double__and_double__and_double__and_double__an__etc;
typedef struct __pyx_ctuple_ee55be__double__and_double__and_double__and_double__an__etc __pyx_ctuple_ee55be__double__and_double__and_double__and_double__an__etc;
struct __pyx_ctuple_double__and_double;
typedef struct __pyx_ctuple_double__and_double __pyx_ctuple_double__and_double;

/* "src/uharfbuzz/_font.pxi":1224
 *         return hb_style_get_value(self._hb_font, tag)
 * 
 * cdef struct _pen_methods:             # <<<<<<<<<<<<<<
 *     void *moveTo
 *     void *lineTo
*/
struct __pyx_t_9uharfbuzz_9_harfbuzz__pen_methods {
  void *moveTo;
  void *lineTo;
  void *curveTo;
  void *qCurveTo;
  void *closePath;
};

/* "src/uharfbuzz/_raster.pxi":187
 * 
 *     @transform.setter
 *     def transform(self, value: Tuple[float, float, float, float, float, float]):             # <<<<<<<<<<<<<<
 *         xx, yx, xy, yy, dx, dy = value
 *         hb_raster_draw_set_transform(self._hb_raster_draw, xx, yx, xy, yy, dx, dy)
*/
struct __pyx_ctuple_ee55be__double__and_double__and_double__and_double__an__etc {
  double f0;
  double f1;
  double f2;
  double f3;
  double f4;
  double f5;
};

/* "src/uharfbuzz/_raster.pxi":208
 * 
 *     @scale_factor.setter
 *     def scale_factor(self, value: Tuple[float, float]):             # <<<<<<<<<<<<<<
 *         x, y = value
 *         hb_raster_draw_set_scale_factor(self._hb_raster_draw, x, y)
*/
struct __pyx_ctuple_double__and_double {
  double f0;
  double f1;
};

/* "src/uharfbuzz/_set.pxi":1
 * cdef class Set:             # <<<<<<<<<<<<<<
 *     """Data type for holding a set of integers. :class:`Set` is used to
 *     gather and contain glyph IDs, Unicode code points, and various other
*/
struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set {
  PyObject_HEAD
  struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_Set *__pyx_vtab;
  hb_set_t *_hb_set;
};


/* "src/uharfbuzz/_set.pxi":303
 *         return ("Set({%s})" % s)
 * 
 * cdef class SetIter:             # <<<<<<<<<<<<<<
 *     """Iterator over the elements of a :class:`Set` in increasing order.
 * 
*/
struct __pyx_obj_9uharfbuzz_9_harfbuzz_SetIter {
  PyObject_HEAD
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *s;
  hb_set_t *_hb_set;
  hb_codepoint_t _c;
};


/* "src/uharfbuzz/_map.pxi":1
 * cdef class Map:             # <<<<<<<<<<<<<<
 *     """Data type for holding integer-to-integer hash maps.
 * 
*/
struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map {
  PyObject_HEAD
  struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_Map *__pyx_vtab;
  hb_map_t *_hb_map;
};


/* "src/uharfbuzz/_map.pxi":167
 *         return ("Map({%s})" % s)
 * 
 * cdef class MapIter:             # <<<<<<<<<<<<<<
 *     """Iterator over ``(key, value)`` pairs in a :class:`Map`.
 * 
*/
struct __pyx_obj_9uharfbuzz_9_harfbuzz_MapIter {
  PyObject_HEAD
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *m;
  hb_map_t *_hb_map;
  int _i;
};


/* "src/uharfbuzz/_blob.pxi":1
 * cdef class Blob:             # <<<<<<<<<<<<<<
 *     """Binary data containers.
 * 
*/
struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob {
  PyObject_HEAD
  struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_Blob *__pyx_vtab;
  hb_blob_t *_hb_blob;
};


/* "src/uharfbuzz/_buffer.pxi":76
 *     SAFE_TO_INSERT_TATWEEL = HB_GLYPH_FLAG_SAFE_TO_INSERT_TATWEEL
 * 
 * cdef class GlyphInfo:             # <<<<<<<<<<<<<<
 *     """The structure that holds information about the glyphs and their
 *     relation to input text.
*/
struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphInfo {
  PyObject_HEAD
  struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_GlyphInfo *__pyx_vtab;
  hb_glyph_info_t _hb_glyph_info;
};


/* "src/uharfbuzz/_buffer.pxi":125
 * 
 * 
 * cdef class GlyphPosition:             # <<<<<<<<<<<<<<
 *     """The structure that holds the positions of the glyph in both horizontal
 *     and vertical directions. All positions in :class:`GlyphPosition` are
*/
struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition {
  PyObject_HEAD
  struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_GlyphPosition *__pyx_vtab;
  hb_glyph_position_t _hb_glyph_position;
};


/* "src/uharfbuzz/_buffer.pxi":432
 *     DEFINED = HB_BUFFER_SERIALIZE_FLAG_DEFINED
 * 
 * cdef class Buffer:             # <<<<<<<<<<<<<<
 *     """Input and output buffers.
 * 
*/
struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer {
  PyObject_HEAD
  hb_buffer_t *_hb_buffer;
  PyObject *_message_callback;
};


/* "src/uharfbuzz/_face.pxi":386
 * 
 * 
 * cdef class Face:             # <<<<<<<<<<<<<<
 *     """Font face objects.
 * 
*/
struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face {
  PyObject_HEAD
  struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_Face *__pyx_vtab;
  hb_face_t *_hb_face;
  PyObject *_reference_table_func;
  PyObject *_get_table_tags_func;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *_blob;
};


/* "src/uharfbuzz/_draw.pxi":51
 * 
 * 
 * cdef class DrawFuncs:             # <<<<<<<<<<<<<<
 *     cdef hb_draw_funcs_t* _hb_drawfuncs
 *     cdef object _move_to_func
*/
struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs {
  PyObject_HEAD
  hb_draw_funcs_t *_hb_drawfuncs;
  PyObject *_move_to_func;
  PyObject *_line_to_func;
  PyObject *_cubic_to_func;
  PyObject *_quadratic_to_func;
  PyObject *_close_path_func;
};


/* "src/uharfbuzz/_paint.pxi":227
 * 
 * 
 * cdef class ColorLine:             # <<<<<<<<<<<<<<
 *     """A struct containing color information for a gradient.
 * 
*/
struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine {
  PyObject_HEAD
  struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_ColorLine *__pyx_vtab;
  hb_color_line_t *_color_line;
};


/* "src/uharfbuzz/_paint.pxi":463
 * 
 * 
 * cdef class PaintFuncs:             # <<<<<<<<<<<<<<
 *     """Glyph paint callbacks.
 * 
*/
struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs {
  PyObject_HEAD
  hb_paint_funcs_t *_hb_paintfuncs;
  PyObject *_push_transform_func;
  PyObject *_pop_transform_func;
  PyObject *_color_glyph_func;
  PyObject *_push_clip_glyph_func;
  PyObject *_push_clip_rectangle_func;
  PyObject *_pop_clip_func;
  PyObject *_color_func;
  PyObject *_image_func;
  PyObject *_linear_gradient_func;
  PyObject *_radial_gradient_func;
  PyObject *_sweep_gradient_func;
  PyObject *_push_group_func;
  PyObject *_pop_group_func;
  PyObject *_custom_palette_color_func;
};


/* "src/uharfbuzz/_font.pxi":280
 *     WEIGHT = HB_STYLE_TAG_WEIGHT
 * 
 * cdef class Font:             # <<<<<<<<<<<<<<
 *     """Font objects.
 * 
*/
struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font {
  PyObject_HEAD
  struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_Font *__pyx_vtab;
  hb_font_t *_hb_font;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *_face;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *_ffuncs;
};


/* "src/uharfbuzz/_font.pxi":1376
 * 
 * 
 * cdef class FontFuncs:             # <<<<<<<<<<<<<<
 *     """The virtual methods that define the font functions used by a
 *     :class:`Font` for the basic, lower-level queries against a font object.
*/
struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs {
  PyObject_HEAD
  hb_font_funcs_t *_hb_ffuncs;
  PyObject *_glyph_h_advance_func;
  PyObject *_glyph_v_advance_func;
  PyObject *_glyph_v_origin_func;
  PyObject *_glyph_name_func;
  PyObject *_nominal_glyph_func;
  PyObject *_variation_glyph_func;
  PyObject *_font_h_extents_func;
  PyObject *_font_v_extents_func;
};


/* "src/uharfbuzz/_raster.pxi":37
 * 
 * 
 * cdef class RasterImage:             # <<<<<<<<<<<<<<
 *     """An opaque raster image object holding a pixel buffer produced by
 *     :meth:`RasterDraw.render`. Use :attr:`buffer` and :attr:`extents` to
*/
struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage {
  PyObject_HEAD
  struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_vtab;
  hb_raster_image_t *_hb_raster_image;
};


/* "src/uharfbuzz/_raster.pxi":151
 * 
 * 
 * cdef class RasterDraw:             # <<<<<<<<<<<<<<
 *     """An opaque outline rasterizer object. Accumulates glyph outlines via
 *     :class:`DrawFuncs` callbacks, then produces a :class:`RasterImage` with
*/
struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw {
  PyObject_HEAD
  hb_raster_draw_t *_hb_raster_draw;
};


/* "src/uharfbuzz/_raster.pxi":327
 * 
 * 
 * cdef class RasterPaint:             # <<<<<<<<<<<<<<
 *     """An opaque color-glyph paint context. Implements :class:`PaintFuncs`
 *     callbacks that render COLRv0/v1 color glyphs into a
*/
struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint {
  PyObject_HEAD
  hb_raster_paint_t *_hb_raster_paint;
};


/* "src/uharfbuzz/_serialize.pxi":1
 * cdef class HBObject:             # <<<<<<<<<<<<<<
 *     """Represents an array of objects in the object graph to be serialized.
 *     Used internally by :func:`serialize` and :func:`serialize_with_tag`.
*/
struct __pyx_obj_9uharfbuzz_9_harfbuzz_HBObject {
  PyObject_HEAD
  struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_HBObject *__pyx_vtab;
  hb_subset_serialize_object_t *_hb_obj_list;
  unsigned int _num;
};


/* "src/uharfbuzz/_subset.pxi":159
 * 
 * 
 * cdef class SubsetInput:             # <<<<<<<<<<<<<<
 *     """Things that change based on the input. Characters to keep, etc.
 * 
*/
struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput {
  PyObject_HEAD
  hb_subset_input_t *_hb_input;
};


/* "src/uharfbuzz/_subset.pxi":406
 * 
 * 
 * cdef class SubsetPlan:             # <<<<<<<<<<<<<<
 *     """Contains information about how the subset operation will be
 *     executed. Such as mappings from the old glyph ids to the new ones in
*/
struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetPlan {
  PyObject_HEAD
  hb_subset_plan_t *_hb_plan;
};


/* "uharfbuzz/_harfbuzz.pyx":48
 * 
 * 
 * def deprecated(replacement=None, since=""):             # <<<<<<<<<<<<<<
 *     """Decorator to raise a warning when a deprecated function is called.
 * 
*/
struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated {
  PyObject_HEAD
  PyObject *__pyx_v_replacement;
  PyObject *__pyx_v_since;
};


/* "uharfbuzz/_harfbuzz.pyx":55
 *     """
 * 
 *     def decorator(func):             # <<<<<<<<<<<<<<
 *         @wraps(func)
 *         def wrapper(*args, **kwargs):
*/
struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator {
  PyObject_HEAD
  struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated *__pyx_outer_scope;
  PyObject *__pyx_v_func;
};


/* "src/uharfbuzz/_set.pxi":300
 *         if self.is_inverted():
 *             return "Set({...})"
 *         s = ', '.join(repr(v) for v in self)             # <<<<<<<<<<<<<<
 *         return ("Set({%s})" % s)
 * 
*/
struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr {
  PyObject_HEAD
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_v;
};


/* "src/uharfbuzz/_map.pxi":151
 *         The order in which the keys are returned is undefined.
 *         """
 *         return (k for k,v in self.items())             # <<<<<<<<<<<<<<
 * 
 *     def values(self):
*/
struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr {
  PyObject_HEAD
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
  PyObject *__pyx_t_0;
  Py_ssize_t __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  int __pyx_t_3;
};


/* "src/uharfbuzz/_map.pxi":158
 *         The order in which the values are returned is undefined.
 *         """
 *         return (v for k,v in self.items())             # <<<<<<<<<<<<<<
 * 
 *     def __iter__(self):
*/
struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr {
  PyObject_HEAD
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
  PyObject *__pyx_t_0;
  Py_ssize_t __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  int __pyx_t_3;
};


/* "src/uharfbuzz/_map.pxi":164
 * 
 *     def __repr__(self):
 *         s = ', '.join("%s: %s" % (repr(k), repr(v)) for k,v in sorted(self.items()))             # <<<<<<<<<<<<<<
 *         return ("Map({%s})" % s)
 * 
*/
struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};



/* "src/uharfbuzz/_set.pxi":1
 * cdef class Set:             # <<<<<<<<<<<<<<
 *     """Data type for holding a set of integers. :class:`Set` is used to
 *     gather and contain glyph IDs, Unicode code points, and various other
*/

struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_Set {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *(*from_ptr)(hb_set_t *);
};
static struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_Set *__pyx_vtabptr_9uharfbuzz_9_harfbuzz_Set;


/* "src/uharfbuzz/_map.pxi":1
 * cdef class Map:             # <<<<<<<<<<<<<<
 *     """Data type for holding integer-to-integer hash maps.
 * 
*/

struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_Map {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *(*from_ptr)(hb_map_t *);
};
static struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_Map *__pyx_vtabptr_9uharfbuzz_9_harfbuzz_Map;


/* "src/uharfbuzz/_blob.pxi":1
 * cdef class Blob:             # <<<<<<<<<<<<<<
 *     """Binary data containers.
 * 
*/

struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_Blob {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *(*from_ptr)(hb_blob_t *);
};
static struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_Blob *__pyx_vtabptr_9uharfbuzz_9_harfbuzz_Blob;


/* "src/uharfbuzz/_buffer.pxi":76
 *     SAFE_TO_INSERT_TATWEEL = HB_GLYPH_FLAG_SAFE_TO_INSERT_TATWEEL
 * 
 * cdef class GlyphInfo:             # <<<<<<<<<<<<<<
 *     """The structure that holds information about the glyphs and their
 *     relation to input text.
*/

struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_GlyphInfo {
  PyObject *(*set)(struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphInfo *, hb_glyph_info_t);
};
static struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_GlyphInfo *__pyx_vtabptr_9uharfbuzz_9_harfbuzz_GlyphInfo;


/* "src/uharfbuzz/_buffer.pxi":125
 * 
 * 
 * cdef class GlyphPosition:             # <<<<<<<<<<<<<<
 *     """The structure that holds the positions of the glyph in both horizontal
 *     and vertical directions. All positions in :class:`GlyphPosition` are
*/

struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_GlyphPosition {
  PyObject *(*set)(struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition *, hb_glyph_position_t);
};
static struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_GlyphPosition *__pyx_vtabptr_9uharfbuzz_9_harfbuzz_GlyphPosition;


/* "src/uharfbuzz/_face.pxi":386
 * 
 * 
 * cdef class Face:             # <<<<<<<<<<<<<<
 *     """Font face objects.
 * 
*/

struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_Face {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *(*from_ptr)(hb_face_t *);
};
static struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_Face *__pyx_vtabptr_9uharfbuzz_9_harfbuzz_Face;


/* "src/uharfbuzz/_paint.pxi":227
 * 
 * 
 * cdef class ColorLine:             # <<<<<<<<<<<<<<
 *     """A struct containing color information for a gradient.
 * 
*/

struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_ColorLine {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine *(*from_ptr)(hb_color_line_t *);
};
static struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_ColorLine *__pyx_vtabptr_9uharfbuzz_9_harfbuzz_ColorLine;


/* "src/uharfbuzz/_font.pxi":280
 *     WEIGHT = HB_STYLE_TAG_WEIGHT
 * 
 * cdef class Font:             # <<<<<<<<<<<<<<
 *     """Font objects.
 * 
*/

struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_Font {
  PyObject *(*_Font__create)(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *);
  PyObject *(*_Font__create_sub_font)(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *);
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *(*from_ptr)(hb_font_t *);
};
static struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_Font *__pyx_vtabptr_9uharfbuzz_9_harfbuzz_Font;


/* "src/uharfbuzz/_raster.pxi":37
 * 
 * 
 * cdef class RasterImage:             # <<<<<<<<<<<<<<
 *     """An opaque raster image object holding a pixel buffer produced by
 *     :meth:`RasterDraw.render`. Use :attr:`buffer` and :attr:`extents` to
*/

struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_RasterImage {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *(*from_ptr)(hb_raster_image_t *);
};
static struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_vtabptr_9uharfbuzz_9_harfbuzz_RasterImage;


/* "src/uharfbuzz/_serialize.pxi":1
 * cdef class HBObject:             # <<<<<<<<<<<<<<
 *     """Represents an array of objects in the object graph to be serialized.
 *     Used internally by :func:`serialize` and :func:`serialize_with_tag`.
*/

struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_HBObject {
  PyObject *(*update_obj_length)(struct __pyx_obj_9uharfbuzz_9_harfbuzz_HBObject *, unsigned int, char *, char *);
  hb_subset_serialize_link_t *(*create_links)(struct __pyx_obj_9uharfbuzz_9_harfbuzz_HBObject *, unsigned int, unsigned int, int);
  PyObject *(*update_links)(struct __pyx_obj_9uharfbuzz_9_harfbuzz_HBObject *, unsigned int, int, PyObject *);
};
static struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_HBObject *__pyx_vtabptr_9uharfbuzz_9_harfbuzz_HBObject;
/* #### Code section: utility_code_proto ### */

/* --- Runtime support code (head) --- */
/* Refnanny.proto */
#ifndef CYTHON_REFNANNY
  #define CYTHON_REFNANNY 0
#endif
#if CYTHON_REFNANNY
  typedef struct {
    void (*INCREF)(void*, PyObject*, Py_ssize_t);
    void (*DECREF)(void*, PyObject*, Py_ssize_t);
    void (*GOTREF)(void*, PyObject*, Py_ssize_t);
    void (*GIVEREF)(void*, PyObject*, Py_ssize_t);
    void* (*SetupContext)(const char*, Py_ssize_t, const char*);
    void (*FinishContext)(void**);
  } __Pyx_RefNannyAPIStruct;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname);
  #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
  #define __Pyx_RefNannySetupContext(name, acquire_gil)\
          if (acquire_gil) {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), (__LINE__), (__FILE__));\
              PyGILState_Release(__pyx_gilstate_save);\
          } else {\
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), (__LINE__), (__FILE__));\
          }
  #define __Pyx_RefNannyFinishContextNogil() {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __Pyx_RefNannyFinishContext();\
              PyGILState_Release(__pyx_gilstate_save);\
          }
  #define __Pyx_RefNannyFinishContextNogil() {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __Pyx_RefNannyFinishContext();\
              PyGILState_Release(__pyx_gilstate_save);\
          }
  #define __Pyx_RefNannyFinishContext()\
          __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
  #define __Pyx_INCREF(r)  __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), (__LINE__))
  #define __Pyx_DECREF(r)  __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), (__LINE__))
  #define __Pyx_GOTREF(r)  __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), (__LINE__))
  #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), (__LINE__))
  #define __Pyx_XINCREF(r)  do { if((r) == NULL); else {__Pyx_INCREF(r); }} while(0)
  #define __Pyx_XDECREF(r)  do { if((r) == NULL); else {__Pyx_DECREF(r); }} while(0)
  #define __Pyx_XGOTREF(r)  do { if((r) == NULL); else {__Pyx_GOTREF(r); }} while(0)
  #define __Pyx_XGIVEREF(r) do { if((r) == NULL); else {__Pyx_GIVEREF(r);}} while(0)
#else
  #define __Pyx_RefNannyDeclarations
  #define __Pyx_RefNannySetupContext(name, acquire_gil)
  #define __Pyx_RefNannyFinishContextNogil()
  #define __Pyx_RefNannyFinishContext()
  #define __Pyx_INCREF(r) Py_INCREF(r)
  #define __Pyx_DECREF(r) Py_DECREF(r)
  #define __Pyx_GOTREF(r)
  #define __Pyx_GIVEREF(r)
  #define __Pyx_XINCREF(r) Py_XINCREF(r)
  #define __Pyx_XDECREF(r) Py_XDECREF(r)
  #define __Pyx_XGOTREF(r)
  #define __Pyx_XGIVEREF(r)
#endif
#define __Pyx_Py_XDECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; Py_XDECREF(tmp);\
    } while (0)
#define __Pyx_XDECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; __Pyx_XDECREF(tmp);\
    } while (0)
#define __Pyx_DECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; __Pyx_DECREF(tmp);\
    } while (0)
#define __Pyx_CLEAR(r)    do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
#define __Pyx_XCLEAR(r)   do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)

/* PyErrExceptionMatches.proto (used by PyObjectGetAttrStrNoError) */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err)
static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err);
#else
#define __Pyx_PyErr_ExceptionMatches(err)  PyErr_ExceptionMatches(err)
#endif

/* PyThreadStateGet.proto (used by PyErrFetchRestore) */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyThreadState_declare  PyThreadState *__pyx_tstate;
#define __Pyx_PyThreadState_assign  __pyx_tstate = __Pyx_PyThreadState_Current;
#if PY_VERSION_HEX >= 0x030C00A6
#define __Pyx_PyErr_Occurred()  (__pyx_tstate->current_exception != NULL)
#define __Pyx_PyErr_CurrentExceptionType()  (__pyx_tstate->current_exception ? (PyObject*) Py_TYPE(__pyx_tstate->current_exception) : (PyObject*) NULL)
#else
#define __Pyx_PyErr_Occurred()  (__pyx_tstate->curexc_type != NULL)
#define __Pyx_PyErr_CurrentExceptionType()  (__pyx_tstate->curexc_type)
#endif
#else
#define __Pyx_PyThreadState_declare
#define __Pyx_PyThreadState_assign
#define __Pyx_PyErr_Occurred()  (PyErr_Occurred() != NULL)
#define __Pyx_PyErr_CurrentExceptionType()  PyErr_Occurred()
#endif

/* PyErrFetchRestore.proto (used by PyObjectGetAttrStrNoError) */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL)
#define __Pyx_ErrRestoreWithState(type, value, tb)  __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb)    __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrRestore(type, value, tb)  __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb)
#define __Pyx_ErrFetch(type, value, tb)    __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A6
#define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL))
#else
#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
#endif
#else
#define __Pyx_PyErr_Clear() PyErr_Clear()
#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
#define __Pyx_ErrRestoreWithState(type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb)  PyErr_Fetch(type, value, tb)
#define __Pyx_ErrRestoreInState(tstate, type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetchInState(tstate, type, value, tb)  PyErr_Fetch(type, value, tb)
#define __Pyx_ErrRestore(type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetch(type, value, tb)  PyErr_Fetch(type, value, tb)
#endif

/* PyObjectGetAttrStr.proto (used by PyObjectGetAttrStrNoError) */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name);
#else
#define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
#endif

/* PyObjectGetAttrStrNoError.proto (used by GetBuiltinName) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name);

/* GetBuiltinName.proto */
static PyObject *__Pyx_GetBuiltinName(PyObject *name);

/* IncludeStringH.proto (used by decode_c_string) */
#include <string.h>

/* decode_c_string_utf16.proto (used by decode_c_string) */
static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16(const char *s, Py_ssize_t size, const char *errors) {
    int byteorder = 0;
    return PyUnicode_DecodeUTF16(s, size, errors, &byteorder);
}
static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16LE(const char *s, Py_ssize_t size, const char *errors) {
    int byteorder = -1;
    return PyUnicode_DecodeUTF16(s, size, errors, &byteorder);
}
static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16BE(const char *s, Py_ssize_t size, const char *errors) {
    int byteorder = 1;
    return PyUnicode_DecodeUTF16(s, size, errors, &byteorder);
}

/* decode_c_string.proto */
static CYTHON_INLINE PyObject* __Pyx_decode_c_string(
         const char* cstring, Py_ssize_t start, Py_ssize_t stop,
         const char* encoding, const char* errors,
         PyObject* (*decode_func)(const char *s, Py_ssize_t size, const char *errors));

/* PyObjectCall.proto (used by PyObjectFastCall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw);
#else
#define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw)
#endif

/* PyObjectCallMethO.proto (used by PyObjectFastCall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg);
#endif

/* PyObjectFastCall.proto */
#define __Pyx_PyObject_FastCall(func, args, nargs)  __Pyx_PyObject_FastCallDict(func, args, (size_t)(nargs), NULL)
static CYTHON_INLINE PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject * const*args, size_t nargs, PyObject *kwargs);

/* WriteUnraisableException.proto */
static void __Pyx_WriteUnraisable(const char *name, int clineno,
                                  int lineno, const char *filename,
                                  int full_traceback, int nogil);

/* TupleAndListFromArray.proto (used by fastcall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyList_FromArray(PyObject *const *src, Py_ssize_t n);
#endif
#if CYTHON_COMPILING_IN_CPYTHON || CYTHON_METH_FASTCALL
static CYTHON_INLINE PyObject* __Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n);
#endif

/* BytesEquals.proto (used by UnicodeEquals) */
static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals);

/* UnicodeEquals.proto (used by fastcall) */
static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals);

/* fastcall.proto */
#if CYTHON_AVOID_BORROWED_REFS
    #define __Pyx_ArgRef_VARARGS(args, i) __Pyx_PySequence_ITEM(args, i)
#elif CYTHON_ASSUME_SAFE_MACROS
    #define __Pyx_ArgRef_VARARGS(args, i) __Pyx_NewRef(__Pyx_PyTuple_GET_ITEM(args, i))
#else
    #define __Pyx_ArgRef_VARARGS(args, i) __Pyx_XNewRef(PyTuple_GetItem(args, i))
#endif
#define __Pyx_NumKwargs_VARARGS(kwds) PyDict_Size(kwds)
#define __Pyx_KwValues_VARARGS(args, nargs) NULL
#define __Pyx_GetKwValue_VARARGS(kw, kwvalues, s) __Pyx_PyDict_GetItemStrWithError(kw, s)
#define __Pyx_KwargsAsDict_VARARGS(kw, kwvalues) PyDict_Copy(kw)
#if CYTHON_METH_FASTCALL
    #define __Pyx_ArgRef_FASTCALL(args, i) __Pyx_NewRef(args[i])
    #define __Pyx_NumKwargs_FASTCALL(kwds) __Pyx_PyTuple_GET_SIZE(kwds)
    #define __Pyx_KwValues_FASTCALL(args, nargs) ((args) + (nargs))
    static CYTHON_INLINE PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues, PyObject *s);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000 || CYTHON_COMPILING_IN_LIMITED_API
    CYTHON_UNUSED static PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues);
  #else
    #define __Pyx_KwargsAsDict_FASTCALL(kw, kwvalues) _PyStack_AsDict(kwvalues, kw)
  #endif
#else
    #define __Pyx_ArgRef_FASTCALL __Pyx_ArgRef_VARARGS
    #define __Pyx_NumKwargs_FASTCALL __Pyx_NumKwargs_VARARGS
    #define __Pyx_KwValues_FASTCALL __Pyx_KwValues_VARARGS
    #define __Pyx_GetKwValue_FASTCALL __Pyx_GetKwValue_VARARGS
    #define __Pyx_KwargsAsDict_FASTCALL __Pyx_KwargsAsDict_VARARGS
#endif
#define __Pyx_ArgsSlice_VARARGS(args, start, stop) PyTuple_GetSlice(args, start, stop)
#if CYTHON_METH_FASTCALL || (CYTHON_COMPILING_IN_CPYTHON && CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS)
#define __Pyx_ArgsSlice_FASTCALL(args, start, stop) __Pyx_PyTuple_FromArray(args + start, stop - start)
#else
#define __Pyx_ArgsSlice_FASTCALL(args, start, stop) PyTuple_GetSlice(args, start, stop)
#endif

/* decode_c_bytes.proto (used by decode_bytes) */
static CYTHON_INLINE PyObject* __Pyx_decode_c_bytes(
         const char* cstring, Py_ssize_t length, Py_ssize_t start, Py_ssize_t stop,
         const char* encoding, const char* errors,
         PyObject* (*decode_func)(const char *s, Py_ssize_t size, const char *errors));

/* decode_bytes.proto */
static CYTHON_INLINE PyObject* __Pyx_decode_bytes(
         PyObject* string, Py_ssize_t start, Py_ssize_t stop,
         const char* encoding, const char* errors,
         PyObject* (*decode_func)(const char *s, Py_ssize_t size, const char *errors)) {
    char* as_c_string;
    Py_ssize_t size;
#if CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
    as_c_string = PyBytes_AS_STRING(string);
    size = PyBytes_GET_SIZE(string);
#else
    if (PyBytes_AsStringAndSize(string, &as_c_string, &size) < 0) {
        return NULL;
    }
#endif
    return __Pyx_decode_c_bytes(
        as_c_string, size,
        start, stop, encoding, errors, decode_func);
}

/* py_dict_items.proto (used by OwnedDictNext) */
static CYTHON_INLINE PyObject* __Pyx_PyDict_Items(PyObject* d);

/* CallCFunction.proto (used by CallUnboundCMethod0) */
#define __Pyx_CallCFunction(cfunc, self, args)\
    ((PyCFunction)(void(*)(void))(cfunc)->func)(self, args)
#define __Pyx_CallCFunctionWithKeywords(cfunc, self, args, kwargs)\
    ((PyCFunctionWithKeywords)(void(*)(void))(cfunc)->func)(self, args, kwargs)
#define __Pyx_CallCFunctionFast(cfunc, self, args, nargs)\
    ((__Pyx_PyCFunctionFast)(void(*)(void))(PyCFunction)(cfunc)->func)(self, args, nargs)
#define __Pyx_CallCFunctionFastWithKeywords(cfunc, self, args, nargs, kwnames)\
    ((__Pyx_PyCFunctionFastWithKeywords)(void(*)(void))(PyCFunction)(cfunc)->func)(self, args, nargs, kwnames)

/* PyObjectCallOneArg.proto (used by CallUnboundCMethod0) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg);

/* UnpackUnboundCMethod.proto (used by CallUnboundCMethod0) */
typedef struct {
    PyObject *type;
    PyObject **method_name;
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && CYTHON_ATOMICS
    __pyx_atomic_int_type initialized;
#endif
    PyCFunction func;
    PyObject *method;
    int flag;
} __Pyx_CachedCFunction;
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
static CYTHON_INLINE int __Pyx_CachedCFunction_GetAndSetInitializing(__Pyx_CachedCFunction *cfunc) {
#if !CYTHON_ATOMICS
    return 1;
#else
    __pyx_nonatomic_int_type expected = 0;
    if (__pyx_atomic_int_cmp_exchange(&cfunc->initialized, &expected, 1)) {
        return 0;
    }
    return expected;
#endif
}
static CYTHON_INLINE void __Pyx_CachedCFunction_SetFinishedInitializing(__Pyx_CachedCFunction *cfunc) {
#if CYTHON_ATOMICS
    __pyx_atomic_store(&cfunc->initialized, 2);
#endif
}
#else
#define __Pyx_CachedCFunction_GetAndSetInitializing(cfunc) 2
#define __Pyx_CachedCFunction_SetFinishedInitializing(cfunc)
#endif

/* CallUnboundCMethod0.proto */
CYTHON_UNUSED
static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self);
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self);
#else
#define __Pyx_CallUnboundCMethod0(cfunc, self)  __Pyx__CallUnboundCMethod0(cfunc, self)
#endif

/* py_dict_values.proto (used by OwnedDictNext) */
static CYTHON_INLINE PyObject* __Pyx_PyDict_Values(PyObject* d);

/* OwnedDictNext.proto (used by ParseKeywordsImpl) */
#if CYTHON_AVOID_BORROWED_REFS
static int __Pyx_PyDict_NextRef(PyObject *p, PyObject **ppos, PyObject **pkey, PyObject **pvalue);
#else
CYTHON_INLINE
static int __Pyx_PyDict_NextRef(PyObject *p, Py_ssize_t *ppos, PyObject **pkey, PyObject **pvalue);
#endif

/* RaiseDoubleKeywords.proto (used by ParseKeywordsImpl) */
static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name);

/* ParseKeywordsImpl.export */
static int __Pyx_ParseKeywordsTuple(
    PyObject *kwds,
    PyObject * const *kwvalues,
    PyObject ** const argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs
);
static int __Pyx_ParseKeywordDictToDict(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    const char* function_name
);
static int __Pyx_ParseKeywordDict(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject *values[],
    Py_ssize_t num_pos_args,
    Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs
);

/* CallUnboundCMethod2.proto */
CYTHON_UNUSED
static PyObject* __Pyx__CallUnboundCMethod2(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg1, PyObject* arg2);
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject *__Pyx_CallUnboundCMethod2(__Pyx_CachedCFunction *cfunc, PyObject *self, PyObject *arg1, PyObject *arg2);
#else
#define __Pyx_CallUnboundCMethod2(cfunc, self, arg1, arg2)  __Pyx__CallUnboundCMethod2(cfunc, self, arg1, arg2)
#endif

/* ParseKeywords.proto */
static CYTHON_INLINE int __Pyx_ParseKeywords(
    PyObject *kwds, PyObject *const *kwvalues, PyObject ** const argnames[],
    PyObject *kwds2, PyObject *values[],
    Py_ssize_t num_pos_args, Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs
);

/* RaiseArgTupleInvalid.proto */
static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
    Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found);

/* KeywordStringCheck.proto */
static CYTHON_INLINE int __Pyx_CheckKeywordStrings(const char* function_name, PyObject *kw);

/* RaiseClosureNameError.proto */
static void __Pyx_RaiseClosureNameError(const char *varname);

/* PyObjectFormatAndDecref.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_FormatSimpleAndDecref(PyObject* s, PyObject* f);
static CYTHON_INLINE PyObject* __Pyx_PyObject_FormatAndDecref(PyObject* s, PyObject* f);

/* UnicodeConcatInPlace.proto */
# if CYTHON_COMPILING_IN_CPYTHON
    #if CYTHON_REFNANNY
        #define __Pyx_PyUnicode_ConcatInPlace(left, right, unsafe_shared) __Pyx_PyUnicode_ConcatInPlaceImpl(&left, right, unsafe_shared, __pyx_refnanny)
    #else
        #define __Pyx_PyUnicode_ConcatInPlace(left, right, unsafe_shared) __Pyx_PyUnicode_ConcatInPlaceImpl(&left, right, unsafe_shared)
    #endif
    #define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_DefinitelyUniqueInPlace(left, right) __Pyx_PyUnicode_ConcatInPlace(left, right, __Pyx_ReferenceSharing_DefinitelyUnique)
    #define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(left, right) __Pyx_PyUnicode_ConcatInPlace(left, right, __Pyx_ReferenceSharing_OwnStrongReference)
    #define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_FunctionArgumentInPlace(left, right) __Pyx_PyUnicode_ConcatInPlace(left, right, __Pyx_ReferenceSharing_DefinitelyUnique)
    #define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_SharedReferenceInPlace(left, right) __Pyx_PyUnicode_ConcatInPlace(left, right, __Pyx_ReferenceSharing_SharedReference)
    static CYTHON_INLINE PyObject *__Pyx_PyUnicode_ConcatInPlaceImpl(PyObject **p_left, PyObject *right, int unsafe_shared
        #if CYTHON_REFNANNY
        , void* __pyx_refnanny
        #endif
    );
#else
#define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_DefinitelyUniqueInPlace __Pyx_PyUnicode_Concat
#define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace __Pyx_PyUnicode_Concat
#define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_FunctionArgumentInPlace __Pyx_PyUnicode_Concat
#define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_SharedReferenceInPlace __Pyx_PyUnicode_Concat
#endif
#define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_DefinitelyUniqueInPlaceSafe(left, right)\
    ((unlikely((left) == Py_None) || unlikely((right) == Py_None)) ?\
    PyNumber_InPlaceAdd(left, right) : __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_DefinitelyUniqueInPlace(left, right))
#define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlaceSafe(left, right)\
    ((unlikely((left) == Py_None) || unlikely((right) == Py_None)) ?\
    PyNumber_InPlaceAdd(left, right) : __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(left, right))
#define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_FunctionArgumentInPlaceSafe(left, right)\
    ((unlikely((left) == Py_None) || unlikely((right) == Py_None)) ?\
    PyNumber_InPlaceAdd(left, right) : __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_FunctionArgumentInPlace(left, right))
#define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_SharedReferenceInPlaceSafe(left, right)\
    ((unlikely((left) == Py_None) || unlikely((right) == Py_None)) ?\
    PyNumber_InPlaceAdd(left, right) : __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_SharedReferenceInPlace(left, right))

/* PyObjectFormatSimple.proto */
#if CYTHON_COMPILING_IN_PYPY
    #define __Pyx_PyObject_FormatSimple(s, f) (\
        likely(PyUnicode_CheckExact(s)) ? (Py_INCREF(s), s) :\
        PyObject_Format(s, f))
#elif CYTHON_USE_TYPE_SLOTS
    #define __Pyx_PyObject_FormatSimple(s, f) (\
        likely(PyUnicode_CheckExact(s)) ? (Py_INCREF(s), s) :\
        likely(PyLong_CheckExact(s)) ? PyLong_Type.tp_repr(s) :\
        likely(PyFloat_CheckExact(s)) ? PyFloat_Type.tp_repr(s) :\
        PyObject_Format(s, f))
#else
    #define __Pyx_PyObject_FormatSimple(s, f) (\
        likely(PyUnicode_CheckExact(s)) ? (Py_INCREF(s), s) :\
        PyObject_Format(s, f))
#endif

/* JoinPyUnicode.export */
static PyObject* __Pyx_PyUnicode_Join(PyObject** values, Py_ssize_t value_count, Py_ssize_t result_ulength,
                                      Py_UCS4 max_char);

/* PyDictVersioning.proto (used by GetModuleGlobalName) */
#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
#define __PYX_DICT_VERSION_INIT  ((PY_UINT64_T) -1)
#define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)\
    (version_var) = __PYX_GET_DICT_VERSION(dict);\
    (cache_var) = (value);
#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) {\
    static PY_UINT64_T __pyx_dict_version = 0;\
    static PyObject *__pyx_dict_cached_value = NULL;\
    if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\
        (VAR) = __Pyx_XNewRef(__pyx_dict_cached_value);\
    } else {\
        (VAR) = __pyx_dict_cached_value = (LOOKUP);\
        __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\
    }\
}
static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj);
static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj);
static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version);
#else
#define __PYX_GET_DICT_VERSION(dict)  (0)
#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)
#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP)  (VAR) = (LOOKUP);
#endif

/* GetModuleGlobalName.proto */
#if CYTHON_USE_DICT_VERSIONS
#define __Pyx_GetModuleGlobalName(var, name)  do {\
    static PY_UINT64_T __pyx_dict_version = 0;\
    static PyObject *__pyx_dict_cached_value = NULL;\
    (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_mstate_global->__pyx_d))) ?\
        (likely(__pyx_dict_cached_value) ? __Pyx_NewRef(__pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) :\
        __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
} while(0)
#define __Pyx_GetModuleGlobalNameUncached(var, name)  do {\
    PY_UINT64_T __pyx_dict_version;\
    PyObject *__pyx_dict_cached_value;\
    (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
} while(0)
static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value);
#else
#define __Pyx_GetModuleGlobalName(var, name)  (var) = __Pyx__GetModuleGlobalName(name)
#define __Pyx_GetModuleGlobalNameUncached(var, name)  (var) = __Pyx__GetModuleGlobalName(name)
static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name);
#endif

/* PySequenceContains.proto */
static CYTHON_INLINE int __Pyx_PySequence_ContainsTF(PyObject* item, PyObject* seq, int eq) {
    int result = PySequence_Contains(seq, item);
    return unlikely(result < 0) ? result : (result == (eq == Py_EQ));
}

/* PyDeprecationWarning_Check.proto */
#define __Pyx_PyExc_DeprecationWarning_Check(obj)  __Pyx_TypeCheck(obj, PyExc_DeprecationWarning)

/* dict_setdefault.proto (used by FetchCommonType) */
static CYTHON_INLINE PyObject *__Pyx_PyDict_SetDefault(PyObject *d, PyObject *key, PyObject *default_value);

/* LimitedApiGetTypeDict.proto (used by SetItemOnTypeDict) */
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *__Pyx_GetTypeDict(PyTypeObject *tp);
#endif

/* SetItemOnTypeDict.proto (used by FixUpExtensionType) */
static int __Pyx__SetItemOnTypeDict(PyTypeObject *tp, PyObject *k, PyObject *v);
#define __Pyx_SetItemOnTypeDict(tp, k, v) __Pyx__SetItemOnTypeDict((PyTypeObject*)tp, k, v)

/* FixUpExtensionType.proto (used by FetchCommonType) */
static CYTHON_INLINE int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject *type);

/* AddModuleRef.proto (used by FetchSharedCythonModule) */
#if ((CYTHON_COMPILING_IN_CPYTHON_FREETHREADING ) ||\
     __PYX_LIMITED_VERSION_HEX < 0x030d0000)
  static PyObject *__Pyx_PyImport_AddModuleRef(const char *name);
#else
  #define __Pyx_PyImport_AddModuleRef(name) PyImport_AddModuleRef(name)
#endif

/* FetchSharedCythonModule.proto (used by FetchCommonType) */
static PyObject *__Pyx_FetchSharedCythonABIModule(void);

/* FetchCommonType.proto (used by CommonTypesMetaclass) */
static PyTypeObject* __Pyx_FetchCommonTypeFromSpec(PyTypeObject *metaclass, PyObject *module, PyType_Spec *spec, PyObject *bases);

/* CommonTypesMetaclass.proto (used by CythonFunctionShared) */
static int __pyx_CommonTypesMetaclass_init(PyObject *module);
#define __Pyx_CommonTypesMetaclass_USED

/* CallTypeTraverse.proto (used by CythonFunctionShared) */
#if !CYTHON_USE_TYPE_SPECS || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x03090000)
#define __Pyx_call_type_traverse(o, always_call, visit, arg) 0
#else
static int __Pyx_call_type_traverse(PyObject *o, int always_call, visitproc visit, void *arg);
#endif

/* PyMethodNew.proto (used by CythonFunctionShared) */
static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ);

/* PyVectorcallFastCallDict.proto (used by CythonFunctionShared) */
#if CYTHON_METH_FASTCALL && CYTHON_VECTORCALL
static CYTHON_INLINE PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw);
#endif

/* CythonFunctionShared.proto (used by CythonFunction) */
#define __Pyx_CyFunction_USED
#define __Pyx_CYFUNCTION_STATICMETHOD  0x01
#define __Pyx_CYFUNCTION_CLASSMETHOD   0x02
#define __Pyx_CYFUNCTION_CCLASS        0x04
#define __Pyx_CYFUNCTION_COROUTINE     0x08
#define __Pyx_CyFunction_GetClosure(f)\
    (((__pyx_CyFunctionObject *) (f))->func_closure)
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_CyFunction_GetClassObj(f)\
      (((__pyx_CyFunctionObject *) (f))->func_classobj)
#else
  #define __Pyx_CyFunction_GetClassObj(f)\
      ((PyObject*) ((PyCMethodObject *) (f))->mm_class)
#endif
#define __Pyx_CyFunction_SetClassObj(f, classobj)\
    __Pyx__CyFunction_SetClassObj((__pyx_CyFunctionObject *) (f), (classobj))
#define __Pyx_CyFunction_Defaults(type, f)\
    ((type *)(((__pyx_CyFunctionObject *) (f))->defaults))
#define __Pyx_CyFunction_SetDefaultsGetter(f, g)\
    ((__pyx_CyFunctionObject *) (f))->defaults_getter = (g)
typedef struct {
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject_HEAD
    PyObject *func;
#elif PY_VERSION_HEX < 0x030900B1
    PyCFunctionObject func;
#else
    PyCMethodObject func;
#endif
#if CYTHON_COMPILING_IN_LIMITED_API && CYTHON_METH_FASTCALL
    __pyx_vectorcallfunc func_vectorcall;
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *func_weakreflist;
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    PyObject *func_dict;
#endif
    PyObject *func_name;
    PyObject *func_qualname;
    PyObject *func_doc;
    PyObject *func_globals;
    PyObject *func_code;
    PyObject *func_closure;
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
    PyObject *func_classobj;
#endif
    PyObject *defaults;
    int flags;
    PyObject *defaults_tuple;
    PyObject *defaults_kwdict;
    PyObject *(*defaults_getter)(PyObject *);
    PyObject *func_annotations;
    PyObject *func_is_coroutine;
} __pyx_CyFunctionObject;
#undef __Pyx_CyOrPyCFunction_Check
#define __Pyx_CyFunction_Check(obj)  __Pyx_TypeCheck(obj, __pyx_mstate_global->__pyx_CyFunctionType)
#define __Pyx_CyOrPyCFunction_Check(obj)  __Pyx_TypeCheck2(obj, __pyx_mstate_global->__pyx_CyFunctionType, &PyCFunction_Type)
#define __Pyx_CyFunction_CheckExact(obj)  __Pyx_IS_TYPE(obj, __pyx_mstate_global->__pyx_CyFunctionType)
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void (*cfunc)(void));
#undef __Pyx_IsSameCFunction
#define __Pyx_IsSameCFunction(func, cfunc)   __Pyx__IsSameCyOrCFunction(func, cfunc)
static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject* op, PyMethodDef *ml,
                                      int flags, PyObject* qualname,
                                      PyObject *closure,
                                      PyObject *module, PyObject *globals,
                                      PyObject* code);
static CYTHON_INLINE void __Pyx__CyFunction_SetClassObj(__pyx_CyFunctionObject* f, PyObject* classobj);
static CYTHON_INLINE PyObject *__Pyx_CyFunction_InitDefaults(PyObject *func,
                                                         PyTypeObject *defaults_type);
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m,
                                                            PyObject *tuple);
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m,
                                                             PyObject *dict);
static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m,
                                                              PyObject *dict);
static int __pyx_CyFunction_init(PyObject *module);
#if CYTHON_METH_FASTCALL
static PyObject * __Pyx_CyFunction_Vectorcall_NOARGS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
static PyObject * __Pyx_CyFunction_Vectorcall_O(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
#if CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_CyFunction_func_vectorcall(f) (((__pyx_CyFunctionObject*)f)->func_vectorcall)
#else
#define __Pyx_CyFunction_func_vectorcall(f) (((PyCFunctionObject*)f)->vectorcall)
#endif
#endif

/* CythonFunction.proto */
static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml,
                                      int flags, PyObject* qualname,
                                      PyObject *closure,
                                      PyObject *module, PyObject *globals,
                                      PyObject* code);

/* PyObjectFastCallMethod.proto */
#if CYTHON_VECTORCALL && PY_VERSION_HEX >= 0x03090000
#define __Pyx_PyObject_FastCallMethod(name, args, nargsf) PyObject_VectorcallMethod(name, args, nargsf, NULL)
#else
static PyObject *__Pyx_PyObject_FastCallMethod(PyObject *name, PyObject *const *args, size_t nargsf);
#endif

/* PyObjectDelAttr.proto (used by PyObjectSetAttrStr) */
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030d0000
#define __Pyx_PyObject_DelAttr(o, n) PyObject_SetAttr(o, n, NULL)
#else
#define __Pyx_PyObject_DelAttr(o, n) PyObject_DelAttr(o, n)
#endif

/* PyObjectSetAttrStr.proto */
#if CYTHON_USE_TYPE_SLOTS
#define __Pyx_PyObject_DelAttrStr(o,n) __Pyx_PyObject_SetAttrStr(o, n, NULL)
static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value);
#else
#define __Pyx_PyObject_DelAttrStr(o,n)   __Pyx_PyObject_DelAttr(o,n)
#define __Pyx_PyObject_SetAttrStr(o,n,v) PyObject_SetAttr(o,n,v)
#endif

/* RejectKeywords.export */
static void __Pyx_RejectKeywords(const char* function_name, PyObject *kwds);

/* ExtTypeTest.proto */
static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type);

/* pyint_simplify.proto */
static CYTHON_INLINE int __Pyx_PyInt_FromNumber(PyObject **number_var, const char *argname, int accept_none);

/* ArgTypeTestFunc.export */
static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact);

/* ArgTypeTest.proto */
#define __Pyx_ArgTypeTest(obj, type, none_allowed, name, exact)\
    ((likely(__Pyx_IS_TYPE(obj, type) | (none_allowed && (obj == Py_None)))) ? 1 :\
        __Pyx__ArgTypeTest(obj, type, name, exact))

/* PyKeyError_Check.proto */
#define __Pyx_PyExc_KeyError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_KeyError)

/* RaiseException.export */
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause);

/* RaiseUnboundLocalError.proto */
static void __Pyx_RaiseUnboundLocalError(const char *varname);

/* ListCompAppend.proto */
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS
static CYTHON_INLINE int __Pyx_ListComp_Append(PyObject* list, PyObject* x) {
    PyListObject* L = (PyListObject*) list;
    Py_ssize_t len = Py_SIZE(list);
    if (likely(L->allocated > len)) {
        Py_INCREF(x);
        #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000
        L->ob_item[len] = x;
        #else
        PyList_SET_ITEM(list, len, x);
        #endif
        __Pyx_SET_SIZE(list, len + 1);
        return 0;
    }
    return PyList_Append(list, x);
}
#else
#define __Pyx_ListComp_Append(L,x) PyList_Append(L,x)
#endif

/* GetException.proto (used by pep479) */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_GetException(type, value, tb)  __Pyx__GetException(__pyx_tstate, type, value, tb)
static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#else
static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb);
#endif

/* pep479.proto */
static void __Pyx_Generator_Replace_StopIteration(int in_async_gen);

/* PyTypeError_Check.proto */
#define __Pyx_PyExc_TypeError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_TypeError)

/* IterFinish.proto (used by dict_iter) */
static CYTHON_INLINE int __Pyx_IterFinish(void);

/* PyObjectCallNoArg.proto (used by PyObjectCallMethod0) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func);

/* PyObjectGetMethod.proto (used by PyObjectCallMethod0) */
#if !(CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000)))
static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method);
#endif

/* PyObjectCallMethod0.proto (used by dict_iter) */
static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name);

/* RaiseNeedMoreValuesToUnpack.proto (used by UnpackTuple2) */
static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index);

/* RaiseTooManyValuesToUnpack.proto (used by UnpackItemEndCheck) */
static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected);

/* UnpackItemEndCheck.proto (used by UnpackTuple2) */
static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected);

/* RaiseNoneIterError.proto (used by UnpackTupleError) */
static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void);

/* UnpackTupleError.proto (used by UnpackTuple2) */
static void __Pyx_UnpackTupleError(PyObject *, Py_ssize_t index);

/* UnpackTuple2.proto (used by dict_iter) */
static CYTHON_INLINE int __Pyx_unpack_tuple2(
    PyObject* tuple, PyObject** value1, PyObject** value2, int is_tuple, int has_known_size, int decref_tuple);
static CYTHON_INLINE int __Pyx_unpack_tuple2_exact(
    PyObject* tuple, PyObject** value1, PyObject** value2, int decref_tuple);
static int __Pyx_unpack_tuple2_generic(
    PyObject* tuple, PyObject** value1, PyObject** value2, int has_known_size, int decref_tuple);

/* dict_iter.proto */
static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* dict, int is_dict, PyObject* method_name,
                                                   Py_ssize_t* p_orig_length, int* p_is_dict);
static CYTHON_INLINE int __Pyx_dict_iter_next(PyObject* dict_or_iter, Py_ssize_t orig_length, Py_ssize_t* ppos,
                                              PyObject** pkey, PyObject** pvalue, PyObject** pitem, int is_dict);

/* PyUnicode_Unicode.proto */
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_Unicode(PyObject *obj);

/* RaiseUnexpectedTypeError.proto */
static int __Pyx_RaiseUnexpectedTypeError(const char *expected, PyObject *obj);

/* ListAppend.proto */
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS
static CYTHON_INLINE int __Pyx_PyList_Append(PyObject* list, PyObject* x) {
    PyListObject* L = (PyListObject*) list;
    Py_ssize_t len = Py_SIZE(list);
    if (likely(L->allocated > len) & likely(len > (L->allocated >> 1))) {
        Py_INCREF(x);
        #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000
        L->ob_item[len] = x;
        #else
        PyList_SET_ITEM(list, len, x);
        #endif
        __Pyx_SET_SIZE(list, len + 1);
        return 0;
    }
    return PyList_Append(list, x);
}
#else
#define __Pyx_PyList_Append(L,x) PyList_Append(L,x)
#endif

/* GetItemInt.proto */
#define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck, has_gil, unsafe_shared)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck, unsafe_shared) :\
    (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) :\
               __Pyx_GetItemInt_Generic(o, to_py_func(i))))
#define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck, has_gil, unsafe_shared)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck, unsafe_shared) :\
    (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck, int unsafe_shared);
#define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck, has_gil, unsafe_shared)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck, unsafe_shared) :\
    (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL))
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck, int unsafe_shared);
static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j);
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
                                                     int is_list, int wraparound, int boundscheck, int unsafe_shared);

/* PyValueError_Check.proto */
#define __Pyx_PyExc_ValueError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_ValueError)

/* SwapException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_ExceptionSwap(type, value, tb)  __Pyx__ExceptionSwap(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#else
static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb);
#endif

/* GetTopmostException.proto (used by SaveResetException) */
#if CYTHON_USE_EXC_INFO_STACK && CYTHON_FAST_THREAD_STATE
static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate);
#endif

/* SaveResetException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_ExceptionSave(type, value, tb)  __Pyx__ExceptionSave(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#define __Pyx_ExceptionReset(type, value, tb)  __Pyx__ExceptionReset(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
#else
#define __Pyx_ExceptionSave(type, value, tb)   PyErr_GetExcInfo(type, value, tb)
#define __Pyx_ExceptionReset(type, value, tb)  PyErr_SetExcInfo(type, value, tb)
#endif

/* PyObjectVectorCallKwBuilder.proto */
CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n);
#if CYTHON_VECTORCALL
#if PY_VERSION_HEX >= 0x03090000
#define __Pyx_Object_Vectorcall_CallFromBuilder PyObject_Vectorcall
#else
#define __Pyx_Object_Vectorcall_CallFromBuilder _PyObject_Vectorcall
#endif
#define __Pyx_MakeVectorcallBuilderKwds(n) PyTuple_New(n)
static int __Pyx_VectorcallBuilder_AddArg(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n);
static int __Pyx_VectorcallBuilder_AddArgStr(const char *key, PyObject *value, PyObject *builder, PyObject **args, int n);
#else
#define __Pyx_Object_Vectorcall_CallFromBuilder __Pyx_PyObject_FastCallDict
#define __Pyx_MakeVectorcallBuilderKwds(n) __Pyx_PyDict_NewPresized(n)
#define __Pyx_VectorcallBuilder_AddArg(key, value, builder, args, n) PyDict_SetItem(builder, key, value)
#define __Pyx_VectorcallBuilder_AddArgStr(key, value, builder, args, n) PyDict_SetItemString(builder, key, value)
#endif

/* AssertionsEnabled.proto */
#if CYTHON_COMPILING_IN_LIMITED_API  ||  PY_VERSION_HEX >= 0x030C0000
  static int __pyx_assertions_enabled_flag;
  #define __pyx_assertions_enabled() (__pyx_assertions_enabled_flag)
  #if __clang__ || __GNUC__
  __attribute__((no_sanitize("thread")))
  #endif
  static int __Pyx_init_assertions_enabled(void) {
    PyObject *builtins, *debug, *debug_str;
    int flag;
    builtins = PyEval_GetBuiltins();
    if (!builtins) goto bad;
    debug_str = PyUnicode_FromStringAndSize("__debug__", 9);
    if (!debug_str) goto bad;
    debug = PyObject_GetItem(builtins, debug_str);
    Py_DECREF(debug_str);
    if (!debug) goto bad;
    flag = PyObject_IsTrue(debug);
    Py_DECREF(debug);
    if (flag == -1) goto bad;
    __pyx_assertions_enabled_flag = flag;
    return 0;
  bad:
    __pyx_assertions_enabled_flag = 1;
    return -1;
  }
#else
  #define __Pyx_init_assertions_enabled()  (0)
  #define __pyx_assertions_enabled()  (!Py_OptimizeFlag)
#endif

/* PyAssertionError_Check.proto */
#define __Pyx_PyExc_AssertionError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_AssertionError)

/* PyLongBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static CYTHON_INLINE PyObject* __Pyx_PyLong_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check);
#else
#define __Pyx_PyLong_AddObjC(op1, op2, intval, inplace, zerodivision_check)\
    (inplace ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2))
#endif

/* PyLongBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static CYTHON_INLINE PyObject* __Pyx_PyLong_MultiplyObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check);
#else
#define __Pyx_PyLong_MultiplyObjC(op1, op2, intval, inplace, zerodivision_check)\
    (inplace ? PyNumber_InPlaceMultiply(op1, op2) : PyNumber_Multiply(op1, op2))
#endif

/* BuildPyUnicode.proto (used by COrdinalToPyUnicode) */
static PyObject* __Pyx_PyUnicode_BuildFromAscii(Py_ssize_t ulength, const char* chars, int clength,
                                                int prepend_sign, char padding_char);

/* COrdinalToPyUnicode.proto (used by CIntToPyUnicode) */
static CYTHON_INLINE int __Pyx_CheckUnicodeValue(int value);
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromOrdinal_Padded(int value, Py_ssize_t width, char padding_char);

/* GCCDiagnostics.proto (used by CIntToPyUnicode) */
#if !defined(__INTEL_COMPILER) && defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
#define __Pyx_HAS_GCC_DIAGNOSTIC
#endif

/* IncludeStdlibH.proto (used by CIntToPyUnicode) */
#include <stdlib.h>

/* CIntToPyUnicode.proto */
#define __Pyx_PyUnicode_From_Py_ssize_t(value, width, padding_char, format_char) (\
    ((format_char) == ('c')) ?\
        __Pyx_uchar___Pyx_PyUnicode_From_Py_ssize_t(value, width, padding_char) :\
        __Pyx____Pyx_PyUnicode_From_Py_ssize_t(value, width, padding_char, format_char)\
    )
static CYTHON_INLINE PyObject* __Pyx_uchar___Pyx_PyUnicode_From_Py_ssize_t(Py_ssize_t value, Py_ssize_t width, char padding_char);
static CYTHON_INLINE PyObject* __Pyx____Pyx_PyUnicode_From_Py_ssize_t(Py_ssize_t value, Py_ssize_t width, char padding_char, char format_char);

/* PyObjectCall2Args.proto (used by PyObjectCallMethod1) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2);

/* PyObjectCallMethod1.proto (used by StringJoin) */
static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg);

/* StringJoin.proto */
static CYTHON_INLINE PyObject* __Pyx_PyBytes_Join(PyObject* sep, PyObject* values);

/* PyRuntimeError_Check.proto */
#define __Pyx_PyExc_RuntimeError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_RuntimeError)

/* pyfloat_simplify.proto */
static CYTHON_INLINE int __Pyx_PyFloat_FromNumber(PyObject **number_var, const char *argname, int accept_none);

/* SliceTupleAndList.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyList_GetSlice(PyObject* src, Py_ssize_t start, Py_ssize_t stop);
static CYTHON_INLINE PyObject* __Pyx_PyTuple_GetSlice(PyObject* src, Py_ssize_t start, Py_ssize_t stop);
#else
#define __Pyx_PyList_GetSlice(seq, start, stop)   PySequence_GetSlice(seq, start, stop)
#define __Pyx_PyTuple_GetSlice(seq, start, stop)  PySequence_GetSlice(seq, start, stop)
#endif

/* AllocateExtensionType.proto */
static PyObject *__Pyx_AllocateExtensionType(PyTypeObject *t, int is_final);

/* DefaultPlacementNew.proto */
#include <new>
template<typename T>
void __Pyx_default_placement_construct(T* x) {
    new (static_cast<void*>(x)) T();
}

/* CheckTypeForFreelists.proto */
#if CYTHON_USE_FREELISTS
#if CYTHON_USE_TYPE_SPECS
#define __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, expected_tp, expected_size) ((int) ((t) == (expected_tp)))
#define __PYX_CHECK_TYPE_FOR_FREELIST_FLAGS  Py_TPFLAGS_IS_ABSTRACT
#else
#define __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, expected_tp, expected_size) ((int) ((t)->tp_basicsize == (expected_size)))
#define __PYX_CHECK_TYPE_FOR_FREELIST_FLAGS  (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)
#endif
#define __PYX_CHECK_TYPE_FOR_FREELISTS(t, expected_tp, expected_size)\
    (__PYX_CHECK_FINAL_TYPE_FOR_FREELISTS((t), (expected_tp), (expected_size)) &\
     (int) (!__Pyx_PyType_HasFeature((t), __PYX_CHECK_TYPE_FOR_FREELIST_FLAGS)))
#endif

/* ValidateBasesTuple.proto (used by PyType_Ready) */
#if CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_USE_TYPE_SPECS
static int __Pyx_validate_bases_tuple(const char *type_name, Py_ssize_t dictoffset, PyObject *bases);
#endif

/* PyType_Ready.proto */
CYTHON_UNUSED static int __Pyx_PyType_Ready(PyTypeObject *t);

/* SetVTable.proto */
static int __Pyx_SetVtable(PyTypeObject* typeptr , void* vtable);

/* GetVTable.proto (used by MergeVTables) */
static void* __Pyx_GetVtable(PyTypeObject *type);

/* MergeVTables.proto */
static int __Pyx_MergeVtables(PyTypeObject *type);

/* DelItemOnTypeDict.proto (used by SetupReduce) */
static int __Pyx__DelItemOnTypeDict(PyTypeObject *tp, PyObject *k);
#define __Pyx_DelItemOnTypeDict(tp, k) __Pyx__DelItemOnTypeDict((PyTypeObject*)tp, k)

/* SetupReduce.proto */
static int __Pyx_setup_reduce(PyObject* type_obj);

/* HasAttr.proto (used by ImportImpl) */
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
#define __Pyx_HasAttr(o, n)  PyObject_HasAttrWithError(o, n)
#else
static CYTHON_INLINE int __Pyx_HasAttr(PyObject *, PyObject *);
#endif

/* ImportImpl.export */
static PyObject *__Pyx__Import(PyObject *name, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject *qualname, PyObject *moddict, int level);

/* Import.proto */
static CYTHON_INLINE PyObject *__Pyx_Import(PyObject *name, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject *qualname, int level);

/* ImportFrom.proto */
static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name);

/* Py3UpdateBases.proto */
static PyObject* __Pyx_PEP560_update_bases(PyObject *bases);

/* CalculateMetaclass.proto */
static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases);

/* PyObjectLookupSpecial.proto (used by Py3ClassCreate) */
#if CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
#define __Pyx_PyObject_LookupSpecialNoError(obj, attr_name)  __Pyx__PyObject_LookupSpecial(obj, attr_name, 0)
#define __Pyx_PyObject_LookupSpecial(obj, attr_name)  __Pyx__PyObject_LookupSpecial(obj, attr_name, 1)
static CYTHON_INLINE PyObject* __Pyx__PyObject_LookupSpecial(PyObject* obj, PyObject* attr_name, int with_error);
#else
#define __Pyx_PyObject_LookupSpecialNoError(o,n) __Pyx_PyObject_GetAttrStrNoError(o,n)
#define __Pyx_PyObject_LookupSpecial(o,n) __Pyx_PyObject_GetAttrStr(o,n)
#endif

/* Py3ClassCreate.proto */
static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, PyObject *qualname,
                                           PyObject *mkw, PyObject *modname, PyObject *doc);
static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, PyObject *dict,
                                      PyObject *mkw, int calculate_metaclass, int allow_py2_metaclass);

/* ClassMethod.proto */
#if !CYTHON_COMPILING_IN_LIMITED_API
#include "descrobject.h"
#endif
CYTHON_UNUSED static PyObject* __Pyx_Method_ClassMethod(PyObject *method);

/* GetNameInClass.proto */
#define __Pyx_GetNameInClass(var, nmspace, name)  (var) = __Pyx__GetNameInClass(nmspace, name)
static PyObject *__Pyx__GetNameInClass(PyObject *nmspace, PyObject *name);

/* SetNameInClass.proto */
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030d0000
#define __Pyx_SetNameInClass(ns, name, value)\
    (likely(PyDict_CheckExact(ns)) ? _PyDict_SetItem_KnownHash(ns, name, value, ((PyASCIIObject *) name)->hash) : PyObject_SetItem(ns, name, value))
#elif CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_SetNameInClass(ns, name, value)\
    (likely(PyDict_CheckExact(ns)) ? PyDict_SetItem(ns, name, value) : PyObject_SetItem(ns, name, value))
#else
#define __Pyx_SetNameInClass(ns, name, value)  PyObject_SetItem(ns, name, value)
#endif

/* CLineInTraceback.proto (used by AddTraceback) */
#if CYTHON_CLINE_IN_TRACEBACK && CYTHON_CLINE_IN_TRACEBACK_RUNTIME
static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line);
#else
#define __Pyx_CLineForTraceback(tstate, c_line)  (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0)
#endif

/* CodeObjectCache.proto (used by AddTraceback) */
#if CYTHON_COMPILING_IN_LIMITED_API
typedef PyObject __Pyx_CachedCodeObjectType;
#else
typedef PyCodeObject __Pyx_CachedCodeObjectType;
#endif
typedef struct {
    __Pyx_CachedCodeObjectType* code_object;
    int code_line;
} __Pyx_CodeObjectCacheEntry;
struct __Pyx_CodeObjectCache {
    int count;
    int max_count;
    __Pyx_CodeObjectCacheEntry* entries;
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_atomic_int_type accessor_count;
  #endif
};
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line);
static __Pyx_CachedCodeObjectType *__pyx_find_code_object(int code_line);
static void __pyx_insert_code_object(int code_line, __Pyx_CachedCodeObjectType* code_object);

/* AddTraceback.proto */
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename);

/* FromPyCTupleUtility.proto */
static CYTHON_INLINE __pyx_ctuple_ee55be__double__and_double__and_double__and_double__an__etc __pyx_convert__from_py___pyx_ctuple_ee55be__double__and_double__and_double__and_double__an__etc(PyObject *);

/* FromPyCTupleUtility.proto */
static CYTHON_INLINE __pyx_ctuple_double__and_double __pyx_convert__from_py___pyx_ctuple_double__and_double(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_codepoint_t(hb_codepoint_t value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_glyph_flags_t(hb_glyph_flags_t value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_buffer_flags_t(hb_buffer_flags_t value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_buffer_cluster_level_t(hb_buffer_cluster_level_t value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_buffer_content_type_t(hb_buffer_content_type_t value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_buffer_serialize_format_t(hb_buffer_serialize_format_t value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_buffer_serialize_flags_t(hb_buffer_serialize_flags_t value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_ot_var_axis_flags_t(hb_ot_var_axis_flags_t value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_ot_color_palette_flags_t(hb_ot_color_palette_flags_t value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_ot_layout_glyph_class_t(hb_ot_layout_glyph_class_t value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_ot_name_id_predefined_t(hb_ot_name_id_predefined_t value);

/* CIntFromPy.proto */
static CYTHON_INLINE int __Pyx_PyLong_As_int(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_paint_composite_mode_t(hb_paint_composite_mode_t value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_paint_extend_t(hb_paint_extend_t value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_ot_math_constant_t(hb_ot_math_constant_t value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_ot_math_kern_t(hb_ot_math_kern_t value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_ot_math_glyph_part_flags_t(hb_ot_math_glyph_part_flags_t value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_ot_metrics_tag_t(hb_ot_metrics_tag_t value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_style_tag_t(hb_style_tag_t value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_raster_format_t(hb_raster_format_t value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_subset_sets_t(hb_subset_sets_t value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_subset_flags_t(hb_subset_flags_t value);

/* CIntFromPy.proto */
static CYTHON_INLINE hb_codepoint_t __Pyx_PyLong_As_hb_codepoint_t(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_bool_t(hb_bool_t value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_unsigned_long(unsigned long value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_mask_t(hb_mask_t value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_position_t(hb_position_t value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_unsigned_int(unsigned int value);

/* CIntFromPy.proto */
static CYTHON_INLINE unsigned int __Pyx_PyLong_As_unsigned_int(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE hb_buffer_flags_t __Pyx_PyLong_As_hb_buffer_flags_t(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE hb_buffer_cluster_level_t __Pyx_PyLong_As_hb_buffer_cluster_level_t(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE hb_buffer_content_type_t __Pyx_PyLong_As_hb_buffer_content_type_t(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE hb_buffer_serialize_format_t __Pyx_PyLong_As_hb_buffer_serialize_format_t(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE hb_buffer_serialize_flags_t __Pyx_PyLong_As_hb_buffer_serialize_flags_t(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE uint8_t __Pyx_PyLong_As_uint8_t(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_uint32_t(uint32_t value);

/* CIntFromPy.proto */
static CYTHON_INLINE uint32_t __Pyx_PyLong_As_uint32_t(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_uint8_t(uint8_t value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_ot_name_id_t(hb_ot_name_id_t value);

/* CIntFromPy.proto */
static CYTHON_INLINE hb_ot_name_id_t __Pyx_PyLong_As_hb_ot_name_id_t(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_int(int value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_long(long value);

/* CIntFromPy.proto */
static CYTHON_INLINE hb_bool_t __Pyx_PyLong_As_hb_bool_t(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE hb_ot_math_constant_t __Pyx_PyLong_As_hb_ot_math_constant_t(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE hb_ot_math_kern_t __Pyx_PyLong_As_hb_ot_math_kern_t(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE hb_position_t __Pyx_PyLong_As_hb_position_t(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE hb_ot_metrics_tag_t __Pyx_PyLong_As_hb_ot_metrics_tag_t(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE hb_style_tag_t __Pyx_PyLong_As_hb_style_tag_t(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE char __Pyx_PyLong_As_char(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE hb_raster_format_t __Pyx_PyLong_As_hb_raster_format_t(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE size_t __Pyx_PyLong_As_size_t(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE hb_subset_sets_t __Pyx_PyLong_As_hb_subset_sets_t(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE unsigned long __Pyx_PyLong_As_unsigned_long(PyObject *);

/* FormatTypeName.proto */
#if CYTHON_COMPILING_IN_LIMITED_API
typedef PyObject *__Pyx_TypeName;
#define __Pyx_FMT_TYPENAME "%U"
#define __Pyx_DECREF_TypeName(obj) Py_XDECREF(obj)
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
#define __Pyx_PyType_GetFullyQualifiedName PyType_GetFullyQualifiedName
#else
static __Pyx_TypeName __Pyx_PyType_GetFullyQualifiedName(PyTypeObject* tp);
#endif
#else  // !LIMITED_API
typedef const char *__Pyx_TypeName;
#define __Pyx_FMT_TYPENAME "%.200s"
#define __Pyx_PyType_GetFullyQualifiedName(tp) ((tp)->tp_name)
#define __Pyx_DECREF_TypeName(obj)
#endif

/* CIntFromPy.proto */
static CYTHON_INLINE long __Pyx_PyLong_As_long(PyObject *);

/* FastTypeChecks.proto */
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type)
#define __Pyx_TypeCheck2(obj, type1, type2) __Pyx_IsAnySubtype2(Py_TYPE(obj), (PyTypeObject *)type1, (PyTypeObject *)type2)
static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b);
static CYTHON_INLINE int __Pyx_IsAnySubtype2(PyTypeObject *cls, PyTypeObject *a, PyTypeObject *b);
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type);
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2);
#else
#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
#define __Pyx_TypeCheck2(obj, type1, type2) (PyObject_TypeCheck(obj, (PyTypeObject *)type1) || PyObject_TypeCheck(obj, (PyTypeObject *)type2))
#define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type)
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2) {
    return PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2);
}
#endif
#define __Pyx_PyErr_ExceptionMatches2(err1, err2)  __Pyx_PyErr_GivenExceptionMatches2(__Pyx_PyErr_CurrentExceptionType(), err1, err2)
#define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception)
#ifdef PyExceptionInstance_Check
  #define __Pyx_PyBaseException_Check(obj) PyExceptionInstance_Check(obj)
#else
  #define __Pyx_PyBaseException_Check(obj) __Pyx_TypeCheck(obj, PyExc_BaseException)
#endif

/* GetRuntimeVersion.proto */
#if __PYX_LIMITED_VERSION_HEX < 0x030b0000
static unsigned long __Pyx_cached_runtime_version = 0;
static void __Pyx_init_runtime_version(void);
#else
#define __Pyx_init_runtime_version()
#endif
static unsigned long __Pyx_get_runtime_version(void);

/* IterNextPlain.proto (used by CoroutineBase) */
static CYTHON_INLINE PyObject *__Pyx_PyIter_Next_Plain(PyObject *iterator);
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
static PyObject *__Pyx_GetBuiltinNext_LimitedAPI(void);
#endif

/* ReturnWithStopIteration.proto (used by CoroutineBase) */
static CYTHON_INLINE void __Pyx_ReturnWithStopIteration(PyObject* value, int async, int iternext);

/* CoroutineBase.proto (used by Generator) */
struct __pyx_CoroutineObject;
typedef PyObject *(*__pyx_coroutine_body_t)(struct __pyx_CoroutineObject *, PyThreadState *, PyObject *);
#if CYTHON_USE_EXC_INFO_STACK
#define __Pyx_ExcInfoStruct  _PyErr_StackItem
#else
typedef struct {
    PyObject *exc_type;
    PyObject *exc_value;
    PyObject *exc_traceback;
} __Pyx_ExcInfoStruct;
#endif
typedef struct __pyx_CoroutineObject {
    PyObject_HEAD
    __pyx_coroutine_body_t body;
    PyObject *closure;
    __Pyx_ExcInfoStruct gi_exc_state;
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    PyObject *gi_weakreflist;
#endif
    PyObject *classobj;
    PyObject *yieldfrom;
    __Pyx_pyiter_sendfunc yieldfrom_am_send;
    PyObject *gi_name;
    PyObject *gi_qualname;
    PyObject *gi_modulename;
    PyObject *gi_code;
    PyObject *gi_frame;
#if CYTHON_USE_SYS_MONITORING && (CYTHON_PROFILE || CYTHON_TRACE)
    PyMonitoringState __pyx_pymonitoring_state[__Pyx_MonitoringEventTypes_CyGen_count];
    uint64_t __pyx_pymonitoring_version;
#endif
    int resume_label;
    char is_running;
} __pyx_CoroutineObject;
static __pyx_CoroutineObject *__Pyx__Coroutine_New(
    PyTypeObject *type, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure,
    PyObject *name, PyObject *qualname, PyObject *module_name);
static __pyx_CoroutineObject *__Pyx__Coroutine_NewInit(
            __pyx_CoroutineObject *gen, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure,
            PyObject *name, PyObject *qualname, PyObject *module_name);
static CYTHON_INLINE void __Pyx_Coroutine_ExceptionClear(__Pyx_ExcInfoStruct *self);
static int __Pyx_Coroutine_clear(PyObject *self);
static __Pyx_PySendResult __Pyx_Coroutine_AmSend(PyObject *self, PyObject *value, PyObject **retval);
static PyObject *__Pyx_Coroutine_Send(PyObject *self, PyObject *value);
static __Pyx_PySendResult __Pyx_Coroutine_Close(PyObject *self, PyObject **retval);
static PyObject *__Pyx_Coroutine_Throw(PyObject *gen, PyObject *args);
#if CYTHON_USE_EXC_INFO_STACK
#define __Pyx_Coroutine_SwapException(self)
#define __Pyx_Coroutine_ResetAndClearException(self)  __Pyx_Coroutine_ExceptionClear(&(self)->gi_exc_state)
#else
#define __Pyx_Coroutine_SwapException(self) {\
    __Pyx_ExceptionSwap(&(self)->gi_exc_state.exc_type, &(self)->gi_exc_state.exc_value, &(self)->gi_exc_state.exc_traceback);\
    __Pyx_Coroutine_ResetFrameBackpointer(&(self)->gi_exc_state);\
    }
#define __Pyx_Coroutine_ResetAndClearException(self) {\
    __Pyx_ExceptionReset((self)->gi_exc_state.exc_type, (self)->gi_exc_state.exc_value, (self)->gi_exc_state.exc_traceback);\
    (self)->gi_exc_state.exc_type = (self)->gi_exc_state.exc_value = (self)->gi_exc_state.exc_traceback = NULL;\
    }
#endif
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyGen_FetchStopIterationValue(pvalue)\
    __Pyx_PyGen__FetchStopIterationValue(__pyx_tstate, pvalue)
#else
#define __Pyx_PyGen_FetchStopIterationValue(pvalue)\
    __Pyx_PyGen__FetchStopIterationValue(__Pyx_PyThreadState_Current, pvalue)
#endif
static int __Pyx_PyGen__FetchStopIterationValue(PyThreadState *tstate, PyObject **pvalue);
static CYTHON_INLINE void __Pyx_Coroutine_ResetFrameBackpointer(__Pyx_ExcInfoStruct *exc_state);
static char __Pyx_Coroutine_test_and_set_is_running(__pyx_CoroutineObject *gen);
static void __Pyx_Coroutine_unset_is_running(__pyx_CoroutineObject *gen);
static char __Pyx_Coroutine_get_is_running(__pyx_CoroutineObject *gen);
static PyObject *__Pyx_Coroutine_get_is_running_getter(PyObject *gen, void *closure);
#if __PYX_HAS_PY_AM_SEND == 2
static void __Pyx_SetBackportTypeAmSend(PyTypeObject *type, __Pyx_PyAsyncMethodsStruct *static_amsend_methods, __Pyx_pyiter_sendfunc am_send);
#endif
static PyObject *__Pyx_Coroutine_fail_reduce_ex(PyObject *self, PyObject *arg);

/* Generator.proto */
#define __Pyx_Generator_USED
#define __Pyx_Generator_CheckExact(obj) __Pyx_IS_TYPE(obj, __pyx_mstate_global->__pyx_GeneratorType)
#define __Pyx_Generator_New(body, code, closure, name, qualname, module_name)\
    __Pyx__Coroutine_New(__pyx_mstate_global->__pyx_GeneratorType, body, code, closure, name, qualname, module_name)
static PyObject *__Pyx_Generator_Next(PyObject *self);
static int __pyx_Generator_init(PyObject *module);
static CYTHON_INLINE PyObject *__Pyx_Generator_GetInlinedResult(PyObject *self);

/* CheckBinaryVersion.proto */
static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer);

/* DecompressString.proto */
static PyObject *__Pyx_DecompressString(const char *s, Py_ssize_t length, int algo);

/* MultiPhaseInitModuleState.proto */
#if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
static PyObject *__Pyx_State_FindModule(void*);
static int __Pyx_State_AddModule(PyObject* module, void*);
static int __Pyx_State_RemoveModule(void*);
#elif CYTHON_USE_MODULE_STATE
#define __Pyx_State_FindModule PyState_FindModule
#define __Pyx_State_AddModule PyState_AddModule
#define __Pyx_State_RemoveModule PyState_RemoveModule
#endif

/* #### Code section: module_declarations ### */
/* CythonABIVersion.proto */
#if CYTHON_COMPILING_IN_LIMITED_API
    #if CYTHON_METH_FASTCALL
        #define __PYX_FASTCALL_ABI_SUFFIX  "_fastcall"
    #else
        #define __PYX_FASTCALL_ABI_SUFFIX
    #endif
    #define __PYX_LIMITED_ABI_SUFFIX "limited" __PYX_FASTCALL_ABI_SUFFIX __PYX_AM_SEND_ABI_SUFFIX
#else
    #define __PYX_LIMITED_ABI_SUFFIX
#endif
#if __PYX_HAS_PY_AM_SEND == 1
    #define __PYX_AM_SEND_ABI_SUFFIX
#elif __PYX_HAS_PY_AM_SEND == 2
    #define __PYX_AM_SEND_ABI_SUFFIX "amsendbackport"
#else
    #define __PYX_AM_SEND_ABI_SUFFIX "noamsend"
#endif
#ifndef __PYX_MONITORING_ABI_SUFFIX
    #define __PYX_MONITORING_ABI_SUFFIX
#endif
#if CYTHON_USE_TP_FINALIZE
    #define __PYX_TP_FINALIZE_ABI_SUFFIX
#else
    #define __PYX_TP_FINALIZE_ABI_SUFFIX "nofinalize"
#endif
#if CYTHON_USE_FREELISTS || !defined(__Pyx_AsyncGen_USED)
    #define __PYX_FREELISTS_ABI_SUFFIX
#else
    #define __PYX_FREELISTS_ABI_SUFFIX "nofreelists"
#endif
#define CYTHON_ABI  __PYX_ABI_VERSION __PYX_LIMITED_ABI_SUFFIX __PYX_MONITORING_ABI_SUFFIX __PYX_TP_FINALIZE_ABI_SUFFIX __PYX_FREELISTS_ABI_SUFFIX __PYX_AM_SEND_ABI_SUFFIX
#define __PYX_ABI_MODULE_NAME "_cython_" CYTHON_ABI
#define __PYX_TYPE_MODULE_PREFIX __PYX_ABI_MODULE_NAME "."

static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_f_9uharfbuzz_9_harfbuzz_3Set_from_ptr(hb_set_t *__pyx_v_hb_set); /* proto*/
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_f_9uharfbuzz_9_harfbuzz_3Map_from_ptr(hb_map_t *__pyx_v_hb_map); /* proto*/
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_f_9uharfbuzz_9_harfbuzz_4Blob_from_ptr(hb_blob_t *__pyx_v_hb_blob); /* proto*/
static PyObject *__pyx_f_9uharfbuzz_9_harfbuzz_9GlyphInfo_set(struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphInfo *__pyx_v_self, hb_glyph_info_t __pyx_v_info); /* proto*/
static PyObject *__pyx_f_9uharfbuzz_9_harfbuzz_13GlyphPosition_set(struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition *__pyx_v_self, hb_glyph_position_t __pyx_v_position); /* proto*/
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_f_9uharfbuzz_9_harfbuzz_4Face_from_ptr(hb_face_t *__pyx_v_hb_face); /* proto*/
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine *__pyx_f_9uharfbuzz_9_harfbuzz_9ColorLine_from_ptr(hb_color_line_t *__pyx_v_color_line); /* proto*/
static PyObject *__pyx_f_9uharfbuzz_9_harfbuzz_4Font__Font__create(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face); /* proto*/
static PyObject *__pyx_f_9uharfbuzz_9_harfbuzz_4Font__Font__create_sub_font(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font); /* proto*/
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_f_9uharfbuzz_9_harfbuzz_4Font_from_ptr(hb_font_t *__pyx_v_hb_font); /* proto*/
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_f_9uharfbuzz_9_harfbuzz_11RasterImage_from_ptr(hb_raster_image_t *__pyx_v_hb_img); /* proto*/
static PyObject *__pyx_f_9uharfbuzz_9_harfbuzz_8HBObject_update_obj_length(struct __pyx_obj_9uharfbuzz_9_harfbuzz_HBObject *__pyx_v_self, unsigned int __pyx_v_idx, char *__pyx_v_head, char *__pyx_v_tail); /* proto*/
static hb_subset_serialize_link_t *__pyx_f_9uharfbuzz_9_harfbuzz_8HBObject_create_links(struct __pyx_obj_9uharfbuzz_9_harfbuzz_HBObject *__pyx_v_self, unsigned int __pyx_v_idx, unsigned int __pyx_v_link_num, int __pyx_v_is_real_link); /* proto*/
static PyObject *__pyx_f_9uharfbuzz_9_harfbuzz_8HBObject_update_links(struct __pyx_obj_9uharfbuzz_9_harfbuzz_HBObject *__pyx_v_self, unsigned int __pyx_v_idx, int __pyx_v_is_real_link, PyObject *__pyx_v_links); /* proto*/

/* Module declarations from "cython" */

/* Module declarations from "libc.stdint" */

/* Module declarations from "uharfbuzz.charfbuzz" */

/* Module declarations from "libc.string" */

/* Module declarations from "libc.stdlib" */

/* Module declarations from "libc.math" */

/* Module declarations from "cpython.pycapsule" */

/* Module declarations from "libc.stddef" */

/* Module declarations from "cpython.unicode" */

/* Module declarations from "cpython.mem" */

/* Module declarations from "uharfbuzz._harfbuzz" */
static hb_user_data_key_t __pyx_v_9uharfbuzz_9_harfbuzz_k;
static hb_draw_funcs_t *__pyx_v_9uharfbuzz_9_harfbuzz_drawfuncs;
static int __pyx_f_9uharfbuzz_9_harfbuzz_msgcallback(hb_buffer_t *, hb_font_t *, char const *, void *); /*proto*/
static hb_blob_t *__pyx_f_9uharfbuzz_9_harfbuzz__reference_table_func(hb_face_t *, hb_tag_t, void *); /*proto*/
static unsigned int __pyx_f_9uharfbuzz_9_harfbuzz__get_table_tags_func(hb_face_t const *, unsigned int, unsigned int *, hb_tag_t *, void *); /*proto*/
static void __pyx_f_9uharfbuzz_9_harfbuzz__move_to_func(hb_draw_funcs_t *, void *, hb_draw_state_t *, float, float, void *); /*proto*/
static void __pyx_f_9uharfbuzz_9_harfbuzz__line_to_func(hb_draw_funcs_t *, void *, hb_draw_state_t *, float, float, void *); /*proto*/
static void __pyx_f_9uharfbuzz_9_harfbuzz__close_path_func(hb_draw_funcs_t *, void *, hb_draw_state_t *, void *); /*proto*/
static void __pyx_f_9uharfbuzz_9_harfbuzz__quadratic_to_func(hb_draw_funcs_t *, void *, hb_draw_state_t *, float, float, float, float, void *); /*proto*/
static void __pyx_f_9uharfbuzz_9_harfbuzz__cubic_to_func(hb_draw_funcs_t *, void *, hb_draw_state_t *, float, float, float, float, float, float, void *); /*proto*/
static void __pyx_f_9uharfbuzz_9_harfbuzz__paint_push_transform_func(hb_paint_funcs_t *, void *, float, float, float, float, float, float, void *); /*proto*/
static void __pyx_f_9uharfbuzz_9_harfbuzz__paint_pop_transform_func(hb_paint_funcs_t *, void *, void *); /*proto*/
static hb_bool_t __pyx_f_9uharfbuzz_9_harfbuzz__paint_color_glyph_func(hb_paint_funcs_t *, void *, hb_codepoint_t, hb_font_t *, void *); /*proto*/
static void __pyx_f_9uharfbuzz_9_harfbuzz__paint_push_clip_glyph_func(hb_paint_funcs_t *, void *, hb_codepoint_t, hb_font_t *, void *); /*proto*/
static void __pyx_f_9uharfbuzz_9_harfbuzz__paint_push_clip_rectangle_func(hb_paint_funcs_t *, void *, float, float, float, float, void *); /*proto*/
static void __pyx_f_9uharfbuzz_9_harfbuzz__paint_pop_clip_func(hb_paint_funcs_t *, void *, void *); /*proto*/
static void __pyx_f_9uharfbuzz_9_harfbuzz__paint_color_func(hb_paint_funcs_t *, void *, hb_bool_t, hb_color_t, void *); /*proto*/
static hb_bool_t __pyx_f_9uharfbuzz_9_harfbuzz__paint_image_func(hb_paint_funcs_t *, void *, hb_blob_t *, unsigned int, unsigned int, hb_tag_t, float, hb_glyph_extents_t *, void *); /*proto*/
static void __pyx_f_9uharfbuzz_9_harfbuzz__paint_linear_gradient_func(hb_paint_funcs_t *, void *, hb_color_line_t *, float, float, float, float, float, float, void *); /*proto*/
static void __pyx_f_9uharfbuzz_9_harfbuzz__paint_radial_gradient_func(hb_paint_funcs_t *, void *, hb_color_line_t *, float, float, float, float, float, float, void *); /*proto*/
static void __pyx_f_9uharfbuzz_9_harfbuzz__paint_sweep_gradient_func(hb_paint_funcs_t *, void *, hb_color_line_t *, float, float, float, float, void *); /*proto*/
static void __pyx_f_9uharfbuzz_9_harfbuzz__paint_push_group_func(hb_paint_funcs_t *, void *, void *); /*proto*/
static void __pyx_f_9uharfbuzz_9_harfbuzz__paint_pop_group_func(hb_paint_funcs_t *, void *, hb_paint_composite_mode_t, void *); /*proto*/
static hb_bool_t __pyx_f_9uharfbuzz_9_harfbuzz__paint_custom_palette_color_func(hb_paint_funcs_t *, void *, unsigned int, hb_color_t *, void *); /*proto*/
static void __pyx_f_9uharfbuzz_9_harfbuzz__pen_move_to_func(hb_draw_funcs_t *, void *, hb_draw_state_t *, float, float, void *); /*proto*/
static void __pyx_f_9uharfbuzz_9_harfbuzz__pen_line_to_func(hb_draw_funcs_t *, void *, hb_draw_state_t *, float, float, void *); /*proto*/
static void __pyx_f_9uharfbuzz_9_harfbuzz__pen_close_path_func(hb_draw_funcs_t *, void *, hb_draw_state_t *, void *); /*proto*/
static void __pyx_f_9uharfbuzz_9_harfbuzz__pen_quadratic_to_func(hb_draw_funcs_t *, void *, hb_draw_state_t *, float, float, float, float, void *); /*proto*/
static void __pyx_f_9uharfbuzz_9_harfbuzz__pen_cubic_to_func(hb_draw_funcs_t *, void *, hb_draw_state_t *, float, float, float, float, float, float, void *); /*proto*/
static hb_position_t __pyx_f_9uharfbuzz_9_harfbuzz__glyph_h_advance_func(hb_font_t *, void *, hb_codepoint_t, void *); /*proto*/
static hb_position_t __pyx_f_9uharfbuzz_9_harfbuzz__glyph_v_advance_func(hb_font_t *, void *, hb_codepoint_t, void *); /*proto*/
static hb_bool_t __pyx_f_9uharfbuzz_9_harfbuzz__glyph_v_origin_func(hb_font_t *, void *, hb_codepoint_t, hb_position_t *, hb_position_t *, void *); /*proto*/
static hb_bool_t __pyx_f_9uharfbuzz_9_harfbuzz__glyph_name_func(hb_font_t *, void *, hb_codepoint_t, char *, unsigned int, void *); /*proto*/
static hb_bool_t __pyx_f_9uharfbuzz_9_harfbuzz__nominal_glyph_func(hb_font_t *, void *, hb_codepoint_t, hb_codepoint_t *, void *); /*proto*/
static hb_bool_t __pyx_f_9uharfbuzz_9_harfbuzz__variation_glyph_func(hb_font_t *, void *, hb_codepoint_t, hb_codepoint_t, hb_codepoint_t *, void *); /*proto*/
static hb_bool_t __pyx_f_9uharfbuzz_9_harfbuzz__font_h_extents_func(hb_font_t *, void *, hb_font_extents_t *, void *); /*proto*/
static hb_bool_t __pyx_f_9uharfbuzz_9_harfbuzz__font_v_extents_func(hb_font_t *, void *, hb_font_extents_t *, void *); /*proto*/
/* #### Code section: typeinfo ### */
/* #### Code section: before_global_var ### */
#define __Pyx_MODULE_NAME "uharfbuzz._harfbuzz"
extern int __pyx_module_is_main_uharfbuzz___harfbuzz;
int __pyx_module_is_main_uharfbuzz___harfbuzz = 0;

/* Implementation of "uharfbuzz._harfbuzz" */
/* #### Code section: global_var ### */
static PyObject *__pyx_builtin_staticmethod;
static PyObject *__pyx_builtin_NotImplemented;
static PyObject *__pyx_builtin_enumerate;
static PyObject *__pyx_builtin_round;
/* #### Code section: string_decls ### */
/* #### Code section: decls ### */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_version_string(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10deprecated_9decorator_wrapper(PyObject *__pyx_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10deprecated_decorator(PyObject *__pyx_self, PyObject *__pyx_v_func); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_2deprecated(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_replacement, PyObject *__pyx_v_since); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_3Set___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_2__init__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, PyObject *__pyx_v_init); /* proto */
static void __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_4__dealloc__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self); /* proto */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_6copy(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self); /* proto */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_8__copy__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_10clear(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_12__bool__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_14invert(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_16is_inverted(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_18__contains__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, PyObject *__pyx_v_c); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_20add(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, PyObject *__pyx_v_c); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_22add_range(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, PyObject *__pyx_v_first, PyObject *__pyx_v_last); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_24remove(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, PyObject *__pyx_v_c); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_26discard(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, PyObject *__pyx_v_c); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_28del_range(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, PyObject *__pyx_v_first, PyObject *__pyx_v_last); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_30_is_equal(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_32__eq__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_34issubset(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_larger_set); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_36issuperset(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_smaller_set); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_38_set(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_40set(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_42_update(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_44update(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_46__ior__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_48intersection_update(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_50__iand__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_52difference_update(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_54__isub__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_56symmetric_difference_update(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_58__ixor__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_other); /* proto */
static Py_ssize_t __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_60__len__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_3min___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_3max___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_62__iter__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_8__repr___genexpr(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_64__repr__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_66__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_68__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_7SetIter___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SetIter *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_s); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_7SetIter_2__iter__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SetIter *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_7SetIter_4__next__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SetIter *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_7SetIter_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_SetIter *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_7SetIter_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_SetIter *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_3Map___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_2__init__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self, PyObject *__pyx_v_init); /* proto */
static void __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_4__dealloc__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self); /* proto */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_6copy(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self); /* proto */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_8__copy__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_10_update(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_12update(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_14clear(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_16__bool__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self); /* proto */
static Py_ssize_t __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_18__len__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_20_is_equal(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_22__eq__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_24__setitem__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self, PyObject *__pyx_v_k, PyObject *__pyx_v_v); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_26get(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self, PyObject *__pyx_v_k); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_28__getitem__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self, PyObject *__pyx_v_k); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_30__contains__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self, PyObject *__pyx_v_k); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_32__delitem__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self, PyObject *__pyx_v_c); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_34items(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_4keys_genexpr(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_36keys(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_6values_genexpr(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_38values(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_40__iter__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_8__repr___genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_42__repr__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_44__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_46__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_7MapIter___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_MapIter *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_m); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_7MapIter_2__iter__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_MapIter *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_7MapIter_4__next__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_MapIter *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_7MapIter_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_MapIter *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_7MapIter_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_MapIter *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_4Blob___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_v_self, PyObject *__pyx_v_data); /* proto */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_pf_9uharfbuzz_9_harfbuzz_4Blob_2from_file_path(PyTypeObject *__pyx_v_cls, PyObject *__pyx_v_filename); /* proto */
static void __pyx_pf_9uharfbuzz_9_harfbuzz_4Blob_4__dealloc__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_v_self); /* proto */
static Py_ssize_t __pyx_pf_9uharfbuzz_9_harfbuzz_4Blob_6__len__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_4Blob_8__bool__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Blob_4data___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Blob_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Blob_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9GlyphInfo_9codepoint___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphInfo *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9GlyphInfo_7cluster___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphInfo *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9GlyphInfo_5flags___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphInfo *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9GlyphInfo___reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphInfo *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9GlyphInfo_2__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphInfo *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_13GlyphPosition_8position___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_13GlyphPosition_9x_advance___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_13GlyphPosition_9y_advance___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_13GlyphPosition_8x_offset___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_13GlyphPosition_8y_offset___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_13GlyphPosition___reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_13GlyphPosition_2__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self); /* proto */
static void __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_2__dealloc__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self); /* proto */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_4create(PyTypeObject *__pyx_v_cls); /* proto */
static Py_ssize_t __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_6__len__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_8reset(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_10clear_contents(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_9direction___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_9direction_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_11glyph_infos___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_15glyph_positions___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_8language___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_8language_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_6script___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_6script_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_5flags___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_5flags_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_13cluster_level___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_13cluster_level_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_12content_type___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_12content_type_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_21replacement_codepoint___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_21replacement_codepoint_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_15invisible_glyph___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_15invisible_glyph_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_15not_found_glyph___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_15not_found_glyph_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_12set_language_from_ot_tag(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_14set_script_from_ot_tag(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_16add_codepoints(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, PyObject *__pyx_v_codepoints, PyObject *__pyx_v_item_offset, PyObject *__pyx_v_item_length); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_18add_utf8(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, PyObject *__pyx_v_text, PyObject *__pyx_v_item_offset, PyObject *__pyx_v_item_length); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_20add_str(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, PyObject *__pyx_v_text, PyObject *__pyx_v_item_offset, PyObject *__pyx_v_item_length); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_22guess_segment_properties(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_24set_message_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, PyObject *__pyx_v_callback); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_26serialize(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_format, PyObject *__pyx_v_flags); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_28__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_30__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_5Color_to_int(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_5Color_2from_int(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_4Face___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_blob, int __pyx_v_index); /* proto */
static void __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_2__dealloc__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self); /* proto */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_4create(PyTypeObject *__pyx_v_cls, PyObject *__pyx_v_blob, PyObject *__pyx_v_index); /* proto */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_6create_for_tables(PyTypeObject *__pyx_v_cls, PyObject *__pyx_v_func, PyObject *__pyx_v_user_data); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_5count___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_5index___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_5index_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_4upem___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_4upem_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_11glyph_count___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_11glyph_count_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_4blob___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self); /* proto */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_8reference_table(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_tag); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_10set_get_table_tags_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_func, PyObject *__pyx_v_user_data); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_10table_tags___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_8unicodes___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_19variation_selectors___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_12variation_unicodes(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_variation_selector); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_12has_var_data___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_10axis_infos___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_15named_instances___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_13has_math_data___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_14is_glyph_extended_math_shape(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_glyph); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_16has_color_layers___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_16get_glyph_color_layers(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_glyph); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_18has_color_palettes___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_18get_color_palette(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_palette_index); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_14color_palettes___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_20color_palette_color_get_name_id(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_color_index); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_15has_color_paint___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_22glyph_has_color_paint(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_glyph); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_13has_color_svg___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self); /* proto */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_24get_glyph_color_svg(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_glyph); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_13has_color_png___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_24has_layout_glyph_classes___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_26get_layout_glyph_class(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_glyph); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_22has_layout_positioning___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_23has_layout_substitution___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_28get_lookup_glyph_alternates(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_lookup_index, PyObject *__pyx_v_glyph); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_30get_language_feature_tags(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_tag, PyObject *__pyx_v_script_index, PyObject *__pyx_v_language_index); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_32get_script_language_tags(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_tag, PyObject *__pyx_v_script_index); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_34get_table_script_tags(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_tag); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_36list_names(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_38get_name(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_name_id, PyObject *__pyx_v_language); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_40__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_42__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *__pyx_v_self); /* proto */
static void __pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs_2__dealloc__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs_4get_glyph_shape(struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_gid); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs_6draw_glyph(struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_gid, PyObject *__pyx_v_draw_data); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs_8set_move_to_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *__pyx_v_self, PyObject *__pyx_v_func, PyObject *__pyx_v_user_data); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs_10set_line_to_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *__pyx_v_self, PyObject *__pyx_v_func, PyObject *__pyx_v_user_data); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs_12set_cubic_to_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *__pyx_v_self, PyObject *__pyx_v_func, PyObject *__pyx_v_user_data); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs_14set_quadratic_to_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *__pyx_v_self, PyObject *__pyx_v_func, PyObject *__pyx_v_user_data); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs_16set_close_path_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *__pyx_v_self, PyObject *__pyx_v_func, PyObject *__pyx_v_user_data); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs_18__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs_20__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_9ColorLine___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9ColorLine_11color_stops___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9ColorLine_6extend___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9ColorLine_2__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9ColorLine_4__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self); /* proto */
static void __pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_2__dealloc__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_4set_push_transform_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self, PyObject *__pyx_v_func); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_6set_pop_transform_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self, PyObject *__pyx_v_func); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_8set_color_glyph_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self, PyObject *__pyx_v_func); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_10set_push_clip_glyph_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self, PyObject *__pyx_v_func); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_12set_push_clip_rectangle_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self, PyObject *__pyx_v_func); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_14set_pop_clip_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self, PyObject *__pyx_v_func); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_16set_color_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self, PyObject *__pyx_v_func); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_18set_image_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self, PyObject *__pyx_v_func); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_20set_linear_gradient_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self, PyObject *__pyx_v_func); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_22set_radial_gradient_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self, PyObject *__pyx_v_func); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_24set_sweep_gradient_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self, PyObject *__pyx_v_func); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_26set_push_group_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self, PyObject *__pyx_v_func); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_28set_pop_group_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self, PyObject *__pyx_v_func); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_30set_custom_palette_color_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self, PyObject *__pyx_v_func); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_32__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_34__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_4Font___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_face_or_font); /* proto */
static void __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_2__dealloc__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self); /* proto */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_4create(PyTypeObject *__pyx_v_cls, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_4face___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_5funcs___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_5funcs_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_v_ffuncs); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_5scale___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_5scale_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_4ppem___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_4ppem_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_4ptem___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_4ptem_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, double __pyx_v_value); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_15synthetic_slant___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_15synthetic_slant_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, double __pyx_v_value); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_14synthetic_bold___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_14synthetic_bold_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_18var_named_instance___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_18var_named_instance_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_6set_variations(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_variations); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_8set_variation(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_name, double __pyx_v_value); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_10get_glyph_name(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_gid); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_12get_glyph_from_name(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_name); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_14get_glyph_extents(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_gid); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_16get_glyph_h_advance(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_gid); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_18get_glyph_v_advance(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_gid); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_20get_glyph_h_origin(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_gid); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_22get_glyph_v_origin(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_gid); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_24get_font_extents(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_direction); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_26get_variation_glyph(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_unicode, PyObject *__pyx_v_variation_selector); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_28get_nominal_glyph(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_unicode); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_30get_var_coords_normalized(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_32set_var_coords_normalized(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_coords); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_34get_var_coords_design(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_36set_var_coords_design(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_coords); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_38glyph_to_string(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_gid); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_40glyph_from_string(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_string); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_42draw_glyph(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_gid, struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *__pyx_v_draw_funcs, PyObject *__pyx_v_draw_state); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_44paint_glyph(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_gid, struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_paint_funcs, PyObject *__pyx_v_paint_state, PyObject *__pyx_v_palette_index, PyObject *__pyx_v_foreground); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_46draw_glyph_with_pen(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_gid, PyObject *__pyx_v_pen); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_48get_math_constant(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_constant); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_50get_math_glyph_italics_correction(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_glyph); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_52get_math_glyph_top_accent_attachment(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_glyph); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_54get_math_min_connector_overlap(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_direction); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_56get_math_glyph_kerning(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_glyph, PyObject *__pyx_v_kern, PyObject *__pyx_v_correction_height); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_58get_math_glyph_kernings(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_glyph, PyObject *__pyx_v_kern); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_60get_math_glyph_variants(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_glyph, PyObject *__pyx_v_direction); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_62get_math_glyph_assembly(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_glyph, PyObject *__pyx_v_direction); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_64get_metric_position(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_tag); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_66get_metric_position_with_fallback(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_tag); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_68get_metric_variation(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_tag); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_70get_metric_x_variation(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_tag); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_72get_metric_y_variation(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_tag); /* proto */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_74get_glyph_color_png(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_glyph); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_76get_layout_baseline(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_baseline_tag, PyObject *__pyx_v_direction, PyObject *__pyx_v_script_tag, PyObject *__pyx_v_language_tag); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_78get_style_value(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_tag); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_80__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_82__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_v_self); /* proto */
static void __pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_2__dealloc__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_v_self); /* proto */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_4create(PyTypeObject *__pyx_v_cls); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_6set_glyph_h_advance_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_v_self, PyObject *__pyx_v_func, PyObject *__pyx_v_user_data); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_8set_glyph_v_advance_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_v_self, PyObject *__pyx_v_func, PyObject *__pyx_v_user_data); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_10set_glyph_v_origin_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_v_self, PyObject *__pyx_v_func, PyObject *__pyx_v_user_data); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_12set_glyph_name_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_v_self, PyObject *__pyx_v_func, PyObject *__pyx_v_user_data); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_14set_nominal_glyph_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_v_self, PyObject *__pyx_v_func, PyObject *__pyx_v_user_data); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_16set_variation_glyph_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_v_self, PyObject *__pyx_v_func, PyObject *__pyx_v_user_data); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_18set_font_h_extents_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_v_self, PyObject *__pyx_v_func, PyObject *__pyx_v_user_data); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_20set_font_v_extents_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_v_self, PyObject *__pyx_v_func, PyObject *__pyx_v_user_data); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_22__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_24__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterImage___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterImage_2__init__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_v_self); /* proto */
static void __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterImage_4__dealloc__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterImage_6configure(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_v_self, PyObject *__pyx_v_format, PyObject *__pyx_v_extents); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterImage_8clear(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterImage_6format___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterImage_7extents___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterImage_6buffer___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterImage_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterImage_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *__pyx_v_self); /* proto */
static void __pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_2__dealloc__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_9transform___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_9transform_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *__pyx_v_self, __pyx_ctuple_ee55be__double__and_double__and_double__and_double__an__etc __pyx_v_value); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_12scale_factor___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_12scale_factor_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *__pyx_v_self, __pyx_ctuple_double__and_double __pyx_v_value); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_7extents___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_7extents_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_4set_glyph_extents(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *__pyx_v_self, PyObject *__pyx_v_extents); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_6draw_glyph(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_glyph); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_8draw_glyph_or_fail(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_glyph); /* proto */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_10render(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_12clear(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_14reset(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self); /* proto */
static void __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_2__dealloc__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_9transform___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_9transform_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self, __pyx_ctuple_ee55be__double__and_double__and_double__and_double__an__etc __pyx_v_value); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_12scale_factor___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_12scale_factor_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self, __pyx_ctuple_double__and_double __pyx_v_value); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_7extents___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_7extents_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_4set_glyph_extents(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self, PyObject *__pyx_v_extents); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_10foreground___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_10foreground_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_10background___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_10background_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_7palette___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_7palette_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_6set_custom_palette_color(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self, PyObject *__pyx_v_color_index, PyObject *__pyx_v_color); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_8clear_custom_palette_colors(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_10paint_glyph(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_glyph); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_12paint_glyph_or_fail(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_glyph); /* proto */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_14render(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_16clear(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_18reset(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_20__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_22__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_8HBObject___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_HBObject *__pyx_v_self, PyObject *__pyx_v_num_nodes); /* proto */
static void __pyx_pf_9uharfbuzz_9_harfbuzz_8HBObject_2__dealloc__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_HBObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_8HBObject_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_HBObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_8HBObject_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_HBObject *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4repack(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_subtables, PyObject *__pyx_v_graphnodes); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6repack_with_tag(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_tag, PyObject *__pyx_v_subtables, PyObject *__pyx_v_graphnodes); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_8serialize(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_subtables, PyObject *__pyx_v_graphnodes); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10serialize_with_tag(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_tag, PyObject *__pyx_v_subtables, PyObject *__pyx_v_graphnodes); /* proto */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_pf_9uharfbuzz_9_harfbuzz_12subset_preprocess(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face); /* proto */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_pf_9uharfbuzz_9_harfbuzz_14subset(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_input); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self); /* proto */
static void __pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_2__dealloc__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self); /* proto */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_4subset(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_source); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_6keep_everything(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_8pin_all_axes_to_default(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_10pin_axis_to_default(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, PyObject *__pyx_v_tag); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_12pin_axis_location(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, PyObject *__pyx_v_tag, double __pyx_v_value); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_14set_axis_range(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, PyObject *__pyx_v_tag, PyObject *__pyx_v_min_value, PyObject *__pyx_v_max_value, PyObject *__pyx_v_def_value); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_16get_axis_range(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self, PyObject *__pyx_v_tag); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_11unicode_set___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_9glyph_set___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self); /* proto */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_18sets(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self, PyObject *__pyx_v_set_type); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_23no_subset_table_tag_set___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_18drop_table_tag_set___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_11name_id_set___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_16name_lang_id_set___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_22layout_feature_tag_set___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_21layout_script_tag_set___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_5flags___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_5flags_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self, PyObject *__pyx_v_flags); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_20__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_22__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_9uharfbuzz_9_harfbuzz_10SubsetPlan___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetPlan *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_input); /* proto */
static void __pyx_pf_9uharfbuzz_9_harfbuzz_10SubsetPlan_2__dealloc__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetPlan *__pyx_v_self); /* proto */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_pf_9uharfbuzz_9_harfbuzz_10SubsetPlan_4execute(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetPlan *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10SubsetPlan_24old_to_new_glyph_mapping___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetPlan *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10SubsetPlan_24new_to_old_glyph_mapping___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetPlan *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10SubsetPlan_28unicode_to_old_glyph_mapping___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetPlan *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10SubsetPlan_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetPlan *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10SubsetPlan_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetPlan *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_16shape(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_buffer, PyObject *__pyx_v_features, PyObject *__pyx_v_shapers); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_18ot_tag_to_script(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_tag); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_20ot_tag_to_language(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_tag); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_22ot_layout_lookup_get_glyph_alternates(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, PyObject *__pyx_v_lookup_index, hb_codepoint_t __pyx_v_glyph); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_24ot_layout_language_get_feature_tags(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, PyObject *__pyx_v_tag, PyObject *__pyx_v_script_index, PyObject *__pyx_v_language_index); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_26ot_layout_script_get_language_tags(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, PyObject *__pyx_v_tag, PyObject *__pyx_v_script_index); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_28ot_layout_table_get_script_tags(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, PyObject *__pyx_v_tag); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_30ot_layout_get_baseline(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_baseline_tag, PyObject *__pyx_v_direction, PyObject *__pyx_v_script_tag, PyObject *__pyx_v_language_tag); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_32ot_layout_has_glyph_classes(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_34ot_layout_has_positioning(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_36ot_layout_has_substitution(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_38ot_layout_get_glyph_class(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, PyObject *__pyx_v_glyph); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_40ot_color_has_palettes(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_42ot_color_palette_get_count(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_44ot_color_palette_get_flags(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, PyObject *__pyx_v_palette_index); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_46ot_color_palette_get_colors(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, PyObject *__pyx_v_palette_index); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_48ot_color_palette_get_name_id(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, PyObject *__pyx_v_palette_index); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_50ot_color_palette_color_get_name_id(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, PyObject *__pyx_v_color_index); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_52ot_color_has_layers(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_54ot_color_glyph_get_layers(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, PyObject *__pyx_v_glyph); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_56ot_color_has_paint(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_58ot_color_glyph_has_paint(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, PyObject *__pyx_v_glyph); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_60ot_color_has_svg(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face); /* proto */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_pf_9uharfbuzz_9_harfbuzz_62ot_color_glyph_get_svg(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, PyObject *__pyx_v_glyph); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_64ot_color_has_png(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face); /* proto */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_pf_9uharfbuzz_9_harfbuzz_66ot_color_glyph_get_png(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_glyph); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_68ot_math_has_data(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_70ot_math_get_constant(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_constant); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_72ot_math_get_glyph_italics_correction(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_glyph); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_74ot_math_get_glyph_top_accent_attachment(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_glyph); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_76ot_math_is_glyph_extended_shape(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, PyObject *__pyx_v_glyph); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_78ot_math_get_min_connector_overlap(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_direction); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_80ot_math_get_glyph_kerning(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_glyph, PyObject *__pyx_v_kern, int __pyx_v_correction_height); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_82ot_math_get_glyph_kernings(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_glyph, PyObject *__pyx_v_kern); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_84ot_math_get_glyph_variants(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_glyph, PyObject *__pyx_v_direction); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_86ot_math_get_glyph_assembly(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_glyph, PyObject *__pyx_v_direction); /* proto */
static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_88ot_font_set_funcs(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font); /* proto */
static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_Set(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_SetIter(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_Map(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_MapIter(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_Blob(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_GlyphInfo(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_GlyphPosition(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_Buffer(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_Face(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_DrawFuncs(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_ColorLine(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_PaintFuncs(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_Font(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_FontFuncs(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_RasterImage(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_RasterDraw(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_RasterPaint(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_HBObject(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_SubsetInput(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_SubsetPlan(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
/* #### Code section: late_includes ### */
/* #### Code section: module_state ### */
/* SmallCodeConfig */
#ifndef CYTHON_SMALL_CODE
#if defined(__clang__)
    #define CYTHON_SMALL_CODE
#elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
    #define CYTHON_SMALL_CODE __attribute__((cold))
#else
    #define CYTHON_SMALL_CODE
#endif
#endif

typedef struct {
  PyObject *__pyx_d;
  PyObject *__pyx_b;
  PyObject *__pyx_cython_runtime;
  PyObject *__pyx_empty_tuple;
  PyObject *__pyx_empty_bytes;
  PyObject *__pyx_empty_unicode;
  PyObject *__pyx_type_9uharfbuzz_9_harfbuzz_Set;
  PyObject *__pyx_type_9uharfbuzz_9_harfbuzz_SetIter;
  PyObject *__pyx_type_9uharfbuzz_9_harfbuzz_Map;
  PyObject *__pyx_type_9uharfbuzz_9_harfbuzz_MapIter;
  PyObject *__pyx_type_9uharfbuzz_9_harfbuzz_Blob;
  PyObject *__pyx_type_9uharfbuzz_9_harfbuzz_GlyphInfo;
  PyObject *__pyx_type_9uharfbuzz_9_harfbuzz_GlyphPosition;
  PyObject *__pyx_type_9uharfbuzz_9_harfbuzz_Buffer;
  PyObject *__pyx_type_9uharfbuzz_9_harfbuzz_Face;
  PyObject *__pyx_type_9uharfbuzz_9_harfbuzz_DrawFuncs;
  PyObject *__pyx_type_9uharfbuzz_9_harfbuzz_ColorLine;
  PyObject *__pyx_type_9uharfbuzz_9_harfbuzz_PaintFuncs;
  PyObject *__pyx_type_9uharfbuzz_9_harfbuzz_Font;
  PyObject *__pyx_type_9uharfbuzz_9_harfbuzz_FontFuncs;
  PyObject *__pyx_type_9uharfbuzz_9_harfbuzz_RasterImage;
  PyObject *__pyx_type_9uharfbuzz_9_harfbuzz_RasterDraw;
  PyObject *__pyx_type_9uharfbuzz_9_harfbuzz_RasterPaint;
  PyObject *__pyx_type_9uharfbuzz_9_harfbuzz_HBObject;
  PyObject *__pyx_type_9uharfbuzz_9_harfbuzz_SubsetInput;
  PyObject *__pyx_type_9uharfbuzz_9_harfbuzz_SubsetPlan;
  PyObject *__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated;
  PyObject *__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator;
  PyObject *__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr;
  PyObject *__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr;
  PyObject *__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr;
  PyObject *__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr;
  PyTypeObject *__pyx_ptype_9uharfbuzz_9_harfbuzz_Set;
  PyTypeObject *__pyx_ptype_9uharfbuzz_9_harfbuzz_SetIter;
  PyTypeObject *__pyx_ptype_9uharfbuzz_9_harfbuzz_Map;
  PyTypeObject *__pyx_ptype_9uharfbuzz_9_harfbuzz_MapIter;
  PyTypeObject *__pyx_ptype_9uharfbuzz_9_harfbuzz_Blob;
  PyTypeObject *__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphInfo;
  PyTypeObject *__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphPosition;
  PyTypeObject *__pyx_ptype_9uharfbuzz_9_harfbuzz_Buffer;
  PyTypeObject *__pyx_ptype_9uharfbuzz_9_harfbuzz_Face;
  PyTypeObject *__pyx_ptype_9uharfbuzz_9_harfbuzz_DrawFuncs;
  PyTypeObject *__pyx_ptype_9uharfbuzz_9_harfbuzz_ColorLine;
  PyTypeObject *__pyx_ptype_9uharfbuzz_9_harfbuzz_PaintFuncs;
  PyTypeObject *__pyx_ptype_9uharfbuzz_9_harfbuzz_Font;
  PyTypeObject *__pyx_ptype_9uharfbuzz_9_harfbuzz_FontFuncs;
  PyTypeObject *__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterImage;
  PyTypeObject *__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterDraw;
  PyTypeObject *__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterPaint;
  PyTypeObject *__pyx_ptype_9uharfbuzz_9_harfbuzz_HBObject;
  PyTypeObject *__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetInput;
  PyTypeObject *__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetPlan;
  PyTypeObject *__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated;
  PyTypeObject *__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator;
  PyTypeObject *__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr;
  PyTypeObject *__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr;
  PyTypeObject *__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr;
  PyTypeObject *__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr;
  __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_items;
  __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_pop;
  __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_values;
  PyObject *__pyx_k__3;
  PyObject *__pyx_k__5;
  PyObject *__pyx_k__7;
  PyObject *__pyx_k__8;
  PyObject *__pyx_tuple[8];
  PyObject *__pyx_codeobj_tab[246];
  PyObject *__pyx_string_tab[1340];
  PyObject *__pyx_number_tab[5];
/* #### Code section: module_state_contents ### */
/* CommonTypesMetaclass.module_state_decls */
PyTypeObject *__pyx_CommonTypesMetaclassType;

/* CachedMethodType.module_state_decls */
#if CYTHON_COMPILING_IN_LIMITED_API
PyObject *__Pyx_CachedMethodType;
#endif

/* CythonFunctionShared.module_state_decls */
PyTypeObject *__pyx_CyFunctionType;


#if CYTHON_USE_FREELISTS
struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated *__pyx_freelist_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated[8];
int __pyx_freecount_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator *__pyx_freelist_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator[8];
int __pyx_freecount_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr *__pyx_freelist_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr[8];
int __pyx_freecount_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr *__pyx_freelist_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr[8];
int __pyx_freecount_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr *__pyx_freelist_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr[8];
int __pyx_freecount_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr *__pyx_freelist_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr[8];
int __pyx_freecount_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr;
#endif
/* CodeObjectCache.module_state_decls */
struct __Pyx_CodeObjectCache __pyx_code_cache;

/* IterNextPlain.module_state_decls */
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
PyObject *__Pyx_GetBuiltinNext_LimitedAPI_cache;
#endif

/* Generator.module_state_decls */
PyTypeObject *__pyx_GeneratorType;

/* #### Code section: module_state_end ### */
} __pyx_mstatetype;

#if CYTHON_USE_MODULE_STATE
#ifdef __cplusplus
namespace {
extern struct PyModuleDef __pyx_moduledef;
} /* anonymous namespace */
#else
static struct PyModuleDef __pyx_moduledef;
#endif

#define __pyx_mstate_global (__Pyx_PyModule_GetState(__Pyx_State_FindModule(&__pyx_moduledef)))

#define __pyx_m (__Pyx_State_FindModule(&__pyx_moduledef))
#else
static __pyx_mstatetype __pyx_mstate_global_static =
#ifdef __cplusplus
    {};
#else
    {0};
#endif
static __pyx_mstatetype * const __pyx_mstate_global = &__pyx_mstate_global_static;
#endif
/* #### Code section: constant_name_defines ### */
#define __pyx_kp_u_ __pyx_string_tab[0]
#define __pyx_kp_u_0_10_0 __pyx_string_tab[1]
#define __pyx_kp_u_0_34_0 __pyx_string_tab[2]
#define __pyx_kp_u_0_40_0 __pyx_string_tab[3]
#define __pyx_kp_u_0_45_0 __pyx_string_tab[4]
#define __pyx_kp_u_A_class_Color_from_a_font_s_colo __pyx_string_tab[5]
#define __pyx_kp_u_A_color_palette_from_a_font_s_CP __pyx_string_tab[6]
#define __pyx_kp_u_A_color_value_Colors_are_eight_b __pyx_string_tab[7]
#define __pyx_kp_u_A_named_instance_defined_in_the __pyx_string_tab[8]
#define __pyx_kp_u_A_pair_of_glyph_and_color_index __pyx_string_tab[9]
#define __pyx_kp_u_All_shapers_failed __pyx_string_tab[10]
#define __pyx_kp_u_Alpha_channel_value __pyx_string_tab[11]
#define __pyx_kp_u_Blue_channel_value __pyx_string_tab[12]
#define __pyx_kp_u_Buffer_2 __pyx_string_tab[13]
#define __pyx_kp_u_Bytes_per_row_0_means_auto_calcu __pyx_string_tab[14]
#define __pyx_kp_u_Callable_Blob_int_int_str_float __pyx_string_tab[15]
#define __pyx_kp_u_Callable_ColorLine_float_float_f __pyx_string_tab[16]
#define __pyx_kp_u_Callable_ColorLine_float_float_f_2 __pyx_string_tab[17]
#define __pyx_kp_u_Callable_Color_bool_object_None __pyx_string_tab[18]
#define __pyx_kp_u_Callable_Face_object_List_str __pyx_string_tab[19]
#define __pyx_kp_u_Callable_Face_str_object_bytes __pyx_string_tab[20]
#define __pyx_kp_u_Callable_Font_int_int_object_int __pyx_string_tab[21]
#define __pyx_kp_u_Callable_Font_int_object_int __pyx_string_tab[22]
#define __pyx_kp_u_Callable_Font_int_object_int_int __pyx_string_tab[23]
#define __pyx_kp_u_Callable_Font_int_object_str __pyx_string_tab[24]
#define __pyx_kp_u_Callable_Font_object_FontExtents __pyx_string_tab[25]
#define __pyx_kp_u_Callable_PaintCompositeMode_obje __pyx_string_tab[26]
#define __pyx_kp_u_Callable_float_float_float_float __pyx_string_tab[27]
#define __pyx_kp_u_Callable_float_float_float_float_2 __pyx_string_tab[28]
#define __pyx_kp_u_Callable_float_float_object_None __pyx_string_tab[29]
#define __pyx_kp_u_Callable_int_object_Color __pyx_string_tab[30]
#define __pyx_kp_u_Callable_int_object_None __pyx_string_tab[31]
#define __pyx_kp_u_Callable_int_object_bool __pyx_string_tab[32]
#define __pyx_kp_u_Callable_object_None __pyx_string_tab[33]
#define __pyx_kp_u_Callable_str __pyx_string_tab[34]
#define __pyx_kp_u_Color_None __pyx_string_tab[35]
#define __pyx_kp_u_Data_type_for_holding_HarfBuzz_s __pyx_string_tab[36]
#define __pyx_kp_u_Data_type_for_holding_variation __pyx_string_tab[37]
#define __pyx_kp_u_Dict_str_Union_int_bool_Sequence __pyx_string_tab[38]
#define __pyx_kp_u_Dict_str_float __pyx_string_tab[39]
#define __pyx_kp_u_Distance_from_the_left_extremum __pyx_string_tab[40]
#define __pyx_kp_u_Distance_from_the_top_extremum_o __pyx_string_tab[41]
#define __pyx_kp_u_Distance_from_the_top_extremum_o_2 __pyx_string_tab[42]
#define __pyx_kp_u_Distance_from_the_x_origin_to_th __pyx_string_tab[43]
#define __pyx_kp_u_Face_2 __pyx_string_tab[44]
#define __pyx_kp_u_Face_color_palette_color_get_nam_2 __pyx_string_tab[45]
#define __pyx_kp_u_Face_color_palettes __pyx_string_tab[46]
#define __pyx_kp_u_Face_face_has_layout_glyph_class __pyx_string_tab[47]
#define __pyx_kp_u_Face_get_color_palette_2 __pyx_string_tab[48]
#define __pyx_kp_u_Face_get_glyph_color_layers_2 __pyx_string_tab[49]
#define __pyx_kp_u_Face_get_glyph_color_svg_2 __pyx_string_tab[50]
#define __pyx_kp_u_Face_get_language_feature_tags_2 __pyx_string_tab[51]
#define __pyx_kp_u_Face_get_layout_baseline __pyx_string_tab[52]
#define __pyx_kp_u_Face_get_layout_glyph_class_2 __pyx_string_tab[53]
#define __pyx_kp_u_Face_get_lookup_glyph_alternates_2 __pyx_string_tab[54]
#define __pyx_kp_u_Face_get_script_language_tags_2 __pyx_string_tab[55]
#define __pyx_kp_u_Face_get_table_script_tags_2 __pyx_string_tab[56]
#define __pyx_kp_u_Face_glyph_has_color_paint_2 __pyx_string_tab[57]
#define __pyx_kp_u_Face_has_color_layers __pyx_string_tab[58]
#define __pyx_kp_u_Face_has_color_paint __pyx_string_tab[59]
#define __pyx_kp_u_Face_has_color_palettes __pyx_string_tab[60]
#define __pyx_kp_u_Face_has_color_png __pyx_string_tab[61]
#define __pyx_kp_u_Face_has_color_svg __pyx_string_tab[62]
#define __pyx_kp_u_Face_has_layout_positioning __pyx_string_tab[63]
#define __pyx_kp_u_Face_has_layout_substitution __pyx_string_tab[64]
#define __pyx_kp_u_Face_has_math_data __pyx_string_tab[65]
#define __pyx_kp_u_Face_is_glyph_extended_math_shap_2 __pyx_string_tab[66]
#define __pyx_kp_u_Failed_to_open __pyx_string_tab[67]
#define __pyx_kp_u_Flags_for_class_Buffer_attribute __pyx_string_tab[68]
#define __pyx_kp_u_Flags_for_class_GlyphInfo_attrib __pyx_string_tab[69]
#define __pyx_kp_u_Flags_for_class_OTVarAxisInfo_at __pyx_string_tab[70]
#define __pyx_kp_u_Flags_for_math_glyph_parts_attri __pyx_string_tab[71]
#define __pyx_kp_u_Flags_that_control_what_glyph_in __pyx_string_tab[72]
#define __pyx_kp_u_Flags_that_describe_the_properti __pyx_string_tab[73]
#define __pyx_kp_u_FontFuncs_2 __pyx_string_tab[74]
#define __pyx_kp_u_Font_2 __pyx_string_tab[75]
#define __pyx_kp_u_Font_draw_glyph __pyx_string_tab[76]
#define __pyx_kp_u_Font_get_glyph_color_png_2 __pyx_string_tab[77]
#define __pyx_kp_u_Font_get_math_constant_2 __pyx_string_tab[78]
#define __pyx_kp_u_Font_get_math_glyph_assembly_2 __pyx_string_tab[79]
#define __pyx_kp_u_Font_get_math_glyph_italics_corr_2 __pyx_string_tab[80]
#define __pyx_kp_u_Font_get_math_glyph_kerning_2 __pyx_string_tab[81]
#define __pyx_kp_u_Font_get_math_glyph_kernings_2 __pyx_string_tab[82]
#define __pyx_kp_u_Font_get_math_glyph_top_accent_a_2 __pyx_string_tab[83]
#define __pyx_kp_u_Font_get_math_glyph_variants_2 __pyx_string_tab[84]
#define __pyx_kp_u_Font_get_math_min_connector_over_2 __pyx_string_tab[85]
#define __pyx_kp_u_Font_wide_extent_values_measured __pyx_string_tab[86]
#define __pyx_kp_u_Glyph_extent_values_measured_in __pyx_string_tab[87]
#define __pyx_kp_u_Green_channel_value __pyx_string_tab[88]
#define __pyx_kp_u_Height_in_pixels __pyx_string_tab[89]
#define __pyx_kp_u_Index_of_the_axis_in_the_variati __pyx_string_tab[90]
#define __pyx_kp_u_Information_about_a_color_stop_o __pyx_string_tab[91]
#define __pyx_kp_u_Information_for_a_part_component __pyx_string_tab[92]
#define __pyx_kp_u_Input_num_of_subtables __pyx_string_tab[93]
#define __pyx_kp_u_Invalid_Unicode_string __pyx_string_tab[94]
#define __pyx_kp_u_List_Color __pyx_string_tab[95]
#define __pyx_kp_u_List_OTColor __pyx_string_tab[96]
#define __pyx_kp_u_List_OTColorLayer __pyx_string_tab[97]
#define __pyx_kp_u_List_OTMathGlyphVariant __pyx_string_tab[98]
#define __pyx_kp_u_List_OTMathKernEntry __pyx_string_tab[99]
#define __pyx_kp_u_List_OTNameEntry __pyx_string_tab[100]
#define __pyx_kp_u_List_Tuple_List_Tuple_int_int_in __pyx_string_tab[101]
#define __pyx_kp_u_List_bytes __pyx_string_tab[102]
#define __pyx_kp_u_List_float __pyx_string_tab[103]
#define __pyx_kp_u_List_int __pyx_string_tab[104]
#define __pyx_kp_u_List_of_boolean_properties_that __pyx_string_tab[105]
#define __pyx_kp_u_List_of_sets_that_can_be_configu __pyx_string_tab[106]
#define __pyx_kp_u_List_str __pyx_string_tab[107]
#define __pyx_kp_u_List_str_None __pyx_string_tab[108]
#define __pyx_kp_u_Map_s __pyx_string_tab[109]
#define __pyx_kp_u_Math_constants_from_the_OpenType __pyx_string_tab[110]
#define __pyx_kp_u_Math_kerning_cut_in_information __pyx_string_tab[111]
#define __pyx_kp_u_Math_variant_information_for_a_g __pyx_string_tab[112]
#define __pyx_kp_u_Metric_tags_corresponding_to_MVA __pyx_string_tab[113]
#define __pyx_kp_u_None __pyx_string_tab[114]
#define __pyx_kp_u_Note_that_Cython_is_deliberately __pyx_string_tab[115]
#define __pyx_kp_u_OTNameIdPredefined_int __pyx_string_tab[116]
#define __pyx_kp_u_Pass_draw_state_to_Font_draw_gly __pyx_string_tab[117]
#define __pyx_kp_u_Pickling_of_struct_members_such __pyx_string_tab[118]
#define __pyx_kp_u_Pickling_of_struct_members_such_2 __pyx_string_tab[119]
#define __pyx_kp_u_Pixel_buffer_extents_for_raster __pyx_string_tab[120]
#define __pyx_kp_u_Pixel_format_for_raster_images_a __pyx_string_tab[121]
#define __pyx_kp_u_Predefined_values_for_the_OpenTy __pyx_string_tab[122]
#define __pyx_kp_u_RasterExtents_None __pyx_string_tab[123]
#define __pyx_kp_u_RasterImage_None __pyx_string_tab[124]
#define __pyx_kp_u_Red_channel_value __pyx_string_tab[125]
#define __pyx_kp_u_Set __pyx_string_tab[126]
#define __pyx_kp_u_Set_int __pyx_string_tab[127]
#define __pyx_kp_u_Set_s __pyx_string_tab[128]
#define __pyx_kp_u_Structure_representing_a_name_ID __pyx_string_tab[129]
#define __pyx_kp_u_Style_tags_defined_by_OpenType_D __pyx_string_tab[130]
#define __pyx_kp_u_Subsetting_failed __pyx_string_tab[131]
#define __pyx_kp_u_The_BCP_47_language_tag_or_None __pyx_string_tab[132]
#define __pyx_kp_u_The_GDEF_classes_defined_for_gly __pyx_string_tab[133]
#define __pyx_kp_u_The_advance_width_of_the_variant __pyx_string_tab[134]
#define __pyx_kp_u_The_buffer_serialization_and_de __pyx_string_tab[135]
#define __pyx_kp_u_The_class_OTColorPaletteFlags_fl __pyx_string_tab[136]
#define __pyx_kp_u_The_class_OTVarAxisFlags_flags_f __pyx_string_tab[137]
#define __pyx_kp_u_The_color_unpremultiplied __pyx_string_tab[138]
#define __pyx_kp_u_The_colors_that_make_up_the_pale __pyx_string_tab[139]
#define __pyx_kp_u_The_depth_of_typographic_descend __pyx_string_tab[140]
#define __pyx_kp_u_The_design_space_coordinates_cor __pyx_string_tab[141]
#define __pyx_kp_u_The_glyph_ID_of_the_layer __pyx_string_tab[142]
#define __pyx_kp_u_The_glyph_index_of_the_variant __pyx_string_tab[143]
#define __pyx_kp_u_The_glyph_index_of_the_variant_p __pyx_string_tab[144]
#define __pyx_kp_u_The_height_of_typographic_ascend __pyx_string_tab[145]
#define __pyx_kp_u_The_kern_value_of_the_entry __pyx_string_tab[146]
#define __pyx_kp_u_The_length_of_the_connector_on_t __pyx_string_tab[147]
#define __pyx_kp_u_The_length_of_the_connector_on_t_2 __pyx_string_tab[148]
#define __pyx_kp_u_The_math_kerning_table_types_def __pyx_string_tab[149]
#define __pyx_kp_u_The_maximum_height_at_which_this __pyx_string_tab[150]
#define __pyx_kp_u_The_maximum_value_on_the_variati __pyx_string_tab[151]
#define __pyx_kp_u_The_minimum_value_on_the_variati __pyx_string_tab[152]
#define __pyx_kp_u_The_name_ID_as_an_class_OTNameId __pyx_string_tab[153]
#define __pyx_kp_u_The_name_table_Name_ID_that_prov __pyx_string_tab[154]
#define __pyx_kp_u_The_name_table_Name_ID_that_prov_2 __pyx_string_tab[155]
#define __pyx_kp_u_The_name_table_Name_ID_that_prov_3 __pyx_string_tab[156]
#define __pyx_kp_u_The_name_table_Name_ID_that_prov_4 __pyx_string_tab[157]
#define __pyx_kp_u_The_offset_of_the_color_stop __pyx_string_tab[158]
#define __pyx_kp_u_The_palette_color_index_of_the_l __pyx_string_tab[159]
#define __pyx_kp_u_The_position_on_the_variation_ax __pyx_string_tab[160]
#define __pyx_kp_u_The_suggested_line_spacing_gap __pyx_string_tab[161]
#define __pyx_kp_u_The_tag_identifying_the_design_v __pyx_string_tab[162]
#define __pyx_kp_u_The_total_advance_of_the_part __pyx_string_tab[163]
#define __pyx_kp_u_The_type_of_class_Buffer_content __pyx_string_tab[164]
#define __pyx_kp_u_The_values_of_this_enumeration_d __pyx_string_tab[165]
#define __pyx_kp_u_The_values_of_this_enumeration_d_2 __pyx_string_tab[166]
#define __pyx_kp_u_Tuple_List_OTMathGlyphPart_int __pyx_string_tab[167]
#define __pyx_kp_u_Tuple_float_None_float_None_floa __pyx_string_tab[168]
#define __pyx_kp_u_Tuple_int_int_None __pyx_string_tab[169]
#define __pyx_kp_u_Union_str_Path __pyx_string_tab[170]
#define __pyx_kp_u_Use_obj __pyx_string_tab[171]
#define __pyx_kp_u_Whether_the_color_is_the_foregro __pyx_string_tab[172]
#define __pyx_kp_u_Width_in_pixels __pyx_string_tab[173]
#define __pyx_kp_u_X_coordinate_of_the_left_edge_of __pyx_string_tab[174]
#define __pyx_kp_u_Y_coordinate_of_the_bottom_edge __pyx_string_tab[175]
#define __pyx_kp_u__10 __pyx_string_tab[176]
#define __pyx_kp_u__11 __pyx_string_tab[177]
#define __pyx_kp_u__12 __pyx_string_tab[178]
#define __pyx_kp_u__2 __pyx_string_tab[179]
#define __pyx_kp_u__4 __pyx_string_tab[180]
#define __pyx_kp_u__6 __pyx_string_tab[181]
#define __pyx_kp_u__9 __pyx_string_tab[182]
#define __pyx_kp_u_add_note __pyx_string_tab[183]
#define __pyx_kp_u_class_OTMathGlyphPartFlags_flag __pyx_string_tab[184]
#define __pyx_kp_u_deprecated __pyx_string_tab[185]
#define __pyx_kp_u_disable __pyx_string_tab[186]
#define __pyx_kp_u_enable __pyx_string_tab[187]
#define __pyx_kp_u_float_None __pyx_string_tab[188]
#define __pyx_kp_u_gc __pyx_string_tab[189]
#define __pyx_kp_u_index_out_of_range_for_feature_a __pyx_string_tab[190]
#define __pyx_kp_u_instead __pyx_string_tab[191]
#define __pyx_kp_u_instead_2 __pyx_string_tab[192]
#define __pyx_kp_u_int_None __pyx_string_tab[193]
#define __pyx_kp_u_invalid_baseline_tag __pyx_string_tab[194]
#define __pyx_kp_u_invalid_constant __pyx_string_tab[195]
#define __pyx_kp_u_invalid_kern __pyx_string_tab[196]
#define __pyx_kp_u_is_deprecated __pyx_string_tab[197]
#define __pyx_kp_u_isenabled __pyx_string_tab[198]
#define __pyx_kp_u_no_default___reduce___due_to_non __pyx_string_tab[199]
#define __pyx_kp_u_num_of_graph_nodes __pyx_string_tab[200]
#define __pyx_kp_u_serialize_2 __pyx_string_tab[201]
#define __pyx_kp_u_serialize_with_tag_2 __pyx_string_tab[202]
#define __pyx_kp_u_src_uharfbuzz__blob_pxi __pyx_string_tab[203]
#define __pyx_kp_u_src_uharfbuzz__buffer_pxi __pyx_string_tab[204]
#define __pyx_kp_u_src_uharfbuzz__draw_pxi __pyx_string_tab[205]
#define __pyx_kp_u_src_uharfbuzz__face_pxi __pyx_string_tab[206]
#define __pyx_kp_u_src_uharfbuzz__font_pxi __pyx_string_tab[207]
#define __pyx_kp_u_src_uharfbuzz__harfbuzz_pyx __pyx_string_tab[208]
#define __pyx_kp_u_src_uharfbuzz__map_pxi __pyx_string_tab[209]
#define __pyx_kp_u_src_uharfbuzz__paint_pxi __pyx_string_tab[210]
#define __pyx_kp_u_src_uharfbuzz__raster_pxi __pyx_string_tab[211]
#define __pyx_kp_u_src_uharfbuzz__serialize_pxi __pyx_string_tab[212]
#define __pyx_kp_u_src_uharfbuzz__set_pxi __pyx_string_tab[213]
#define __pyx_kp_u_src_uharfbuzz__subset_pxi __pyx_string_tab[214]
#define __pyx_kp_u_str_None __pyx_string_tab[215]
#define __pyx_kp_u_stringsource __pyx_string_tab[216]
#define __pyx_kp_u_use __pyx_string_tab[217]
#define __pyx_n_u_A8 __pyx_string_tab[218]
#define __pyx_n_u_ACCENT_BASE_HEIGHT __pyx_string_tab[219]
#define __pyx_n_u_AXIS_HEIGHT __pyx_string_tab[220]
#define __pyx_n_u_BASE_GLYPH __pyx_string_tab[221]
#define __pyx_n_u_BGRA32 __pyx_string_tab[222]
#define __pyx_n_u_BOT __pyx_string_tab[223]
#define __pyx_n_u_BOTTOM_LEFT __pyx_string_tab[224]
#define __pyx_n_u_BOTTOM_RIGHT __pyx_string_tab[225]
#define __pyx_n_u_Blob __pyx_string_tab[226]
#define __pyx_n_u_Blob___reduce_cython __pyx_string_tab[227]
#define __pyx_n_u_Blob___setstate_cython __pyx_string_tab[228]
#define __pyx_n_u_Blob_from_file_path __pyx_string_tab[229]
#define __pyx_n_u_Buffer __pyx_string_tab[230]
#define __pyx_n_u_BufferClusterLevel __pyx_string_tab[231]
#define __pyx_n_u_BufferContentType __pyx_string_tab[232]
#define __pyx_n_u_BufferFlags __pyx_string_tab[233]
#define __pyx_n_u_BufferSerializeFlags __pyx_string_tab[234]
#define __pyx_n_u_BufferSerializeFormat __pyx_string_tab[235]
#define __pyx_n_u_Buffer___reduce_cython __pyx_string_tab[236]
#define __pyx_n_u_Buffer___setstate_cython __pyx_string_tab[237]
#define __pyx_n_u_Buffer_add_codepoints __pyx_string_tab[238]
#define __pyx_n_u_Buffer_add_str __pyx_string_tab[239]
#define __pyx_n_u_Buffer_add_utf8 __pyx_string_tab[240]
#define __pyx_n_u_Buffer_clear_contents __pyx_string_tab[241]
#define __pyx_n_u_Buffer_create __pyx_string_tab[242]
#define __pyx_n_u_Buffer_guess_segment_properties __pyx_string_tab[243]
#define __pyx_n_u_Buffer_reset __pyx_string_tab[244]
#define __pyx_n_u_Buffer_serialize __pyx_string_tab[245]
#define __pyx_n_u_Buffer_set_language_from_ot_tag __pyx_string_tab[246]
#define __pyx_n_u_Buffer_set_message_func __pyx_string_tab[247]
#define __pyx_n_u_Buffer_set_script_from_ot_tag __pyx_string_tab[248]
#define __pyx_n_u_CAP_HEIGHT __pyx_string_tab[249]
#define __pyx_n_u_CHARACTERS __pyx_string_tab[250]
#define __pyx_n_u_CID_FINDFONT_NAME __pyx_string_tab[251]
#define __pyx_n_u_CLEAR __pyx_string_tab[252]
#define __pyx_n_u_COLOR_BURN __pyx_string_tab[253]
#define __pyx_n_u_COLOR_DODGE __pyx_string_tab[254]
#define __pyx_n_u_COMPONENT __pyx_string_tab[255]
#define __pyx_n_u_COPYRIGHT __pyx_string_tab[256]
#define __pyx_n_u_Callable __pyx_string_tab[257]
#define __pyx_n_u_Color __pyx_string_tab[258]
#define __pyx_n_u_ColorLine __pyx_string_tab[259]
#define __pyx_n_u_ColorLine___reduce_cython __pyx_string_tab[260]
#define __pyx_n_u_ColorLine___setstate_cython __pyx_string_tab[261]
#define __pyx_n_u_ColorStop __pyx_string_tab[262]
#define __pyx_n_u_Color_from_int __pyx_string_tab[263]
#define __pyx_n_u_Color_to_int __pyx_string_tab[264]
#define __pyx_n_u_DARKEN __pyx_string_tab[265]
#define __pyx_n_u_DARK_BACKGROUND __pyx_string_tab[266]
#define __pyx_n_u_DEFAULT __pyx_string_tab[267]
#define __pyx_n_u_DEFAULT_REPLACEMENT_CODEPOINT __pyx_string_tab[268]
#define __pyx_n_u_DEFINED __pyx_string_tab[269]
#define __pyx_n_u_DELIMITED_SUB_FORMULA_MIN_HEIGHT __pyx_string_tab[270]
#define __pyx_n_u_DESCRIPTION __pyx_string_tab[271]
#define __pyx_n_u_DESIGNER __pyx_string_tab[272]
#define __pyx_n_u_DESIGNER_URL __pyx_string_tab[273]
#define __pyx_n_u_DEST __pyx_string_tab[274]
#define __pyx_n_u_DEST_ATOP __pyx_string_tab[275]
#define __pyx_n_u_DEST_IN __pyx_string_tab[276]
#define __pyx_n_u_DEST_OUT __pyx_string_tab[277]
#define __pyx_n_u_DEST_OVER __pyx_string_tab[278]
#define __pyx_n_u_DESUBROUTINIZE __pyx_string_tab[279]
#define __pyx_n_u_DIFFERENCE __pyx_string_tab[280]
#define __pyx_n_u_DISPLAY_OPERATOR_MIN_HEIGHT __pyx_string_tab[281]
#define __pyx_n_u_DO_NOT_INSERT_DOTTED_CIRCLE __pyx_string_tab[282]
#define __pyx_n_u_DROP_TABLE_TAG __pyx_string_tab[283]
#define __pyx_n_u_Dict __pyx_string_tab[284]
#define __pyx_n_u_DrawFuncs __pyx_string_tab[285]
#define __pyx_n_u_DrawFuncs___reduce_cython __pyx_string_tab[286]
#define __pyx_n_u_DrawFuncs___setstate_cython __pyx_string_tab[287]
#define __pyx_n_u_DrawFuncs_draw_glyph __pyx_string_tab[288]
#define __pyx_n_u_DrawFuncs_get_glyph_shape __pyx_string_tab[289]
#define __pyx_n_u_DrawFuncs_set_close_path_func __pyx_string_tab[290]
#define __pyx_n_u_DrawFuncs_set_cubic_to_func __pyx_string_tab[291]
#define __pyx_n_u_DrawFuncs_set_line_to_func __pyx_string_tab[292]
#define __pyx_n_u_DrawFuncs_set_move_to_func __pyx_string_tab[293]
#define __pyx_n_u_DrawFuncs_set_quadratic_to_func __pyx_string_tab[294]
#define __pyx_n_u_EOT __pyx_string_tab[295]
#define __pyx_n_u_EXCLUSION __pyx_string_tab[296]
#define __pyx_n_u_EXTENDER __pyx_string_tab[297]
#define __pyx_n_u_FLATTENED_ACCENT_BASE_HEIGHT __pyx_string_tab[298]
#define __pyx_n_u_FONT_FAMILY __pyx_string_tab[299]
#define __pyx_n_u_FONT_SUBFAMILY __pyx_string_tab[300]
#define __pyx_n_u_FRACTION_DENOMINATOR_DISPLAY_STY __pyx_string_tab[301]
#define __pyx_n_u_FRACTION_DENOMINATOR_GAP_MIN __pyx_string_tab[302]
#define __pyx_n_u_FRACTION_DENOMINATOR_SHIFT_DOWN __pyx_string_tab[303]
#define __pyx_n_u_FRACTION_DENOM_DISPLAY_STYLE_GAP __pyx_string_tab[304]
#define __pyx_n_u_FRACTION_NUMERATOR_DISPLAY_STYLE __pyx_string_tab[305]
#define __pyx_n_u_FRACTION_NUMERATOR_GAP_MIN __pyx_string_tab[306]
#define __pyx_n_u_FRACTION_NUMERATOR_SHIFT_UP __pyx_string_tab[307]
#define __pyx_n_u_FRACTION_NUM_DISPLAY_STYLE_GAP_M __pyx_string_tab[308]
#define __pyx_n_u_FRACTION_RULE_THICKNESS __pyx_string_tab[309]
#define __pyx_n_u_FULL_NAME __pyx_string_tab[310]
#define __pyx_n_u_Face __pyx_string_tab[311]
#define __pyx_n_u_Face___reduce_cython __pyx_string_tab[312]
#define __pyx_n_u_Face___setstate_cython __pyx_string_tab[313]
#define __pyx_n_u_Face_color_palette_color_get_nam __pyx_string_tab[314]
#define __pyx_n_u_Face_create __pyx_string_tab[315]
#define __pyx_n_u_Face_create_for_tables __pyx_string_tab[316]
#define __pyx_n_u_Face_get_color_palette __pyx_string_tab[317]
#define __pyx_n_u_Face_get_glyph_color_layers __pyx_string_tab[318]
#define __pyx_n_u_Face_get_glyph_color_svg __pyx_string_tab[319]
#define __pyx_n_u_Face_get_language_feature_tags __pyx_string_tab[320]
#define __pyx_n_u_Face_get_layout_glyph_class __pyx_string_tab[321]
#define __pyx_n_u_Face_get_lookup_glyph_alternates __pyx_string_tab[322]
#define __pyx_n_u_Face_get_name __pyx_string_tab[323]
#define __pyx_n_u_Face_get_script_language_tags __pyx_string_tab[324]
#define __pyx_n_u_Face_get_table_script_tags __pyx_string_tab[325]
#define __pyx_n_u_Face_glyph_has_color_paint __pyx_string_tab[326]
#define __pyx_n_u_Face_is_glyph_extended_math_shap __pyx_string_tab[327]
#define __pyx_n_u_Face_list_names __pyx_string_tab[328]
#define __pyx_n_u_Face_reference_table __pyx_string_tab[329]
#define __pyx_n_u_Face_set_get_table_tags_func __pyx_string_tab[330]
#define __pyx_n_u_Face_variation_unicodes __pyx_string_tab[331]
#define __pyx_n_u_Font __pyx_string_tab[332]
#define __pyx_n_u_FontExtents __pyx_string_tab[333]
#define __pyx_n_u_FontFuncs __pyx_string_tab[334]
#define __pyx_n_u_FontFuncs___reduce_cython __pyx_string_tab[335]
#define __pyx_n_u_FontFuncs___setstate_cython __pyx_string_tab[336]
#define __pyx_n_u_FontFuncs_create __pyx_string_tab[337]
#define __pyx_n_u_FontFuncs_set_font_h_extents_fun __pyx_string_tab[338]
#define __pyx_n_u_FontFuncs_set_font_v_extents_fun __pyx_string_tab[339]
#define __pyx_n_u_FontFuncs_set_glyph_h_advance_fu __pyx_string_tab[340]
#define __pyx_n_u_FontFuncs_set_glyph_name_func __pyx_string_tab[341]
#define __pyx_n_u_FontFuncs_set_glyph_v_advance_fu __pyx_string_tab[342]
#define __pyx_n_u_FontFuncs_set_glyph_v_origin_fun __pyx_string_tab[343]
#define __pyx_n_u_FontFuncs_set_nominal_glyph_func __pyx_string_tab[344]
#define __pyx_n_u_FontFuncs_set_variation_glyph_fu __pyx_string_tab[345]
#define __pyx_n_u_Font___reduce_cython __pyx_string_tab[346]
#define __pyx_n_u_Font___setstate_cython __pyx_string_tab[347]
#define __pyx_n_u_Font_create __pyx_string_tab[348]
#define __pyx_n_u_Font_draw_glyph_2 __pyx_string_tab[349]
#define __pyx_n_u_Font_draw_glyph_with_pen __pyx_string_tab[350]
#define __pyx_n_u_Font_get_font_extents __pyx_string_tab[351]
#define __pyx_n_u_Font_get_glyph_color_png __pyx_string_tab[352]
#define __pyx_n_u_Font_get_glyph_extents __pyx_string_tab[353]
#define __pyx_n_u_Font_get_glyph_from_name __pyx_string_tab[354]
#define __pyx_n_u_Font_get_glyph_h_advance __pyx_string_tab[355]
#define __pyx_n_u_Font_get_glyph_h_origin __pyx_string_tab[356]
#define __pyx_n_u_Font_get_glyph_name __pyx_string_tab[357]
#define __pyx_n_u_Font_get_glyph_v_advance __pyx_string_tab[358]
#define __pyx_n_u_Font_get_glyph_v_origin __pyx_string_tab[359]
#define __pyx_n_u_Font_get_layout_baseline __pyx_string_tab[360]
#define __pyx_n_u_Font_get_math_constant __pyx_string_tab[361]
#define __pyx_n_u_Font_get_math_glyph_assembly __pyx_string_tab[362]
#define __pyx_n_u_Font_get_math_glyph_italics_corr __pyx_string_tab[363]
#define __pyx_n_u_Font_get_math_glyph_kerning __pyx_string_tab[364]
#define __pyx_n_u_Font_get_math_glyph_kernings __pyx_string_tab[365]
#define __pyx_n_u_Font_get_math_glyph_top_accent_a __pyx_string_tab[366]
#define __pyx_n_u_Font_get_math_glyph_variants __pyx_string_tab[367]
#define __pyx_n_u_Font_get_math_min_connector_over __pyx_string_tab[368]
#define __pyx_n_u_Font_get_metric_position __pyx_string_tab[369]
#define __pyx_n_u_Font_get_metric_position_with_fa __pyx_string_tab[370]
#define __pyx_n_u_Font_get_metric_variation __pyx_string_tab[371]
#define __pyx_n_u_Font_get_metric_x_variation __pyx_string_tab[372]
#define __pyx_n_u_Font_get_metric_y_variation __pyx_string_tab[373]
#define __pyx_n_u_Font_get_nominal_glyph __pyx_string_tab[374]
#define __pyx_n_u_Font_get_style_value __pyx_string_tab[375]
#define __pyx_n_u_Font_get_var_coords_design __pyx_string_tab[376]
#define __pyx_n_u_Font_get_var_coords_normalized __pyx_string_tab[377]
#define __pyx_n_u_Font_get_variation_glyph __pyx_string_tab[378]
#define __pyx_n_u_Font_glyph_from_string __pyx_string_tab[379]
#define __pyx_n_u_Font_glyph_to_string __pyx_string_tab[380]
#define __pyx_n_u_Font_paint_glyph __pyx_string_tab[381]
#define __pyx_n_u_Font_set_var_coords_design __pyx_string_tab[382]
#define __pyx_n_u_Font_set_var_coords_normalized __pyx_string_tab[383]
#define __pyx_n_u_Font_set_variation __pyx_string_tab[384]
#define __pyx_n_u_Font_set_variations __pyx_string_tab[385]
#define __pyx_n_u_GLYPHS __pyx_string_tab[386]
#define __pyx_n_u_GLYPH_EXTENTS __pyx_string_tab[387]
#define __pyx_n_u_GLYPH_FLAGS __pyx_string_tab[388]
#define __pyx_n_u_GLYPH_INDEX __pyx_string_tab[389]
#define __pyx_n_u_GLYPH_NAMES __pyx_string_tab[390]
#define __pyx_n_u_GRAPHEMES __pyx_string_tab[391]
#define __pyx_n_u_GlyphExtents __pyx_string_tab[392]
#define __pyx_n_u_GlyphFlags __pyx_string_tab[393]
#define __pyx_n_u_GlyphInfo __pyx_string_tab[394]
#define __pyx_n_u_GlyphInfo___reduce_cython __pyx_string_tab[395]
#define __pyx_n_u_GlyphInfo___setstate_cython __pyx_string_tab[396]
#define __pyx_n_u_GlyphPosition __pyx_string_tab[397]
#define __pyx_n_u_GlyphPosition___reduce_cython __pyx_string_tab[398]
#define __pyx_n_u_GlyphPosition___setstate_cython __pyx_string_tab[399]
#define __pyx_n_u_HARD_LIGHT __pyx_string_tab[400]
#define __pyx_n_u_HBObject __pyx_string_tab[401]
#define __pyx_n_u_HBObject___reduce_cython __pyx_string_tab[402]
#define __pyx_n_u_HBObject___setstate_cython __pyx_string_tab[403]
#define __pyx_n_u_HIDDEN __pyx_string_tab[404]
#define __pyx_n_u_HORIZONTAL_ASCENDER __pyx_string_tab[405]
#define __pyx_n_u_HORIZONTAL_CARET_OFFSET __pyx_string_tab[406]
#define __pyx_n_u_HORIZONTAL_CARET_RISE __pyx_string_tab[407]
#define __pyx_n_u_HORIZONTAL_CARET_RUN __pyx_string_tab[408]
#define __pyx_n_u_HORIZONTAL_CLIPPING_ASCENT __pyx_string_tab[409]
#define __pyx_n_u_HORIZONTAL_CLIPPING_DESCENT __pyx_string_tab[410]
#define __pyx_n_u_HORIZONTAL_DESCENDER __pyx_string_tab[411]
#define __pyx_n_u_HORIZONTAL_LINE_GAP __pyx_string_tab[412]
#define __pyx_n_u_HSL_COLOR __pyx_string_tab[413]
#define __pyx_n_u_HSL_HUE __pyx_string_tab[414]
#define __pyx_n_u_HSL_LUMINOSITY __pyx_string_tab[415]
#define __pyx_n_u_HSL_SATURATION __pyx_string_tab[416]
#define __pyx_n_u_HarfBuzzError __pyx_string_tab[417]
#define __pyx_n_u_INVALID __pyx_string_tab[418]
#define __pyx_n_u_INVALID_VALUE __pyx_string_tab[419]
#define __pyx_n_u_ITALIC __pyx_string_tab[420]
#define __pyx_n_u_IntEnum __pyx_string_tab[421]
#define __pyx_n_u_IntFlag __pyx_string_tab[422]
#define __pyx_n_u_JSON __pyx_string_tab[423]
#define __pyx_n_u_LAYOUT_FEATURE_TAG __pyx_string_tab[424]
#define __pyx_n_u_LAYOUT_SCRIPT_TAG __pyx_string_tab[425]
#define __pyx_n_u_LICENSE __pyx_string_tab[426]
#define __pyx_n_u_LICENSE_URL __pyx_string_tab[427]
#define __pyx_n_u_LIGATURE __pyx_string_tab[428]
#define __pyx_n_u_LIGHTEN __pyx_string_tab[429]
#define __pyx_n_u_LIGHT_BACKGROUND __pyx_string_tab[430]
#define __pyx_n_u_LOWER_LIMIT_BASELINE_DROP_MIN __pyx_string_tab[431]
#define __pyx_n_u_LOWER_LIMIT_GAP_MIN __pyx_string_tab[432]
#define __pyx_n_u_List __pyx_string_tab[433]
#define __pyx_n_u_MAC_FULL_NAME __pyx_string_tab[434]
#define __pyx_n_u_MANUFACTURER __pyx_string_tab[435]
#define __pyx_n_u_MARK __pyx_string_tab[436]
#define __pyx_n_u_MATH_LEADING __pyx_string_tab[437]
#define __pyx_n_u_MONOTONE_CHARACTERS __pyx_string_tab[438]
#define __pyx_n_u_MONOTONE_GRAPHEMES __pyx_string_tab[439]
#define __pyx_n_u_MULTIPLY __pyx_string_tab[440]
#define __pyx_n_u_Map __pyx_string_tab[441]
#define __pyx_n_u_MapIter __pyx_string_tab[442]
#define __pyx_n_u_MapIter___reduce_cython __pyx_string_tab[443]
#define __pyx_n_u_MapIter___setstate_cython __pyx_string_tab[444]
#define __pyx_n_u_Map___copy __pyx_string_tab[445]
#define __pyx_n_u_Map___reduce_cython __pyx_string_tab[446]
#define __pyx_n_u_Map___setstate_cython __pyx_string_tab[447]
#define __pyx_n_u_Map__is_equal __pyx_string_tab[448]
#define __pyx_n_u_Map__update __pyx_string_tab[449]
#define __pyx_n_u_Map_clear __pyx_string_tab[450]
#define __pyx_n_u_Map_copy __pyx_string_tab[451]
#define __pyx_n_u_Map_get __pyx_string_tab[452]
#define __pyx_n_u_Map_items __pyx_string_tab[453]
#define __pyx_n_u_Map_keys __pyx_string_tab[454]
#define __pyx_n_u_Map_update __pyx_string_tab[455]
#define __pyx_n_u_Map_values __pyx_string_tab[456]
#define __pyx_n_u_NAME_ID __pyx_string_tab[457]
#define __pyx_n_u_NAME_LANG_ID __pyx_string_tab[458]
#define __pyx_n_u_NAME_LEGACY __pyx_string_tab[459]
#define __pyx_n_u_NOTDEF_OUTLINE __pyx_string_tab[460]
#define __pyx_n_u_NO_ADVANCES __pyx_string_tab[461]
#define __pyx_n_u_NO_CLUSTERS __pyx_string_tab[462]
#define __pyx_n_u_NO_GLYPH_NAMES __pyx_string_tab[463]
#define __pyx_n_u_NO_HINTING __pyx_string_tab[464]
#define __pyx_n_u_NO_LAYOUT_CLOSURE __pyx_string_tab[465]
#define __pyx_n_u_NO_POSITIONS __pyx_string_tab[466]
#define __pyx_n_u_NO_PRUNE_UNICODE_RANGES __pyx_string_tab[467]
#define __pyx_n_u_NO_SUBSET_TABLE_TAG __pyx_string_tab[468]
#define __pyx_n_u_NamedTuple __pyx_string_tab[469]
#define __pyx_n_u_NotImplemented __pyx_string_tab[470]
#define __pyx_n_u_OPTICAL_SIZE __pyx_string_tab[471]
#define __pyx_n_u_OTColor __pyx_string_tab[472]
#define __pyx_n_u_OTColorLayer __pyx_string_tab[473]
#define __pyx_n_u_OTColorPalette __pyx_string_tab[474]
#define __pyx_n_u_OTColorPaletteFlags __pyx_string_tab[475]
#define __pyx_n_u_OTLayoutGlyphClass __pyx_string_tab[476]
#define __pyx_n_u_OTMathConstant __pyx_string_tab[477]
#define __pyx_n_u_OTMathGlyphPart __pyx_string_tab[478]
#define __pyx_n_u_OTMathGlyphPartFlags __pyx_string_tab[479]
#define __pyx_n_u_OTMathGlyphVariant __pyx_string_tab[480]
#define __pyx_n_u_OTMathKern __pyx_string_tab[481]
#define __pyx_n_u_OTMathKernEntry __pyx_string_tab[482]
#define __pyx_n_u_OTMetricsTag __pyx_string_tab[483]
#define __pyx_n_u_OTNameEntry __pyx_string_tab[484]
#define __pyx_n_u_OTNameIdPredefined __pyx_string_tab[485]
#define __pyx_n_u_OTVarAxisFlags __pyx_string_tab[486]
#define __pyx_n_u_OTVarAxisInfo __pyx_string_tab[487]
#define __pyx_n_u_OTVarNamedInstance __pyx_string_tab[488]
#define __pyx_n_u_OVERBAR_EXTRA_ASCENDER __pyx_string_tab[489]
#define __pyx_n_u_OVERBAR_RULE_THICKNESS __pyx_string_tab[490]
#define __pyx_n_u_OVERBAR_VERTICAL_GAP __pyx_string_tab[491]
#define __pyx_n_u_OVERLAY __pyx_string_tab[492]
#define __pyx_n_u_PAD __pyx_string_tab[493]
#define __pyx_n_u_PASSTHROUGH_UNRECOGNIZED __pyx_string_tab[494]
#define __pyx_n_u_PLUS __pyx_string_tab[495]
#define __pyx_n_u_POSTSCRIPT_NAME __pyx_string_tab[496]
#define __pyx_n_u_PRESERVE_DEFAULT_IGNORABLES __pyx_string_tab[497]
#define __pyx_n_u_PRODUCE_SAFE_TO_INSERT_TATWEEL __pyx_string_tab[498]
#define __pyx_n_u_PRODUCE_UNSAFE_TO_CONCAT __pyx_string_tab[499]
#define __pyx_n_u_PaintCompositeMode __pyx_string_tab[500]
#define __pyx_n_u_PaintExtend __pyx_string_tab[501]
#define __pyx_n_u_PaintFuncs __pyx_string_tab[502]
#define __pyx_n_u_PaintFuncs___reduce_cython __pyx_string_tab[503]
#define __pyx_n_u_PaintFuncs___setstate_cython __pyx_string_tab[504]
#define __pyx_n_u_PaintFuncs_set_color_func __pyx_string_tab[505]
#define __pyx_n_u_PaintFuncs_set_color_glyph_func __pyx_string_tab[506]
#define __pyx_n_u_PaintFuncs_set_custom_palette_co __pyx_string_tab[507]
#define __pyx_n_u_PaintFuncs_set_image_func __pyx_string_tab[508]
#define __pyx_n_u_PaintFuncs_set_linear_gradient_f __pyx_string_tab[509]
#define __pyx_n_u_PaintFuncs_set_pop_clip_func __pyx_string_tab[510]
#define __pyx_n_u_PaintFuncs_set_pop_group_func __pyx_string_tab[511]
#define __pyx_n_u_PaintFuncs_set_pop_transform_fun __pyx_string_tab[512]
#define __pyx_n_u_PaintFuncs_set_push_clip_glyph_f __pyx_string_tab[513]
#define __pyx_n_u_PaintFuncs_set_push_clip_rectang __pyx_string_tab[514]
#define __pyx_n_u_PaintFuncs_set_push_group_func __pyx_string_tab[515]
#define __pyx_n_u_PaintFuncs_set_push_transform_fu __pyx_string_tab[516]
#define __pyx_n_u_PaintFuncs_set_radial_gradient_f __pyx_string_tab[517]
#define __pyx_n_u_PaintFuncs_set_sweep_gradient_fu __pyx_string_tab[518]
#define __pyx_n_u_Path __pyx_string_tab[519]
#define __pyx_n_u_Pyx_PyDict_NextRef __pyx_string_tab[520]
#define __pyx_n_u_RADICAL_DEGREE_BOTTOM_RAISE_PERC __pyx_string_tab[521]
#define __pyx_n_u_RADICAL_DISPLAY_STYLE_VERTICAL_G __pyx_string_tab[522]
#define __pyx_n_u_RADICAL_EXTRA_ASCENDER __pyx_string_tab[523]
#define __pyx_n_u_RADICAL_KERN_AFTER_DEGREE __pyx_string_tab[524]
#define __pyx_n_u_RADICAL_KERN_BEFORE_DEGREE __pyx_string_tab[525]
#define __pyx_n_u_RADICAL_RULE_THICKNESS __pyx_string_tab[526]
#define __pyx_n_u_RADICAL_VERTICAL_GAP __pyx_string_tab[527]
#define __pyx_n_u_REFLECT __pyx_string_tab[528]
#define __pyx_n_u_REMOVE_DEFAULT_IGNORABLES __pyx_string_tab[529]
#define __pyx_n_u_REPEAT __pyx_string_tab[530]
#define __pyx_n_u_RETAIN_GIDS __pyx_string_tab[531]
#define __pyx_n_u_RasterDraw __pyx_string_tab[532]
#define __pyx_n_u_RasterDraw___reduce_cython __pyx_string_tab[533]
#define __pyx_n_u_RasterDraw___setstate_cython __pyx_string_tab[534]
#define __pyx_n_u_RasterDraw_clear __pyx_string_tab[535]
#define __pyx_n_u_RasterDraw_draw_glyph __pyx_string_tab[536]
#define __pyx_n_u_RasterDraw_draw_glyph_or_fail __pyx_string_tab[537]
#define __pyx_n_u_RasterDraw_render __pyx_string_tab[538]
#define __pyx_n_u_RasterDraw_reset __pyx_string_tab[539]
#define __pyx_n_u_RasterDraw_set_glyph_extents __pyx_string_tab[540]
#define __pyx_n_u_RasterExtents __pyx_string_tab[541]
#define __pyx_n_u_RasterFormat __pyx_string_tab[542]
#define __pyx_n_u_RasterImage __pyx_string_tab[543]
#define __pyx_n_u_RasterImage___reduce_cython __pyx_string_tab[544]
#define __pyx_n_u_RasterImage___setstate_cython __pyx_string_tab[545]
#define __pyx_n_u_RasterImage_clear __pyx_string_tab[546]
#define __pyx_n_u_RasterImage_configure __pyx_string_tab[547]
#define __pyx_n_u_RasterPaint __pyx_string_tab[548]
#define __pyx_n_u_RasterPaint___reduce_cython __pyx_string_tab[549]
#define __pyx_n_u_RasterPaint___setstate_cython __pyx_string_tab[550]
#define __pyx_n_u_RasterPaint_clear __pyx_string_tab[551]
#define __pyx_n_u_RasterPaint_clear_custom_palette __pyx_string_tab[552]
#define __pyx_n_u_RasterPaint_paint_glyph __pyx_string_tab[553]
#define __pyx_n_u_RasterPaint_paint_glyph_or_fail __pyx_string_tab[554]
#define __pyx_n_u_RasterPaint_render __pyx_string_tab[555]
#define __pyx_n_u_RasterPaint_reset __pyx_string_tab[556]
#define __pyx_n_u_RasterPaint_set_custom_palette_c __pyx_string_tab[557]
#define __pyx_n_u_RasterPaint_set_glyph_extents __pyx_string_tab[558]
#define __pyx_n_u_RepackerError __pyx_string_tab[559]
#define __pyx_n_u_SAFE_TO_INSERT_TATWEEL __pyx_string_tab[560]
#define __pyx_n_u_SAMPLE_TEXT __pyx_string_tab[561]
#define __pyx_n_u_SCREEN __pyx_string_tab[562]
#define __pyx_n_u_SCRIPT_PERCENT_SCALE_DOWN __pyx_string_tab[563]
#define __pyx_n_u_SCRIPT_SCRIPT_PERCENT_SCALE_DOWN __pyx_string_tab[564]
#define __pyx_n_u_SET_OVERLAPS_FLAG __pyx_string_tab[565]
#define __pyx_n_u_SKEWED_FRACTION_HORIZONTAL_GAP __pyx_string_tab[566]
#define __pyx_n_u_SKEWED_FRACTION_VERTICAL_GAP __pyx_string_tab[567]
#define __pyx_n_u_SLANT_ANGLE __pyx_string_tab[568]
#define __pyx_n_u_SLANT_RATIO __pyx_string_tab[569]
#define __pyx_n_u_SOFT_LIGHT __pyx_string_tab[570]
#define __pyx_n_u_SPACE_AFTER_SCRIPT __pyx_string_tab[571]
#define __pyx_n_u_SRC __pyx_string_tab[572]
#define __pyx_n_u_SRC_ATOP __pyx_string_tab[573]
#define __pyx_n_u_SRC_IN __pyx_string_tab[574]
#define __pyx_n_u_SRC_OUT __pyx_string_tab[575]
#define __pyx_n_u_SRC_OVER __pyx_string_tab[576]
#define __pyx_n_u_STACK_BOTTOM_DISPLAY_STYLE_SHIFT __pyx_string_tab[577]
#define __pyx_n_u_STACK_BOTTOM_SHIFT_DOWN __pyx_string_tab[578]
#define __pyx_n_u_STACK_DISPLAY_STYLE_GAP_MIN __pyx_string_tab[579]
#define __pyx_n_u_STACK_GAP_MIN __pyx_string_tab[580]
#define __pyx_n_u_STACK_TOP_DISPLAY_STYLE_SHIFT_UP __pyx_string_tab[581]
#define __pyx_n_u_STACK_TOP_SHIFT_UP __pyx_string_tab[582]
#define __pyx_n_u_STRETCH_STACK_BOTTOM_SHIFT_DOWN __pyx_string_tab[583]
#define __pyx_n_u_STRETCH_STACK_GAP_ABOVE_MIN __pyx_string_tab[584]
#define __pyx_n_u_STRETCH_STACK_GAP_BELOW_MIN __pyx_string_tab[585]
#define __pyx_n_u_STRETCH_STACK_TOP_SHIFT_UP __pyx_string_tab[586]
#define __pyx_n_u_STRIKEOUT_OFFSET __pyx_string_tab[587]
#define __pyx_n_u_STRIKEOUT_SIZE __pyx_string_tab[588]
#define __pyx_n_u_SUBSCRIPT_BASELINE_DROP_MIN __pyx_string_tab[589]
#define __pyx_n_u_SUBSCRIPT_EM_X_OFFSET __pyx_string_tab[590]
#define __pyx_n_u_SUBSCRIPT_EM_X_SIZE __pyx_string_tab[591]
#define __pyx_n_u_SUBSCRIPT_EM_Y_OFFSET __pyx_string_tab[592]
#define __pyx_n_u_SUBSCRIPT_EM_Y_SIZE __pyx_string_tab[593]
#define __pyx_n_u_SUBSCRIPT_SHIFT_DOWN __pyx_string_tab[594]
#define __pyx_n_u_SUBSCRIPT_TOP_MAX __pyx_string_tab[595]
#define __pyx_n_u_SUB_SUPERSCRIPT_GAP_MIN __pyx_string_tab[596]
#define __pyx_n_u_SUPERSCRIPT_BASELINE_DROP_MAX __pyx_string_tab[597]
#define __pyx_n_u_SUPERSCRIPT_BOTTOM_MAX_WITH_SUBS __pyx_string_tab[598]
#define __pyx_n_u_SUPERSCRIPT_BOTTOM_MIN __pyx_string_tab[599]
#define __pyx_n_u_SUPERSCRIPT_EM_X_OFFSET __pyx_string_tab[600]
#define __pyx_n_u_SUPERSCRIPT_EM_X_SIZE __pyx_string_tab[601]
#define __pyx_n_u_SUPERSCRIPT_EM_Y_OFFSET __pyx_string_tab[602]
#define __pyx_n_u_SUPERSCRIPT_EM_Y_SIZE __pyx_string_tab[603]
#define __pyx_n_u_SUPERSCRIPT_SHIFT_UP __pyx_string_tab[604]
#define __pyx_n_u_SUPERSCRIPT_SHIFT_UP_CRAMPED __pyx_string_tab[605]
#define __pyx_n_u_Sequence __pyx_string_tab[606]
#define __pyx_n_u_SerializerError __pyx_string_tab[607]
#define __pyx_n_u_SetIter __pyx_string_tab[608]
#define __pyx_n_u_SetIter___reduce_cython __pyx_string_tab[609]
#define __pyx_n_u_SetIter___setstate_cython __pyx_string_tab[610]
#define __pyx_n_u_Set_2 __pyx_string_tab[611]
#define __pyx_n_u_Set___copy __pyx_string_tab[612]
#define __pyx_n_u_Set___reduce_cython __pyx_string_tab[613]
#define __pyx_n_u_Set___setstate_cython __pyx_string_tab[614]
#define __pyx_n_u_Set__is_equal __pyx_string_tab[615]
#define __pyx_n_u_Set__set __pyx_string_tab[616]
#define __pyx_n_u_Set__update __pyx_string_tab[617]
#define __pyx_n_u_Set_add __pyx_string_tab[618]
#define __pyx_n_u_Set_add_range __pyx_string_tab[619]
#define __pyx_n_u_Set_clear __pyx_string_tab[620]
#define __pyx_n_u_Set_copy __pyx_string_tab[621]
#define __pyx_n_u_Set_del_range __pyx_string_tab[622]
#define __pyx_n_u_Set_difference_update __pyx_string_tab[623]
#define __pyx_n_u_Set_discard __pyx_string_tab[624]
#define __pyx_n_u_Set_intersection_update __pyx_string_tab[625]
#define __pyx_n_u_Set_invert __pyx_string_tab[626]
#define __pyx_n_u_Set_is_inverted __pyx_string_tab[627]
#define __pyx_n_u_Set_issubset __pyx_string_tab[628]
#define __pyx_n_u_Set_issuperset __pyx_string_tab[629]
#define __pyx_n_u_Set_remove __pyx_string_tab[630]
#define __pyx_n_u_Set_set __pyx_string_tab[631]
#define __pyx_n_u_Set_symmetric_difference_update __pyx_string_tab[632]
#define __pyx_n_u_Set_update __pyx_string_tab[633]
#define __pyx_n_u_StyleTag __pyx_string_tab[634]
#define __pyx_n_u_SubsetFlags __pyx_string_tab[635]
#define __pyx_n_u_SubsetInput __pyx_string_tab[636]
#define __pyx_n_u_SubsetInputSets __pyx_string_tab[637]
#define __pyx_n_u_SubsetInput___reduce_cython __pyx_string_tab[638]
#define __pyx_n_u_SubsetInput___setstate_cython __pyx_string_tab[639]
#define __pyx_n_u_SubsetInput_get_axis_range __pyx_string_tab[640]
#define __pyx_n_u_SubsetInput_keep_everything __pyx_string_tab[641]
#define __pyx_n_u_SubsetInput_pin_all_axes_to_defa __pyx_string_tab[642]
#define __pyx_n_u_SubsetInput_pin_axis_location __pyx_string_tab[643]
#define __pyx_n_u_SubsetInput_pin_axis_to_default __pyx_string_tab[644]
#define __pyx_n_u_SubsetInput_set_axis_range __pyx_string_tab[645]
#define __pyx_n_u_SubsetInput_sets __pyx_string_tab[646]
#define __pyx_n_u_SubsetInput_subset __pyx_string_tab[647]
#define __pyx_n_u_SubsetPlan __pyx_string_tab[648]
#define __pyx_n_u_SubsetPlan___reduce_cython __pyx_string_tab[649]
#define __pyx_n_u_SubsetPlan___setstate_cython __pyx_string_tab[650]
#define __pyx_n_u_SubsetPlan_execute __pyx_string_tab[651]
#define __pyx_n_u_TEXT __pyx_string_tab[652]
#define __pyx_n_u_TOP_LEFT __pyx_string_tab[653]
#define __pyx_n_u_TOP_RIGHT __pyx_string_tab[654]
#define __pyx_n_u_TRADEMARK __pyx_string_tab[655]
#define __pyx_n_u_TYPOGRAPHIC_FAMILY __pyx_string_tab[656]
#define __pyx_n_u_TYPOGRAPHIC_SUBFAMILY __pyx_string_tab[657]
#define __pyx_n_u_Tuple __pyx_string_tab[658]
#define __pyx_n_u_UNCLASSIFIED __pyx_string_tab[659]
#define __pyx_n_u_UNDERBAR_EXTRA_DESCENDER __pyx_string_tab[660]
#define __pyx_n_u_UNDERBAR_RULE_THICKNESS __pyx_string_tab[661]
#define __pyx_n_u_UNDERBAR_VERTICAL_GAP __pyx_string_tab[662]
#define __pyx_n_u_UNDERLINE_OFFSET __pyx_string_tab[663]
#define __pyx_n_u_UNDERLINE_SIZE __pyx_string_tab[664]
#define __pyx_n_u_UNICODE __pyx_string_tab[665]
#define __pyx_n_u_UNIQUE_ID __pyx_string_tab[666]
#define __pyx_n_u_UNSAFE_TO_BREAK __pyx_string_tab[667]
#define __pyx_n_u_UNSAFE_TO_CONCAT __pyx_string_tab[668]
#define __pyx_n_u_UPPER_LIMIT_BASELINE_RISE_MIN __pyx_string_tab[669]
#define __pyx_n_u_UPPER_LIMIT_GAP_MIN __pyx_string_tab[670]
#define __pyx_n_u_USABLE_WITH_DARK_BACKGROUND __pyx_string_tab[671]
#define __pyx_n_u_USABLE_WITH_LIGHT_BACKGROUND __pyx_string_tab[672]
#define __pyx_n_u_Union __pyx_string_tab[673]
#define __pyx_n_u_VARIATIONS_PS_PREFIX __pyx_string_tab[674]
#define __pyx_n_u_VENDOR_URL __pyx_string_tab[675]
#define __pyx_n_u_VERIFY __pyx_string_tab[676]
#define __pyx_n_u_VERSION_STRING __pyx_string_tab[677]
#define __pyx_n_u_VERTICAL_ASCENDER __pyx_string_tab[678]
#define __pyx_n_u_VERTICAL_CARET_OFFSET __pyx_string_tab[679]
#define __pyx_n_u_VERTICAL_CARET_RISE __pyx_string_tab[680]
#define __pyx_n_u_VERTICAL_CARET_RUN __pyx_string_tab[681]
#define __pyx_n_u_VERTICAL_DESCENDER __pyx_string_tab[682]
#define __pyx_n_u_VERTICAL_LINE_GAP __pyx_string_tab[683]
#define __pyx_n_u_WARNED __pyx_string_tab[684]
#define __pyx_n_u_WEIGHT __pyx_string_tab[685]
#define __pyx_n_u_WIDTH __pyx_string_tab[686]
#define __pyx_n_u_WWS_FAMILY __pyx_string_tab[687]
#define __pyx_n_u_WWS_SUBFAMILY __pyx_string_tab[688]
#define __pyx_n_u_XOR __pyx_string_tab[689]
#define __pyx_n_u_X_HEIGHT __pyx_string_tab[690]
#define __pyx_n_u_a __pyx_string_tab[691]
#define __pyx_n_u_add __pyx_string_tab[692]
#define __pyx_n_u_add_codepoints __pyx_string_tab[693]
#define __pyx_n_u_add_range __pyx_string_tab[694]
#define __pyx_n_u_add_str __pyx_string_tab[695]
#define __pyx_n_u_add_utf8 __pyx_string_tab[696]
#define __pyx_n_u_advance __pyx_string_tab[697]
#define __pyx_n_u_alpha __pyx_string_tab[698]
#define __pyx_n_u_alternate_count __pyx_string_tab[699]
#define __pyx_n_u_alternates __pyx_string_tab[700]
#define __pyx_n_u_annotations __pyx_string_tab[701]
#define __pyx_n_u_args __pyx_string_tab[702]
#define __pyx_n_u_ascender __pyx_string_tab[703]
#define __pyx_n_u_assembly __pyx_string_tab[704]
#define __pyx_n_u_assembly_array __pyx_string_tab[705]
#define __pyx_n_u_asyncio_coroutines __pyx_string_tab[706]
#define __pyx_n_u_axis_def_value __pyx_string_tab[707]
#define __pyx_n_u_axis_index __pyx_string_tab[708]
#define __pyx_n_u_axis_max_value __pyx_string_tab[709]
#define __pyx_n_u_axis_min_value __pyx_string_tab[710]
#define __pyx_n_u_b __pyx_string_tab[711]
#define __pyx_n_u_baseline_tag __pyx_string_tab[712]
#define __pyx_n_u_blob __pyx_string_tab[713]
#define __pyx_n_u_blob_data __pyx_string_tab[714]
#define __pyx_n_u_blob_length __pyx_string_tab[715]
#define __pyx_n_u_blue __pyx_string_tab[716]
#define __pyx_n_u_bool __pyx_string_tab[717]
#define __pyx_n_u_buffer __pyx_string_tab[718]
#define __pyx_n_u_bytes __pyx_string_tab[719]
#define __pyx_n_u_c __pyx_string_tab[720]
#define __pyx_n_u_c_alternates __pyx_string_tab[721]
#define __pyx_n_u_c_colors __pyx_string_tab[722]
#define __pyx_n_u_c_coords __pyx_string_tab[723]
#define __pyx_n_u_c_extents __pyx_string_tab[724]
#define __pyx_n_u_c_extents_ptr __pyx_string_tab[725]
#define __pyx_n_u_c_foreground __pyx_string_tab[726]
#define __pyx_n_u_c_shapers __pyx_string_tab[727]
#define __pyx_n_u_c_tags __pyx_string_tab[728]
#define __pyx_n_u_callback __pyx_string_tab[729]
#define __pyx_n_u_clear __pyx_string_tab[730]
#define __pyx_n_u_clear_contents __pyx_string_tab[731]
#define __pyx_n_u_clear_custom_palette_colors __pyx_string_tab[732]
#define __pyx_n_u_cline_in_traceback __pyx_string_tab[733]
#define __pyx_n_u_close __pyx_string_tab[734]
#define __pyx_n_u_closePath __pyx_string_tab[735]
#define __pyx_n_u_cls __pyx_string_tab[736]
#define __pyx_n_u_codepoints __pyx_string_tab[737]
#define __pyx_n_u_color __pyx_string_tab[738]
#define __pyx_n_u_color_count __pyx_string_tab[739]
#define __pyx_n_u_color_index __pyx_string_tab[740]
#define __pyx_n_u_color_palette_color_get_name_id __pyx_string_tab[741]
#define __pyx_n_u_colors __pyx_string_tab[742]
#define __pyx_n_u_configure __pyx_string_tab[743]
#define __pyx_n_u_constant __pyx_string_tab[744]
#define __pyx_n_u_consumed __pyx_string_tab[745]
#define __pyx_n_u_coords __pyx_string_tab[746]
#define __pyx_n_u_coords_2dot14 __pyx_string_tab[747]
#define __pyx_n_u_copy __pyx_string_tab[748]
#define __pyx_n_u_copy_2 __pyx_string_tab[749]
#define __pyx_n_u_correction_height __pyx_string_tab[750]
#define __pyx_n_u_count __pyx_string_tab[751]
#define __pyx_n_u_create __pyx_string_tab[752]
#define __pyx_n_u_create_for_tables __pyx_string_tab[753]
#define __pyx_n_u_cstr __pyx_string_tab[754]
#define __pyx_n_u_curveTo __pyx_string_tab[755]
#define __pyx_n_u_data __pyx_string_tab[756]
#define __pyx_n_u_decorator __pyx_string_tab[757]
#define __pyx_n_u_def_value __pyx_string_tab[758]
#define __pyx_n_u_default_value __pyx_string_tab[759]
#define __pyx_n_u_del_range __pyx_string_tab[760]
#define __pyx_n_u_deprecated_2 __pyx_string_tab[761]
#define __pyx_n_u_deprecated_locals_decorator __pyx_string_tab[762]
#define __pyx_n_u_deprecated_locals_decorator_loca __pyx_string_tab[763]
#define __pyx_n_u_descender __pyx_string_tab[764]
#define __pyx_n_u_design_coords __pyx_string_tab[765]
#define __pyx_n_u_dict __pyx_string_tab[766]
#define __pyx_n_u_difference_update __pyx_string_tab[767]
#define __pyx_n_u_direction __pyx_string_tab[768]
#define __pyx_n_u_discard __pyx_string_tab[769]
#define __pyx_n_u_doc __pyx_string_tab[770]
#define __pyx_n_u_draw_data __pyx_string_tab[771]
#define __pyx_n_u_draw_funcs __pyx_string_tab[772]
#define __pyx_n_u_draw_glyph __pyx_string_tab[773]
#define __pyx_n_u_draw_glyph_or_fail __pyx_string_tab[774]
#define __pyx_n_u_draw_glyph_with_pen __pyx_string_tab[775]
#define __pyx_n_u_draw_state __pyx_string_tab[776]
#define __pyx_n_u_draw_state_p __pyx_string_tab[777]
#define __pyx_n_u_encode __pyx_string_tab[778]
#define __pyx_n_u_end __pyx_string_tab[779]
#define __pyx_n_u_end_connector_length __pyx_string_tab[780]
#define __pyx_n_u_entries __pyx_string_tab[781]
#define __pyx_n_u_enum __pyx_string_tab[782]
#define __pyx_n_u_enumerate __pyx_string_tab[783]
#define __pyx_n_u_execute __pyx_string_tab[784]
#define __pyx_n_u_existing __pyx_string_tab[785]
#define __pyx_n_u_extents __pyx_string_tab[786]
#define __pyx_n_u_face __pyx_string_tab[787]
#define __pyx_n_u_face_or_font __pyx_string_tab[788]
#define __pyx_n_u_feat __pyx_string_tab[789]
#define __pyx_n_u_feature_count __pyx_string_tab[790]
#define __pyx_n_u_features __pyx_string_tab[791]
#define __pyx_n_u_filename __pyx_string_tab[792]
#define __pyx_n_u_first __pyx_string_tab[793]
#define __pyx_n_u_flags __pyx_string_tab[794]
#define __pyx_n_u_float __pyx_string_tab[795]
#define __pyx_n_u_font __pyx_string_tab[796]
#define __pyx_n_u_foreground __pyx_string_tab[797]
#define __pyx_n_u_format __pyx_string_tab[798]
#define __pyx_n_u_from_file_path __pyx_string_tab[799]
#define __pyx_n_u_from_int __pyx_string_tab[800]
#define __pyx_n_u_fsencode __pyx_string_tab[801]
#define __pyx_n_u_full_advance __pyx_string_tab[802]
#define __pyx_n_u_func __pyx_string_tab[803]
#define __pyx_n_u_func_2 __pyx_string_tab[804]
#define __pyx_n_u_func_p __pyx_string_tab[805]
#define __pyx_n_u_funcs __pyx_string_tab[806]
#define __pyx_n_u_functools __pyx_string_tab[807]
#define __pyx_n_u_g __pyx_string_tab[808]
#define __pyx_n_u_genexpr __pyx_string_tab[809]
#define __pyx_n_u_get __pyx_string_tab[810]
#define __pyx_n_u_get_axis_range __pyx_string_tab[811]
#define __pyx_n_u_get_color_palette __pyx_string_tab[812]
#define __pyx_n_u_get_font_extents __pyx_string_tab[813]
#define __pyx_n_u_get_glyph_color_layers __pyx_string_tab[814]
#define __pyx_n_u_get_glyph_color_png __pyx_string_tab[815]
#define __pyx_n_u_get_glyph_color_svg __pyx_string_tab[816]
#define __pyx_n_u_get_glyph_extents __pyx_string_tab[817]
#define __pyx_n_u_get_glyph_from_name __pyx_string_tab[818]
#define __pyx_n_u_get_glyph_h_advance __pyx_string_tab[819]
#define __pyx_n_u_get_glyph_h_origin __pyx_string_tab[820]
#define __pyx_n_u_get_glyph_name __pyx_string_tab[821]
#define __pyx_n_u_get_glyph_shape __pyx_string_tab[822]
#define __pyx_n_u_get_glyph_v_advance __pyx_string_tab[823]
#define __pyx_n_u_get_glyph_v_origin __pyx_string_tab[824]
#define __pyx_n_u_get_language_feature_tags __pyx_string_tab[825]
#define __pyx_n_u_get_layout_baseline __pyx_string_tab[826]
#define __pyx_n_u_get_layout_glyph_class __pyx_string_tab[827]
#define __pyx_n_u_get_lookup_glyph_alternates __pyx_string_tab[828]
#define __pyx_n_u_get_math_constant __pyx_string_tab[829]
#define __pyx_n_u_get_math_glyph_assembly __pyx_string_tab[830]
#define __pyx_n_u_get_math_glyph_italics_correctio __pyx_string_tab[831]
#define __pyx_n_u_get_math_glyph_kerning __pyx_string_tab[832]
#define __pyx_n_u_get_math_glyph_kernings __pyx_string_tab[833]
#define __pyx_n_u_get_math_glyph_top_accent_attach __pyx_string_tab[834]
#define __pyx_n_u_get_math_glyph_variants __pyx_string_tab[835]
#define __pyx_n_u_get_math_min_connector_overlap __pyx_string_tab[836]
#define __pyx_n_u_get_metric_position __pyx_string_tab[837]
#define __pyx_n_u_get_metric_position_with_fallbac __pyx_string_tab[838]
#define __pyx_n_u_get_metric_variation __pyx_string_tab[839]
#define __pyx_n_u_get_metric_x_variation __pyx_string_tab[840]
#define __pyx_n_u_get_metric_y_variation __pyx_string_tab[841]
#define __pyx_n_u_get_name __pyx_string_tab[842]
#define __pyx_n_u_get_nominal_glyph __pyx_string_tab[843]
#define __pyx_n_u_get_script_language_tags __pyx_string_tab[844]
#define __pyx_n_u_get_style_value __pyx_string_tab[845]
#define __pyx_n_u_get_table_script_tags __pyx_string_tab[846]
#define __pyx_n_u_get_var_coords_design __pyx_string_tab[847]
#define __pyx_n_u_get_var_coords_normalized __pyx_string_tab[848]
#define __pyx_n_u_get_variation_glyph __pyx_string_tab[849]
#define __pyx_n_u_getstate __pyx_string_tab[850]
#define __pyx_n_u_gid __pyx_string_tab[851]
#define __pyx_n_u_glyph __pyx_string_tab[852]
#define __pyx_n_u_glyph_from_string __pyx_string_tab[853]
#define __pyx_n_u_glyph_has_color_paint __pyx_string_tab[854]
#define __pyx_n_u_glyph_to_string __pyx_string_tab[855]
#define __pyx_n_u_graphnodes __pyx_string_tab[856]
#define __pyx_n_u_green __pyx_string_tab[857]
#define __pyx_n_u_guess_segment_properties __pyx_string_tab[858]
#define __pyx_n_u_hang __pyx_string_tab[859]
#define __pyx_n_u_has_color_layers __pyx_string_tab[860]
#define __pyx_n_u_has_color_paint __pyx_string_tab[861]
#define __pyx_n_u_has_color_palettes __pyx_string_tab[862]
#define __pyx_n_u_has_color_png __pyx_string_tab[863]
#define __pyx_n_u_has_color_svg __pyx_string_tab[864]
#define __pyx_n_u_has_layout_glyph_classes __pyx_string_tab[865]
#define __pyx_n_u_has_layout_positioning __pyx_string_tab[866]
#define __pyx_n_u_has_layout_substitution __pyx_string_tab[867]
#define __pyx_n_u_has_math_data __pyx_string_tab[868]
#define __pyx_n_u_hb_baseline_tag __pyx_string_tab[869]
#define __pyx_n_u_hb_codepoint_t __pyx_string_tab[870]
#define __pyx_n_u_hb_codepoints __pyx_string_tab[871]
#define __pyx_n_u_hb_direction __pyx_string_tab[872]
#define __pyx_n_u_hb_features __pyx_string_tab[873]
#define __pyx_n_u_hb_language __pyx_string_tab[874]
#define __pyx_n_u_hb_language_tag __pyx_string_tab[875]
#define __pyx_n_u_hb_position __pyx_string_tab[876]
#define __pyx_n_u_hb_script __pyx_string_tab[877]
#define __pyx_n_u_hb_script_tag __pyx_string_tab[878]
#define __pyx_n_u_hb_tag __pyx_string_tab[879]
#define __pyx_n_u_hb_variations __pyx_string_tab[880]
#define __pyx_n_u_head __pyx_string_tab[881]
#define __pyx_n_u_height __pyx_string_tab[882]
#define __pyx_n_u_i __pyx_string_tab[883]
#define __pyx_n_u_icfb __pyx_string_tab[884]
#define __pyx_n_u_icft __pyx_string_tab[885]
#define __pyx_n_u_ideo __pyx_string_tab[886]
#define __pyx_n_u_idtp __pyx_string_tab[887]
#define __pyx_n_u_img __pyx_string_tab[888]
#define __pyx_n_u_index __pyx_string_tab[889]
#define __pyx_n_u_init __pyx_string_tab[890]
#define __pyx_n_u_input __pyx_string_tab[891]
#define __pyx_n_u_inst __pyx_string_tab[892]
#define __pyx_n_u_int __pyx_string_tab[893]
#define __pyx_n_u_intersection_update __pyx_string_tab[894]
#define __pyx_n_u_invert __pyx_string_tab[895]
#define __pyx_n_u_is_coroutine __pyx_string_tab[896]
#define __pyx_n_u_is_equal __pyx_string_tab[897]
#define __pyx_n_u_is_foreground __pyx_string_tab[898]
#define __pyx_n_u_is_glyph_extended_math_shape __pyx_string_tab[899]
#define __pyx_n_u_is_inverted __pyx_string_tab[900]
#define __pyx_n_u_issubset __pyx_string_tab[901]
#define __pyx_n_u_issuperset __pyx_string_tab[902]
#define __pyx_n_u_italics_correction __pyx_string_tab[903]
#define __pyx_n_u_item_length __pyx_string_tab[904]
#define __pyx_n_u_item_offset __pyx_string_tab[905]
#define __pyx_n_u_items __pyx_string_tab[906]
#define __pyx_n_u_join __pyx_string_tab[907]
#define __pyx_n_u_k __pyx_string_tab[908]
#define __pyx_n_u_keep_everything __pyx_string_tab[909]
#define __pyx_n_u_kern __pyx_string_tab[910]
#define __pyx_n_u_kern_value __pyx_string_tab[911]
#define __pyx_n_u_kerns __pyx_string_tab[912]
#define __pyx_n_u_kerns_array __pyx_string_tab[913]
#define __pyx_n_u_keys __pyx_string_tab[914]
#define __pyx_n_u_keys_locals_genexpr __pyx_string_tab[915]
#define __pyx_n_u_kwargs __pyx_string_tab[916]
#define __pyx_n_u_lang __pyx_string_tab[917]
#define __pyx_n_u_language __pyx_string_tab[918]
#define __pyx_n_u_language_count __pyx_string_tab[919]
#define __pyx_n_u_language_index __pyx_string_tab[920]
#define __pyx_n_u_language_tag __pyx_string_tab[921]
#define __pyx_n_u_larger_set __pyx_string_tab[922]
#define __pyx_n_u_last __pyx_string_tab[923]
#define __pyx_n_u_layer_count __pyx_string_tab[924]
#define __pyx_n_u_layers __pyx_string_tab[925]
#define __pyx_n_u_length __pyx_string_tab[926]
#define __pyx_n_u_lineTo __pyx_string_tab[927]
#define __pyx_n_u_line_gap __pyx_string_tab[928]
#define __pyx_n_u_list_names __pyx_string_tab[929]
#define __pyx_n_u_lookup_index __pyx_string_tab[930]
#define __pyx_n_u_m __pyx_string_tab[931]
#define __pyx_n_u_main __pyx_string_tab[932]
#define __pyx_n_u_math __pyx_string_tab[933]
#define __pyx_n_u_max_correction_height __pyx_string_tab[934]
#define __pyx_n_u_max_value __pyx_string_tab[935]
#define __pyx_n_u_message __pyx_string_tab[936]
#define __pyx_n_u_metaclass __pyx_string_tab[937]
#define __pyx_n_u_methods __pyx_string_tab[938]
#define __pyx_n_u_min_value __pyx_string_tab[939]
#define __pyx_n_u_module __pyx_string_tab[940]
#define __pyx_n_u_moveTo __pyx_string_tab[941]
#define __pyx_n_u_mro_entries __pyx_string_tab[942]
#define __pyx_n_u_name __pyx_string_tab[943]
#define __pyx_n_u_name_2 __pyx_string_tab[944]
#define __pyx_n_u_name_id __pyx_string_tab[945]
#define __pyx_n_u_new_face __pyx_string_tab[946]
#define __pyx_n_u_next __pyx_string_tab[947]
#define __pyx_n_u_node __pyx_string_tab[948]
#define __pyx_n_u_notice __pyx_string_tab[949]
#define __pyx_n_u_num_entries __pyx_string_tab[950]
#define __pyx_n_u_num_glyphs __pyx_string_tab[951]
#define __pyx_n_u_num_nodes __pyx_string_tab[952]
#define __pyx_n_u_obj_list __pyx_string_tab[953]
#define __pyx_n_u_object __pyx_string_tab[954]
#define __pyx_n_u_offset __pyx_string_tab[955]
#define __pyx_n_u_os __pyx_string_tab[956]
#define __pyx_n_u_ot_color_glyph_get_layers __pyx_string_tab[957]
#define __pyx_n_u_ot_color_glyph_get_png __pyx_string_tab[958]
#define __pyx_n_u_ot_color_glyph_get_svg __pyx_string_tab[959]
#define __pyx_n_u_ot_color_glyph_has_paint __pyx_string_tab[960]
#define __pyx_n_u_ot_color_has_layers __pyx_string_tab[961]
#define __pyx_n_u_ot_color_has_paint __pyx_string_tab[962]
#define __pyx_n_u_ot_color_has_palettes __pyx_string_tab[963]
#define __pyx_n_u_ot_color_has_png __pyx_string_tab[964]
#define __pyx_n_u_ot_color_has_svg __pyx_string_tab[965]
#define __pyx_n_u_ot_color_palette_color_get_name __pyx_string_tab[966]
#define __pyx_n_u_ot_color_palette_get_colors __pyx_string_tab[967]
#define __pyx_n_u_ot_color_palette_get_count __pyx_string_tab[968]
#define __pyx_n_u_ot_color_palette_get_flags __pyx_string_tab[969]
#define __pyx_n_u_ot_color_palette_get_name_id __pyx_string_tab[970]
#define __pyx_n_u_ot_font_set_funcs __pyx_string_tab[971]
#define __pyx_n_u_ot_layout_get_baseline __pyx_string_tab[972]
#define __pyx_n_u_ot_layout_get_glyph_class __pyx_string_tab[973]
#define __pyx_n_u_ot_layout_has_glyph_classes __pyx_string_tab[974]
#define __pyx_n_u_ot_layout_has_positioning __pyx_string_tab[975]
#define __pyx_n_u_ot_layout_has_substitution __pyx_string_tab[976]
#define __pyx_n_u_ot_layout_language_get_feature_t __pyx_string_tab[977]
#define __pyx_n_u_ot_layout_lookup_get_glyph_alter __pyx_string_tab[978]
#define __pyx_n_u_ot_layout_script_get_language_ta __pyx_string_tab[979]
#define __pyx_n_u_ot_layout_table_get_script_tags __pyx_string_tab[980]
#define __pyx_n_u_ot_math_get_constant __pyx_string_tab[981]
#define __pyx_n_u_ot_math_get_glyph_assembly __pyx_string_tab[982]
#define __pyx_n_u_ot_math_get_glyph_italics_correc __pyx_string_tab[983]
#define __pyx_n_u_ot_math_get_glyph_kerning __pyx_string_tab[984]
#define __pyx_n_u_ot_math_get_glyph_kernings __pyx_string_tab[985]
#define __pyx_n_u_ot_math_get_glyph_top_accent_att __pyx_string_tab[986]
#define __pyx_n_u_ot_math_get_glyph_variants __pyx_string_tab[987]
#define __pyx_n_u_ot_math_get_min_connector_overla __pyx_string_tab[988]
#define __pyx_n_u_ot_math_has_data __pyx_string_tab[989]
#define __pyx_n_u_ot_math_is_glyph_extended_shape __pyx_string_tab[990]
#define __pyx_n_u_ot_tag_to_language __pyx_string_tab[991]
#define __pyx_n_u_ot_tag_to_script __pyx_string_tab[992]
#define __pyx_n_u_other __pyx_string_tab[993]
#define __pyx_n_u_p __pyx_string_tab[994]
#define __pyx_n_u_packed __pyx_string_tab[995]
#define __pyx_n_u_packed_blob __pyx_string_tab[996]
#define __pyx_n_u_paint_funcs __pyx_string_tab[997]
#define __pyx_n_u_paint_glyph __pyx_string_tab[998]
#define __pyx_n_u_paint_glyph_or_fail __pyx_string_tab[999]
#define __pyx_n_u_paint_state __pyx_string_tab[1000]
#define __pyx_n_u_paint_state_p __pyx_string_tab[1001]
#define __pyx_n_u_palette_index __pyx_string_tab[1002]
#define __pyx_n_u_pathlib __pyx_string_tab[1003]
#define __pyx_n_u_pen __pyx_string_tab[1004]
#define __pyx_n_u_pin_all_axes_to_default __pyx_string_tab[1005]
#define __pyx_n_u_pin_axis_location __pyx_string_tab[1006]
#define __pyx_n_u_pin_axis_to_default __pyx_string_tab[1007]
#define __pyx_n_u_pop __pyx_string_tab[1008]
#define __pyx_n_u_position __pyx_string_tab[1009]
#define __pyx_n_u_postscript_name_id __pyx_string_tab[1010]
#define __pyx_n_u_prepare __pyx_string_tab[1011]
#define __pyx_n_u_pyx_state __pyx_string_tab[1012]
#define __pyx_n_u_pyx_vtable __pyx_string_tab[1013]
#define __pyx_n_u_qCurveTo __pyx_string_tab[1014]
#define __pyx_n_u_qualname __pyx_string_tab[1015]
#define __pyx_n_u_r __pyx_string_tab[1016]
#define __pyx_n_u_red __pyx_string_tab[1017]
#define __pyx_n_u_reduce __pyx_string_tab[1018]
#define __pyx_n_u_reduce_cython __pyx_string_tab[1019]
#define __pyx_n_u_reduce_ex __pyx_string_tab[1020]
#define __pyx_n_u_reference_table __pyx_string_tab[1021]
#define __pyx_n_u_remove __pyx_string_tab[1022]
#define __pyx_n_u_render __pyx_string_tab[1023]
#define __pyx_n_u_repack __pyx_string_tab[1024]
#define __pyx_n_u_repack_with_tag __pyx_string_tab[1025]
#define __pyx_n_u_replacement __pyx_string_tab[1026]
#define __pyx_n_u_repr___locals_genexpr __pyx_string_tab[1027]
#define __pyx_n_u_reset __pyx_string_tab[1028]
#define __pyx_n_u_result __pyx_string_tab[1029]
#define __pyx_n_u_ret __pyx_string_tab[1030]
#define __pyx_n_u_return __pyx_string_tab[1031]
#define __pyx_n_u_romn __pyx_string_tab[1032]
#define __pyx_n_u_round __pyx_string_tab[1033]
#define __pyx_n_u_rstrip __pyx_string_tab[1034]
#define __pyx_n_u_s __pyx_string_tab[1035]
#define __pyx_n_u_script_count __pyx_string_tab[1036]
#define __pyx_n_u_script_index __pyx_string_tab[1037]
#define __pyx_n_u_script_tag __pyx_string_tab[1038]
#define __pyx_n_u_self __pyx_string_tab[1039]
#define __pyx_n_u_send __pyx_string_tab[1040]
#define __pyx_n_u_serialize __pyx_string_tab[1041]
#define __pyx_n_u_serialize_with_tag __pyx_string_tab[1042]
#define __pyx_n_u_set __pyx_string_tab[1043]
#define __pyx_n_u_set_2 __pyx_string_tab[1044]
#define __pyx_n_u_set_axis_range __pyx_string_tab[1045]
#define __pyx_n_u_set_close_path_func __pyx_string_tab[1046]
#define __pyx_n_u_set_color_func __pyx_string_tab[1047]
#define __pyx_n_u_set_color_glyph_func __pyx_string_tab[1048]
#define __pyx_n_u_set_cubic_to_func __pyx_string_tab[1049]
#define __pyx_n_u_set_custom_palette_color __pyx_string_tab[1050]
#define __pyx_n_u_set_custom_palette_color_func __pyx_string_tab[1051]
#define __pyx_n_u_set_font_h_extents_func __pyx_string_tab[1052]
#define __pyx_n_u_set_font_v_extents_func __pyx_string_tab[1053]
#define __pyx_n_u_set_get_table_tags_func __pyx_string_tab[1054]
#define __pyx_n_u_set_glyph_extents __pyx_string_tab[1055]
#define __pyx_n_u_set_glyph_h_advance_func __pyx_string_tab[1056]
#define __pyx_n_u_set_glyph_name_func __pyx_string_tab[1057]
#define __pyx_n_u_set_glyph_v_advance_func __pyx_string_tab[1058]
#define __pyx_n_u_set_glyph_v_origin_func __pyx_string_tab[1059]
#define __pyx_n_u_set_image_func __pyx_string_tab[1060]
#define __pyx_n_u_set_language_from_ot_tag __pyx_string_tab[1061]
#define __pyx_n_u_set_line_to_func __pyx_string_tab[1062]
#define __pyx_n_u_set_linear_gradient_func __pyx_string_tab[1063]
#define __pyx_n_u_set_message_func __pyx_string_tab[1064]
#define __pyx_n_u_set_move_to_func __pyx_string_tab[1065]
#define __pyx_n_u_set_name __pyx_string_tab[1066]
#define __pyx_n_u_set_nominal_glyph_func __pyx_string_tab[1067]
#define __pyx_n_u_set_pop_clip_func __pyx_string_tab[1068]
#define __pyx_n_u_set_pop_group_func __pyx_string_tab[1069]
#define __pyx_n_u_set_pop_transform_func __pyx_string_tab[1070]
#define __pyx_n_u_set_push_clip_glyph_func __pyx_string_tab[1071]
#define __pyx_n_u_set_push_clip_rectangle_func __pyx_string_tab[1072]
#define __pyx_n_u_set_push_group_func __pyx_string_tab[1073]
#define __pyx_n_u_set_push_transform_func __pyx_string_tab[1074]
#define __pyx_n_u_set_quadratic_to_func __pyx_string_tab[1075]
#define __pyx_n_u_set_radial_gradient_func __pyx_string_tab[1076]
#define __pyx_n_u_set_script_from_ot_tag __pyx_string_tab[1077]
#define __pyx_n_u_set_sweep_gradient_func __pyx_string_tab[1078]
#define __pyx_n_u_set_type __pyx_string_tab[1079]
#define __pyx_n_u_set_var_coords_design __pyx_string_tab[1080]
#define __pyx_n_u_set_var_coords_normalized __pyx_string_tab[1081]
#define __pyx_n_u_set_variation __pyx_string_tab[1082]
#define __pyx_n_u_set_variation_glyph_func __pyx_string_tab[1083]
#define __pyx_n_u_set_variations __pyx_string_tab[1084]
#define __pyx_n_u_setdefault __pyx_string_tab[1085]
#define __pyx_n_u_sets __pyx_string_tab[1086]
#define __pyx_n_u_setstate __pyx_string_tab[1087]
#define __pyx_n_u_setstate_cython __pyx_string_tab[1088]
#define __pyx_n_u_shape __pyx_string_tab[1089]
#define __pyx_n_u_shaper __pyx_string_tab[1090]
#define __pyx_n_u_shapers __pyx_string_tab[1091]
#define __pyx_n_u_since __pyx_string_tab[1092]
#define __pyx_n_u_size __pyx_string_tab[1093]
#define __pyx_n_u_smaller_set __pyx_string_tab[1094]
#define __pyx_n_u_source __pyx_string_tab[1095]
#define __pyx_n_u_start __pyx_string_tab[1096]
#define __pyx_n_u_start_connector_length __pyx_string_tab[1097]
#define __pyx_n_u_start_offset __pyx_string_tab[1098]
#define __pyx_n_u_staticmethod __pyx_string_tab[1099]
#define __pyx_n_u_str __pyx_string_tab[1100]
#define __pyx_n_u_stride __pyx_string_tab[1101]
#define __pyx_n_u_string __pyx_string_tab[1102]
#define __pyx_n_u_subfamily_name_id __pyx_string_tab[1103]
#define __pyx_n_u_subset __pyx_string_tab[1104]
#define __pyx_n_u_subset_preprocess __pyx_string_tab[1105]
#define __pyx_n_u_subtables __pyx_string_tab[1106]
#define __pyx_n_u_success __pyx_string_tab[1107]
#define __pyx_n_u_symmetric_difference_update __pyx_string_tab[1108]
#define __pyx_n_u_table_bytes __pyx_string_tab[1109]
#define __pyx_n_u_table_data __pyx_string_tab[1110]
#define __pyx_n_u_tag __pyx_string_tab[1111]
#define __pyx_n_u_tag_packed __pyx_string_tab[1112]
#define __pyx_n_u_tags __pyx_string_tab[1113]
#define __pyx_n_u_tail __pyx_string_tab[1114]
#define __pyx_n_u_test __pyx_string_tab[1115]
#define __pyx_n_u_text __pyx_string_tab[1116]
#define __pyx_n_u_text_length __pyx_string_tab[1117]
#define __pyx_n_u_throw __pyx_string_tab[1118]
#define __pyx_n_u_to_int __pyx_string_tab[1119]
#define __pyx_n_u_typing __pyx_string_tab[1120]
#define __pyx_n_u_ucs4_buffer __pyx_string_tab[1121]
#define __pyx_n_u_uharfbuzz__harfbuzz __pyx_string_tab[1122]
#define __pyx_n_u_unicode __pyx_string_tab[1123]
#define __pyx_n_u_update __pyx_string_tab[1124]
#define __pyx_n_u_update_2 __pyx_string_tab[1125]
#define __pyx_n_u_user_data __pyx_string_tab[1126]
#define __pyx_n_u_user_data_p __pyx_string_tab[1127]
#define __pyx_n_u_v __pyx_string_tab[1128]
#define __pyx_n_u_value __pyx_string_tab[1129]
#define __pyx_n_u_values __pyx_string_tab[1130]
#define __pyx_n_u_values_locals_genexpr __pyx_string_tab[1131]
#define __pyx_n_u_variants __pyx_string_tab[1132]
#define __pyx_n_u_variants_array __pyx_string_tab[1133]
#define __pyx_n_u_variation __pyx_string_tab[1134]
#define __pyx_n_u_variation_selector __pyx_string_tab[1135]
#define __pyx_n_u_variation_unicodes __pyx_string_tab[1136]
#define __pyx_n_u_variations __pyx_string_tab[1137]
#define __pyx_n_u_version_string __pyx_string_tab[1138]
#define __pyx_n_u_warn __pyx_string_tab[1139]
#define __pyx_n_u_warnings __pyx_string_tab[1140]
#define __pyx_n_u_width __pyx_string_tab[1141]
#define __pyx_n_u_wrapper __pyx_string_tab[1142]
#define __pyx_n_u_wraps __pyx_string_tab[1143]
#define __pyx_n_u_x __pyx_string_tab[1144]
#define __pyx_n_u_x_bearing __pyx_string_tab[1145]
#define __pyx_n_u_x_origin __pyx_string_tab[1146]
#define __pyx_n_u_y __pyx_string_tab[1147]
#define __pyx_n_u_y_bearing __pyx_string_tab[1148]
#define __pyx_n_u_y_origin __pyx_string_tab[1149]
#define __pyx_kp_b_ __pyx_string_tab[1150]
#define __pyx_kp_b_iso88591_0C1 __pyx_string_tab[1151]
#define __pyx_kp_b_iso88591_0_4_Qa __pyx_string_tab[1152]
#define __pyx_kp_b_iso88591_0_AQ_vQgRq_A_U_1_Qe5_q_2Q_Qd__A __pyx_string_tab[1153]
#define __pyx_kp_b_iso88591_1 __pyx_string_tab[1154]
#define __pyx_kp_b_iso88591_1D_4s_1_1A __pyx_string_tab[1155]
#define __pyx_kp_b_iso88591_1D_9AQ_wm1 __pyx_string_tab[1156]
#define __pyx_kp_b_iso88591_1_1D_q_4_1D __pyx_string_tab[1157]
#define __pyx_kp_b_iso88591_1_2_4_1_q_as_G4uE __pyx_string_tab[1158]
#define __pyx_kp_b_iso88591_1_4_1N __pyx_string_tab[1159]
#define __pyx_kp_b_iso88591_1_4_aq __pyx_string_tab[1160]
#define __pyx_kp_b_iso88591_1_AT_A __pyx_string_tab[1161]
#define __pyx_kp_b_iso88591_1_WA_l_Q_aq_Q_1_Q_1_Q_1_k_q __pyx_string_tab[1162]
#define __pyx_kp_b_iso88591_1_a_9Cq_aq_9AQ __pyx_string_tab[1163]
#define __pyx_kp_b_iso88591_22B_4_q_q __pyx_string_tab[1164]
#define __pyx_kp_b_iso88591_2_1_3_87_YgQ_Zwa_Zwa_AQ __pyx_string_tab[1165]
#define __pyx_kp_b_iso88591_2_1_Q_A_lRS __pyx_string_tab[1166]
#define __pyx_kp_b_iso88591_2_1_k __pyx_string_tab[1167]
#define __pyx_kp_b_iso88591_2_4_q_q __pyx_string_tab[1168]
#define __pyx_kp_b_iso88591_2_xq_4_4AQ __pyx_string_tab[1169]
#define __pyx_kp_b_iso88591_4A_4_q_q __pyx_string_tab[1170]
#define __pyx_kp_b_iso88591_4L_7q_WA __pyx_string_tab[1171]
#define __pyx_kp_b_iso88591_4_M_RS __pyx_string_tab[1172]
#define __pyx_kp_b_iso88591_4_q __pyx_string_tab[1173]
#define __pyx_kp_b_iso88591_4q __pyx_string_tab[1174]
#define __pyx_kp_b_iso88591_4z_4_1D __pyx_string_tab[1175]
#define __pyx_kp_b_iso88591_4z_a __pyx_string_tab[1176]
#define __pyx_kp_b_iso88591_55Fa_1_Qa_q __pyx_string_tab[1177]
#define __pyx_kp_b_iso88591_5XQ_4_Qa __pyx_string_tab[1178]
#define __pyx_kp_b_iso88591_5XQ_Cq_4_Naq_q __pyx_string_tab[1179]
#define __pyx_kp_b_iso88591_7_QgYa_4AQ_A_a_Q_6 __pyx_string_tab[1180]
#define __pyx_kp_b_iso88591_7xq_4_AQ __pyx_string_tab[1181]
#define __pyx_kp_b_iso88591_7xq_6at_a __pyx_string_tab[1182]
#define __pyx_kp_b_iso88591_81_1Cwa_2_D_1 __pyx_string_tab[1183]
#define __pyx_kp_b_iso88591_81_4 __pyx_string_tab[1184]
#define __pyx_kp_b_iso88591_81_8_83a_1_q __pyx_string_tab[1185]
#define __pyx_kp_b_iso88591_81_A_Q_A_c_at_o_STTaab_E_aq_wau __pyx_string_tab[1186]
#define __pyx_kp_b_iso88591_81_Cwa_1_6at_a_5_1_9AQ __pyx_string_tab[1187]
#define __pyx_kp_b_iso88591_81_q_Jj __pyx_string_tab[1188]
#define __pyx_kp_b_iso88591_81_q_KuF_vWA __pyx_string_tab[1189]
#define __pyx_kp_b_iso88591_89_4_awfA __pyx_string_tab[1190]
#define __pyx_kp_b_iso88591_8_HA_q_A_c_4AT_NRYYZ_U_1_aq_A_q __pyx_string_tab[1191]
#define __pyx_kp_b_iso88591_8_IWA_C1G1_31D_1 __pyx_string_tab[1192]
#define __pyx_kp_b_iso88591_8_Qd_U_1_1_q __pyx_string_tab[1193]
#define __pyx_kp_b_iso88591_9A __pyx_string_tab[1194]
#define __pyx_kp_b_iso88591_9_4 __pyx_string_tab[1195]
#define __pyx_kp_b_iso88591_9_k __pyx_string_tab[1196]
#define __pyx_kp_b_iso88591_A __pyx_string_tab[1197]
#define __pyx_kp_b_iso88591_AQ_4q_q_1_E_aq_z__F_q_AQ_4_at1 __pyx_string_tab[1198]
#define __pyx_kp_b_iso88591_AT_4s_1_1A __pyx_string_tab[1199]
#define __pyx_kp_b_iso88591_A_06a28_1_Cwa_1_nCq_2_A_U_1_q_A __pyx_string_tab[1200]
#define __pyx_kp_b_iso88591_A_0x_s_c_AQ_j_Qc_MQcQRRS_AQ_CuA __pyx_string_tab[1201]
#define __pyx_kp_b_iso88591_A_1_1_1_4_1_WA_G_S_G_S_G_S_Q_D_8 __pyx_string_tab[1202]
#define __pyx_kp_b_iso88591_A_1_1_a_Q_a_Q_a_Q_a_Q_a_Q_a_Q_a __pyx_string_tab[1203]
#define __pyx_kp_b_iso88591_A_1_AQ_L_1_7_Q_Qd_Qc_fA_Q_q __pyx_string_tab[1204]
#define __pyx_kp_b_iso88591_A_1_AQ_q __pyx_string_tab[1205]
#define __pyx_kp_b_iso88591_A_1_AV1_A_00DAV1_A_g_9_Q_gQ_A_Q __pyx_string_tab[1206]
#define __pyx_kp_b_iso88591_A_1_Biq_q_q_5_1_q_2_1_AQ_L_q __pyx_string_tab[1207]
#define __pyx_kp_b_iso88591_A_1_Kq_V1 __pyx_string_tab[1208]
#define __pyx_kp_b_iso88591_A_1_Q_G6 __pyx_string_tab[1209]
#define __pyx_kp_b_iso88591_A_1_q __pyx_string_tab[1210]
#define __pyx_kp_b_iso88591_A_1_wk __pyx_string_tab[1211]
#define __pyx_kp_b_iso88591_A_22Gq_00DMQR_1D_A_fBa_A_A_y_1_d __pyx_string_tab[1212]
#define __pyx_kp_b_iso88591_A_31_B_q __pyx_string_tab[1213]
#define __pyx_kp_b_iso88591_A_37_1_s_Qa_4q_j_q_A_1_t_2_4q_a __pyx_string_tab[1214]
#define __pyx_kp_b_iso88591_A_3_AV1_a_22FavQ_A_g_9_Q_gQ_a_Q __pyx_string_tab[1215]
#define __pyx_kp_b_iso88591_A_3a_q __pyx_string_tab[1216]
#define __pyx_kp_b_iso88591_A_41D __pyx_string_tab[1217]
#define __pyx_kp_b_iso88591_A_41_A_2_A_1 __pyx_string_tab[1218]
#define __pyx_kp_b_iso88591_A_41_a_4G_a_Q __pyx_string_tab[1219]
#define __pyx_kp_b_iso88591_A_4A_A_q_1_1 __pyx_string_tab[1220]
#define __pyx_kp_b_iso88591_A_4A_C7_PQ __pyx_string_tab[1221]
#define __pyx_kp_b_iso88591_A_4q __pyx_string_tab[1222]
#define __pyx_kp_b_iso88591_A_4q_2 __pyx_string_tab[1223]
#define __pyx_kp_b_iso88591_A_4q_s_Q_4z_4_1D __pyx_string_tab[1224]
#define __pyx_kp_b_iso88591_A_4q_s_Qa_Q_4z_4_1D __pyx_string_tab[1225]
#define __pyx_kp_b_iso88591_A_4q_s_uF_4z_A_4_1D __pyx_string_tab[1226]
#define __pyx_kp_b_iso88591_A_5A_Q_37_Q_A __pyx_string_tab[1227]
#define __pyx_kp_b_iso88591_A_5A_Q_37_Q_A_2 __pyx_string_tab[1228]
#define __pyx_kp_b_iso88591_A_6Q_a_4G_a_Q __pyx_string_tab[1229]
#define __pyx_kp_b_iso88591_A_9_a __pyx_string_tab[1230]
#define __pyx_kp_b_iso88591_A_AQ_9Cq_U_1_fAQ_k_1 __pyx_string_tab[1231]
#define __pyx_kp_b_iso88591_A_AQ_aq_Qa_aq_uAS_3a __pyx_string_tab[1232]
#define __pyx_kp_b_iso88591_A_AT __pyx_string_tab[1233]
#define __pyx_kp_b_iso88591_A_AT_2 __pyx_string_tab[1234]
#define __pyx_kp_b_iso88591_A_AT_3 __pyx_string_tab[1235]
#define __pyx_kp_b_iso88591_A_AT_34 __pyx_string_tab[1236]
#define __pyx_kp_b_iso88591_A_A_a_WF __pyx_string_tab[1237]
#define __pyx_kp_b_iso88591_A_A_a_WF_2 __pyx_string_tab[1238]
#define __pyx_kp_b_iso88591_A_E_A_0_1C1G1 __pyx_string_tab[1239]
#define __pyx_kp_b_iso88591_A_O1_Q_4G6 __pyx_string_tab[1240]
#define __pyx_kp_b_iso88591_A_O1_Q_4G6_2 __pyx_string_tab[1241]
#define __pyx_kp_b_iso88591_A_Q __pyx_string_tab[1242]
#define __pyx_kp_b_iso88591_A_Q_2 __pyx_string_tab[1243]
#define __pyx_kp_b_iso88591_A_Q_3 __pyx_string_tab[1244]
#define __pyx_kp_b_iso88591_A_Q_AV1_A_A_g_9_Q_gQ_Q_S_a_a_Q __pyx_string_tab[1245]
#define __pyx_kp_b_iso88591_A_Q_q_gV1 __pyx_string_tab[1246]
#define __pyx_kp_b_iso88591_A_Q_q_gV1_2 __pyx_string_tab[1247]
#define __pyx_kp_b_iso88591_A_Qd __pyx_string_tab[1248]
#define __pyx_kp_b_iso88591_A_Qd_2 __pyx_string_tab[1249]
#define __pyx_kp_b_iso88591_A_Qd_3 __pyx_string_tab[1250]
#define __pyx_kp_b_iso88591_A_a_7wfA __pyx_string_tab[1251]
#define __pyx_kp_b_iso88591_A_a_AV1_B_6_A_g_9_Q_gQ_Q_S_a_q_Q __pyx_string_tab[1252]
#define __pyx_kp_b_iso88591_A_aq_1G7_1_aq_7_3a_Q_q __pyx_string_tab[1253]
#define __pyx_kp_b_iso88591_A_at_aq_q_as_e5 __pyx_string_tab[1254]
#define __pyx_kp_b_iso88591_A_c_q __pyx_string_tab[1255]
#define __pyx_kp_b_iso88591_A_fA_AV1_q __pyx_string_tab[1256]
#define __pyx_kp_b_iso88591_A_q_8_vQ __pyx_string_tab[1257]
#define __pyx_kp_b_iso88591_A_q_A __pyx_string_tab[1258]
#define __pyx_kp_b_iso88591_A_q_Kq_E_aq_1_uCq_1_6_war_T_AWA __pyx_string_tab[1259]
#define __pyx_kp_b_iso88591_A_q_Kq_Q __pyx_string_tab[1260]
#define __pyx_kp_b_iso88591_A_waq __pyx_string_tab[1261]
#define __pyx_kp_b_iso88591_B_4 __pyx_string_tab[1262]
#define __pyx_kp_b_iso88591_Cwa_1_m3a_a_A_U_1_q_A_AU_G1F_A __pyx_string_tab[1263]
#define __pyx_kp_b_iso88591_DHA_Qd_YFZZ_wm1 __pyx_string_tab[1264]
#define __pyx_kp_b_iso88591_DMQZZ_9Cq_XWA_7_1_AT_IV6_1_a_7 __pyx_string_tab[1265]
#define __pyx_kp_b_iso88591_Fiq_A_8_7q_A_4_z9I __pyx_string_tab[1266]
#define __pyx_kp_b_iso88591_HA_1D0B_kQR __pyx_string_tab[1267]
#define __pyx_kp_b_iso88591_HA_4_1 __pyx_string_tab[1268]
#define __pyx_kp_b_iso88591_HA_7_QgYa_1_1_uCq_q_Q_6 __pyx_string_tab[1269]
#define __pyx_kp_b_iso88591_HA_Qd_Q_xs_q_1 __pyx_string_tab[1270]
#define __pyx_kp_b_iso88591_HA_at_a __pyx_string_tab[1271]
#define __pyx_kp_b_iso88591_HA_l_Q_Qm_U_1_7_q_ar_q_A_q __pyx_string_tab[1272]
#define __pyx_kp_b_iso88591_IQ_1D_y __pyx_string_tab[1273]
#define __pyx_kp_b_iso88591_IQ_6at_t1 __pyx_string_tab[1274]
#define __pyx_kp_b_iso88591_K7VV___5_3aq_AQ_1D_7 __pyx_string_tab[1275]
#define __pyx_kp_b_iso88591_Q __pyx_string_tab[1276]
#define __pyx_kp_b_iso88591_Q_2Rr_Bc_Q_1_Jat_Q_2S_A_q __pyx_string_tab[1277]
#define __pyx_kp_b_iso88591_Q_4G1_V3awm1_4_at1 __pyx_string_tab[1278]
#define __pyx_kp_b_iso88591_Q_4q __pyx_string_tab[1279]
#define __pyx_kp_b_iso88591_Q_4z_4_1D __pyx_string_tab[1280]
#define __pyx_kp_b_iso88591_Q_6 __pyx_string_tab[1281]
#define __pyx_kp_b_iso88591_Q_9Cs_1_AQ_at_a __pyx_string_tab[1282]
#define __pyx_kp_b_iso88591_Q_AT_5 __pyx_string_tab[1283]
#define __pyx_kp_b_iso88591_Q_Qd_5T_A __pyx_string_tab[1284]
#define __pyx_kp_b_iso88591_Q_a __pyx_string_tab[1285]
#define __pyx_kp_b_iso88591_Qd_Q __pyx_string_tab[1286]
#define __pyx_kp_b_iso88591_Qe_a __pyx_string_tab[1287]
#define __pyx_kp_b_iso88591_V1_1_Q_6_1 __pyx_string_tab[1288]
#define __pyx_kp_b_iso88591_WA_Qd_WHCqPYYZZ_wm1 __pyx_string_tab[1289]
#define __pyx_kp_b_iso88591_XQ_1D_5_1_q_q_q_q_q_1 __pyx_string_tab[1290]
#define __pyx_kp_b_iso88591_XQ_4_aq __pyx_string_tab[1291]
#define __pyx_kp_b_iso88591_XQ_AT1DD_ST __pyx_string_tab[1292]
#define __pyx_kp_b_iso88591_XQ_IWA_C1G1_Q_0_fCq_a_Q_U_1_q_1 __pyx_string_tab[1293]
#define __pyx_kp_b_iso88591_XQ_IWA_C1G1_Q_fCq_k_a_U_1_q_2_H __pyx_string_tab[1294]
#define __pyx_kp_b_iso88591_Ya_vQha __pyx_string_tab[1295]
#define __pyx_kp_b_iso88591_ZuA_4_1D __pyx_string_tab[1296]
#define __pyx_kp_b_iso88591_Zwa_4_1D __pyx_string_tab[1297]
#define __pyx_kp_b_iso88591_Zwa_4_1D_2 __pyx_string_tab[1298]
#define __pyx_kp_b_iso88591__13 __pyx_string_tab[1299]
#define __pyx_kp_b_iso88591__14 __pyx_string_tab[1300]
#define __pyx_kp_b_iso88591_a_4q __pyx_string_tab[1301]
#define __pyx_kp_b_iso88591_a_4q_2 __pyx_string_tab[1302]
#define __pyx_kp_b_iso88591_a_AT_A __pyx_string_tab[1303]
#define __pyx_kp_b_iso88591_a_Cq_Kq_A_q __pyx_string_tab[1304]
#define __pyx_kp_b_iso88591_a_E_a_2_3EQgQ __pyx_string_tab[1305]
#define __pyx_kp_b_iso88591_a_F_1_1_QgQ_A_Cq_q_Rq_ixvQ_r_6 __pyx_string_tab[1306]
#define __pyx_kp_b_iso88591_a_Q __pyx_string_tab[1307]
#define __pyx_kp_b_iso88591_a_Q_y_1_l_1_y __pyx_string_tab[1308]
#define __pyx_kp_b_iso88591_a_Qd_E __pyx_string_tab[1309]
#define __pyx_kp_b_iso88591_a_WA_ay_Qd_U __pyx_string_tab[1310]
#define __pyx_kp_b_iso88591_at_a_9AQ __pyx_string_tab[1311]
#define __pyx_kp_b_iso88591_at_a_9AQ_2 __pyx_string_tab[1312]
#define __pyx_kp_b_iso88591_b_Q_q_81A_xwa_Qiq_d_1_4r __pyx_string_tab[1313]
#define __pyx_kp_b_iso88591_gQ_gQ_7_0_5H __pyx_string_tab[1314]
#define __pyx_kp_b_iso88591_gQ_gQ_7_q_4Faq __pyx_string_tab[1315]
#define __pyx_kp_b_iso88591_ha_4_1A __pyx_string_tab[1316]
#define __pyx_kp_b_iso88591_ha_AT_E_Qa_q_6_a __pyx_string_tab[1317]
#define __pyx_kp_b_iso88591_ha_q_T __pyx_string_tab[1318]
#define __pyx_kp_b_iso88591_k_2 __pyx_string_tab[1319]
#define __pyx_kp_b_iso88591_k_Zq_1Cwa_0_D_81 __pyx_string_tab[1320]
#define __pyx_kp_b_iso88591_nA_4_Q __pyx_string_tab[1321]
#define __pyx_kp_b_iso88591_nL_4_a __pyx_string_tab[1322]
#define __pyx_kp_b_iso88591_q __pyx_string_tab[1323]
#define __pyx_kp_b_iso88591_q_4q __pyx_string_tab[1324]
#define __pyx_kp_b_iso88591_q_4q_2 __pyx_string_tab[1325]
#define __pyx_kp_b_iso88591_q_5_3aq_AQ_fCq_k_a_U_1_WA_A_SS __pyx_string_tab[1326]
#define __pyx_kp_b_iso88591_q_S_A_6I_q_6I_q_1K7K6QR_q_SSYYZ __pyx_string_tab[1327]
#define __pyx_kp_b_iso88591_q_q_81_q_gQ_WA_1D_q __pyx_string_tab[1328]
#define __pyx_kp_b_iso88591_q_q_Je1_4_1D __pyx_string_tab[1329]
#define __pyx_kp_b_iso88591_q_y_1_1_1 __pyx_string_tab[1330]
#define __pyx_kp_b_iso88591_r_A_A_4z_4_1D __pyx_string_tab[1331]
#define __pyx_kp_b_iso88591_s_1_q_Rq_4q_F_IQj_a_WA_2_9A_Qe1 __pyx_string_tab[1332]
#define __pyx_kp_b_iso88591_t5 __pyx_string_tab[1333]
#define __pyx_kp_b_iso88591_vV1_Cwa_1_1_oS_1_A_U_1_q_A_AU_G __pyx_string_tab[1334]
#define __pyx_kp_b_iso88591_wa_1D_7_QiWXXY_wm1 __pyx_string_tab[1335]
#define __pyx_kp_b_iso88591_xq_4 __pyx_string_tab[1336]
#define __pyx_kp_b_iso88591_xq_G4xt6_Q __pyx_string_tab[1337]
#define __pyx_kp_b_iso88591_xq_at_U __pyx_string_tab[1338]
#define __pyx_kp_b_iso88591_xq_t1_1_l_Q_6_a_U_1_gQe9AXQa_Q __pyx_string_tab[1339]
#define __pyx_int_0 __pyx_number_tab[0]
#define __pyx_int_neg_1 __pyx_number_tab[1]
#define __pyx_int_1 __pyx_number_tab[2]
#define __pyx_int_16384 __pyx_number_tab[3]
#define __pyx_int_65535 __pyx_number_tab[4]
/* #### Code section: module_state_clear ### */
#if CYTHON_USE_MODULE_STATE
static CYTHON_SMALL_CODE int __pyx_m_clear(PyObject *m) {
  __pyx_mstatetype *clear_module_state = __Pyx_PyModule_GetState(m);
  if (!clear_module_state) return 0;
  Py_CLEAR(clear_module_state->__pyx_d);
  Py_CLEAR(clear_module_state->__pyx_b);
  Py_CLEAR(clear_module_state->__pyx_cython_runtime);
  Py_CLEAR(clear_module_state->__pyx_empty_tuple);
  Py_CLEAR(clear_module_state->__pyx_empty_bytes);
  Py_CLEAR(clear_module_state->__pyx_empty_unicode);
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  __Pyx_State_RemoveModule(NULL);
  #endif
  Py_CLEAR(clear_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set);
  Py_CLEAR(clear_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_Set);
  Py_CLEAR(clear_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_SetIter);
  Py_CLEAR(clear_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_SetIter);
  Py_CLEAR(clear_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map);
  Py_CLEAR(clear_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_Map);
  Py_CLEAR(clear_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_MapIter);
  Py_CLEAR(clear_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_MapIter);
  Py_CLEAR(clear_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_Blob);
  Py_CLEAR(clear_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_Blob);
  Py_CLEAR(clear_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphInfo);
  Py_CLEAR(clear_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_GlyphInfo);
  Py_CLEAR(clear_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphPosition);
  Py_CLEAR(clear_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_GlyphPosition);
  Py_CLEAR(clear_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_Buffer);
  Py_CLEAR(clear_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_Buffer);
  Py_CLEAR(clear_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face);
  Py_CLEAR(clear_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_Face);
  Py_CLEAR(clear_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_DrawFuncs);
  Py_CLEAR(clear_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_DrawFuncs);
  Py_CLEAR(clear_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_ColorLine);
  Py_CLEAR(clear_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_ColorLine);
  Py_CLEAR(clear_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_PaintFuncs);
  Py_CLEAR(clear_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_PaintFuncs);
  Py_CLEAR(clear_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font);
  Py_CLEAR(clear_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_Font);
  Py_CLEAR(clear_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_FontFuncs);
  Py_CLEAR(clear_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_FontFuncs);
  Py_CLEAR(clear_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterImage);
  Py_CLEAR(clear_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_RasterImage);
  Py_CLEAR(clear_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterDraw);
  Py_CLEAR(clear_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_RasterDraw);
  Py_CLEAR(clear_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterPaint);
  Py_CLEAR(clear_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_RasterPaint);
  Py_CLEAR(clear_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_HBObject);
  Py_CLEAR(clear_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_HBObject);
  Py_CLEAR(clear_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetInput);
  Py_CLEAR(clear_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_SubsetInput);
  Py_CLEAR(clear_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetPlan);
  Py_CLEAR(clear_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_SubsetPlan);
  Py_CLEAR(clear_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated);
  Py_CLEAR(clear_module_state->__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated);
  Py_CLEAR(clear_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator);
  Py_CLEAR(clear_module_state->__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator);
  Py_CLEAR(clear_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr);
  Py_CLEAR(clear_module_state->__pyx_k__3);
  Py_CLEAR(clear_module_state->__pyx_k__5);
  Py_CLEAR(clear_module_state->__pyx_k__7);
  Py_CLEAR(clear_module_state->__pyx_k__8);
  for (int i=0; i<8; ++i) { Py_CLEAR(clear_module_state->__pyx_tuple[i]); }
  for (int i=0; i<246; ++i) { Py_CLEAR(clear_module_state->__pyx_codeobj_tab[i]); }
  for (int i=0; i<1340; ++i) { Py_CLEAR(clear_module_state->__pyx_string_tab[i]); }
  for (int i=0; i<5; ++i) { Py_CLEAR(clear_module_state->__pyx_number_tab[i]); }
/* #### Code section: module_state_clear_contents ### */
/* CommonTypesMetaclass.module_state_clear */
Py_CLEAR(clear_module_state->__pyx_CommonTypesMetaclassType);

/* CythonFunctionShared.module_state_clear */
Py_CLEAR(clear_module_state->__pyx_CyFunctionType);

/* Generator.module_state_clear */
Py_CLEAR(clear_module_state->__pyx_GeneratorType);

/* #### Code section: module_state_clear_end ### */
return 0;
}
#endif
/* #### Code section: module_state_traverse ### */
#if CYTHON_USE_MODULE_STATE
static CYTHON_SMALL_CODE int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
  __pyx_mstatetype *traverse_module_state = __Pyx_PyModule_GetState(m);
  if (!traverse_module_state) return 0;
  Py_VISIT(traverse_module_state->__pyx_d);
  Py_VISIT(traverse_module_state->__pyx_b);
  Py_VISIT(traverse_module_state->__pyx_cython_runtime);
  __Pyx_VISIT_CONST(traverse_module_state->__pyx_empty_tuple);
  __Pyx_VISIT_CONST(traverse_module_state->__pyx_empty_bytes);
  __Pyx_VISIT_CONST(traverse_module_state->__pyx_empty_unicode);
  Py_VISIT(traverse_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set);
  Py_VISIT(traverse_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_Set);
  Py_VISIT(traverse_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_SetIter);
  Py_VISIT(traverse_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_SetIter);
  Py_VISIT(traverse_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map);
  Py_VISIT(traverse_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_Map);
  Py_VISIT(traverse_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_MapIter);
  Py_VISIT(traverse_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_MapIter);
  Py_VISIT(traverse_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_Blob);
  Py_VISIT(traverse_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_Blob);
  Py_VISIT(traverse_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphInfo);
  Py_VISIT(traverse_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_GlyphInfo);
  Py_VISIT(traverse_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphPosition);
  Py_VISIT(traverse_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_GlyphPosition);
  Py_VISIT(traverse_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_Buffer);
  Py_VISIT(traverse_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_Buffer);
  Py_VISIT(traverse_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face);
  Py_VISIT(traverse_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_Face);
  Py_VISIT(traverse_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_DrawFuncs);
  Py_VISIT(traverse_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_DrawFuncs);
  Py_VISIT(traverse_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_ColorLine);
  Py_VISIT(traverse_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_ColorLine);
  Py_VISIT(traverse_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_PaintFuncs);
  Py_VISIT(traverse_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_PaintFuncs);
  Py_VISIT(traverse_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font);
  Py_VISIT(traverse_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_Font);
  Py_VISIT(traverse_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_FontFuncs);
  Py_VISIT(traverse_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_FontFuncs);
  Py_VISIT(traverse_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterImage);
  Py_VISIT(traverse_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_RasterImage);
  Py_VISIT(traverse_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterDraw);
  Py_VISIT(traverse_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_RasterDraw);
  Py_VISIT(traverse_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterPaint);
  Py_VISIT(traverse_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_RasterPaint);
  Py_VISIT(traverse_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_HBObject);
  Py_VISIT(traverse_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_HBObject);
  Py_VISIT(traverse_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetInput);
  Py_VISIT(traverse_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_SubsetInput);
  Py_VISIT(traverse_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetPlan);
  Py_VISIT(traverse_module_state->__pyx_type_9uharfbuzz_9_harfbuzz_SubsetPlan);
  Py_VISIT(traverse_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated);
  Py_VISIT(traverse_module_state->__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated);
  Py_VISIT(traverse_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator);
  Py_VISIT(traverse_module_state->__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator);
  Py_VISIT(traverse_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr);
  Py_VISIT(traverse_module_state->__pyx_k__3);
  Py_VISIT(traverse_module_state->__pyx_k__5);
  Py_VISIT(traverse_module_state->__pyx_k__7);
  Py_VISIT(traverse_module_state->__pyx_k__8);
  for (int i=0; i<8; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_tuple[i]); }
  for (int i=0; i<246; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_codeobj_tab[i]); }
  for (int i=0; i<1340; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_string_tab[i]); }
  for (int i=0; i<5; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_number_tab[i]); }
/* #### Code section: module_state_traverse_contents ### */
/* CommonTypesMetaclass.module_state_traverse */
Py_VISIT(traverse_module_state->__pyx_CommonTypesMetaclassType);

/* CythonFunctionShared.module_state_traverse */
Py_VISIT(traverse_module_state->__pyx_CyFunctionType);

/* Generator.module_state_traverse */
Py_VISIT(traverse_module_state->__pyx_GeneratorType);

/* #### Code section: module_state_traverse_end ### */
return 0;
}
#endif
/* #### Code section: module_code ### */

/* "uharfbuzz/_harfbuzz.pyx":25
 * 
 * 
 * cdef int msgcallback(hb_buffer_t *buffer, hb_font_t *font, const char* message, void* userdata) noexcept:             # <<<<<<<<<<<<<<
 *     ret = (<object>userdata)(message.decode('utf-8'))
 *     if ret is None:
*/

static int __pyx_f_9uharfbuzz_9_harfbuzz_msgcallback(CYTHON_UNUSED hb_buffer_t *__pyx_v_buffer, CYTHON_UNUSED hb_font_t *__pyx_v_font, char const *__pyx_v_message, void *__pyx_v_userdata) {
  PyObject *__pyx_v_ret = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("msgcallback", 0);

  /* "uharfbuzz/_harfbuzz.pyx":26
 * 
 * cdef int msgcallback(hb_buffer_t *buffer, hb_font_t *font, const char* message, void* userdata) noexcept:
 *     ret = (<object>userdata)(message.decode('utf-8'))             # <<<<<<<<<<<<<<
 *     if ret is None:
 *         return 1
*/
  __pyx_t_2 = NULL;
  __Pyx_INCREF(((PyObject *)__pyx_v_userdata));
  __pyx_t_3 = ((PyObject *)__pyx_v_userdata); 
  __pyx_t_4 = __Pyx_ssize_strlen(__pyx_v_message); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26, __pyx_L1_error)
  __pyx_t_5 = __Pyx_decode_c_string(__pyx_v_message, 0, __pyx_t_4, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_5};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_ret = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":27
 * cdef int msgcallback(hb_buffer_t *buffer, hb_font_t *font, const char* message, void* userdata) noexcept:
 *     ret = (<object>userdata)(message.decode('utf-8'))
 *     if ret is None:             # <<<<<<<<<<<<<<
 *         return 1
 *     return ret
*/
  __pyx_t_7 = (__pyx_v_ret == Py_None);
  if (__pyx_t_7) {

    /* "uharfbuzz/_harfbuzz.pyx":28
 *     ret = (<object>userdata)(message.decode('utf-8'))
 *     if ret is None:
 *         return 1             # <<<<<<<<<<<<<<
 *     return ret
 * 
*/
    __pyx_r = 1;
    goto __pyx_L0;

    /* "uharfbuzz/_harfbuzz.pyx":27
 * cdef int msgcallback(hb_buffer_t *buffer, hb_font_t *font, const char* message, void* userdata) noexcept:
 *     ret = (<object>userdata)(message.decode('utf-8'))
 *     if ret is None:             # <<<<<<<<<<<<<<
 *         return 1
 *     return ret
*/
  }

  /* "uharfbuzz/_harfbuzz.pyx":29
 *     if ret is None:
 *         return 1
 *     return ret             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_8 = __Pyx_PyLong_As_int(__pyx_v_ret); if (unlikely((__pyx_t_8 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 29, __pyx_L1_error)
  __pyx_r = __pyx_t_8;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":25
 * 
 * 
 * cdef int msgcallback(hb_buffer_t *buffer, hb_font_t *font, const char* message, void* userdata) noexcept:             # <<<<<<<<<<<<<<
 *     ret = (<object>userdata)(message.decode('utf-8'))
 *     if ret is None:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz.msgcallback", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_ret);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":32
 * 
 * 
 * def version_string() -> str:             # <<<<<<<<<<<<<<
 *     """Returns library version as a string with three components.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_1version_string(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_version_string, "Returns library version as a string with three components.\n\n    :returns: Library version string.\n\n    Wraps `hb_version_string()\n    <https://harfbuzz.github.io/harfbuzz-hb-version.html#hb-version-string>`_.\n    ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_1version_string = {"version_string", (PyCFunction)__pyx_pw_9uharfbuzz_9_harfbuzz_1version_string, METH_NOARGS, __pyx_doc_9uharfbuzz_9_harfbuzz_version_string};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_1version_string(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("version_string (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_version_string(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_version_string(CYTHON_UNUSED PyObject *__pyx_self) {
  char const *__pyx_v_cstr;
  PyObject *__pyx_v_packed = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("version_string", 0);

  /* "uharfbuzz/_harfbuzz.pyx":40
 *     <https://harfbuzz.github.io/harfbuzz-hb-version.html#hb-version-string>`_.
 *     """
 *     cdef const char* cstr = hb_version_string()             # <<<<<<<<<<<<<<
 *     cdef bytes packed = cstr
 *     return packed.decode()
*/
  __pyx_v_cstr = hb_version_string();

  /* "uharfbuzz/_harfbuzz.pyx":41
 *     """
 *     cdef const char* cstr = hb_version_string()
 *     cdef bytes packed = cstr             # <<<<<<<<<<<<<<
 *     return packed.decode()
 * 
*/
  __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_cstr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 41, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_packed = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":42
 *     cdef const char* cstr = hb_version_string()
 *     cdef bytes packed = cstr
 *     return packed.decode()             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_decode_bytes(__pyx_v_packed, 0, PY_SSIZE_T_MAX, NULL, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 42, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":32
 * 
 * 
 * def version_string() -> str:             # <<<<<<<<<<<<<<
 *     """Returns library version as a string with three components.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.version_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":48
 * 
 * 
 * def deprecated(replacement=None, since=""):             # <<<<<<<<<<<<<<
 *     """Decorator to raise a warning when a deprecated function is called.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3deprecated(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_2deprecated, "Decorator to raise a warning when a deprecated function is called.\n\n    Also prepends a Sphinx ``.. deprecated::`` directive to the wrapped\n    function's docstring.\n    ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3deprecated = {"deprecated", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3deprecated, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_2deprecated};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3deprecated(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_replacement = 0;
  PyObject *__pyx_v_since = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("deprecated (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_replacement,&__pyx_mstate_global->__pyx_n_u_since,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 48, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 48, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 48, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "deprecated", 0) < (0)) __PYX_ERR(0, 48, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u_)));
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 48, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 48, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u_)));
    }
    __pyx_v_replacement = values[0];
    __pyx_v_since = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("deprecated", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 48, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.deprecated", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_2deprecated(__pyx_self, __pyx_v_replacement, __pyx_v_since);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":55
 *     """
 * 
 *     def decorator(func):             # <<<<<<<<<<<<<<
 *         @wraps(func)
 *         def wrapper(*args, **kwargs):
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10deprecated_1decorator(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_10deprecated_1decorator = {"decorator", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10deprecated_1decorator, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10deprecated_1decorator(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_func = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("decorator (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 55, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 55, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "decorator", 0) < (0)) __PYX_ERR(0, 55, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("decorator", 1, 1, 1, i); __PYX_ERR(0, 55, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 55, __pyx_L3_error)
    }
    __pyx_v_func = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("decorator", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 55, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.deprecated.decorator", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10deprecated_decorator(__pyx_self, __pyx_v_func);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":56
 * 
 *     def decorator(func):
 *         @wraps(func)             # <<<<<<<<<<<<<<
 *         def wrapper(*args, **kwargs):
 *             message = f"{func.__name__!r} is deprecated"
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10deprecated_9decorator_1wrapper(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_10deprecated_9decorator_1wrapper = {"wrapper", (PyCFunction)(void(*)(void))(PyCFunctionWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10deprecated_9decorator_1wrapper, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10deprecated_9decorator_1wrapper(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("wrapper (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (__pyx_kwds_len > 0) {
    if (unlikely(__Pyx_CheckKeywordStrings("wrapper", __pyx_kwds) == -1)) return NULL;
    __pyx_v_kwargs = __Pyx_KwargsAsDict_VARARGS(__pyx_kwds, __pyx_kwvalues);
    if (unlikely(!__pyx_v_kwargs)) return NULL;
    __Pyx_GOTREF(__pyx_v_kwargs);
  } else {
    __pyx_v_kwargs = PyDict_New();
    if (unlikely(!__pyx_v_kwargs)) return NULL;
    __Pyx_GOTREF(__pyx_v_kwargs);
  }
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10deprecated_9decorator_wrapper(__pyx_self, __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_DECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10deprecated_9decorator_wrapper(PyObject *__pyx_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator *__pyx_cur_scope;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator *__pyx_outer_scope;
  PyObject *__pyx_v_message = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4[3];
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("wrapper", 0);
  __pyx_outer_scope = (struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator *) __Pyx_CyFunction_GetClosure(__pyx_self);
  __pyx_cur_scope = __pyx_outer_scope;

  /* "uharfbuzz/_harfbuzz.pyx":58
 *         @wraps(func)
 *         def wrapper(*args, **kwargs):
 *             message = f"{func.__name__!r} is deprecated"             # <<<<<<<<<<<<<<
 *             if replacement:
 *                 message += f", use {replacement} instead"
*/
  if (unlikely(!__pyx_cur_scope->__pyx_v_func)) { __Pyx_RaiseClosureNameError("func"); __PYX_ERR(0, 58, __pyx_L1_error) }
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_func, __pyx_mstate_global->__pyx_n_u_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 58, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_t_1), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 58, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_is_deprecated); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 58, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_message = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":59
 *         def wrapper(*args, **kwargs):
 *             message = f"{func.__name__!r} is deprecated"
 *             if replacement:             # <<<<<<<<<<<<<<
 *                 message += f", use {replacement} instead"
 *             if message not in WARNED:
*/
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_replacement)) { __Pyx_RaiseClosureNameError("replacement"); __PYX_ERR(0, 59, __pyx_L1_error) }
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_replacement); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 59, __pyx_L1_error)
  if (__pyx_t_3) {

    /* "uharfbuzz/_harfbuzz.pyx":60
 *             message = f"{func.__name__!r} is deprecated"
 *             if replacement:
 *                 message += f", use {replacement} instead"             # <<<<<<<<<<<<<<
 *             if message not in WARNED:
 *                 warnings.warn(message, DeprecationWarning)
*/
    if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_replacement)) { __Pyx_RaiseClosureNameError("replacement"); __PYX_ERR(0, 60, __pyx_L1_error) }
    __pyx_t_1 = __Pyx_PyObject_FormatSimple(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_replacement, __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 60, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4[0] = __pyx_mstate_global->__pyx_kp_u_use;
    __pyx_t_4[1] = __pyx_t_1;
    __pyx_t_4[2] = __pyx_mstate_global->__pyx_kp_u_instead;
    __pyx_t_2 = __Pyx_PyUnicode_Join(__pyx_t_4, 3, 6 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1) + 8, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1));
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 60, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_v_message, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 60, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF_SET(__pyx_v_message, ((PyObject*)__pyx_t_1));
    __pyx_t_1 = 0;

    /* "uharfbuzz/_harfbuzz.pyx":59
 *         def wrapper(*args, **kwargs):
 *             message = f"{func.__name__!r} is deprecated"
 *             if replacement:             # <<<<<<<<<<<<<<
 *                 message += f", use {replacement} instead"
 *             if message not in WARNED:
*/
  }

  /* "uharfbuzz/_harfbuzz.pyx":61
 *             if replacement:
 *                 message += f", use {replacement} instead"
 *             if message not in WARNED:             # <<<<<<<<<<<<<<
 *                 warnings.warn(message, DeprecationWarning)
 *                 WARNED.add(message)
*/
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_WARNED); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 61, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_v_message, __pyx_t_1, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 61, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_3) {

    /* "uharfbuzz/_harfbuzz.pyx":62
 *                 message += f", use {replacement} instead"
 *             if message not in WARNED:
 *                 warnings.warn(message, DeprecationWarning)             # <<<<<<<<<<<<<<
 *                 WARNED.add(message)
 *             return func(*args, **kwargs)
*/
    __pyx_t_2 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_warnings); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 62, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_warn); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 62, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_7 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_6))) {
      __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_6);
      assert(__pyx_t_2);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
      __pyx_t_7 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_v_message, ((PyObject *)(((PyTypeObject*)PyExc_DeprecationWarning)))};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_7, (3-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 62, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "uharfbuzz/_harfbuzz.pyx":63
 *             if message not in WARNED:
 *                 warnings.warn(message, DeprecationWarning)
 *                 WARNED.add(message)             # <<<<<<<<<<<<<<
 *             return func(*args, **kwargs)
 * 
*/
    __pyx_t_6 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_WARNED); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 63, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_add); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 63, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_7 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      assert(__pyx_t_6);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
      __pyx_t_7 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_v_message};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 63, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "uharfbuzz/_harfbuzz.pyx":61
 *             if replacement:
 *                 message += f", use {replacement} instead"
 *             if message not in WARNED:             # <<<<<<<<<<<<<<
 *                 warnings.warn(message, DeprecationWarning)
 *                 WARNED.add(message)
*/
  }

  /* "uharfbuzz/_harfbuzz.pyx":64
 *                 warnings.warn(message, DeprecationWarning)
 *                 WARNED.add(message)
 *             return func(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *         notice = f".. deprecated:: {since}".rstrip()
*/
  __Pyx_XDECREF(__pyx_r);
  if (unlikely(!__pyx_cur_scope->__pyx_v_func)) { __Pyx_RaiseClosureNameError("func"); __PYX_ERR(0, 64, __pyx_L1_error) }
  __pyx_t_1 = PyDict_Copy(__pyx_v_kwargs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 64, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_5 = __Pyx_PyObject_Call(__pyx_cur_scope->__pyx_v_func, __pyx_v_args, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 64, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":56
 * 
 *     def decorator(func):
 *         @wraps(func)             # <<<<<<<<<<<<<<
 *         def wrapper(*args, **kwargs):
 *             message = f"{func.__name__!r} is deprecated"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.deprecated.decorator.wrapper", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_message);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":55
 *     """
 * 
 *     def decorator(func):             # <<<<<<<<<<<<<<
 *         @wraps(func)
 *         def wrapper(*args, **kwargs):
*/

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10deprecated_decorator(PyObject *__pyx_self, PyObject *__pyx_v_func) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator *__pyx_cur_scope;
  PyObject *__pyx_v_wrapper = 0;
  PyObject *__pyx_v_notice = NULL;
  PyObject *__pyx_v_existing = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_t_7;
  PyObject *__pyx_t_8[3];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("decorator", 0);
  __pyx_cur_scope = (struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator *)__pyx_tp_new_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 55, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated *) __Pyx_CyFunction_GetClosure(__pyx_self);
  __Pyx_INCREF((PyObject *)__pyx_cur_scope->__pyx_outer_scope);
  __Pyx_GIVEREF((PyObject *)__pyx_cur_scope->__pyx_outer_scope);
  __pyx_cur_scope->__pyx_v_func = __pyx_v_func;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_func);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_func);

  /* "uharfbuzz/_harfbuzz.pyx":56
 * 
 *     def decorator(func):
 *         @wraps(func)             # <<<<<<<<<<<<<<
 *         def wrapper(*args, **kwargs):
 *             message = f"{func.__name__!r} is deprecated"
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_wraps); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 56, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_4);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_cur_scope->__pyx_v_func};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 56, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_10deprecated_9decorator_1wrapper, 0, __pyx_mstate_global->__pyx_n_u_deprecated_locals_decorator_loca, ((PyObject*)__pyx_cur_scope), __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[0])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 56, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_5};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 56, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_wrapper = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":66
 *             return func(*args, **kwargs)
 * 
 *         notice = f".. deprecated:: {since}".rstrip()             # <<<<<<<<<<<<<<
 *         if replacement:
 *             # Put the replacement note as a separate paragraph so it doesnt
*/
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_since)) { __Pyx_RaiseClosureNameError("since"); __PYX_ERR(0, 66, __pyx_L1_error) }
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_since, __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 66, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_deprecated, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 66, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_3 = __pyx_t_2;
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_6 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_rstrip, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 66, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_notice = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":67
 * 
 *         notice = f".. deprecated:: {since}".rstrip()
 *         if replacement:             # <<<<<<<<<<<<<<
 *             # Put the replacement note as a separate paragraph so it doesnt
 *             # get stripped away if there is no existing docstring.
*/
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_replacement)) { __Pyx_RaiseClosureNameError("replacement"); __PYX_ERR(0, 67, __pyx_L1_error) }
  __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_replacement); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 67, __pyx_L1_error)
  if (__pyx_t_7) {

    /* "uharfbuzz/_harfbuzz.pyx":70
 *             # Put the replacement note as a separate paragraph so it doesnt
 *             # get stripped away if there is no existing docstring.
 *             notice += f"\n\nUse :obj:`{replacement}` instead."             # <<<<<<<<<<<<<<
 *         existing = wrapper.__doc__ or ""
 *         wrapper.__doc__ = f"{notice}\n\n{existing}" if existing else notice
*/
    if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_replacement)) { __Pyx_RaiseClosureNameError("replacement"); __PYX_ERR(0, 70, __pyx_L1_error) }
    __pyx_t_1 = __Pyx_PyObject_FormatSimple(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_replacement, __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 70, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_8[0] = __pyx_mstate_global->__pyx_kp_u_Use_obj;
    __pyx_t_8[1] = __pyx_t_1;
    __pyx_t_8[2] = __pyx_mstate_global->__pyx_kp_u_instead_2;
    __pyx_t_2 = __Pyx_PyUnicode_Join(__pyx_t_8, 3, 12 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1) + 10, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1));
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 70, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_v_notice, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 70, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF_SET(__pyx_v_notice, ((PyObject*)__pyx_t_1));
    __pyx_t_1 = 0;

    /* "uharfbuzz/_harfbuzz.pyx":67
 * 
 *         notice = f".. deprecated:: {since}".rstrip()
 *         if replacement:             # <<<<<<<<<<<<<<
 *             # Put the replacement note as a separate paragraph so it doesnt
 *             # get stripped away if there is no existing docstring.
*/
  }

  /* "uharfbuzz/_harfbuzz.pyx":71
 *             # get stripped away if there is no existing docstring.
 *             notice += f"\n\nUse :obj:`{replacement}` instead."
 *         existing = wrapper.__doc__ or ""             # <<<<<<<<<<<<<<
 *         wrapper.__doc__ = f"{notice}\n\n{existing}" if existing else notice
 *         return wrapper
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_wrapper, __pyx_mstate_global->__pyx_n_u_doc); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 71, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 71, __pyx_L1_error)
  if (!__pyx_t_7) {
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  } else {
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_1 = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    goto __pyx_L4_bool_binop_done;
  }
  __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_);
  __pyx_t_1 = __pyx_mstate_global->__pyx_kp_u_;
  __pyx_L4_bool_binop_done:;
  __pyx_v_existing = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":72
 *             notice += f"\n\nUse :obj:`{replacement}` instead."
 *         existing = wrapper.__doc__ or ""
 *         wrapper.__doc__ = f"{notice}\n\n{existing}" if existing else notice             # <<<<<<<<<<<<<<
 *         return wrapper
 * 
*/
  __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_v_existing); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 72, __pyx_L1_error)
  if (__pyx_t_7) {
    __pyx_t_2 = __Pyx_PyObject_FormatSimple(__pyx_v_existing, __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 72, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_8[0] = __pyx_v_notice;
    __pyx_t_8[1] = __pyx_mstate_global->__pyx_kp_u__2;
    __pyx_t_8[2] = __pyx_t_2;
    __pyx_t_3 = __Pyx_PyUnicode_Join(__pyx_t_8, 3, __Pyx_PyUnicode_GET_LENGTH(__pyx_v_notice) + 2 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2), 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_v_notice) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_2));
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 72, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_notice);
    __pyx_t_1 = __pyx_v_notice;
  }
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_wrapper, __pyx_mstate_global->__pyx_n_u_doc, __pyx_t_1) < (0)) __PYX_ERR(0, 72, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":73
 *         existing = wrapper.__doc__ or ""
 *         wrapper.__doc__ = f"{notice}\n\n{existing}" if existing else notice
 *         return wrapper             # <<<<<<<<<<<<<<
 * 
 *     return decorator
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_wrapper);
  __pyx_r = __pyx_v_wrapper;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":55
 *     """
 * 
 *     def decorator(func):             # <<<<<<<<<<<<<<
 *         @wraps(func)
 *         def wrapper(*args, **kwargs):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.deprecated.decorator", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_wrapper);
  __Pyx_XDECREF(__pyx_v_notice);
  __Pyx_XDECREF(__pyx_v_existing);
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":48
 * 
 * 
 * def deprecated(replacement=None, since=""):             # <<<<<<<<<<<<<<
 *     """Decorator to raise a warning when a deprecated function is called.
 * 
*/

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_2deprecated(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_replacement, PyObject *__pyx_v_since) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated *__pyx_cur_scope;
  PyObject *__pyx_v_decorator = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("deprecated", 0);
  __pyx_cur_scope = (struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated *)__pyx_tp_new_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 48, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_replacement = __pyx_v_replacement;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_replacement);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_replacement);
  __pyx_cur_scope->__pyx_v_since = __pyx_v_since;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_since);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_since);

  /* "uharfbuzz/_harfbuzz.pyx":55
 *     """
 * 
 *     def decorator(func):             # <<<<<<<<<<<<<<
 *         @wraps(func)
 *         def wrapper(*args, **kwargs):
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_10deprecated_1decorator, 0, __pyx_mstate_global->__pyx_n_u_deprecated_locals_decorator, ((PyObject*)__pyx_cur_scope), __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[1])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 55, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_decorator = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":75
 *         return wrapper
 * 
 *     return decorator             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_decorator);
  __pyx_r = __pyx_v_decorator;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":48
 * 
 * 
 * def deprecated(replacement=None, since=""):             # <<<<<<<<<<<<<<
 *     """Decorator to raise a warning when a deprecated function is called.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.deprecated", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_decorator);
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":21
 *     INVALID_VALUE = HB_SET_VALUE_INVALID
 * 
 *     def __cinit__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         self._hb_set = NULL
 * 
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_3Set_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_3Set_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (__pyx_kwds_len > 0) {
    if (unlikely(__Pyx_CheckKeywordStrings("__cinit__", __pyx_kwds) == -1)) return -1;
  }
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set___cinit__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_3Set___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  int __pyx_r;

  /* "src/uharfbuzz/_set.pxi":22
 * 
 *     def __cinit__(self, *args, **kwargs):
 *         self._hb_set = NULL             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, init = set()):
*/
  __pyx_v_self->_hb_set = NULL;

  /* "src/uharfbuzz/_set.pxi":21
 *     INVALID_VALUE = HB_SET_VALUE_INVALID
 * 
 *     def __cinit__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         self._hb_set = NULL
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":24
 *         self._hb_set = NULL
 * 
 *     def __init__(self, init = set()):             # <<<<<<<<<<<<<<
 *         self._hb_set = hb_set_create()
 *         if not hb_set_allocation_successful(self._hb_set):
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_3Set_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_3Set_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_init = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 24, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 24, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__init__", 0) < (0)) __PYX_ERR(2, 24, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(__pyx_mstate_global->__pyx_k__3);
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 24, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(__pyx_mstate_global->__pyx_k__3);
    }
    __pyx_v_init = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(2, 24, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_2__init__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self), __pyx_v_init);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_2__init__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, PyObject *__pyx_v_init) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "src/uharfbuzz/_set.pxi":25
 * 
 *     def __init__(self, init = set()):
 *         self._hb_set = hb_set_create()             # <<<<<<<<<<<<<<
 *         if not hb_set_allocation_successful(self._hb_set):
 *             raise MemoryError()
*/
  __pyx_v_self->_hb_set = hb_set_create();

  /* "src/uharfbuzz/_set.pxi":26
 *     def __init__(self, init = set()):
 *         self._hb_set = hb_set_create()
 *         if not hb_set_allocation_successful(self._hb_set):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  __pyx_t_1 = (!(hb_set_allocation_successful(__pyx_v_self->_hb_set) != 0));
  if (unlikely(__pyx_t_1)) {

    /* "src/uharfbuzz/_set.pxi":27
 *         self._hb_set = hb_set_create()
 *         if not hb_set_allocation_successful(self._hb_set):
 *             raise MemoryError()             # <<<<<<<<<<<<<<
 * 
 *         self.set(init)
*/
    PyErr_NoMemory(); __PYX_ERR(2, 27, __pyx_L1_error)

    /* "src/uharfbuzz/_set.pxi":26
 *     def __init__(self, init = set()):
 *         self._hb_set = hb_set_create()
 *         if not hb_set_allocation_successful(self._hb_set):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  }

  /* "src/uharfbuzz/_set.pxi":29
 *             raise MemoryError()
 * 
 *         self.set(init)             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
  __pyx_t_3 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_init};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 29, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_set.pxi":24
 *         self._hb_set = NULL
 * 
 *     def __init__(self, init = set()):             # <<<<<<<<<<<<<<
 *         self._hb_set = hb_set_create()
 *         if not hb_set_allocation_successful(self._hb_set):
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":31
 *         self.set(init)
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         hb_set_destroy(self._hb_set)
 * 
*/

/* Python wrapper */
static void __pyx_pw_9uharfbuzz_9_harfbuzz_3Set_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_9uharfbuzz_9_harfbuzz_3Set_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_4__dealloc__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_4__dealloc__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self) {

  /* "src/uharfbuzz/_set.pxi":32
 * 
 *     def __dealloc__(self):
 *         hb_set_destroy(self._hb_set)             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
*/
  hb_set_destroy(__pyx_v_self->_hb_set);

  /* "src/uharfbuzz/_set.pxi":31
 *         self.set(init)
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         hb_set_destroy(self._hb_set)
 * 
*/

  /* function exit code */
}

/* "src/uharfbuzz/_set.pxi":34
 *         hb_set_destroy(self._hb_set)
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     cdef Set from_ptr(hb_set_t* hb_set):
 *         """Create Set from a pointer, taking ownership of it."""
*/

static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_f_9uharfbuzz_9_harfbuzz_3Set_from_ptr(hb_set_t *__pyx_v_hb_set) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_wrapper = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("from_ptr", 0);

  /* "src/uharfbuzz/_set.pxi":38
 *         """Create Set from a pointer, taking ownership of it."""
 * 
 *         cdef Set wrapper = Set.__new__(Set)             # <<<<<<<<<<<<<<
 *         wrapper._hb_set = hb_set
 *         return wrapper
*/
  __pyx_t_1 = ((PyObject *)__pyx_tp_new_9uharfbuzz_9_harfbuzz_Set(((PyTypeObject *)__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set), __pyx_mstate_global->__pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 38, __pyx_L1_error)
  __Pyx_GOTREF((PyObject *)__pyx_t_1);
  __pyx_v_wrapper = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_set.pxi":39
 * 
 *         cdef Set wrapper = Set.__new__(Set)
 *         wrapper._hb_set = hb_set             # <<<<<<<<<<<<<<
 *         return wrapper
 * 
*/
  __pyx_v_wrapper->_hb_set = __pyx_v_hb_set;

  /* "src/uharfbuzz/_set.pxi":40
 *         cdef Set wrapper = Set.__new__(Set)
 *         wrapper._hb_set = hb_set
 *         return wrapper             # <<<<<<<<<<<<<<
 * 
 *     def copy(self) -> Set:
*/
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_wrapper);
  __pyx_r = __pyx_v_wrapper;
  goto __pyx_L0;

  /* "src/uharfbuzz/_set.pxi":34
 *         hb_set_destroy(self._hb_set)
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     cdef Set from_ptr(hb_set_t* hb_set):
 *         """Create Set from a pointer, taking ownership of it."""
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.from_ptr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_wrapper);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":42
 *         return wrapper
 * 
 *     def copy(self) -> Set:             # <<<<<<<<<<<<<<
 *         """Allocate a copy of this set.
 * 
*/

/* Python wrapper */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_7copy(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_3Set_6copy, "Allocate a copy of this set.\n\n        :returns: Newly-allocated set.\n\n        Wraps `hb_set_copy()\n        <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-copy>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_7copy = {"copy", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_7copy, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Set_6copy};
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_7copy(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("copy (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("copy", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("copy", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_6copy(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_6copy(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_c = NULL;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("copy", 0);

  /* "src/uharfbuzz/_set.pxi":50
 *         <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-copy>`_.
 *         """
 *         c = Set()             # <<<<<<<<<<<<<<
 *         c._hb_set = hb_set_copy(self._hb_set)
 *         return c
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 50, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_c = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_set.pxi":51
 *         """
 *         c = Set()
 *         c._hb_set = hb_set_copy(self._hb_set)             # <<<<<<<<<<<<<<
 *         return c
 * 
*/
  __pyx_v_c->_hb_set = hb_set_copy(__pyx_v_self->_hb_set);

  /* "src/uharfbuzz/_set.pxi":52
 *         c = Set()
 *         c._hb_set = hb_set_copy(self._hb_set)
 *         return c             # <<<<<<<<<<<<<<
 * 
 *     def __copy__(self) -> Set:
*/
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_c);
  __pyx_r = __pyx_v_c;
  goto __pyx_L0;

  /* "src/uharfbuzz/_set.pxi":42
 *         return wrapper
 * 
 *     def copy(self) -> Set:             # <<<<<<<<<<<<<<
 *         """Allocate a copy of this set.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.copy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_c);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":54
 *         return c
 * 
 *     def __copy__(self) -> Set:             # <<<<<<<<<<<<<<
 *         return self.copy()
 * 
*/

/* Python wrapper */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_9__copy__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_9__copy__ = {"__copy__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_9__copy__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_9__copy__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__copy__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__copy__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__copy__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_8__copy__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_8__copy__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__copy__", 0);

  /* "src/uharfbuzz/_set.pxi":55
 * 
 *     def __copy__(self) -> Set:
 *         return self.copy()             # <<<<<<<<<<<<<<
 * 
 *     def clear(self):
*/
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_copy, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 55, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set))))) __PYX_ERR(2, 55, __pyx_L1_error)
  __pyx_r = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_set.pxi":54
 *         return c
 * 
 *     def __copy__(self) -> Set:             # <<<<<<<<<<<<<<
 *         return self.copy()
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.__copy__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":57
 *         return self.copy()
 * 
 *     def clear(self):             # <<<<<<<<<<<<<<
 *         """Clears out the contents of this set.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_11clear(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_3Set_10clear, "Clears out the contents of this set.\n\n        Wraps `hb_set_clear()\n        <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-clear>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_11clear = {"clear", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_11clear, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Set_10clear};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_11clear(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("clear (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("clear", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("clear", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_10clear(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_10clear(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("clear", 0);

  /* "src/uharfbuzz/_set.pxi":63
 *         <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-clear>`_.
 *         """
 *         hb_set_clear(self._hb_set)             # <<<<<<<<<<<<<<
 * 
 *     def __bool__(self) -> bool:
*/
  hb_set_clear(__pyx_v_self->_hb_set);

  /* "src/uharfbuzz/_set.pxi":57
 *         return self.copy()
 * 
 *     def clear(self):             # <<<<<<<<<<<<<<
 *         """Clears out the contents of this set.
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":65
 *         hb_set_clear(self._hb_set)
 * 
 *     def __bool__(self) -> bool:             # <<<<<<<<<<<<<<
 *         return not hb_set_is_empty(self._hb_set)
 * 
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_3Set_13__bool__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_3Set_13__bool__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__bool__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_12__bool__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_12__bool__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self) {
  int __pyx_r;

  /* "src/uharfbuzz/_set.pxi":66
 * 
 *     def __bool__(self) -> bool:
 *         return not hb_set_is_empty(self._hb_set)             # <<<<<<<<<<<<<<
 * 
 *     def invert(self):
*/
  __pyx_r = (!(hb_set_is_empty(__pyx_v_self->_hb_set) != 0));
  goto __pyx_L0;

  /* "src/uharfbuzz/_set.pxi":65
 *         hb_set_clear(self._hb_set)
 * 
 *     def __bool__(self) -> bool:             # <<<<<<<<<<<<<<
 *         return not hb_set_is_empty(self._hb_set)
 * 
*/

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":68
 *         return not hb_set_is_empty(self._hb_set)
 * 
 *     def invert(self):             # <<<<<<<<<<<<<<
 *         """Inverts the contents of this set.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_15invert(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_3Set_14invert, "Inverts the contents of this set.\n\n        Wraps `hb_set_invert()\n        <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-invert>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_15invert = {"invert", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_15invert, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Set_14invert};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_15invert(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("invert (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("invert", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("invert", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_14invert(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_14invert(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("invert", 0);

  /* "src/uharfbuzz/_set.pxi":74
 *         <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-invert>`_.
 *         """
 *         hb_set_invert(self._hb_set)             # <<<<<<<<<<<<<<
 * 
 *     def is_inverted(self) -> bool:
*/
  hb_set_invert(__pyx_v_self->_hb_set);

  /* "src/uharfbuzz/_set.pxi":68
 *         return not hb_set_is_empty(self._hb_set)
 * 
 *     def invert(self):             # <<<<<<<<<<<<<<
 *         """Inverts the contents of this set.
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":76
 *         hb_set_invert(self._hb_set)
 * 
 *     def is_inverted(self) -> bool:             # <<<<<<<<<<<<<<
 *         """Returns whether the set is inverted.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_17is_inverted(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_3Set_16is_inverted, "Returns whether the set is inverted.\n\n        :returns: ``True`` if the set is inverted, ``False`` otherwise.\n\n        Wraps `hb_set_is_inverted()\n        <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-is-inverted>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_17is_inverted = {"is_inverted", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_17is_inverted, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Set_16is_inverted};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_17is_inverted(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_inverted (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("is_inverted", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("is_inverted", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_16is_inverted(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_16is_inverted(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("is_inverted", 0);

  /* "src/uharfbuzz/_set.pxi":84
 *         <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-is-inverted>`_.
 *         """
 *         return hb_set_is_inverted(self._hb_set)             # <<<<<<<<<<<<<<
 * 
 *     def __contains__(self, c) -> bool:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_hb_bool_t(hb_set_is_inverted(__pyx_v_self->_hb_set)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 84, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_set.pxi":76
 *         hb_set_invert(self._hb_set)
 * 
 *     def is_inverted(self) -> bool:             # <<<<<<<<<<<<<<
 *         """Returns whether the set is inverted.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.is_inverted", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":86
 *         return hb_set_is_inverted(self._hb_set)
 * 
 *     def __contains__(self, c) -> bool:             # <<<<<<<<<<<<<<
 *         if type(c) != int:
 *             return False
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_3Set_19__contains__(PyObject *__pyx_v_self, PyObject *__pyx_v_c); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_3Set_19__contains__(PyObject *__pyx_v_self, PyObject *__pyx_v_c) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__contains__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_18__contains__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self), ((PyObject *)__pyx_v_c));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_18__contains__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, PyObject *__pyx_v_c) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  hb_codepoint_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__contains__", 0);

  /* "src/uharfbuzz/_set.pxi":87
 * 
 *     def __contains__(self, c) -> bool:
 *         if type(c) != int:             # <<<<<<<<<<<<<<
 *             return False
 *         if c < 0 or c >= self.INVALID_VALUE:
*/
  __pyx_t_1 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_c)), ((PyObject *)(&PyLong_Type)), Py_NE); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 87, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 87, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "src/uharfbuzz/_set.pxi":88
 *     def __contains__(self, c) -> bool:
 *         if type(c) != int:
 *             return False             # <<<<<<<<<<<<<<
 *         if c < 0 or c >= self.INVALID_VALUE:
 *             return False
*/
    __pyx_r = 0;
    goto __pyx_L0;

    /* "src/uharfbuzz/_set.pxi":87
 * 
 *     def __contains__(self, c) -> bool:
 *         if type(c) != int:             # <<<<<<<<<<<<<<
 *             return False
 *         if c < 0 or c >= self.INVALID_VALUE:
*/
  }

  /* "src/uharfbuzz/_set.pxi":89
 *         if type(c) != int:
 *             return False
 *         if c < 0 or c >= self.INVALID_VALUE:             # <<<<<<<<<<<<<<
 *             return False
 *         return hb_set_has(self._hb_set, c)
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_c, __pyx_mstate_global->__pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 89, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(2, 89, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (!__pyx_t_3) {
  } else {
    __pyx_t_2 = __pyx_t_3;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_INVALID_VALUE); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 89, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyObject_RichCompare(__pyx_v_c, __pyx_t_1, Py_GE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 89, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(2, 89, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_2 = __pyx_t_3;
  __pyx_L5_bool_binop_done:;
  if (__pyx_t_2) {

    /* "src/uharfbuzz/_set.pxi":90
 *             return False
 *         if c < 0 or c >= self.INVALID_VALUE:
 *             return False             # <<<<<<<<<<<<<<
 *         return hb_set_has(self._hb_set, c)
 * 
*/
    __pyx_r = 0;
    goto __pyx_L0;

    /* "src/uharfbuzz/_set.pxi":89
 *         if type(c) != int:
 *             return False
 *         if c < 0 or c >= self.INVALID_VALUE:             # <<<<<<<<<<<<<<
 *             return False
 *         return hb_set_has(self._hb_set, c)
*/
  }

  /* "src/uharfbuzz/_set.pxi":91
 *         if c < 0 or c >= self.INVALID_VALUE:
 *             return False
 *         return hb_set_has(self._hb_set, c)             # <<<<<<<<<<<<<<
 * 
 *     def add(self, c: int):
*/
  __pyx_t_5 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_c); if (unlikely((__pyx_t_5 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(2, 91, __pyx_L1_error)
  __pyx_r = hb_set_has(__pyx_v_self->_hb_set, __pyx_t_5);
  goto __pyx_L0;

  /* "src/uharfbuzz/_set.pxi":86
 *         return hb_set_is_inverted(self._hb_set)
 * 
 *     def __contains__(self, c) -> bool:             # <<<<<<<<<<<<<<
 *         if type(c) != int:
 *             return False
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.__contains__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":93
 *         return hb_set_has(self._hb_set, c)
 * 
 *     def add(self, c: int):             # <<<<<<<<<<<<<<
 *         """Adds ``c`` to this set.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_21add(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_3Set_20add, "Adds ``c`` to this set.\n\n        Wraps `hb_set_add()\n        <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-add>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_21add = {"add", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_21add, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Set_20add};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_21add(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_c = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("add (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_c,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 93, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 93, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "add", 0) < (0)) __PYX_ERR(2, 93, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("add", 1, 1, 1, i); __PYX_ERR(2, 93, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 93, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "c", 0) < (0)) __PYX_ERR(2, 93, __pyx_L3_error)
    __pyx_v_c = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("add", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 93, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.add", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_c), (&PyLong_Type), 0, "c", 2))) __PYX_ERR(2, 93, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_20add(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self), __pyx_v_c);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_20add(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, PyObject *__pyx_v_c) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  hb_codepoint_t __pyx_t_1;
  int __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("add", 0);

  /* "src/uharfbuzz/_set.pxi":99
 *         <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-add>`_.
 *         """
 *         hb_set_add(self._hb_set, c)             # <<<<<<<<<<<<<<
 *         if not hb_set_allocation_successful(self._hb_set):
 *             raise MemoryError()
*/
  __pyx_t_1 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_c); if (unlikely((__pyx_t_1 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(2, 99, __pyx_L1_error)
  hb_set_add(__pyx_v_self->_hb_set, __pyx_t_1);

  /* "src/uharfbuzz/_set.pxi":100
 *         """
 *         hb_set_add(self._hb_set, c)
 *         if not hb_set_allocation_successful(self._hb_set):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  __pyx_t_2 = (!(hb_set_allocation_successful(__pyx_v_self->_hb_set) != 0));
  if (unlikely(__pyx_t_2)) {

    /* "src/uharfbuzz/_set.pxi":101
 *         hb_set_add(self._hb_set, c)
 *         if not hb_set_allocation_successful(self._hb_set):
 *             raise MemoryError()             # <<<<<<<<<<<<<<
 * 
 *     def add_range(self, first: int, last: int):
*/
    PyErr_NoMemory(); __PYX_ERR(2, 101, __pyx_L1_error)

    /* "src/uharfbuzz/_set.pxi":100
 *         """
 *         hb_set_add(self._hb_set, c)
 *         if not hb_set_allocation_successful(self._hb_set):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  }

  /* "src/uharfbuzz/_set.pxi":93
 *         return hb_set_has(self._hb_set, c)
 * 
 *     def add(self, c: int):             # <<<<<<<<<<<<<<
 *         """Adds ``c`` to this set.
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.add", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":103
 *             raise MemoryError()
 * 
 *     def add_range(self, first: int, last: int):             # <<<<<<<<<<<<<<
 *         """Adds all of the elements from ``first`` to ``last`` (inclusive)
 *         to this set.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_23add_range(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_3Set_22add_range, "Adds all of the elements from ``first`` to ``last`` (inclusive)\n        to this set.\n\n        Wraps `hb_set_add_range()\n        <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-add-range>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_23add_range = {"add_range", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_23add_range, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Set_22add_range};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_23add_range(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_first = 0;
  PyObject *__pyx_v_last = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("add_range (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_first,&__pyx_mstate_global->__pyx_n_u_last,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 103, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 103, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 103, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "add_range", 0) < (0)) __PYX_ERR(2, 103, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("add_range", 1, 2, 2, i); __PYX_ERR(2, 103, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 103, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 103, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "first", 0) < (0)) __PYX_ERR(2, 103, __pyx_L3_error)
    __pyx_v_first = ((PyObject*)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "last", 0) < (0)) __PYX_ERR(2, 103, __pyx_L3_error)
    __pyx_v_last = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("add_range", 1, 2, 2, __pyx_nargs); __PYX_ERR(2, 103, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.add_range", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_first), (&PyLong_Type), 0, "first", 2))) __PYX_ERR(2, 103, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_last), (&PyLong_Type), 0, "last", 2))) __PYX_ERR(2, 103, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_22add_range(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self), __pyx_v_first, __pyx_v_last);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_22add_range(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, PyObject *__pyx_v_first, PyObject *__pyx_v_last) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  hb_codepoint_t __pyx_t_1;
  hb_codepoint_t __pyx_t_2;
  int __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("add_range", 0);

  /* "src/uharfbuzz/_set.pxi":110
 *         <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-add-range>`_.
 *         """
 *         hb_set_add_range(self._hb_set, first, last)             # <<<<<<<<<<<<<<
 *         if not hb_set_allocation_successful(self._hb_set):
 *             raise MemoryError()
*/
  __pyx_t_1 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_first); if (unlikely((__pyx_t_1 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(2, 110, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_last); if (unlikely((__pyx_t_2 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(2, 110, __pyx_L1_error)
  hb_set_add_range(__pyx_v_self->_hb_set, __pyx_t_1, __pyx_t_2);

  /* "src/uharfbuzz/_set.pxi":111
 *         """
 *         hb_set_add_range(self._hb_set, first, last)
 *         if not hb_set_allocation_successful(self._hb_set):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  __pyx_t_3 = (!(hb_set_allocation_successful(__pyx_v_self->_hb_set) != 0));
  if (unlikely(__pyx_t_3)) {

    /* "src/uharfbuzz/_set.pxi":112
 *         hb_set_add_range(self._hb_set, first, last)
 *         if not hb_set_allocation_successful(self._hb_set):
 *             raise MemoryError()             # <<<<<<<<<<<<<<
 * 
 *     def remove(self, c: int):
*/
    PyErr_NoMemory(); __PYX_ERR(2, 112, __pyx_L1_error)

    /* "src/uharfbuzz/_set.pxi":111
 *         """
 *         hb_set_add_range(self._hb_set, first, last)
 *         if not hb_set_allocation_successful(self._hb_set):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  }

  /* "src/uharfbuzz/_set.pxi":103
 *             raise MemoryError()
 * 
 *     def add_range(self, first: int, last: int):             # <<<<<<<<<<<<<<
 *         """Adds all of the elements from ``first`` to ``last`` (inclusive)
 *         to this set.
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.add_range", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":114
 *             raise MemoryError()
 * 
 *     def remove(self, c: int):             # <<<<<<<<<<<<<<
 *         """Removes ``c`` from this set, raising :class:`KeyError` if ``c``
 *         is not in the set.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_25remove(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_3Set_24remove, "Removes ``c`` from this set, raising :class:`KeyError` if ``c``\n        is not in the set.\n\n        Wraps `hb_set_del()\n        <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-del>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_25remove = {"remove", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_25remove, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Set_24remove};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_25remove(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_c = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("remove (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_c,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 114, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 114, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "remove", 0) < (0)) __PYX_ERR(2, 114, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("remove", 1, 1, 1, i); __PYX_ERR(2, 114, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 114, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "c", 0) < (0)) __PYX_ERR(2, 114, __pyx_L3_error)
    __pyx_v_c = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("remove", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 114, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.remove", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_c), (&PyLong_Type), 0, "c", 2))) __PYX_ERR(2, 114, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_24remove(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self), __pyx_v_c);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_24remove(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, PyObject *__pyx_v_c) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  hb_codepoint_t __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("remove", 0);

  /* "src/uharfbuzz/_set.pxi":121
 *         <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-del>`_.
 *         """
 *         if not c in self:             # <<<<<<<<<<<<<<
 *             raise KeyError, c
 *         hb_set_del(self._hb_set, c)
*/
  __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_v_c, ((PyObject *)__pyx_v_self), Py_NE)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(2, 121, __pyx_L1_error)
  if (unlikely(__pyx_t_1)) {

    /* "src/uharfbuzz/_set.pxi":122
 *         """
 *         if not c in self:
 *             raise KeyError, c             # <<<<<<<<<<<<<<
 *         hb_set_del(self._hb_set, c)
 *         if not hb_set_allocation_successful(self._hb_set):
*/
    __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_KeyError))), __pyx_v_c, 0, 0);
    __PYX_ERR(2, 122, __pyx_L1_error)

    /* "src/uharfbuzz/_set.pxi":121
 *         <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-del>`_.
 *         """
 *         if not c in self:             # <<<<<<<<<<<<<<
 *             raise KeyError, c
 *         hb_set_del(self._hb_set, c)
*/
  }

  /* "src/uharfbuzz/_set.pxi":123
 *         if not c in self:
 *             raise KeyError, c
 *         hb_set_del(self._hb_set, c)             # <<<<<<<<<<<<<<
 *         if not hb_set_allocation_successful(self._hb_set):
 *             raise MemoryError()
*/
  __pyx_t_2 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_c); if (unlikely((__pyx_t_2 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(2, 123, __pyx_L1_error)
  hb_set_del(__pyx_v_self->_hb_set, __pyx_t_2);

  /* "src/uharfbuzz/_set.pxi":124
 *             raise KeyError, c
 *         hb_set_del(self._hb_set, c)
 *         if not hb_set_allocation_successful(self._hb_set):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  __pyx_t_1 = (!(hb_set_allocation_successful(__pyx_v_self->_hb_set) != 0));
  if (unlikely(__pyx_t_1)) {

    /* "src/uharfbuzz/_set.pxi":125
 *         hb_set_del(self._hb_set, c)
 *         if not hb_set_allocation_successful(self._hb_set):
 *             raise MemoryError()             # <<<<<<<<<<<<<<
 * 
 *     def discard(self, c: int):
*/
    PyErr_NoMemory(); __PYX_ERR(2, 125, __pyx_L1_error)

    /* "src/uharfbuzz/_set.pxi":124
 *             raise KeyError, c
 *         hb_set_del(self._hb_set, c)
 *         if not hb_set_allocation_successful(self._hb_set):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  }

  /* "src/uharfbuzz/_set.pxi":114
 *             raise MemoryError()
 * 
 *     def remove(self, c: int):             # <<<<<<<<<<<<<<
 *         """Removes ``c`` from this set, raising :class:`KeyError` if ``c``
 *         is not in the set.
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.remove", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":127
 *             raise MemoryError()
 * 
 *     def discard(self, c: int):             # <<<<<<<<<<<<<<
 *         """Removes ``c`` from this set if it is present.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_27discard(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_3Set_26discard, "Removes ``c`` from this set if it is present.\n\n        Wraps `hb_set_del()\n        <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-del>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_27discard = {"discard", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_27discard, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Set_26discard};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_27discard(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_c = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("discard (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_c,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 127, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 127, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "discard", 0) < (0)) __PYX_ERR(2, 127, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("discard", 1, 1, 1, i); __PYX_ERR(2, 127, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 127, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "c", 0) < (0)) __PYX_ERR(2, 127, __pyx_L3_error)
    __pyx_v_c = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("discard", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 127, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.discard", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_c), (&PyLong_Type), 0, "c", 2))) __PYX_ERR(2, 127, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_26discard(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self), __pyx_v_c);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_26discard(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, PyObject *__pyx_v_c) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  hb_codepoint_t __pyx_t_1;
  int __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("discard", 0);

  /* "src/uharfbuzz/_set.pxi":133
 *         <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-del>`_.
 *         """
 *         hb_set_del(self._hb_set, c)             # <<<<<<<<<<<<<<
 *         if not hb_set_allocation_successful(self._hb_set):
 *             raise MemoryError()
*/
  __pyx_t_1 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_c); if (unlikely((__pyx_t_1 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(2, 133, __pyx_L1_error)
  hb_set_del(__pyx_v_self->_hb_set, __pyx_t_1);

  /* "src/uharfbuzz/_set.pxi":134
 *         """
 *         hb_set_del(self._hb_set, c)
 *         if not hb_set_allocation_successful(self._hb_set):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  __pyx_t_2 = (!(hb_set_allocation_successful(__pyx_v_self->_hb_set) != 0));
  if (unlikely(__pyx_t_2)) {

    /* "src/uharfbuzz/_set.pxi":135
 *         hb_set_del(self._hb_set, c)
 *         if not hb_set_allocation_successful(self._hb_set):
 *             raise MemoryError()             # <<<<<<<<<<<<<<
 * 
 *     def del_range(self, first: int, last: int):
*/
    PyErr_NoMemory(); __PYX_ERR(2, 135, __pyx_L1_error)

    /* "src/uharfbuzz/_set.pxi":134
 *         """
 *         hb_set_del(self._hb_set, c)
 *         if not hb_set_allocation_successful(self._hb_set):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  }

  /* "src/uharfbuzz/_set.pxi":127
 *             raise MemoryError()
 * 
 *     def discard(self, c: int):             # <<<<<<<<<<<<<<
 *         """Removes ``c`` from this set if it is present.
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.discard", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":137
 *             raise MemoryError()
 * 
 *     def del_range(self, first: int, last: int):             # <<<<<<<<<<<<<<
 *         """Removes all of the elements from ``first`` to ``last`` (inclusive)
 *         from this set.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_29del_range(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_3Set_28del_range, "Removes all of the elements from ``first`` to ``last`` (inclusive)\n        from this set.\n\n        If ``last`` is :attr:`INVALID_VALUE`, then all values greater than\n        or equal to ``first`` are removed.\n\n        Wraps `hb_set_del_range()\n        <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-del-range>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_29del_range = {"del_range", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_29del_range, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Set_28del_range};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_29del_range(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_first = 0;
  PyObject *__pyx_v_last = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("del_range (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_first,&__pyx_mstate_global->__pyx_n_u_last,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 137, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 137, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 137, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "del_range", 0) < (0)) __PYX_ERR(2, 137, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("del_range", 1, 2, 2, i); __PYX_ERR(2, 137, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 137, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 137, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "first", 0) < (0)) __PYX_ERR(2, 137, __pyx_L3_error)
    __pyx_v_first = ((PyObject*)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "last", 0) < (0)) __PYX_ERR(2, 137, __pyx_L3_error)
    __pyx_v_last = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("del_range", 1, 2, 2, __pyx_nargs); __PYX_ERR(2, 137, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.del_range", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_first), (&PyLong_Type), 0, "first", 2))) __PYX_ERR(2, 137, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_last), (&PyLong_Type), 0, "last", 2))) __PYX_ERR(2, 137, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_28del_range(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self), __pyx_v_first, __pyx_v_last);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_28del_range(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, PyObject *__pyx_v_first, PyObject *__pyx_v_last) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  hb_codepoint_t __pyx_t_1;
  hb_codepoint_t __pyx_t_2;
  int __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("del_range", 0);

  /* "src/uharfbuzz/_set.pxi":147
 *         <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-del-range>`_.
 *         """
 *         hb_set_del_range(self._hb_set, first, last)             # <<<<<<<<<<<<<<
 *         if not hb_set_allocation_successful(self._hb_set):
 *             raise MemoryError()
*/
  __pyx_t_1 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_first); if (unlikely((__pyx_t_1 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(2, 147, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_last); if (unlikely((__pyx_t_2 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(2, 147, __pyx_L1_error)
  hb_set_del_range(__pyx_v_self->_hb_set, __pyx_t_1, __pyx_t_2);

  /* "src/uharfbuzz/_set.pxi":148
 *         """
 *         hb_set_del_range(self._hb_set, first, last)
 *         if not hb_set_allocation_successful(self._hb_set):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  __pyx_t_3 = (!(hb_set_allocation_successful(__pyx_v_self->_hb_set) != 0));
  if (unlikely(__pyx_t_3)) {

    /* "src/uharfbuzz/_set.pxi":149
 *         hb_set_del_range(self._hb_set, first, last)
 *         if not hb_set_allocation_successful(self._hb_set):
 *             raise MemoryError()             # <<<<<<<<<<<<<<
 * 
 *     def _is_equal(self, other: Set) -> bool:
*/
    PyErr_NoMemory(); __PYX_ERR(2, 149, __pyx_L1_error)

    /* "src/uharfbuzz/_set.pxi":148
 *         """
 *         hb_set_del_range(self._hb_set, first, last)
 *         if not hb_set_allocation_successful(self._hb_set):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  }

  /* "src/uharfbuzz/_set.pxi":137
 *             raise MemoryError()
 * 
 *     def del_range(self, first: int, last: int):             # <<<<<<<<<<<<<<
 *         """Removes all of the elements from ``first`` to ``last`` (inclusive)
 *         from this set.
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.del_range", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":151
 *             raise MemoryError()
 * 
 *     def _is_equal(self, other: Set) -> bool:             # <<<<<<<<<<<<<<
 *         return hb_set_is_equal(self._hb_set, other._hb_set)
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_31_is_equal(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_31_is_equal = {"_is_equal", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_31_is_equal, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_31_is_equal(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_other = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_is_equal (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_other,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 151, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 151, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_is_equal", 0) < (0)) __PYX_ERR(2, 151, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_is_equal", 1, 1, 1, i); __PYX_ERR(2, 151, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 151, __pyx_L3_error)
    }
    __pyx_v_other = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_is_equal", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 151, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set._is_equal", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, 0, "other", 0))) __PYX_ERR(2, 151, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_30_is_equal(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self), __pyx_v_other);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_30_is_equal(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_is_equal", 0);

  /* "src/uharfbuzz/_set.pxi":152
 * 
 *     def _is_equal(self, other: Set) -> bool:
 *         return hb_set_is_equal(self._hb_set, other._hb_set)             # <<<<<<<<<<<<<<
 * 
 *     def __eq__(self, other):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_hb_bool_t(hb_set_is_equal(__pyx_v_self->_hb_set, __pyx_v_other->_hb_set)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 152, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_set.pxi":151
 *             raise MemoryError()
 * 
 *     def _is_equal(self, other: Set) -> bool:             # <<<<<<<<<<<<<<
 *         return hb_set_is_equal(self._hb_set, other._hb_set)
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set._is_equal", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":154
 *         return hb_set_is_equal(self._hb_set, other._hb_set)
 * 
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if type(other) != Set:
 *             return NotImplemented
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_33__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_33__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_32__eq__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self), ((PyObject *)__pyx_v_other));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_32__eq__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__eq__", 0);

  /* "src/uharfbuzz/_set.pxi":155
 * 
 *     def __eq__(self, other):
 *         if type(other) != Set:             # <<<<<<<<<<<<<<
 *             return NotImplemented
 *         return self._is_equal(other)
*/
  __pyx_t_1 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_other)), ((PyObject *)__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set), Py_NE); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 155, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 155, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "src/uharfbuzz/_set.pxi":156
 *     def __eq__(self, other):
 *         if type(other) != Set:
 *             return NotImplemented             # <<<<<<<<<<<<<<
 *         return self._is_equal(other)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_builtin_NotImplemented);
    __pyx_r = __pyx_builtin_NotImplemented;
    goto __pyx_L0;

    /* "src/uharfbuzz/_set.pxi":155
 * 
 *     def __eq__(self, other):
 *         if type(other) != Set:             # <<<<<<<<<<<<<<
 *             return NotImplemented
 *         return self._is_equal(other)
*/
  }

  /* "src/uharfbuzz/_set.pxi":157
 *         if type(other) != Set:
 *             return NotImplemented
 *         return self._is_equal(other)             # <<<<<<<<<<<<<<
 * 
 *     def issubset(self, larger_set: Set) -> bool:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_other};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_is_equal, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 157, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_set.pxi":154
 *         return hb_set_is_equal(self._hb_set, other._hb_set)
 * 
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if type(other) != Set:
 *             return NotImplemented
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":159
 *         return self._is_equal(other)
 * 
 *     def issubset(self, larger_set: Set) -> bool:             # <<<<<<<<<<<<<<
 *         """Tests whether this set is a subset of ``larger_set``.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_35issubset(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_3Set_34issubset, "Tests whether this set is a subset of ``larger_set``.\n\n        :returns: ``True`` if this set is a subset of (or equal to)\n            ``larger_set``, ``False`` otherwise.\n\n        Wraps `hb_set_is_subset()\n        <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-is-subset>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_35issubset = {"issubset", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_35issubset, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Set_34issubset};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_35issubset(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_larger_set = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("issubset (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_larger_set,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 159, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 159, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "issubset", 0) < (0)) __PYX_ERR(2, 159, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("issubset", 1, 1, 1, i); __PYX_ERR(2, 159, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 159, __pyx_L3_error)
    }
    __pyx_v_larger_set = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("issubset", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 159, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.issubset", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_larger_set), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, 0, "larger_set", 0))) __PYX_ERR(2, 159, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_34issubset(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self), __pyx_v_larger_set);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_34issubset(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_larger_set) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("issubset", 0);

  /* "src/uharfbuzz/_set.pxi":168
 *         <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-is-subset>`_.
 *         """
 *         return hb_set_is_subset(self._hb_set, larger_set._hb_set)             # <<<<<<<<<<<<<<
 * 
 *     def issuperset(self, smaller_set: Set) -> bool:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_hb_bool_t(hb_set_is_subset(__pyx_v_self->_hb_set, __pyx_v_larger_set->_hb_set)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 168, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_set.pxi":159
 *         return self._is_equal(other)
 * 
 *     def issubset(self, larger_set: Set) -> bool:             # <<<<<<<<<<<<<<
 *         """Tests whether this set is a subset of ``larger_set``.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.issubset", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":170
 *         return hb_set_is_subset(self._hb_set, larger_set._hb_set)
 * 
 *     def issuperset(self, smaller_set: Set) -> bool:             # <<<<<<<<<<<<<<
 *         """Tests whether ``smaller_set`` is a subset of this set.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_37issuperset(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_3Set_36issuperset, "Tests whether ``smaller_set`` is a subset of this set.\n\n        :returns: ``True`` if ``smaller_set`` is a subset of (or equal to)\n            this set, ``False`` otherwise.\n\n        Wraps `hb_set_is_subset()\n        <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-is-subset>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_37issuperset = {"issuperset", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_37issuperset, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Set_36issuperset};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_37issuperset(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_smaller_set = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("issuperset (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_smaller_set,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 170, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 170, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "issuperset", 0) < (0)) __PYX_ERR(2, 170, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("issuperset", 1, 1, 1, i); __PYX_ERR(2, 170, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 170, __pyx_L3_error)
    }
    __pyx_v_smaller_set = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("issuperset", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 170, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.issuperset", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_smaller_set), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, 0, "smaller_set", 0))) __PYX_ERR(2, 170, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_36issuperset(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self), __pyx_v_smaller_set);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_36issuperset(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_smaller_set) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("issuperset", 0);

  /* "src/uharfbuzz/_set.pxi":179
 *         <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-is-subset>`_.
 *         """
 *         return hb_set_is_subset(smaller_set._hb_set, self._hb_set)             # <<<<<<<<<<<<<<
 * 
 *     def _set(self, other: Set):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_hb_bool_t(hb_set_is_subset(__pyx_v_smaller_set->_hb_set, __pyx_v_self->_hb_set)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 179, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_set.pxi":170
 *         return hb_set_is_subset(self._hb_set, larger_set._hb_set)
 * 
 *     def issuperset(self, smaller_set: Set) -> bool:             # <<<<<<<<<<<<<<
 *         """Tests whether ``smaller_set`` is a subset of this set.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.issuperset", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":181
 *         return hb_set_is_subset(smaller_set._hb_set, self._hb_set)
 * 
 *     def _set(self, other: Set):             # <<<<<<<<<<<<<<
 *         hb_set_set(self._hb_set, other._hb_set)
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_39_set(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_39_set = {"_set", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_39_set, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_39_set(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_other = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_set (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_other,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 181, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 181, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_set", 0) < (0)) __PYX_ERR(2, 181, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_set", 1, 1, 1, i); __PYX_ERR(2, 181, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 181, __pyx_L3_error)
    }
    __pyx_v_other = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_set", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 181, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set._set", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, 0, "other", 0))) __PYX_ERR(2, 181, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_38_set(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self), __pyx_v_other);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_38_set(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_set", 0);

  /* "src/uharfbuzz/_set.pxi":182
 * 
 *     def _set(self, other: Set):
 *         hb_set_set(self._hb_set, other._hb_set)             # <<<<<<<<<<<<<<
 * 
 *     def set(self, other):
*/
  hb_set_set(__pyx_v_self->_hb_set, __pyx_v_other->_hb_set);

  /* "src/uharfbuzz/_set.pxi":181
 *         return hb_set_is_subset(smaller_set._hb_set, self._hb_set)
 * 
 *     def _set(self, other: Set):             # <<<<<<<<<<<<<<
 *         hb_set_set(self._hb_set, other._hb_set)
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":184
 *         hb_set_set(self._hb_set, other._hb_set)
 * 
 *     def set(self, other):             # <<<<<<<<<<<<<<
 *         """Makes the contents of this set equal to the contents of ``other``.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_41set(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_3Set_40set, "Makes the contents of this set equal to the contents of ``other``.\n\n        :param other: Another :class:`Set`, or any iterable of integers.\n\n        Wraps `hb_set_set()\n        <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-set>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_41set = {"set", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_41set, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Set_40set};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_41set(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_other = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_other,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 184, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 184, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set", 0) < (0)) __PYX_ERR(2, 184, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set", 1, 1, 1, i); __PYX_ERR(2, 184, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 184, __pyx_L3_error)
    }
    __pyx_v_other = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 184, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.set", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_40set(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self), __pyx_v_other);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_40set(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_v_c = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  PyObject *(*__pyx_t_6)(PyObject *);
  hb_codepoint_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("set", 0);

  /* "src/uharfbuzz/_set.pxi":192
 *         <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-set>`_.
 *         """
 *         if type(other) == Set:             # <<<<<<<<<<<<<<
 *             self._set(other)
 *         else:
*/
  __pyx_t_1 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_other)), ((PyObject *)__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 192, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 192, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "src/uharfbuzz/_set.pxi":193
 *         """
 *         if type(other) == Set:
 *             self._set(other)             # <<<<<<<<<<<<<<
 *         else:
 *             for c in other:
*/
    __pyx_t_3 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_other};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_2, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 193, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "src/uharfbuzz/_set.pxi":192
 *         <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-set>`_.
 *         """
 *         if type(other) == Set:             # <<<<<<<<<<<<<<
 *             self._set(other)
 *         else:
*/
    goto __pyx_L3;
  }

  /* "src/uharfbuzz/_set.pxi":195
 *             self._set(other)
 *         else:
 *             for c in other:             # <<<<<<<<<<<<<<
 *                 hb_set_add(self._hb_set, c)
 * 
*/
  /*else*/ {
    if (likely(PyList_CheckExact(__pyx_v_other)) || PyTuple_CheckExact(__pyx_v_other)) {
      __pyx_t_1 = __pyx_v_other; __Pyx_INCREF(__pyx_t_1);
      __pyx_t_5 = 0;
      __pyx_t_6 = NULL;
    } else {
      __pyx_t_5 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_other); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 195, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_6 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 195, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_6)) {
        if (likely(PyList_CheckExact(__pyx_t_1))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 195, __pyx_L1_error)
            #endif
            if (__pyx_t_5 >= __pyx_temp) break;
          }
          __pyx_t_3 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_5, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_5;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 195, __pyx_L1_error)
            #endif
            if (__pyx_t_5 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_3 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_5));
          #else
          __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_5);
          #endif
          ++__pyx_t_5;
        }
        if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 195, __pyx_L1_error)
      } else {
        __pyx_t_3 = __pyx_t_6(__pyx_t_1);
        if (unlikely(!__pyx_t_3)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(2, 195, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_v_c, __pyx_t_3);
      __pyx_t_3 = 0;

      /* "src/uharfbuzz/_set.pxi":196
 *         else:
 *             for c in other:
 *                 hb_set_add(self._hb_set, c)             # <<<<<<<<<<<<<<
 * 
 *         if not hb_set_allocation_successful(self._hb_set):
*/
      __pyx_t_7 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_c); if (unlikely((__pyx_t_7 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(2, 196, __pyx_L1_error)
      hb_set_add(__pyx_v_self->_hb_set, __pyx_t_7);

      /* "src/uharfbuzz/_set.pxi":195
 *             self._set(other)
 *         else:
 *             for c in other:             # <<<<<<<<<<<<<<
 *                 hb_set_add(self._hb_set, c)
 * 
*/
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }
  __pyx_L3:;

  /* "src/uharfbuzz/_set.pxi":198
 *                 hb_set_add(self._hb_set, c)
 * 
 *         if not hb_set_allocation_successful(self._hb_set):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  __pyx_t_2 = (!(hb_set_allocation_successful(__pyx_v_self->_hb_set) != 0));
  if (unlikely(__pyx_t_2)) {

    /* "src/uharfbuzz/_set.pxi":199
 * 
 *         if not hb_set_allocation_successful(self._hb_set):
 *             raise MemoryError()             # <<<<<<<<<<<<<<
 * 
 *     def _update(self, other: Set):
*/
    PyErr_NoMemory(); __PYX_ERR(2, 199, __pyx_L1_error)

    /* "src/uharfbuzz/_set.pxi":198
 *                 hb_set_add(self._hb_set, c)
 * 
 *         if not hb_set_allocation_successful(self._hb_set):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  }

  /* "src/uharfbuzz/_set.pxi":184
 *         hb_set_set(self._hb_set, other._hb_set)
 * 
 *     def set(self, other):             # <<<<<<<<<<<<<<
 *         """Makes the contents of this set equal to the contents of ``other``.
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.set", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_c);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":201
 *             raise MemoryError()
 * 
 *     def _update(self, other: Set):             # <<<<<<<<<<<<<<
 *         hb_set_union(self._hb_set, other._hb_set)
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_43_update(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_43_update = {"_update", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_43_update, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_43_update(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_other = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_update (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_other,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 201, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 201, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_update", 0) < (0)) __PYX_ERR(2, 201, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_update", 1, 1, 1, i); __PYX_ERR(2, 201, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 201, __pyx_L3_error)
    }
    __pyx_v_other = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_update", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 201, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set._update", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, 0, "other", 0))) __PYX_ERR(2, 201, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_42_update(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self), __pyx_v_other);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_42_update(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_update", 0);

  /* "src/uharfbuzz/_set.pxi":202
 * 
 *     def _update(self, other: Set):
 *         hb_set_union(self._hb_set, other._hb_set)             # <<<<<<<<<<<<<<
 * 
 *     def update(self, other):
*/
  hb_set_union(__pyx_v_self->_hb_set, __pyx_v_other->_hb_set);

  /* "src/uharfbuzz/_set.pxi":201
 *             raise MemoryError()
 * 
 *     def _update(self, other: Set):             # <<<<<<<<<<<<<<
 *         hb_set_union(self._hb_set, other._hb_set)
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":204
 *         hb_set_union(self._hb_set, other._hb_set)
 * 
 *     def update(self, other):             # <<<<<<<<<<<<<<
 *         """Makes this set the union of itself and ``other``.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_45update(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_3Set_44update, "Makes this set the union of itself and ``other``.\n\n        :param other: Another :class:`Set`, or any iterable of integers.\n\n        Wraps `hb_set_union()\n        <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-union>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_45update = {"update", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_45update, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Set_44update};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_45update(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_other = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("update (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_other,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 204, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 204, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "update", 0) < (0)) __PYX_ERR(2, 204, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("update", 1, 1, 1, i); __PYX_ERR(2, 204, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 204, __pyx_L3_error)
    }
    __pyx_v_other = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("update", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 204, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.update", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_44update(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self), __pyx_v_other);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_44update(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_v_c = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  PyObject *(*__pyx_t_6)(PyObject *);
  hb_codepoint_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("update", 0);

  /* "src/uharfbuzz/_set.pxi":212
 *         <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-union>`_.
 *         """
 *         if type(other) == Set:             # <<<<<<<<<<<<<<
 *             self._update(other)
 *         else:
*/
  __pyx_t_1 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_other)), ((PyObject *)__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 212, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 212, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "src/uharfbuzz/_set.pxi":213
 *         """
 *         if type(other) == Set:
 *             self._update(other)             # <<<<<<<<<<<<<<
 *         else:
 *             for c in other:
*/
    __pyx_t_3 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_other};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_update, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 213, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "src/uharfbuzz/_set.pxi":212
 *         <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-union>`_.
 *         """
 *         if type(other) == Set:             # <<<<<<<<<<<<<<
 *             self._update(other)
 *         else:
*/
    goto __pyx_L3;
  }

  /* "src/uharfbuzz/_set.pxi":215
 *             self._update(other)
 *         else:
 *             for c in other:             # <<<<<<<<<<<<<<
 *                 hb_set_add(self._hb_set, c)
 * 
*/
  /*else*/ {
    if (likely(PyList_CheckExact(__pyx_v_other)) || PyTuple_CheckExact(__pyx_v_other)) {
      __pyx_t_1 = __pyx_v_other; __Pyx_INCREF(__pyx_t_1);
      __pyx_t_5 = 0;
      __pyx_t_6 = NULL;
    } else {
      __pyx_t_5 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_other); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 215, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_6 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 215, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_6)) {
        if (likely(PyList_CheckExact(__pyx_t_1))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 215, __pyx_L1_error)
            #endif
            if (__pyx_t_5 >= __pyx_temp) break;
          }
          __pyx_t_3 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_5, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_5;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 215, __pyx_L1_error)
            #endif
            if (__pyx_t_5 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_3 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_5));
          #else
          __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_5);
          #endif
          ++__pyx_t_5;
        }
        if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 215, __pyx_L1_error)
      } else {
        __pyx_t_3 = __pyx_t_6(__pyx_t_1);
        if (unlikely(!__pyx_t_3)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(2, 215, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_v_c, __pyx_t_3);
      __pyx_t_3 = 0;

      /* "src/uharfbuzz/_set.pxi":216
 *         else:
 *             for c in other:
 *                 hb_set_add(self._hb_set, c)             # <<<<<<<<<<<<<<
 * 
 *         if not hb_set_allocation_successful(self._hb_set):
*/
      __pyx_t_7 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_c); if (unlikely((__pyx_t_7 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(2, 216, __pyx_L1_error)
      hb_set_add(__pyx_v_self->_hb_set, __pyx_t_7);

      /* "src/uharfbuzz/_set.pxi":215
 *             self._update(other)
 *         else:
 *             for c in other:             # <<<<<<<<<<<<<<
 *                 hb_set_add(self._hb_set, c)
 * 
*/
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }
  __pyx_L3:;

  /* "src/uharfbuzz/_set.pxi":218
 *                 hb_set_add(self._hb_set, c)
 * 
 *         if not hb_set_allocation_successful(self._hb_set):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  __pyx_t_2 = (!(hb_set_allocation_successful(__pyx_v_self->_hb_set) != 0));
  if (unlikely(__pyx_t_2)) {

    /* "src/uharfbuzz/_set.pxi":219
 * 
 *         if not hb_set_allocation_successful(self._hb_set):
 *             raise MemoryError()             # <<<<<<<<<<<<<<
 * 
 *     def __ior__(self, other):
*/
    PyErr_NoMemory(); __PYX_ERR(2, 219, __pyx_L1_error)

    /* "src/uharfbuzz/_set.pxi":218
 *                 hb_set_add(self._hb_set, c)
 * 
 *         if not hb_set_allocation_successful(self._hb_set):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  }

  /* "src/uharfbuzz/_set.pxi":204
 *         hb_set_union(self._hb_set, other._hb_set)
 * 
 *     def update(self, other):             # <<<<<<<<<<<<<<
 *         """Makes this set the union of itself and ``other``.
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.update", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_c);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":221
 *             raise MemoryError()
 * 
 *     def __ior__(self, other):             # <<<<<<<<<<<<<<
 *         self.update(other)
 *         return self
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_47__ior__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_47__ior__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__ior__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_46__ior__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self), ((PyObject *)__pyx_v_other));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_46__ior__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__ior__", 0);

  /* "src/uharfbuzz/_set.pxi":222
 * 
 *     def __ior__(self, other):
 *         self.update(other)             # <<<<<<<<<<<<<<
 *         return self
 * 
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_other};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_update_2, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 222, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/uharfbuzz/_set.pxi":223
 *     def __ior__(self, other):
 *         self.update(other)
 *         return self             # <<<<<<<<<<<<<<
 * 
 *     def intersection_update(self, other: Set):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self);
  __pyx_r = ((PyObject *)__pyx_v_self);
  goto __pyx_L0;

  /* "src/uharfbuzz/_set.pxi":221
 *             raise MemoryError()
 * 
 *     def __ior__(self, other):             # <<<<<<<<<<<<<<
 *         self.update(other)
 *         return self
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.__ior__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":225
 *         return self
 * 
 *     def intersection_update(self, other: Set):             # <<<<<<<<<<<<<<
 *         """Makes this set the intersection of itself and ``other``.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_49intersection_update(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_3Set_48intersection_update, "Makes this set the intersection of itself and ``other``.\n\n        Wraps `hb_set_intersect()\n        <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-intersect>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_49intersection_update = {"intersection_update", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_49intersection_update, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Set_48intersection_update};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_49intersection_update(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_other = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("intersection_update (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_other,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 225, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 225, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "intersection_update", 0) < (0)) __PYX_ERR(2, 225, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("intersection_update", 1, 1, 1, i); __PYX_ERR(2, 225, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 225, __pyx_L3_error)
    }
    __pyx_v_other = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("intersection_update", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 225, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.intersection_update", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, 0, "other", 0))) __PYX_ERR(2, 225, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_48intersection_update(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self), __pyx_v_other);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_48intersection_update(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("intersection_update", 0);

  /* "src/uharfbuzz/_set.pxi":231
 *         <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-intersect>`_.
 *         """
 *         hb_set_intersect(self._hb_set, other._hb_set)             # <<<<<<<<<<<<<<
 *         if not hb_set_allocation_successful(self._hb_set):
 *             raise MemoryError()
*/
  hb_set_intersect(__pyx_v_self->_hb_set, __pyx_v_other->_hb_set);

  /* "src/uharfbuzz/_set.pxi":232
 *         """
 *         hb_set_intersect(self._hb_set, other._hb_set)
 *         if not hb_set_allocation_successful(self._hb_set):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  __pyx_t_1 = (!(hb_set_allocation_successful(__pyx_v_self->_hb_set) != 0));
  if (unlikely(__pyx_t_1)) {

    /* "src/uharfbuzz/_set.pxi":233
 *         hb_set_intersect(self._hb_set, other._hb_set)
 *         if not hb_set_allocation_successful(self._hb_set):
 *             raise MemoryError()             # <<<<<<<<<<<<<<
 * 
 *     def __iand__(self, other: Set):
*/
    PyErr_NoMemory(); __PYX_ERR(2, 233, __pyx_L1_error)

    /* "src/uharfbuzz/_set.pxi":232
 *         """
 *         hb_set_intersect(self._hb_set, other._hb_set)
 *         if not hb_set_allocation_successful(self._hb_set):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  }

  /* "src/uharfbuzz/_set.pxi":225
 *         return self
 * 
 *     def intersection_update(self, other: Set):             # <<<<<<<<<<<<<<
 *         """Makes this set the intersection of itself and ``other``.
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.intersection_update", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":235
 *             raise MemoryError()
 * 
 *     def __iand__(self, other: Set):             # <<<<<<<<<<<<<<
 *         self.intersection_update(other)
 *         return self
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_51__iand__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_51__iand__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__iand__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, 0, "other", 0))) __PYX_ERR(2, 235, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_50__iand__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self), ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_50__iand__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__iand__", 0);

  /* "src/uharfbuzz/_set.pxi":236
 * 
 *     def __iand__(self, other: Set):
 *         self.intersection_update(other)             # <<<<<<<<<<<<<<
 *         return self
 * 
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, ((PyObject *)__pyx_v_other)};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_intersection_update, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 236, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/uharfbuzz/_set.pxi":237
 *     def __iand__(self, other: Set):
 *         self.intersection_update(other)
 *         return self             # <<<<<<<<<<<<<<
 * 
 *     def difference_update(self, other: Set):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self);
  __pyx_r = ((PyObject *)__pyx_v_self);
  goto __pyx_L0;

  /* "src/uharfbuzz/_set.pxi":235
 *             raise MemoryError()
 * 
 *     def __iand__(self, other: Set):             # <<<<<<<<<<<<<<
 *         self.intersection_update(other)
 *         return self
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.__iand__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":239
 *         return self
 * 
 *     def difference_update(self, other: Set):             # <<<<<<<<<<<<<<
 *         """Subtracts the contents of ``other`` from this set.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_53difference_update(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_3Set_52difference_update, "Subtracts the contents of ``other`` from this set.\n\n        Wraps `hb_set_subtract()\n        <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-subtract>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_53difference_update = {"difference_update", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_53difference_update, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Set_52difference_update};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_53difference_update(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_other = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("difference_update (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_other,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 239, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 239, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "difference_update", 0) < (0)) __PYX_ERR(2, 239, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("difference_update", 1, 1, 1, i); __PYX_ERR(2, 239, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 239, __pyx_L3_error)
    }
    __pyx_v_other = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("difference_update", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 239, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.difference_update", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, 0, "other", 0))) __PYX_ERR(2, 239, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_52difference_update(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self), __pyx_v_other);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_52difference_update(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("difference_update", 0);

  /* "src/uharfbuzz/_set.pxi":245
 *         <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-subtract>`_.
 *         """
 *         hb_set_subtract(self._hb_set, other._hb_set)             # <<<<<<<<<<<<<<
 *         if not hb_set_allocation_successful(self._hb_set):
 *             raise MemoryError()
*/
  hb_set_subtract(__pyx_v_self->_hb_set, __pyx_v_other->_hb_set);

  /* "src/uharfbuzz/_set.pxi":246
 *         """
 *         hb_set_subtract(self._hb_set, other._hb_set)
 *         if not hb_set_allocation_successful(self._hb_set):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  __pyx_t_1 = (!(hb_set_allocation_successful(__pyx_v_self->_hb_set) != 0));
  if (unlikely(__pyx_t_1)) {

    /* "src/uharfbuzz/_set.pxi":247
 *         hb_set_subtract(self._hb_set, other._hb_set)
 *         if not hb_set_allocation_successful(self._hb_set):
 *             raise MemoryError()             # <<<<<<<<<<<<<<
 * 
 *     def __isub__(self, other: Set):
*/
    PyErr_NoMemory(); __PYX_ERR(2, 247, __pyx_L1_error)

    /* "src/uharfbuzz/_set.pxi":246
 *         """
 *         hb_set_subtract(self._hb_set, other._hb_set)
 *         if not hb_set_allocation_successful(self._hb_set):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  }

  /* "src/uharfbuzz/_set.pxi":239
 *         return self
 * 
 *     def difference_update(self, other: Set):             # <<<<<<<<<<<<<<
 *         """Subtracts the contents of ``other`` from this set.
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.difference_update", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":249
 *             raise MemoryError()
 * 
 *     def __isub__(self, other: Set):             # <<<<<<<<<<<<<<
 *         self.difference_update(other)
 *         return self
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_55__isub__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_55__isub__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__isub__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, 0, "other", 0))) __PYX_ERR(2, 249, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_54__isub__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self), ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_54__isub__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__isub__", 0);

  /* "src/uharfbuzz/_set.pxi":250
 * 
 *     def __isub__(self, other: Set):
 *         self.difference_update(other)             # <<<<<<<<<<<<<<
 *         return self
 * 
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, ((PyObject *)__pyx_v_other)};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_difference_update, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 250, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/uharfbuzz/_set.pxi":251
 *     def __isub__(self, other: Set):
 *         self.difference_update(other)
 *         return self             # <<<<<<<<<<<<<<
 * 
 *     def symmetric_difference_update(self, other: Set):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self);
  __pyx_r = ((PyObject *)__pyx_v_self);
  goto __pyx_L0;

  /* "src/uharfbuzz/_set.pxi":249
 *             raise MemoryError()
 * 
 *     def __isub__(self, other: Set):             # <<<<<<<<<<<<<<
 *         self.difference_update(other)
 *         return self
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.__isub__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":253
 *         return self
 * 
 *     def symmetric_difference_update(self, other: Set):             # <<<<<<<<<<<<<<
 *         """Makes this set the symmetric difference of itself and ``other``.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_57symmetric_difference_update(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_3Set_56symmetric_difference_update, "Makes this set the symmetric difference of itself and ``other``.\n\n        Wraps `hb_set_symmetric_difference()\n        <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-symmetric-difference>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_57symmetric_difference_update = {"symmetric_difference_update", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_57symmetric_difference_update, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Set_56symmetric_difference_update};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_57symmetric_difference_update(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_other = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("symmetric_difference_update (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_other,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 253, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 253, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "symmetric_difference_update", 0) < (0)) __PYX_ERR(2, 253, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("symmetric_difference_update", 1, 1, 1, i); __PYX_ERR(2, 253, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 253, __pyx_L3_error)
    }
    __pyx_v_other = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("symmetric_difference_update", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 253, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.symmetric_difference_update", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, 0, "other", 0))) __PYX_ERR(2, 253, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_56symmetric_difference_update(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self), __pyx_v_other);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_56symmetric_difference_update(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("symmetric_difference_update", 0);

  /* "src/uharfbuzz/_set.pxi":259
 *         <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-symmetric-difference>`_.
 *         """
 *         hb_set_symmetric_difference(self._hb_set, other._hb_set)             # <<<<<<<<<<<<<<
 *         if not hb_set_allocation_successful(self._hb_set):
 *             raise MemoryError()
*/
  hb_set_symmetric_difference(__pyx_v_self->_hb_set, __pyx_v_other->_hb_set);

  /* "src/uharfbuzz/_set.pxi":260
 *         """
 *         hb_set_symmetric_difference(self._hb_set, other._hb_set)
 *         if not hb_set_allocation_successful(self._hb_set):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  __pyx_t_1 = (!(hb_set_allocation_successful(__pyx_v_self->_hb_set) != 0));
  if (unlikely(__pyx_t_1)) {

    /* "src/uharfbuzz/_set.pxi":261
 *         hb_set_symmetric_difference(self._hb_set, other._hb_set)
 *         if not hb_set_allocation_successful(self._hb_set):
 *             raise MemoryError()             # <<<<<<<<<<<<<<
 * 
 *     def __ixor__(self, other: Set):
*/
    PyErr_NoMemory(); __PYX_ERR(2, 261, __pyx_L1_error)

    /* "src/uharfbuzz/_set.pxi":260
 *         """
 *         hb_set_symmetric_difference(self._hb_set, other._hb_set)
 *         if not hb_set_allocation_successful(self._hb_set):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  }

  /* "src/uharfbuzz/_set.pxi":253
 *         return self
 * 
 *     def symmetric_difference_update(self, other: Set):             # <<<<<<<<<<<<<<
 *         """Makes this set the symmetric difference of itself and ``other``.
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.symmetric_difference_update", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":263
 *             raise MemoryError()
 * 
 *     def __ixor__(self, other: Set):             # <<<<<<<<<<<<<<
 *         self.symmetric_difference_update(other)
 *         return self
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_59__ixor__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_59__ixor__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__ixor__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, 0, "other", 0))) __PYX_ERR(2, 263, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_58__ixor__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self), ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_58__ixor__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__ixor__", 0);

  /* "src/uharfbuzz/_set.pxi":264
 * 
 *     def __ixor__(self, other: Set):
 *         self.symmetric_difference_update(other)             # <<<<<<<<<<<<<<
 *         return self
 * 
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, ((PyObject *)__pyx_v_other)};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_symmetric_difference_update, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 264, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/uharfbuzz/_set.pxi":265
 *     def __ixor__(self, other: Set):
 *         self.symmetric_difference_update(other)
 *         return self             # <<<<<<<<<<<<<<
 * 
 *     def __len__(self) -> int:
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self);
  __pyx_r = ((PyObject *)__pyx_v_self);
  goto __pyx_L0;

  /* "src/uharfbuzz/_set.pxi":263
 *             raise MemoryError()
 * 
 *     def __ixor__(self, other: Set):             # <<<<<<<<<<<<<<
 *         self.symmetric_difference_update(other)
 *         return self
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.__ixor__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":267
 *         return self
 * 
 *     def __len__(self) -> int:             # <<<<<<<<<<<<<<
 *         return hb_set_get_population(self._hb_set)
 * 
*/

/* Python wrapper */
static Py_ssize_t __pyx_pw_9uharfbuzz_9_harfbuzz_3Set_61__len__(PyObject *__pyx_v_self); /*proto*/
static Py_ssize_t __pyx_pw_9uharfbuzz_9_harfbuzz_3Set_61__len__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__len__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_60__len__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_ssize_t __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_60__len__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self) {
  Py_ssize_t __pyx_r;

  /* "src/uharfbuzz/_set.pxi":268
 * 
 *     def __len__(self) -> int:
 *         return hb_set_get_population(self._hb_set)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __pyx_r = hb_set_get_population(__pyx_v_self->_hb_set);
  goto __pyx_L0;

  /* "src/uharfbuzz/_set.pxi":267
 *         return self
 * 
 *     def __len__(self) -> int:             # <<<<<<<<<<<<<<
 *         return hb_set_get_population(self._hb_set)
 * 
*/

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":270
 *         return hb_set_get_population(self._hb_set)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def min(self) -> int:
 *         """The smallest element in the set, or :attr:`INVALID_VALUE` if the
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_3min_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_3min_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_3min___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_3min___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_set.pxi":280
 *         <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-get-min>`_.
 *         """
 *         return hb_set_get_min(self._hb_set)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_hb_codepoint_t(hb_set_get_min(__pyx_v_self->_hb_set)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 280, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_set.pxi":270
 *         return hb_set_get_population(self._hb_set)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def min(self) -> int:
 *         """The smallest element in the set, or :attr:`INVALID_VALUE` if the
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.min.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":282
 *         return hb_set_get_min(self._hb_set)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def max(self) -> int:
 *         """The largest element in the set, or :attr:`INVALID_VALUE` if the
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_3max_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_3max_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_3max___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_3max___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_set.pxi":292
 *         <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-get-max>`_.
 *         """
 *         return hb_set_get_max(self._hb_set)             # <<<<<<<<<<<<<<
 * 
 *     def __iter__(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_hb_codepoint_t(hb_set_get_max(__pyx_v_self->_hb_set)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 292, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_set.pxi":282
 *         return hb_set_get_min(self._hb_set)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def max(self) -> int:
 *         """The largest element in the set, or :attr:`INVALID_VALUE` if the
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.max.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":294
 *         return hb_set_get_max(self._hb_set)
 * 
 *     def __iter__(self):             # <<<<<<<<<<<<<<
 *         return SetIter(self)
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_63__iter__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_63__iter__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__iter__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_62__iter__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_62__iter__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__iter__", 0);

  /* "src/uharfbuzz/_set.pxi":295
 * 
 *     def __iter__(self):
 *         return SetIter(self)             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, ((PyObject *)__pyx_v_self)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_SetIter, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 295, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_r = ((PyObject *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_set.pxi":294
 *         return hb_set_get_max(self._hb_set)
 * 
 *     def __iter__(self):             # <<<<<<<<<<<<<<
 *         return SetIter(self)
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.__iter__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":297
 *         return SetIter(self)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self.is_inverted():
 *             return "Set({...})"
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_65__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_65__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_64__repr__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_9uharfbuzz_9_harfbuzz_3Set_8__repr___2generator(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "src/uharfbuzz/_set.pxi":300
 *         if self.is_inverted():
 *             return "Set({...})"
 *         s = ', '.join(repr(v) for v in self)             # <<<<<<<<<<<<<<
 *         return ("Set({%s})" % s)
 * 
*/

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_8__repr___genexpr(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_genexpr_arg_0) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr *)__pyx_tp_new_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(2, 300, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF((PyObject *)__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF((PyObject *)__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_9uharfbuzz_9_harfbuzz_3Set_8__repr___2generator, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[2]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_repr___locals_genexpr, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz); if (unlikely(!gen)) __PYX_ERR(2, 300, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.__repr__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_9uharfbuzz_9_harfbuzz_3Set_8__repr___2generator(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr *__pyx_cur_scope = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(2, 300, __pyx_L1_error)
  __pyx_r = PyList_New(0); if (unlikely(!__pyx_r)) __PYX_ERR(2, 300, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(2, 300, __pyx_L1_error) }
  if (likely(PyList_CheckExact(((PyObject *)__pyx_cur_scope->__pyx_genexpr_arg_0))) || PyTuple_CheckExact(((PyObject *)__pyx_cur_scope->__pyx_genexpr_arg_0))) {
    __pyx_t_1 = ((PyObject *)__pyx_cur_scope->__pyx_genexpr_arg_0); __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(((PyObject *)__pyx_cur_scope->__pyx_genexpr_arg_0)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 300, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 300, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 300, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 300, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 300, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(2, 300, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_4 = PyObject_Repr(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 300, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    if (unlikely(__Pyx_ListComp_Append(__pyx_r, (PyObject*)__pyx_t_4))) __PYX_ERR(2, 300, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":297
 *         return SetIter(self)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self.is_inverted():
 *             return "Set({...})"
*/

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_64__repr__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self) {
  PyObject *__pyx_v_s = NULL;
  PyObject *__pyx_gb_9uharfbuzz_9_harfbuzz_3Set_8__repr___2generator = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "src/uharfbuzz/_set.pxi":298
 * 
 *     def __repr__(self):
 *         if self.is_inverted():             # <<<<<<<<<<<<<<
 *             return "Set({...})"
 *         s = ', '.join(repr(v) for v in self)
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_is_inverted, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 298, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(2, 298, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_4) {

    /* "src/uharfbuzz/_set.pxi":299
 *     def __repr__(self):
 *         if self.is_inverted():
 *             return "Set({...})"             # <<<<<<<<<<<<<<
 *         s = ', '.join(repr(v) for v in self)
 *         return ("Set({%s})" % s)
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_Set);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u_Set;
    goto __pyx_L0;

    /* "src/uharfbuzz/_set.pxi":298
 * 
 *     def __repr__(self):
 *         if self.is_inverted():             # <<<<<<<<<<<<<<
 *             return "Set({...})"
 *         s = ', '.join(repr(v) for v in self)
*/
  }

  /* "src/uharfbuzz/_set.pxi":300
 *         if self.is_inverted():
 *             return "Set({...})"
 *         s = ', '.join(repr(v) for v in self)             # <<<<<<<<<<<<<<
 *         return ("Set({%s})" % s)
 * 
*/
  __pyx_t_1 = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_8__repr___genexpr(NULL, __pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 300, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_Generator_GetInlinedResult(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 300, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 300, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_s = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_set.pxi":301
 *             return "Set({...})"
 *         s = ', '.join(repr(v) for v in self)
 *         return ("Set({%s})" % s)             # <<<<<<<<<<<<<<
 * 
 * cdef class SetIter:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_Set_s, __pyx_v_s); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 301, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_set.pxi":297
 *         return SetIter(self)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self.is_inverted():
 *             return "Set({...})"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_s);
  __Pyx_XDECREF(__pyx_gb_9uharfbuzz_9_harfbuzz_3Set_8__repr___2generator);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_67__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_67__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_67__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_67__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_66__reduce_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_66__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_69__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_69__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_69__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_69__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 3, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < (0)) __PYX_ERR(4, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(4, 3, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(4, 3, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Set_68__setstate_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Set_68__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Set.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":314
 *     cdef hb_codepoint_t _c
 * 
 *     def __cinit__(self, s: Set):             # <<<<<<<<<<<<<<
 *         self.s = s
 *         self._hb_set = s._hb_set
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_7SetIter_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_7SetIter_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_s = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_s,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 314, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 314, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__cinit__", 0) < (0)) __PYX_ERR(2, 314, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(2, 314, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 314, __pyx_L3_error)
    }
    __pyx_v_s = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 314, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SetIter.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_s), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, 0, "s", 0))) __PYX_ERR(2, 314, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_7SetIter___cinit__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SetIter *)__pyx_v_self), __pyx_v_s);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_7SetIter___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SetIter *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_s) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  hb_set_t *__pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  hb_codepoint_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "src/uharfbuzz/_set.pxi":315
 * 
 *     def __cinit__(self, s: Set):
 *         self.s = s             # <<<<<<<<<<<<<<
 *         self._hb_set = s._hb_set
 *         self._c = s.INVALID_VALUE
*/
  __Pyx_INCREF((PyObject *)__pyx_v_s);
  __Pyx_GIVEREF((PyObject *)__pyx_v_s);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->s);
  __Pyx_DECREF((PyObject *)__pyx_v_self->s);
  __pyx_v_self->s = __pyx_v_s;

  /* "src/uharfbuzz/_set.pxi":316
 *     def __cinit__(self, s: Set):
 *         self.s = s
 *         self._hb_set = s._hb_set             # <<<<<<<<<<<<<<
 *         self._c = s.INVALID_VALUE
 * 
*/
  __pyx_t_1 = __pyx_v_s->_hb_set;
  __pyx_v_self->_hb_set = __pyx_t_1;

  /* "src/uharfbuzz/_set.pxi":317
 *         self.s = s
 *         self._hb_set = s._hb_set
 *         self._c = s.INVALID_VALUE             # <<<<<<<<<<<<<<
 * 
 *     def __iter__(self):
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_s), __pyx_mstate_global->__pyx_n_u_INVALID_VALUE); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 317, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_t_2); if (unlikely((__pyx_t_3 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(2, 317, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_self->_c = __pyx_t_3;

  /* "src/uharfbuzz/_set.pxi":314
 *     cdef hb_codepoint_t _c
 * 
 *     def __cinit__(self, s: Set):             # <<<<<<<<<<<<<<
 *         self.s = s
 *         self._hb_set = s._hb_set
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SetIter.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":319
 *         self._c = s.INVALID_VALUE
 * 
 *     def __iter__(self):             # <<<<<<<<<<<<<<
 *         return self
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_7SetIter_3__iter__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_7SetIter_3__iter__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__iter__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_7SetIter_2__iter__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SetIter *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_7SetIter_2__iter__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SetIter *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__iter__", 0);

  /* "src/uharfbuzz/_set.pxi":320
 * 
 *     def __iter__(self):
 *         return self             # <<<<<<<<<<<<<<
 * 
 *     def __next__(self) -> int:
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self);
  __pyx_r = ((PyObject *)__pyx_v_self);
  goto __pyx_L0;

  /* "src/uharfbuzz/_set.pxi":319
 *         self._c = s.INVALID_VALUE
 * 
 *     def __iter__(self):             # <<<<<<<<<<<<<<
 *         return self
 * 
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_set.pxi":322
 *         return self
 * 
 *     def __next__(self) -> int:             # <<<<<<<<<<<<<<
 *         ret = hb_set_next(self._hb_set, &self._c)
 *         if not ret:
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_7SetIter_5__next__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_7SetIter_5__next__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__next__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_7SetIter_4__next__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SetIter *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_7SetIter_4__next__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SetIter *__pyx_v_self) {
  hb_bool_t __pyx_v_ret;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_error_without_exception = 0; /* StopIteration */
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__next__", 0);

  /* "src/uharfbuzz/_set.pxi":323
 * 
 *     def __next__(self) -> int:
 *         ret = hb_set_next(self._hb_set, &self._c)             # <<<<<<<<<<<<<<
 *         if not ret:
 *             raise StopIteration
*/
  __pyx_v_ret = hb_set_next(__pyx_v_self->_hb_set, (&__pyx_v_self->_c));

  /* "src/uharfbuzz/_set.pxi":324
 *     def __next__(self) -> int:
 *         ret = hb_set_next(self._hb_set, &self._c)
 *         if not ret:             # <<<<<<<<<<<<<<
 *             raise StopIteration
 *         return self._c
*/
  __pyx_t_1 = (!(__pyx_v_ret != 0));
  if (unlikely(__pyx_t_1)) {

    /* "src/uharfbuzz/_set.pxi":325
 *         ret = hb_set_next(self._hb_set, &self._c)
 *         if not ret:
 *             raise StopIteration             # <<<<<<<<<<<<<<
 *         return self._c
*/
    __pyx_error_without_exception = 1;
    goto __pyx_L1_error;;

    /* "src/uharfbuzz/_set.pxi":324
 *     def __next__(self) -> int:
 *         ret = hb_set_next(self._hb_set, &self._c)
 *         if not ret:             # <<<<<<<<<<<<<<
 *             raise StopIteration
 *         return self._c
*/
  }

  /* "src/uharfbuzz/_set.pxi":326
 *         if not ret:
 *             raise StopIteration
 *         return self._c             # <<<<<<<<<<<<<<
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyLong_From_hb_codepoint_t(__pyx_v_self->_c); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 326, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_set.pxi":322
 *         return self
 * 
 *     def __next__(self) -> int:             # <<<<<<<<<<<<<<
 *         ret = hb_set_next(self._hb_set, &self._c)
 *         if not ret:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  if (!__pyx_error_without_exception) {
    __Pyx_AddTraceback("uharfbuzz._harfbuzz.SetIter.__next__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_7SetIter_7__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_7SetIter_7__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_7SetIter_7__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_7SetIter_7__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_7SetIter_6__reduce_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SetIter *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_7SetIter_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_SetIter *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SetIter.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_7SetIter_9__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_7SetIter_9__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_7SetIter_9__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_7SetIter_9__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 3, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < (0)) __PYX_ERR(4, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(4, 3, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(4, 3, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SetIter.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_7SetIter_8__setstate_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SetIter *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_7SetIter_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_SetIter *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SetIter.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_map.pxi":19
 *     INVALID_VALUE = HB_MAP_VALUE_INVALID
 * 
 *     def __cinit__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         self._hb_map = NULL
 * 
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_3Map_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_3Map_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (__pyx_kwds_len > 0) {
    if (unlikely(__Pyx_CheckKeywordStrings("__cinit__", __pyx_kwds) == -1)) return -1;
  }
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Map___cinit__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_3Map___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  int __pyx_r;

  /* "src/uharfbuzz/_map.pxi":20
 * 
 *     def __cinit__(self, *args, **kwargs):
 *         self._hb_map = NULL             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, init = dict()):
*/
  __pyx_v_self->_hb_map = NULL;

  /* "src/uharfbuzz/_map.pxi":19
 *     INVALID_VALUE = HB_MAP_VALUE_INVALID
 * 
 *     def __cinit__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         self._hb_map = NULL
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "src/uharfbuzz/_map.pxi":22
 *         self._hb_map = NULL
 * 
 *     def __init__(self, init = dict()):             # <<<<<<<<<<<<<<
 *         self._hb_map = hb_map_create()
 *         if not hb_map_allocation_successful(self._hb_map):
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_3Map_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_3Map_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_init = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(5, 22, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(5, 22, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__init__", 0) < (0)) __PYX_ERR(5, 22, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(__pyx_mstate_global->__pyx_k__5);
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(5, 22, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(__pyx_mstate_global->__pyx_k__5);
    }
    __pyx_v_init = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(5, 22, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Map.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_2__init__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)__pyx_v_self), __pyx_v_init);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_2__init__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self, PyObject *__pyx_v_init) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "src/uharfbuzz/_map.pxi":23
 * 
 *     def __init__(self, init = dict()):
 *         self._hb_map = hb_map_create()             # <<<<<<<<<<<<<<
 *         if not hb_map_allocation_successful(self._hb_map):
 *             raise MemoryError()
*/
  __pyx_v_self->_hb_map = hb_map_create();

  /* "src/uharfbuzz/_map.pxi":24
 *     def __init__(self, init = dict()):
 *         self._hb_map = hb_map_create()
 *         if not hb_map_allocation_successful(self._hb_map):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  __pyx_t_1 = (!(hb_map_allocation_successful(__pyx_v_self->_hb_map) != 0));
  if (unlikely(__pyx_t_1)) {

    /* "src/uharfbuzz/_map.pxi":25
 *         self._hb_map = hb_map_create()
 *         if not hb_map_allocation_successful(self._hb_map):
 *             raise MemoryError()             # <<<<<<<<<<<<<<
 * 
 *         self.update(init)
*/
    PyErr_NoMemory(); __PYX_ERR(5, 25, __pyx_L1_error)

    /* "src/uharfbuzz/_map.pxi":24
 *     def __init__(self, init = dict()):
 *         self._hb_map = hb_map_create()
 *         if not hb_map_allocation_successful(self._hb_map):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  }

  /* "src/uharfbuzz/_map.pxi":27
 *             raise MemoryError()
 * 
 *         self.update(init)             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
  __pyx_t_3 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_init};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_update_2, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 27, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_map.pxi":22
 *         self._hb_map = NULL
 * 
 *     def __init__(self, init = dict()):             # <<<<<<<<<<<<<<
 *         self._hb_map = hb_map_create()
 *         if not hb_map_allocation_successful(self._hb_map):
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Map.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_map.pxi":29
 *         self.update(init)
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         hb_map_destroy(self._hb_map)
 * 
*/

/* Python wrapper */
static void __pyx_pw_9uharfbuzz_9_harfbuzz_3Map_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_9uharfbuzz_9_harfbuzz_3Map_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_4__dealloc__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_4__dealloc__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self) {

  /* "src/uharfbuzz/_map.pxi":30
 * 
 *     def __dealloc__(self):
 *         hb_map_destroy(self._hb_map)             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
*/
  hb_map_destroy(__pyx_v_self->_hb_map);

  /* "src/uharfbuzz/_map.pxi":29
 *         self.update(init)
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         hb_map_destroy(self._hb_map)
 * 
*/

  /* function exit code */
}

/* "src/uharfbuzz/_map.pxi":32
 *         hb_map_destroy(self._hb_map)
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     cdef Map from_ptr(hb_map_t* hb_map):
 *         """Create Map from a pointer, taking ownership of it."""
*/

static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_f_9uharfbuzz_9_harfbuzz_3Map_from_ptr(hb_map_t *__pyx_v_hb_map) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_wrapper = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("from_ptr", 0);

  /* "src/uharfbuzz/_map.pxi":36
 *         """Create Map from a pointer, taking ownership of it."""
 * 
 *         cdef Map wrapper = Map.__new__(Map)             # <<<<<<<<<<<<<<
 *         wrapper._hb_map = hb_map
 *         return wrapper
*/
  __pyx_t_1 = ((PyObject *)__pyx_tp_new_9uharfbuzz_9_harfbuzz_Map(((PyTypeObject *)__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map), __pyx_mstate_global->__pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 36, __pyx_L1_error)
  __Pyx_GOTREF((PyObject *)__pyx_t_1);
  __pyx_v_wrapper = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_map.pxi":37
 * 
 *         cdef Map wrapper = Map.__new__(Map)
 *         wrapper._hb_map = hb_map             # <<<<<<<<<<<<<<
 *         return wrapper
 * 
*/
  __pyx_v_wrapper->_hb_map = __pyx_v_hb_map;

  /* "src/uharfbuzz/_map.pxi":38
 *         cdef Map wrapper = Map.__new__(Map)
 *         wrapper._hb_map = hb_map
 *         return wrapper             # <<<<<<<<<<<<<<
 * 
 *     def copy(self) -> Map:
*/
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_wrapper);
  __pyx_r = __pyx_v_wrapper;
  goto __pyx_L0;

  /* "src/uharfbuzz/_map.pxi":32
 *         hb_map_destroy(self._hb_map)
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     cdef Map from_ptr(hb_map_t* hb_map):
 *         """Create Map from a pointer, taking ownership of it."""
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Map.from_ptr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_wrapper);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_map.pxi":40
 *         return wrapper
 * 
 *     def copy(self) -> Map:             # <<<<<<<<<<<<<<
 *         """Allocate a copy of this map.
 * 
*/

/* Python wrapper */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_7copy(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_3Map_6copy, "Allocate a copy of this map.\n\n        :returns: Newly-allocated map.\n\n        Wraps `hb_map_copy()\n        <https://harfbuzz.github.io/harfbuzz-hb-map.html#hb-map-copy>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Map_7copy = {"copy", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_7copy, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Map_6copy};
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_7copy(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("copy (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("copy", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("copy", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_6copy(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_6copy(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_c = NULL;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("copy", 0);

  /* "src/uharfbuzz/_map.pxi":48
 *         <https://harfbuzz.github.io/harfbuzz-hb-map.html#hb-map-copy>`_.
 *         """
 *         c = Map()             # <<<<<<<<<<<<<<
 *         c._hb_map = hb_map_copy(self._hb_map)
 *         return c
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 48, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_c = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_map.pxi":49
 *         """
 *         c = Map()
 *         c._hb_map = hb_map_copy(self._hb_map)             # <<<<<<<<<<<<<<
 *         return c
 * 
*/
  __pyx_v_c->_hb_map = hb_map_copy(__pyx_v_self->_hb_map);

  /* "src/uharfbuzz/_map.pxi":50
 *         c = Map()
 *         c._hb_map = hb_map_copy(self._hb_map)
 *         return c             # <<<<<<<<<<<<<<
 * 
 *     def __copy__(self) -> Map:
*/
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_c);
  __pyx_r = __pyx_v_c;
  goto __pyx_L0;

  /* "src/uharfbuzz/_map.pxi":40
 *         return wrapper
 * 
 *     def copy(self) -> Map:             # <<<<<<<<<<<<<<
 *         """Allocate a copy of this map.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Map.copy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_c);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_map.pxi":52
 *         return c
 * 
 *     def __copy__(self) -> Map:             # <<<<<<<<<<<<<<
 *         return self.copy()
 * 
*/

/* Python wrapper */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_9__copy__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Map_9__copy__ = {"__copy__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_9__copy__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_9__copy__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__copy__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__copy__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__copy__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_8__copy__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_8__copy__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__copy__", 0);

  /* "src/uharfbuzz/_map.pxi":53
 * 
 *     def __copy__(self) -> Map:
 *         return self.copy()             # <<<<<<<<<<<<<<
 * 
 *     def _update(self, other : Map):
*/
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_copy, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 53, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map))))) __PYX_ERR(5, 53, __pyx_L1_error)
  __pyx_r = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_map.pxi":52
 *         return c
 * 
 *     def __copy__(self) -> Map:             # <<<<<<<<<<<<<<
 *         return self.copy()
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Map.__copy__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_map.pxi":55
 *         return self.copy()
 * 
 *     def _update(self, other : Map):             # <<<<<<<<<<<<<<
 *         hb_map_update(self._hb_map, other._hb_map)
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_11_update(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Map_11_update = {"_update", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_11_update, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_11_update(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_other = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_update (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_other,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(5, 55, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(5, 55, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_update", 0) < (0)) __PYX_ERR(5, 55, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_update", 1, 1, 1, i); __PYX_ERR(5, 55, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(5, 55, __pyx_L3_error)
    }
    __pyx_v_other = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_update", 1, 1, 1, __pyx_nargs); __PYX_ERR(5, 55, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Map._update", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map, 0, "other", 0))) __PYX_ERR(5, 55, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_10_update(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)__pyx_v_self), __pyx_v_other);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_10_update(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_update", 0);

  /* "src/uharfbuzz/_map.pxi":56
 * 
 *     def _update(self, other : Map):
 *         hb_map_update(self._hb_map, other._hb_map)             # <<<<<<<<<<<<<<
 * 
 *     def update(self, other):
*/
  hb_map_update(__pyx_v_self->_hb_map, __pyx_v_other->_hb_map);

  /* "src/uharfbuzz/_map.pxi":55
 *         return self.copy()
 * 
 *     def _update(self, other : Map):             # <<<<<<<<<<<<<<
 *         hb_map_update(self._hb_map, other._hb_map)
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_map.pxi":58
 *         hb_map_update(self._hb_map, other._hb_map)
 * 
 *     def update(self, other):             # <<<<<<<<<<<<<<
 *         """Add the contents of ``other`` to this map.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_13update(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_3Map_12update, "Add the contents of ``other`` to this map.\n\n        :param other: Another :class:`Map`, or any mapping of integer keys to\n            integer values.\n\n        Wraps `hb_map_update()\n        <https://harfbuzz.github.io/harfbuzz-hb-map.html#hb-map-update>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Map_13update = {"update", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_13update, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Map_12update};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_13update(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_other = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("update (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_other,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(5, 58, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(5, 58, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "update", 0) < (0)) __PYX_ERR(5, 58, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("update", 1, 1, 1, i); __PYX_ERR(5, 58, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(5, 58, __pyx_L3_error)
    }
    __pyx_v_other = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("update", 1, 1, 1, __pyx_nargs); __PYX_ERR(5, 58, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Map.update", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_12update(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)__pyx_v_self), __pyx_v_other);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_12update(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_v_k = NULL;
  PyObject *__pyx_v_v = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  hb_codepoint_t __pyx_t_10;
  hb_codepoint_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("update", 0);

  /* "src/uharfbuzz/_map.pxi":67
 *         <https://harfbuzz.github.io/harfbuzz-hb-map.html#hb-map-update>`_.
 *         """
 *         if type(other) == Map:             # <<<<<<<<<<<<<<
 *             self._update(other)
 *         else:
*/
  __pyx_t_1 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_other)), ((PyObject *)__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 67, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(5, 67, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "src/uharfbuzz/_map.pxi":68
 *         """
 *         if type(other) == Map:
 *             self._update(other)             # <<<<<<<<<<<<<<
 *         else:
 *             for k,v in other.items():
*/
    __pyx_t_3 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_other};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_update, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 68, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "src/uharfbuzz/_map.pxi":67
 *         <https://harfbuzz.github.io/harfbuzz-hb-map.html#hb-map-update>`_.
 *         """
 *         if type(other) == Map:             # <<<<<<<<<<<<<<
 *             self._update(other)
 *         else:
*/
    goto __pyx_L3;
  }

  /* "src/uharfbuzz/_map.pxi":70
 *             self._update(other)
 *         else:
 *             for k,v in other.items():             # <<<<<<<<<<<<<<
 *                 hb_map_set(self._hb_map, k, v)
 * 
*/
  /*else*/ {
    __pyx_t_5 = 0;
    if (unlikely(__pyx_v_other == Py_None)) {
      PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
      __PYX_ERR(5, 70, __pyx_L1_error)
    }
    __pyx_t_3 = __Pyx_dict_iterator(__pyx_v_other, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_6), (&__pyx_t_7)); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 70, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_XDECREF(__pyx_t_1);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
    while (1) {
      __pyx_t_9 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_6, &__pyx_t_5, &__pyx_t_3, &__pyx_t_8, NULL, __pyx_t_7);
      if (unlikely(__pyx_t_9 == 0)) break;
      if (unlikely(__pyx_t_9 == -1)) __PYX_ERR(5, 70, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_XDECREF_SET(__pyx_v_k, __pyx_t_3);
      __pyx_t_3 = 0;
      __Pyx_XDECREF_SET(__pyx_v_v, __pyx_t_8);
      __pyx_t_8 = 0;

      /* "src/uharfbuzz/_map.pxi":71
 *         else:
 *             for k,v in other.items():
 *                 hb_map_set(self._hb_map, k, v)             # <<<<<<<<<<<<<<
 * 
 *         if not hb_map_allocation_successful(self._hb_map):
*/
      __pyx_t_10 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_k); if (unlikely((__pyx_t_10 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(5, 71, __pyx_L1_error)
      __pyx_t_11 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_v); if (unlikely((__pyx_t_11 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(5, 71, __pyx_L1_error)
      hb_map_set(__pyx_v_self->_hb_map, __pyx_t_10, __pyx_t_11);
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }
  __pyx_L3:;

  /* "src/uharfbuzz/_map.pxi":73
 *                 hb_map_set(self._hb_map, k, v)
 * 
 *         if not hb_map_allocation_successful(self._hb_map):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  __pyx_t_2 = (!(hb_map_allocation_successful(__pyx_v_self->_hb_map) != 0));
  if (unlikely(__pyx_t_2)) {

    /* "src/uharfbuzz/_map.pxi":74
 * 
 *         if not hb_map_allocation_successful(self._hb_map):
 *             raise MemoryError()             # <<<<<<<<<<<<<<
 * 
 *     def clear(self):
*/
    PyErr_NoMemory(); __PYX_ERR(5, 74, __pyx_L1_error)

    /* "src/uharfbuzz/_map.pxi":73
 *                 hb_map_set(self._hb_map, k, v)
 * 
 *         if not hb_map_allocation_successful(self._hb_map):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  }

  /* "src/uharfbuzz/_map.pxi":58
 *         hb_map_update(self._hb_map, other._hb_map)
 * 
 *     def update(self, other):             # <<<<<<<<<<<<<<
 *         """Add the contents of ``other`` to this map.
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Map.update", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_k);
  __Pyx_XDECREF(__pyx_v_v);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_map.pxi":76
 *             raise MemoryError()
 * 
 *     def clear(self):             # <<<<<<<<<<<<<<
 *         """Clears out the contents of this map.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_15clear(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_3Map_14clear, "Clears out the contents of this map.\n\n        Wraps `hb_map_clear()\n        <https://harfbuzz.github.io/harfbuzz-hb-map.html#hb-map-clear>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Map_15clear = {"clear", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_15clear, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Map_14clear};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_15clear(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("clear (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("clear", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("clear", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_14clear(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_14clear(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("clear", 0);

  /* "src/uharfbuzz/_map.pxi":82
 *         <https://harfbuzz.github.io/harfbuzz-hb-map.html#hb-map-clear>`_.
 *         """
 *         hb_map_clear(self._hb_map)             # <<<<<<<<<<<<<<
 * 
 *     def __bool__(self) -> bool:
*/
  hb_map_clear(__pyx_v_self->_hb_map);

  /* "src/uharfbuzz/_map.pxi":76
 *             raise MemoryError()
 * 
 *     def clear(self):             # <<<<<<<<<<<<<<
 *         """Clears out the contents of this map.
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_map.pxi":84
 *         hb_map_clear(self._hb_map)
 * 
 *     def __bool__(self) -> bool:             # <<<<<<<<<<<<<<
 *         return not hb_map_is_empty(self._hb_map)
 * 
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_3Map_17__bool__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_3Map_17__bool__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__bool__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_16__bool__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_16__bool__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self) {
  int __pyx_r;

  /* "src/uharfbuzz/_map.pxi":85
 * 
 *     def __bool__(self) -> bool:
 *         return not hb_map_is_empty(self._hb_map)             # <<<<<<<<<<<<<<
 * 
 *     def __len__(self) -> int:
*/
  __pyx_r = (!(hb_map_is_empty(__pyx_v_self->_hb_map) != 0));
  goto __pyx_L0;

  /* "src/uharfbuzz/_map.pxi":84
 *         hb_map_clear(self._hb_map)
 * 
 *     def __bool__(self) -> bool:             # <<<<<<<<<<<<<<
 *         return not hb_map_is_empty(self._hb_map)
 * 
*/

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "src/uharfbuzz/_map.pxi":87
 *         return not hb_map_is_empty(self._hb_map)
 * 
 *     def __len__(self) -> int:             # <<<<<<<<<<<<<<
 *         return hb_map_get_population(self._hb_map)
 * 
*/

/* Python wrapper */
static Py_ssize_t __pyx_pw_9uharfbuzz_9_harfbuzz_3Map_19__len__(PyObject *__pyx_v_self); /*proto*/
static Py_ssize_t __pyx_pw_9uharfbuzz_9_harfbuzz_3Map_19__len__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__len__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_18__len__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_ssize_t __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_18__len__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self) {
  Py_ssize_t __pyx_r;

  /* "src/uharfbuzz/_map.pxi":88
 * 
 *     def __len__(self) -> int:
 *         return hb_map_get_population(self._hb_map)             # <<<<<<<<<<<<<<
 * 
 *     def _is_equal(self, other: Map) -> bool:
*/
  __pyx_r = hb_map_get_population(__pyx_v_self->_hb_map);
  goto __pyx_L0;

  /* "src/uharfbuzz/_map.pxi":87
 *         return not hb_map_is_empty(self._hb_map)
 * 
 *     def __len__(self) -> int:             # <<<<<<<<<<<<<<
 *         return hb_map_get_population(self._hb_map)
 * 
*/

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "src/uharfbuzz/_map.pxi":90
 *         return hb_map_get_population(self._hb_map)
 * 
 *     def _is_equal(self, other: Map) -> bool:             # <<<<<<<<<<<<<<
 *         return hb_map_is_equal(self._hb_map, other._hb_map)
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_21_is_equal(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Map_21_is_equal = {"_is_equal", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_21_is_equal, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_21_is_equal(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_other = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_is_equal (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_other,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(5, 90, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(5, 90, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_is_equal", 0) < (0)) __PYX_ERR(5, 90, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_is_equal", 1, 1, 1, i); __PYX_ERR(5, 90, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(5, 90, __pyx_L3_error)
    }
    __pyx_v_other = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_is_equal", 1, 1, 1, __pyx_nargs); __PYX_ERR(5, 90, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Map._is_equal", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map, 0, "other", 0))) __PYX_ERR(5, 90, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_20_is_equal(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)__pyx_v_self), __pyx_v_other);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_20_is_equal(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_is_equal", 0);

  /* "src/uharfbuzz/_map.pxi":91
 * 
 *     def _is_equal(self, other: Map) -> bool:
 *         return hb_map_is_equal(self._hb_map, other._hb_map)             # <<<<<<<<<<<<<<
 * 
 *     def __eq__(self, other):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_hb_bool_t(hb_map_is_equal(__pyx_v_self->_hb_map, __pyx_v_other->_hb_map)); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 91, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_map.pxi":90
 *         return hb_map_get_population(self._hb_map)
 * 
 *     def _is_equal(self, other: Map) -> bool:             # <<<<<<<<<<<<<<
 *         return hb_map_is_equal(self._hb_map, other._hb_map)
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Map._is_equal", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_map.pxi":93
 *         return hb_map_is_equal(self._hb_map, other._hb_map)
 * 
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if type(other) != Map:
 *             return NotImplemented
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_23__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_23__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_22__eq__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)__pyx_v_self), ((PyObject *)__pyx_v_other));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_22__eq__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__eq__", 0);

  /* "src/uharfbuzz/_map.pxi":94
 * 
 *     def __eq__(self, other):
 *         if type(other) != Map:             # <<<<<<<<<<<<<<
 *             return NotImplemented
 *         return self._is_equal(other)
*/
  __pyx_t_1 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_other)), ((PyObject *)__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map), Py_NE); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 94, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(5, 94, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "src/uharfbuzz/_map.pxi":95
 *     def __eq__(self, other):
 *         if type(other) != Map:
 *             return NotImplemented             # <<<<<<<<<<<<<<
 *         return self._is_equal(other)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_builtin_NotImplemented);
    __pyx_r = __pyx_builtin_NotImplemented;
    goto __pyx_L0;

    /* "src/uharfbuzz/_map.pxi":94
 * 
 *     def __eq__(self, other):
 *         if type(other) != Map:             # <<<<<<<<<<<<<<
 *             return NotImplemented
 *         return self._is_equal(other)
*/
  }

  /* "src/uharfbuzz/_map.pxi":96
 *         if type(other) != Map:
 *             return NotImplemented
 *         return self._is_equal(other)             # <<<<<<<<<<<<<<
 * 
 *     def __setitem__(self, k: int, v: int):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_other};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_is_equal, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 96, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_map.pxi":93
 *         return hb_map_is_equal(self._hb_map, other._hb_map)
 * 
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if type(other) != Map:
 *             return NotImplemented
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Map.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_map.pxi":98
 *         return self._is_equal(other)
 * 
 *     def __setitem__(self, k: int, v: int):             # <<<<<<<<<<<<<<
 *         hb_map_set(self._hb_map, k, v)
 *         if not hb_map_allocation_successful(self._hb_map):
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_3Map_25__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_k, PyObject *__pyx_v_v); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_3Map_25__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_k, PyObject *__pyx_v_v) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setitem__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_k), (&PyLong_Type), 0, "k", 2))) __PYX_ERR(5, 98, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), (&PyLong_Type), 0, "v", 2))) __PYX_ERR(5, 98, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_24__setitem__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)__pyx_v_self), ((PyObject*)__pyx_v_k), ((PyObject*)__pyx_v_v));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_24__setitem__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self, PyObject *__pyx_v_k, PyObject *__pyx_v_v) {
  int __pyx_r;
  hb_codepoint_t __pyx_t_1;
  hb_codepoint_t __pyx_t_2;
  int __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "src/uharfbuzz/_map.pxi":99
 * 
 *     def __setitem__(self, k: int, v: int):
 *         hb_map_set(self._hb_map, k, v)             # <<<<<<<<<<<<<<
 *         if not hb_map_allocation_successful(self._hb_map):
 *             raise MemoryError()
*/
  __pyx_t_1 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_k); if (unlikely((__pyx_t_1 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(5, 99, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_v); if (unlikely((__pyx_t_2 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(5, 99, __pyx_L1_error)
  hb_map_set(__pyx_v_self->_hb_map, __pyx_t_1, __pyx_t_2);

  /* "src/uharfbuzz/_map.pxi":100
 *     def __setitem__(self, k: int, v: int):
 *         hb_map_set(self._hb_map, k, v)
 *         if not hb_map_allocation_successful(self._hb_map):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  __pyx_t_3 = (!(hb_map_allocation_successful(__pyx_v_self->_hb_map) != 0));
  if (unlikely(__pyx_t_3)) {

    /* "src/uharfbuzz/_map.pxi":101
 *         hb_map_set(self._hb_map, k, v)
 *         if not hb_map_allocation_successful(self._hb_map):
 *             raise MemoryError()             # <<<<<<<<<<<<<<
 * 
 *     def get(self, k: int):
*/
    PyErr_NoMemory(); __PYX_ERR(5, 101, __pyx_L1_error)

    /* "src/uharfbuzz/_map.pxi":100
 *     def __setitem__(self, k: int, v: int):
 *         hb_map_set(self._hb_map, k, v)
 *         if not hb_map_allocation_successful(self._hb_map):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  }

  /* "src/uharfbuzz/_map.pxi":98
 *         return self._is_equal(other)
 * 
 *     def __setitem__(self, k: int, v: int):             # <<<<<<<<<<<<<<
 *         hb_map_set(self._hb_map, k, v)
 *         if not hb_map_allocation_successful(self._hb_map):
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Map.__setitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "src/uharfbuzz/_map.pxi":103
 *             raise MemoryError()
 * 
 *     def get(self, k: int):             # <<<<<<<<<<<<<<
 *         """Fetches the value stored for ``k`` in this map.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_27get(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_3Map_26get, "Fetches the value stored for ``k`` in this map.\n\n        :param k: The key to query.\n\n        :returns: The value stored for ``k``, or ``None`` if ``k`` is not in\n            the map.\n\n        Wraps `hb_map_get()\n        <https://harfbuzz.github.io/harfbuzz-hb-map.html#hb-map-get>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Map_27get = {"get", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_27get, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Map_26get};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_27get(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_k = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_k,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(5, 103, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(5, 103, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get", 0) < (0)) __PYX_ERR(5, 103, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get", 1, 1, 1, i); __PYX_ERR(5, 103, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(5, 103, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "k", 0) < (0)) __PYX_ERR(5, 103, __pyx_L3_error)
    __pyx_v_k = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get", 1, 1, 1, __pyx_nargs); __PYX_ERR(5, 103, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Map.get", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_k), (&PyLong_Type), 0, "k", 2))) __PYX_ERR(5, 103, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_26get(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)__pyx_v_self), __pyx_v_k);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_26get(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self, PyObject *__pyx_v_k) {
  PyObject *__pyx_v_v = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  hb_codepoint_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get", 0);

  /* "src/uharfbuzz/_map.pxi":114
 *         <https://harfbuzz.github.io/harfbuzz-hb-map.html#hb-map-get>`_.
 *         """
 *         if k < 0 or k >= self.INVALID_VALUE:             # <<<<<<<<<<<<<<
 *             return None
 *         v = hb_map_get(self._hb_map, k)
*/
  __pyx_t_2 = PyObject_RichCompare(__pyx_v_k, __pyx_mstate_global->__pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 114, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(5, 114, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_INVALID_VALUE); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 114, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = PyObject_RichCompare(__pyx_v_k, __pyx_t_2, Py_GE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 114, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(5, 114, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = __pyx_t_3;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_map.pxi":115
 *         """
 *         if k < 0 or k >= self.INVALID_VALUE:
 *             return None             # <<<<<<<<<<<<<<
 *         v = hb_map_get(self._hb_map, k)
 *         if v == self.INVALID_VALUE:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "src/uharfbuzz/_map.pxi":114
 *         <https://harfbuzz.github.io/harfbuzz-hb-map.html#hb-map-get>`_.
 *         """
 *         if k < 0 or k >= self.INVALID_VALUE:             # <<<<<<<<<<<<<<
 *             return None
 *         v = hb_map_get(self._hb_map, k)
*/
  }

  /* "src/uharfbuzz/_map.pxi":116
 *         if k < 0 or k >= self.INVALID_VALUE:
 *             return None
 *         v = hb_map_get(self._hb_map, k)             # <<<<<<<<<<<<<<
 *         if v == self.INVALID_VALUE:
 *             v = None
*/
  __pyx_t_5 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_k); if (unlikely((__pyx_t_5 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(5, 116, __pyx_L1_error)
  __pyx_t_4 = __Pyx_PyLong_From_hb_codepoint_t(hb_map_get(__pyx_v_self->_hb_map, __pyx_t_5)); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 116, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_v_v = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "src/uharfbuzz/_map.pxi":117
 *             return None
 *         v = hb_map_get(self._hb_map, k)
 *         if v == self.INVALID_VALUE:             # <<<<<<<<<<<<<<
 *             v = None
 *         return v
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_INVALID_VALUE); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 117, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_2 = PyObject_RichCompare(__pyx_v_v, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 117, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(5, 117, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_map.pxi":118
 *         v = hb_map_get(self._hb_map, k)
 *         if v == self.INVALID_VALUE:
 *             v = None             # <<<<<<<<<<<<<<
 *         return v
 * 
*/
    __Pyx_INCREF(Py_None);
    __Pyx_DECREF_SET(__pyx_v_v, Py_None);

    /* "src/uharfbuzz/_map.pxi":117
 *             return None
 *         v = hb_map_get(self._hb_map, k)
 *         if v == self.INVALID_VALUE:             # <<<<<<<<<<<<<<
 *             v = None
 *         return v
*/
  }

  /* "src/uharfbuzz/_map.pxi":119
 *         if v == self.INVALID_VALUE:
 *             v = None
 *         return v             # <<<<<<<<<<<<<<
 * 
 *     def __getitem__(self, k: int) -> int:
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_v);
  __pyx_r = __pyx_v_v;
  goto __pyx_L0;

  /* "src/uharfbuzz/_map.pxi":103
 *             raise MemoryError()
 * 
 *     def get(self, k: int):             # <<<<<<<<<<<<<<
 *         """Fetches the value stored for ``k`` in this map.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Map.get", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_v);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_map.pxi":121
 *         return v
 * 
 *     def __getitem__(self, k: int) -> int:             # <<<<<<<<<<<<<<
 *         v = self.get(k)
 *         if v is None:
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_29__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_k); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_29__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_k) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_k), (&PyLong_Type), 0, "k", 2))) __PYX_ERR(5, 121, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_28__getitem__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)__pyx_v_self), ((PyObject*)__pyx_v_k));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_28__getitem__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self, PyObject *__pyx_v_k) {
  PyObject *__pyx_v_v = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__getitem__", 0);

  /* "src/uharfbuzz/_map.pxi":122
 * 
 *     def __getitem__(self, k: int) -> int:
 *         v = self.get(k)             # <<<<<<<<<<<<<<
 *         if v is None:
 *             raise KeyError, v
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_k};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_get, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 122, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_v = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_map.pxi":123
 *     def __getitem__(self, k: int) -> int:
 *         v = self.get(k)
 *         if v is None:             # <<<<<<<<<<<<<<
 *             raise KeyError, v
 *         return v
*/
  __pyx_t_4 = (__pyx_v_v == Py_None);
  if (unlikely(__pyx_t_4)) {

    /* "src/uharfbuzz/_map.pxi":124
 *         v = self.get(k)
 *         if v is None:
 *             raise KeyError, v             # <<<<<<<<<<<<<<
 *         return v
 * 
*/
    __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_KeyError))), __pyx_v_v, 0, 0);
    __PYX_ERR(5, 124, __pyx_L1_error)

    /* "src/uharfbuzz/_map.pxi":123
 *     def __getitem__(self, k: int) -> int:
 *         v = self.get(k)
 *         if v is None:             # <<<<<<<<<<<<<<
 *             raise KeyError, v
 *         return v
*/
  }

  /* "src/uharfbuzz/_map.pxi":125
 *         if v is None:
 *             raise KeyError, v
 *         return v             # <<<<<<<<<<<<<<
 * 
 *     def __contains__(self, k) -> bool:
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_v);
  __pyx_r = __pyx_v_v;
  goto __pyx_L0;

  /* "src/uharfbuzz/_map.pxi":121
 *         return v
 * 
 *     def __getitem__(self, k: int) -> int:             # <<<<<<<<<<<<<<
 *         v = self.get(k)
 *         if v is None:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Map.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_v);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_map.pxi":127
 *         return v
 * 
 *     def __contains__(self, k) -> bool:             # <<<<<<<<<<<<<<
 *         if type(k) != int:
 *             return False
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_3Map_31__contains__(PyObject *__pyx_v_self, PyObject *__pyx_v_k); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_3Map_31__contains__(PyObject *__pyx_v_self, PyObject *__pyx_v_k) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__contains__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_30__contains__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)__pyx_v_self), ((PyObject *)__pyx_v_k));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_30__contains__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self, PyObject *__pyx_v_k) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  hb_codepoint_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__contains__", 0);

  /* "src/uharfbuzz/_map.pxi":128
 * 
 *     def __contains__(self, k) -> bool:
 *         if type(k) != int:             # <<<<<<<<<<<<<<
 *             return False
 *         if k < 0 or k >= self.INVALID_VALUE:
*/
  __pyx_t_1 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_k)), ((PyObject *)(&PyLong_Type)), Py_NE); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 128, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(5, 128, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "src/uharfbuzz/_map.pxi":129
 *     def __contains__(self, k) -> bool:
 *         if type(k) != int:
 *             return False             # <<<<<<<<<<<<<<
 *         if k < 0 or k >= self.INVALID_VALUE:
 *             return False
*/
    __pyx_r = 0;
    goto __pyx_L0;

    /* "src/uharfbuzz/_map.pxi":128
 * 
 *     def __contains__(self, k) -> bool:
 *         if type(k) != int:             # <<<<<<<<<<<<<<
 *             return False
 *         if k < 0 or k >= self.INVALID_VALUE:
*/
  }

  /* "src/uharfbuzz/_map.pxi":130
 *         if type(k) != int:
 *             return False
 *         if k < 0 or k >= self.INVALID_VALUE:             # <<<<<<<<<<<<<<
 *             return False
 *         return hb_map_has(self._hb_map, k)
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_k, __pyx_mstate_global->__pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 130, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(5, 130, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (!__pyx_t_3) {
  } else {
    __pyx_t_2 = __pyx_t_3;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_INVALID_VALUE); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 130, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyObject_RichCompare(__pyx_v_k, __pyx_t_1, Py_GE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 130, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(5, 130, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_2 = __pyx_t_3;
  __pyx_L5_bool_binop_done:;
  if (__pyx_t_2) {

    /* "src/uharfbuzz/_map.pxi":131
 *             return False
 *         if k < 0 or k >= self.INVALID_VALUE:
 *             return False             # <<<<<<<<<<<<<<
 *         return hb_map_has(self._hb_map, k)
 * 
*/
    __pyx_r = 0;
    goto __pyx_L0;

    /* "src/uharfbuzz/_map.pxi":130
 *         if type(k) != int:
 *             return False
 *         if k < 0 or k >= self.INVALID_VALUE:             # <<<<<<<<<<<<<<
 *             return False
 *         return hb_map_has(self._hb_map, k)
*/
  }

  /* "src/uharfbuzz/_map.pxi":132
 *         if k < 0 or k >= self.INVALID_VALUE:
 *             return False
 *         return hb_map_has(self._hb_map, k)             # <<<<<<<<<<<<<<
 * 
 *     def __delitem__(self, c: int):
*/
  __pyx_t_5 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_k); if (unlikely((__pyx_t_5 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(5, 132, __pyx_L1_error)
  __pyx_r = hb_map_has(__pyx_v_self->_hb_map, __pyx_t_5);
  goto __pyx_L0;

  /* "src/uharfbuzz/_map.pxi":127
 *         return v
 * 
 *     def __contains__(self, k) -> bool:             # <<<<<<<<<<<<<<
 *         if type(k) != int:
 *             return False
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Map.__contains__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_map.pxi":134
 *         return hb_map_has(self._hb_map, k)
 * 
 *     def __delitem__(self, c: int):             # <<<<<<<<<<<<<<
 *         if not c in self:
 *             raise KeyError, c
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_3Map_33__delitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_c); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_3Map_33__delitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_c) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__delitem__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_c), (&PyLong_Type), 0, "c", 2))) __PYX_ERR(5, 134, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_32__delitem__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)__pyx_v_self), ((PyObject*)__pyx_v_c));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_32__delitem__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self, PyObject *__pyx_v_c) {
  int __pyx_r;
  int __pyx_t_1;
  hb_codepoint_t __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "src/uharfbuzz/_map.pxi":135
 * 
 *     def __delitem__(self, c: int):
 *         if not c in self:             # <<<<<<<<<<<<<<
 *             raise KeyError, c
 *         hb_map_del(self._hb_map, c)
*/
  __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_v_c, ((PyObject *)__pyx_v_self), Py_NE)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(5, 135, __pyx_L1_error)
  if (unlikely(__pyx_t_1)) {

    /* "src/uharfbuzz/_map.pxi":136
 *     def __delitem__(self, c: int):
 *         if not c in self:
 *             raise KeyError, c             # <<<<<<<<<<<<<<
 *         hb_map_del(self._hb_map, c)
 * 
*/
    __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_KeyError))), __pyx_v_c, 0, 0);
    __PYX_ERR(5, 136, __pyx_L1_error)

    /* "src/uharfbuzz/_map.pxi":135
 * 
 *     def __delitem__(self, c: int):
 *         if not c in self:             # <<<<<<<<<<<<<<
 *             raise KeyError, c
 *         hb_map_del(self._hb_map, c)
*/
  }

  /* "src/uharfbuzz/_map.pxi":137
 *         if not c in self:
 *             raise KeyError, c
 *         hb_map_del(self._hb_map, c)             # <<<<<<<<<<<<<<
 * 
 *     def items(self):
*/
  __pyx_t_2 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_c); if (unlikely((__pyx_t_2 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(5, 137, __pyx_L1_error)
  hb_map_del(__pyx_v_self->_hb_map, __pyx_t_2);

  /* "src/uharfbuzz/_map.pxi":134
 *         return hb_map_has(self._hb_map, k)
 * 
 *     def __delitem__(self, c: int):             # <<<<<<<<<<<<<<
 *         if not c in self:
 *             raise KeyError, c
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Map.__delitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "src/uharfbuzz/_map.pxi":139
 *         hb_map_del(self._hb_map, c)
 * 
 *     def items(self):             # <<<<<<<<<<<<<<
 *         """Returns an iterator over ``(key, value)`` pairs in this map.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_35items(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_3Map_34items, "Returns an iterator over ``(key, value)`` pairs in this map.\n\n        The order in which the pairs are returned is undefined.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Map_35items = {"items", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_35items, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Map_34items};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_35items(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("items (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("items", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("items", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_34items(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_34items(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("items", 0);

  /* "src/uharfbuzz/_map.pxi":144
 *         The order in which the pairs are returned is undefined.
 *         """
 *         return MapIter(self)             # <<<<<<<<<<<<<<
 * 
 *     def keys(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, ((PyObject *)__pyx_v_self)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_MapIter, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 144, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_r = ((PyObject *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_map.pxi":139
 *         hb_map_del(self._hb_map, c)
 * 
 *     def items(self):             # <<<<<<<<<<<<<<
 *         """Returns an iterator over ``(key, value)`` pairs in this map.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Map.items", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_map.pxi":146
 *         return MapIter(self)
 * 
 *     def keys(self):             # <<<<<<<<<<<<<<
 *         """Returns an iterator over the keys in this map.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_37keys(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_3Map_36keys, "Returns an iterator over the keys in this map.\n\n        The order in which the keys are returned is undefined.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Map_37keys = {"keys", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_37keys, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Map_36keys};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_37keys(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("keys (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("keys", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("keys", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_36keys(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_9uharfbuzz_9_harfbuzz_3Map_4keys_2generator1(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "src/uharfbuzz/_map.pxi":151
 *         The order in which the keys are returned is undefined.
 *         """
 *         return (k for k,v in self.items())             # <<<<<<<<<<<<<<
 * 
 *     def values(self):
*/

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_4keys_genexpr(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_genexpr_arg_0) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr *)__pyx_tp_new_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(5, 151, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF((PyObject *)__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF((PyObject *)__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_9uharfbuzz_9_harfbuzz_3Map_4keys_2generator1, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[3]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_keys_locals_genexpr, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz); if (unlikely(!gen)) __PYX_ERR(5, 151, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Map.keys.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_9uharfbuzz_9_harfbuzz_3Map_4keys_2generator1(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr *__pyx_cur_scope = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    case 1: goto __pyx_L6_resume_from_yield;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(__pyx_sent_value != Py_None)) {
    if (unlikely(__pyx_sent_value)) PyErr_SetString(PyExc_TypeError, "can't send non-None value to a just-started generator");
    __PYX_ERR(5, 151, __pyx_L1_error)
  }
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(5, 151, __pyx_L1_error) }
  if (unlikely(((PyObject *)__pyx_cur_scope->__pyx_genexpr_arg_0) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(5, 151, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(((PyObject *)__pyx_cur_scope->__pyx_genexpr_arg_0), 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 151, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(5, 151, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __Pyx_INCREF(__pyx_cur_scope->__pyx_v_k);
    __pyx_r = __pyx_cur_scope->__pyx_v_k;
    __Pyx_XGIVEREF(__pyx_t_1);
    __pyx_cur_scope->__pyx_t_0 = __pyx_t_1;
    __pyx_cur_scope->__pyx_t_1 = __pyx_t_2;
    __pyx_cur_scope->__pyx_t_2 = __pyx_t_3;
    __pyx_cur_scope->__pyx_t_3 = __pyx_t_4;
    __Pyx_XGIVEREF(__pyx_r);
    __Pyx_RefNannyFinishContext();
    __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
    /* return from generator, yielding value */
    __pyx_generator->resume_label = 1;
    return __pyx_r;
    __pyx_L6_resume_from_yield:;
    __pyx_t_1 = __pyx_cur_scope->__pyx_t_0;
    __pyx_cur_scope->__pyx_t_0 = 0;
    __Pyx_XGOTREF(__pyx_t_1);
    __pyx_t_2 = __pyx_cur_scope->__pyx_t_1;
    __pyx_t_3 = __pyx_cur_scope->__pyx_t_2;
    __pyx_t_4 = __pyx_cur_scope->__pyx_t_3;
    if (unlikely(!__pyx_sent_value)) __PYX_ERR(5, 151, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_map.pxi":146
 *         return MapIter(self)
 * 
 *     def keys(self):             # <<<<<<<<<<<<<<
 *         """Returns an iterator over the keys in this map.
 * 
*/

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_36keys(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self) {
  PyObject *__pyx_gb_9uharfbuzz_9_harfbuzz_3Map_4keys_2generator1 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("keys", 0);

  /* "src/uharfbuzz/_map.pxi":151
 *         The order in which the keys are returned is undefined.
 *         """
 *         return (k for k,v in self.items())             # <<<<<<<<<<<<<<
 * 
 *     def values(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_4keys_genexpr(NULL, __pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 151, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_map.pxi":146
 *         return MapIter(self)
 * 
 *     def keys(self):             # <<<<<<<<<<<<<<
 *         """Returns an iterator over the keys in this map.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Map.keys", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_gb_9uharfbuzz_9_harfbuzz_3Map_4keys_2generator1);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_map.pxi":153
 *         return (k for k,v in self.items())
 * 
 *     def values(self):             # <<<<<<<<<<<<<<
 *         """Returns an iterator over the values in this map.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_39values(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_3Map_38values, "Returns an iterator over the values in this map.\n\n        The order in which the values are returned is undefined.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Map_39values = {"values", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_39values, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Map_38values};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_39values(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("values (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("values", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("values", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_38values(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_9uharfbuzz_9_harfbuzz_3Map_6values_2generator2(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "src/uharfbuzz/_map.pxi":158
 *         The order in which the values are returned is undefined.
 *         """
 *         return (v for k,v in self.items())             # <<<<<<<<<<<<<<
 * 
 *     def __iter__(self):
*/

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_6values_genexpr(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_genexpr_arg_0) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr *)__pyx_tp_new_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(5, 158, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF((PyObject *)__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF((PyObject *)__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_9uharfbuzz_9_harfbuzz_3Map_6values_2generator2, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[4]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_values_locals_genexpr, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz); if (unlikely(!gen)) __PYX_ERR(5, 158, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Map.values.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_9uharfbuzz_9_harfbuzz_3Map_6values_2generator2(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr *__pyx_cur_scope = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    case 1: goto __pyx_L6_resume_from_yield;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(__pyx_sent_value != Py_None)) {
    if (unlikely(__pyx_sent_value)) PyErr_SetString(PyExc_TypeError, "can't send non-None value to a just-started generator");
    __PYX_ERR(5, 158, __pyx_L1_error)
  }
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(5, 158, __pyx_L1_error) }
  if (unlikely(((PyObject *)__pyx_cur_scope->__pyx_genexpr_arg_0) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(5, 158, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(((PyObject *)__pyx_cur_scope->__pyx_genexpr_arg_0), 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(5, 158, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __Pyx_INCREF(__pyx_cur_scope->__pyx_v_v);
    __pyx_r = __pyx_cur_scope->__pyx_v_v;
    __Pyx_XGIVEREF(__pyx_t_1);
    __pyx_cur_scope->__pyx_t_0 = __pyx_t_1;
    __pyx_cur_scope->__pyx_t_1 = __pyx_t_2;
    __pyx_cur_scope->__pyx_t_2 = __pyx_t_3;
    __pyx_cur_scope->__pyx_t_3 = __pyx_t_4;
    __Pyx_XGIVEREF(__pyx_r);
    __Pyx_RefNannyFinishContext();
    __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
    /* return from generator, yielding value */
    __pyx_generator->resume_label = 1;
    return __pyx_r;
    __pyx_L6_resume_from_yield:;
    __pyx_t_1 = __pyx_cur_scope->__pyx_t_0;
    __pyx_cur_scope->__pyx_t_0 = 0;
    __Pyx_XGOTREF(__pyx_t_1);
    __pyx_t_2 = __pyx_cur_scope->__pyx_t_1;
    __pyx_t_3 = __pyx_cur_scope->__pyx_t_2;
    __pyx_t_4 = __pyx_cur_scope->__pyx_t_3;
    if (unlikely(!__pyx_sent_value)) __PYX_ERR(5, 158, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_map.pxi":153
 *         return (k for k,v in self.items())
 * 
 *     def values(self):             # <<<<<<<<<<<<<<
 *         """Returns an iterator over the values in this map.
 * 
*/

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_38values(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self) {
  PyObject *__pyx_gb_9uharfbuzz_9_harfbuzz_3Map_6values_2generator2 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("values", 0);

  /* "src/uharfbuzz/_map.pxi":158
 *         The order in which the values are returned is undefined.
 *         """
 *         return (v for k,v in self.items())             # <<<<<<<<<<<<<<
 * 
 *     def __iter__(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_6values_genexpr(NULL, __pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_map.pxi":153
 *         return (k for k,v in self.items())
 * 
 *     def values(self):             # <<<<<<<<<<<<<<
 *         """Returns an iterator over the values in this map.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Map.values", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_gb_9uharfbuzz_9_harfbuzz_3Map_6values_2generator2);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_map.pxi":160
 *         return (v for k,v in self.items())
 * 
 *     def __iter__(self):             # <<<<<<<<<<<<<<
 *         return self.keys()
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_41__iter__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_41__iter__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__iter__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_40__iter__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_40__iter__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__iter__", 0);

  /* "src/uharfbuzz/_map.pxi":161
 * 
 *     def __iter__(self):
 *         return self.keys()             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_keys, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 161, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_map.pxi":160
 *         return (v for k,v in self.items())
 * 
 *     def __iter__(self):             # <<<<<<<<<<<<<<
 *         return self.keys()
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Map.__iter__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_map.pxi":163
 *         return self.keys()
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         s = ', '.join("%s: %s" % (repr(k), repr(v)) for k,v in sorted(self.items()))
 *         return ("Map({%s})" % s)
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_43__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_43__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_42__repr__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_9uharfbuzz_9_harfbuzz_3Map_8__repr___2generator3(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "src/uharfbuzz/_map.pxi":164
 * 
 *     def __repr__(self):
 *         s = ', '.join("%s: %s" % (repr(k), repr(v)) for k,v in sorted(self.items()))             # <<<<<<<<<<<<<<
 *         return ("Map({%s})" % s)
 * 
*/

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_8__repr___genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr *)__pyx_tp_new_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(5, 164, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_9uharfbuzz_9_harfbuzz_3Map_8__repr___2generator3, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[5]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_repr___locals_genexpr, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz); if (unlikely(!gen)) __PYX_ERR(5, 164, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Map.__repr__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_9uharfbuzz_9_harfbuzz_3Map_8__repr___2generator3(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr *__pyx_cur_scope = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *(*__pyx_t_7)(PyObject *);
  PyObject *__pyx_t_8[3];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(5, 164, __pyx_L1_error)
  __pyx_r = PyList_New(0); if (unlikely(!__pyx_r)) __PYX_ERR(5, 164, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(5, 164, __pyx_L1_error) }
  __pyx_t_1 = PySequence_List(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 164, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (unlikely((PyList_Sort(__pyx_t_1) < 0))) __PYX_ERR(5, 164, __pyx_L1_error)
  __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  for (;;) {
    {
      Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
      #if !CYTHON_ASSUME_SAFE_SIZE
      if (unlikely((__pyx_temp < 0))) __PYX_ERR(5, 164, __pyx_L1_error)
      #endif
      if (__pyx_t_3 >= __pyx_temp) break;
    }
    __pyx_t_1 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_3, __Pyx_ReferenceSharing_OwnStrongReference);
    ++__pyx_t_3;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 164, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
      PyObject* sequence = __pyx_t_1;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 2)) {
        if (size > 2) __Pyx_RaiseTooManyValuesError(2);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(5, 164, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0);
        __Pyx_INCREF(__pyx_t_4);
        __pyx_t_5 = PyTuple_GET_ITEM(sequence, 1);
        __Pyx_INCREF(__pyx_t_5);
      } else {
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 164, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_4);
        __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 164, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_5);
      }
      #else
      __pyx_t_4 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 164, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 164, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    } else {
      Py_ssize_t index = -1;
      __pyx_t_6 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 164, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_7 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_6);
      index = 0; __pyx_t_4 = __pyx_t_7(__pyx_t_6); if (unlikely(!__pyx_t_4)) goto __pyx_L6_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_4);
      index = 1; __pyx_t_5 = __pyx_t_7(__pyx_t_6); if (unlikely(!__pyx_t_5)) goto __pyx_L6_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_5);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_7(__pyx_t_6), 2) < (0)) __PYX_ERR(5, 164, __pyx_L1_error)
      __pyx_t_7 = NULL;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      goto __pyx_L7_unpacking_done;
      __pyx_L6_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_7 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(5, 164, __pyx_L1_error)
      __pyx_L7_unpacking_done:;
    }
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_1 = PyObject_Repr(__pyx_cur_scope->__pyx_v_k); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 164, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = __Pyx_PyUnicode_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 164, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = PyObject_Repr(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 164, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = __Pyx_PyUnicode_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 164, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_8[0] = __pyx_t_5;
    __pyx_t_8[1] = __pyx_mstate_global->__pyx_kp_u__6;
    __pyx_t_8[2] = __pyx_t_4;
    __pyx_t_1 = __Pyx_PyUnicode_Join(__pyx_t_8, 3, __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5) + 2 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4), 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4));
    if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 164, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(__Pyx_ListComp_Append(__pyx_r, (PyObject*)__pyx_t_1))) __PYX_ERR(5, 164, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_map.pxi":163
 *         return self.keys()
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         s = ', '.join("%s: %s" % (repr(k), repr(v)) for k,v in sorted(self.items()))
 *         return ("Map({%s})" % s)
*/

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_42__repr__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self) {
  PyObject *__pyx_v_s = NULL;
  PyObject *__pyx_gb_9uharfbuzz_9_harfbuzz_3Map_8__repr___2generator3 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "src/uharfbuzz/_map.pxi":164
 * 
 *     def __repr__(self):
 *         s = ', '.join("%s: %s" % (repr(k), repr(v)) for k,v in sorted(self.items()))             # <<<<<<<<<<<<<<
 *         return ("Map({%s})" % s)
 * 
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_items, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 164, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_8__repr___genexpr(NULL, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 164, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_Generator_GetInlinedResult(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 164, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__4, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 164, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_s = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "src/uharfbuzz/_map.pxi":165
 *     def __repr__(self):
 *         s = ', '.join("%s: %s" % (repr(k), repr(v)) for k,v in sorted(self.items()))
 *         return ("Map({%s})" % s)             # <<<<<<<<<<<<<<
 * 
 * cdef class MapIter:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_Map_s, __pyx_v_s); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 165, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_map.pxi":163
 *         return self.keys()
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         s = ', '.join("%s: %s" % (repr(k), repr(v)) for k,v in sorted(self.items()))
 *         return ("Map({%s})" % s)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Map.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_s);
  __Pyx_XDECREF(__pyx_gb_9uharfbuzz_9_harfbuzz_3Map_8__repr___2generator3);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_45__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Map_45__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_45__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_45__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_44__reduce_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_44__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Map.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_47__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_3Map_47__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_47__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_47__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 3, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < (0)) __PYX_ERR(4, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(4, 3, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(4, 3, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Map.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_3Map_46__setstate_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_3Map_46__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Map.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_map.pxi":177
 *     cdef int _i
 * 
 *     def __cinit__(self, m: Map):             # <<<<<<<<<<<<<<
 *         self.m = m
 *         self._hb_map = m._hb_map
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_7MapIter_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_7MapIter_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_m = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_m,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(5, 177, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(5, 177, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__cinit__", 0) < (0)) __PYX_ERR(5, 177, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(5, 177, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(5, 177, __pyx_L3_error)
    }
    __pyx_v_m = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(5, 177, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.MapIter.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map, 0, "m", 0))) __PYX_ERR(5, 177, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_7MapIter___cinit__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_MapIter *)__pyx_v_self), __pyx_v_m);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_7MapIter___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_MapIter *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *__pyx_v_m) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  hb_map_t *__pyx_t_1;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "src/uharfbuzz/_map.pxi":178
 * 
 *     def __cinit__(self, m: Map):
 *         self.m = m             # <<<<<<<<<<<<<<
 *         self._hb_map = m._hb_map
 *         self._i = -1
*/
  __Pyx_INCREF((PyObject *)__pyx_v_m);
  __Pyx_GIVEREF((PyObject *)__pyx_v_m);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->m);
  __Pyx_DECREF((PyObject *)__pyx_v_self->m);
  __pyx_v_self->m = __pyx_v_m;

  /* "src/uharfbuzz/_map.pxi":179
 *     def __cinit__(self, m: Map):
 *         self.m = m
 *         self._hb_map = m._hb_map             # <<<<<<<<<<<<<<
 *         self._i = -1
 * 
*/
  __pyx_t_1 = __pyx_v_m->_hb_map;
  __pyx_v_self->_hb_map = __pyx_t_1;

  /* "src/uharfbuzz/_map.pxi":180
 *         self.m = m
 *         self._hb_map = m._hb_map
 *         self._i = -1             # <<<<<<<<<<<<<<
 * 
 *     def __iter__(self):
*/
  __pyx_v_self->_i = -1;

  /* "src/uharfbuzz/_map.pxi":177
 *     cdef int _i
 * 
 *     def __cinit__(self, m: Map):             # <<<<<<<<<<<<<<
 *         self.m = m
 *         self._hb_map = m._hb_map
*/

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_map.pxi":182
 *         self._i = -1
 * 
 *     def __iter__(self):             # <<<<<<<<<<<<<<
 *         return self
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_7MapIter_3__iter__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_7MapIter_3__iter__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__iter__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_7MapIter_2__iter__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_MapIter *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_7MapIter_2__iter__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_MapIter *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__iter__", 0);

  /* "src/uharfbuzz/_map.pxi":183
 * 
 *     def __iter__(self):
 *         return self             # <<<<<<<<<<<<<<
 * 
 *     def __next__(self) -> Tuple[int, int]:
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self);
  __pyx_r = ((PyObject *)__pyx_v_self);
  goto __pyx_L0;

  /* "src/uharfbuzz/_map.pxi":182
 *         self._i = -1
 * 
 *     def __iter__(self):             # <<<<<<<<<<<<<<
 *         return self
 * 
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_map.pxi":185
 *         return self
 * 
 *     def __next__(self) -> Tuple[int, int]:             # <<<<<<<<<<<<<<
 *         cdef hb_codepoint_t k
 *         cdef hb_codepoint_t v
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_7MapIter_5__next__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_7MapIter_5__next__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__next__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_7MapIter_4__next__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_MapIter *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_7MapIter_4__next__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_MapIter *__pyx_v_self) {
  hb_codepoint_t __pyx_v_k;
  hb_codepoint_t __pyx_v_v;
  hb_bool_t __pyx_v_ret;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_error_without_exception = 0; /* StopIteration */
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__next__", 0);

  /* "src/uharfbuzz/_map.pxi":188
 *         cdef hb_codepoint_t k
 *         cdef hb_codepoint_t v
 *         ret = hb_map_next(self._hb_map, &self._i, &k, &v)             # <<<<<<<<<<<<<<
 *         if not ret:
 *             raise StopIteration
*/
  __pyx_v_ret = hb_map_next(__pyx_v_self->_hb_map, (&__pyx_v_self->_i), (&__pyx_v_k), (&__pyx_v_v));

  /* "src/uharfbuzz/_map.pxi":189
 *         cdef hb_codepoint_t v
 *         ret = hb_map_next(self._hb_map, &self._i, &k, &v)
 *         if not ret:             # <<<<<<<<<<<<<<
 *             raise StopIteration
 *         return (k, v)
*/
  __pyx_t_1 = (!(__pyx_v_ret != 0));
  if (unlikely(__pyx_t_1)) {

    /* "src/uharfbuzz/_map.pxi":190
 *         ret = hb_map_next(self._hb_map, &self._i, &k, &v)
 *         if not ret:
 *             raise StopIteration             # <<<<<<<<<<<<<<
 *         return (k, v)
*/
    __pyx_error_without_exception = 1;
    goto __pyx_L1_error;;

    /* "src/uharfbuzz/_map.pxi":189
 *         cdef hb_codepoint_t v
 *         ret = hb_map_next(self._hb_map, &self._i, &k, &v)
 *         if not ret:             # <<<<<<<<<<<<<<
 *             raise StopIteration
 *         return (k, v)
*/
  }

  /* "src/uharfbuzz/_map.pxi":191
 *         if not ret:
 *             raise StopIteration
 *         return (k, v)             # <<<<<<<<<<<<<<
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyLong_From_hb_codepoint_t(__pyx_v_k); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 191, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyLong_From_hb_codepoint_t(__pyx_v_v); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 191, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 191, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2) != (0)) __PYX_ERR(5, 191, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3) != (0)) __PYX_ERR(5, 191, __pyx_L1_error);
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_map.pxi":185
 *         return self
 * 
 *     def __next__(self) -> Tuple[int, int]:             # <<<<<<<<<<<<<<
 *         cdef hb_codepoint_t k
 *         cdef hb_codepoint_t v
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  if (!__pyx_error_without_exception) {
    __Pyx_AddTraceback("uharfbuzz._harfbuzz.MapIter.__next__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_7MapIter_7__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_7MapIter_7__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_7MapIter_7__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_7MapIter_7__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_7MapIter_6__reduce_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_MapIter *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_7MapIter_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_MapIter *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.MapIter.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_7MapIter_9__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_7MapIter_9__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_7MapIter_9__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_7MapIter_9__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 3, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < (0)) __PYX_ERR(4, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(4, 3, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(4, 3, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.MapIter.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_7MapIter_8__setstate_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_MapIter *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_7MapIter_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_MapIter *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.MapIter.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_blob.pxi":18
 *     cdef hb_blob_t* _hb_blob
 * 
 *     def __cinit__(self, bytes data = None):             # <<<<<<<<<<<<<<
 *         if data is not None:
 *             self._hb_blob = hb_blob_create(
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_4Blob_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_4Blob_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_data = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_data,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(6, 18, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(6, 18, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__cinit__", 0) < (0)) __PYX_ERR(6, 18, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject*)Py_None));
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(6, 18, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject*)Py_None));
    }
    __pyx_v_data = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(6, 18, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Blob.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_data), (&PyBytes_Type), 1, "data", 1))) __PYX_ERR(6, 18, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Blob___cinit__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *)__pyx_v_self), __pyx_v_data);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_4Blob___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_v_self, PyObject *__pyx_v_data) {
  int __pyx_r;
  int __pyx_t_1;
  char const *__pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "src/uharfbuzz/_blob.pxi":19
 * 
 *     def __cinit__(self, bytes data = None):
 *         if data is not None:             # <<<<<<<<<<<<<<
 *             self._hb_blob = hb_blob_create(
 *                 data, len(data), HB_MEMORY_MODE_DUPLICATE, NULL, NULL)
*/
  __pyx_t_1 = (__pyx_v_data != ((PyObject*)Py_None));
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_blob.pxi":21
 *         if data is not None:
 *             self._hb_blob = hb_blob_create(
 *                 data, len(data), HB_MEMORY_MODE_DUPLICATE, NULL, NULL)             # <<<<<<<<<<<<<<
 *         else:
 *             self._hb_blob = hb_blob_get_empty()
*/
    if (unlikely(__pyx_v_data == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
      __PYX_ERR(6, 21, __pyx_L1_error)
    }
    __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_v_data); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(6, 21, __pyx_L1_error)
    if (unlikely(__pyx_v_data == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
      __PYX_ERR(6, 21, __pyx_L1_error)
    }
    __pyx_t_3 = __Pyx_PyBytes_GET_SIZE(__pyx_v_data); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(6, 21, __pyx_L1_error)

    /* "src/uharfbuzz/_blob.pxi":20
 *     def __cinit__(self, bytes data = None):
 *         if data is not None:
 *             self._hb_blob = hb_blob_create(             # <<<<<<<<<<<<<<
 *                 data, len(data), HB_MEMORY_MODE_DUPLICATE, NULL, NULL)
 *         else:
*/
    __pyx_v_self->_hb_blob = hb_blob_create(__pyx_t_2, __pyx_t_3, HB_MEMORY_MODE_DUPLICATE, NULL, NULL);

    /* "src/uharfbuzz/_blob.pxi":19
 * 
 *     def __cinit__(self, bytes data = None):
 *         if data is not None:             # <<<<<<<<<<<<<<
 *             self._hb_blob = hb_blob_create(
 *                 data, len(data), HB_MEMORY_MODE_DUPLICATE, NULL, NULL)
*/
    goto __pyx_L3;
  }

  /* "src/uharfbuzz/_blob.pxi":23
 *                 data, len(data), HB_MEMORY_MODE_DUPLICATE, NULL, NULL)
 *         else:
 *             self._hb_blob = hb_blob_get_empty()             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
*/
  /*else*/ {
    __pyx_v_self->_hb_blob = hb_blob_get_empty();
  }
  __pyx_L3:;

  /* "src/uharfbuzz/_blob.pxi":18
 *     cdef hb_blob_t* _hb_blob
 * 
 *     def __cinit__(self, bytes data = None):             # <<<<<<<<<<<<<<
 *         if data is not None:
 *             self._hb_blob = hb_blob_create(
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Blob.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "src/uharfbuzz/_blob.pxi":25
 *             self._hb_blob = hb_blob_get_empty()
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     cdef Blob from_ptr(hb_blob_t* hb_blob):
 *         """Create Blob from a pointer, taking ownership of it."""
*/

static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_f_9uharfbuzz_9_harfbuzz_4Blob_from_ptr(hb_blob_t *__pyx_v_hb_blob) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_v_wrapper = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("from_ptr", 0);

  /* "src/uharfbuzz/_blob.pxi":29
 *         """Create Blob from a pointer, taking ownership of it."""
 * 
 *         cdef Blob wrapper = Blob.__new__(Blob)             # <<<<<<<<<<<<<<
 *         wrapper._hb_blob = hb_blob
 *         return wrapper
*/
  __pyx_t_1 = ((PyObject *)__pyx_tp_new_9uharfbuzz_9_harfbuzz_Blob(((PyTypeObject *)__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Blob), __pyx_mstate_global->__pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 29, __pyx_L1_error)
  __Pyx_GOTREF((PyObject *)__pyx_t_1);
  __pyx_v_wrapper = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_blob.pxi":30
 * 
 *         cdef Blob wrapper = Blob.__new__(Blob)
 *         wrapper._hb_blob = hb_blob             # <<<<<<<<<<<<<<
 *         return wrapper
 * 
*/
  __pyx_v_wrapper->_hb_blob = __pyx_v_hb_blob;

  /* "src/uharfbuzz/_blob.pxi":31
 *         cdef Blob wrapper = Blob.__new__(Blob)
 *         wrapper._hb_blob = hb_blob
 *         return wrapper             # <<<<<<<<<<<<<<
 * 
 *     @classmethod
*/
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_wrapper);
  __pyx_r = __pyx_v_wrapper;
  goto __pyx_L0;

  /* "src/uharfbuzz/_blob.pxi":25
 *             self._hb_blob = hb_blob_get_empty()
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     cdef Blob from_ptr(hb_blob_t* hb_blob):
 *         """Create Blob from a pointer, taking ownership of it."""
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Blob.from_ptr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_wrapper);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_blob.pxi":33
 *         return wrapper
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def from_file_path(cls, filename: Union[str, Path]) -> Blob:
 *         """Creates a new blob containing the data from the specified file.
*/

/* Python wrapper */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_pw_9uharfbuzz_9_harfbuzz_4Blob_3from_file_path(PyObject *__pyx_v_cls, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Blob_2from_file_path, "Creates a new blob containing the data from the specified file.\n\n        The filename is passed directly to the system on all platforms, except\n        on Windows, where the filename is interpreted as UTF-8. Only if the\n        filename is not valid UTF-8, it will be interpreted according to the\n        system codepage.\n\n        :param filename: A filename.\n\n        :returns: A new :class:`Blob` with the content of the file.\n\n        :raises HarfBuzzError: If the file cannot be opened or read.\n\n        Wraps `hb_blob_create_from_file_or_fail()\n        <https://harfbuzz.github.io/harfbuzz-hb-blob.html#hb-blob-create-from-file-or-fail>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Blob_3from_file_path = {"from_file_path", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Blob_3from_file_path, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Blob_2from_file_path};
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_pw_9uharfbuzz_9_harfbuzz_4Blob_3from_file_path(PyObject *__pyx_v_cls, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_filename = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_file_path (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_filename,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(6, 33, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(6, 33, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "from_file_path", 0) < (0)) __PYX_ERR(6, 33, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("from_file_path", 1, 1, 1, i); __PYX_ERR(6, 33, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(6, 33, __pyx_L3_error)
    }
    __pyx_v_filename = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_file_path", 1, 1, 1, __pyx_nargs); __PYX_ERR(6, 33, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Blob.from_file_path", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Blob_2from_file_path(((PyTypeObject*)__pyx_v_cls), __pyx_v_filename);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_pf_9uharfbuzz_9_harfbuzz_4Blob_2from_file_path(PyTypeObject *__pyx_v_cls, PyObject *__pyx_v_filename) {
  PyObject *__pyx_v_packed = 0;
  hb_blob_t *__pyx_v_blob;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_v_inst = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  char *__pyx_t_6;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("from_file_path", 0);

  /* "src/uharfbuzz/_blob.pxi":51
 *         <https://harfbuzz.github.io/harfbuzz-hb-blob.html#hb-blob-create-from-file-or-fail>`_.
 *         """
 *         cdef bytes packed = os.fsencode(filename)             # <<<<<<<<<<<<<<
 *         cdef hb_blob_t* blob = hb_blob_create_from_file_or_fail(<char*>packed)
 *         if blob == NULL:
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_os); if (unlikely(!__pyx_t_3)) __PYX_ERR(6, 51, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_fsencode); if (unlikely(!__pyx_t_4)) __PYX_ERR(6, 51, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_filename};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 51, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (!(likely(PyBytes_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("bytes", __pyx_t_1))) __PYX_ERR(6, 51, __pyx_L1_error)
  __pyx_v_packed = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_blob.pxi":52
 *         """
 *         cdef bytes packed = os.fsencode(filename)
 *         cdef hb_blob_t* blob = hb_blob_create_from_file_or_fail(<char*>packed)             # <<<<<<<<<<<<<<
 *         if blob == NULL:
 *             raise HarfBuzzError(f"Failed to open: {filename}")
*/
  if (unlikely(__pyx_v_packed == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
    __PYX_ERR(6, 52, __pyx_L1_error)
  }
  __pyx_t_6 = __Pyx_PyBytes_AsWritableString(__pyx_v_packed); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) __PYX_ERR(6, 52, __pyx_L1_error)
  __pyx_v_blob = hb_blob_create_from_file_or_fail(((char *)__pyx_t_6));

  /* "src/uharfbuzz/_blob.pxi":53
 *         cdef bytes packed = os.fsencode(filename)
 *         cdef hb_blob_t* blob = hb_blob_create_from_file_or_fail(<char*>packed)
 *         if blob == NULL:             # <<<<<<<<<<<<<<
 *             raise HarfBuzzError(f"Failed to open: {filename}")
 *         cdef Blob inst = cls(None)
*/
  __pyx_t_7 = (__pyx_v_blob == NULL);
  if (unlikely(__pyx_t_7)) {

    /* "src/uharfbuzz/_blob.pxi":54
 *         cdef hb_blob_t* blob = hb_blob_create_from_file_or_fail(<char*>packed)
 *         if blob == NULL:
 *             raise HarfBuzzError(f"Failed to open: {filename}")             # <<<<<<<<<<<<<<
 *         cdef Blob inst = cls(None)
 *         inst._hb_blob = blob
*/
    __pyx_t_4 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_HarfBuzzError); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 54, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyObject_FormatSimple(__pyx_v_filename, __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(6, 54, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_open, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(6, 54, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_5 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
      assert(__pyx_t_4);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_2, __pyx__function);
      __pyx_t_5 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_8};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 54, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(6, 54, __pyx_L1_error)

    /* "src/uharfbuzz/_blob.pxi":53
 *         cdef bytes packed = os.fsencode(filename)
 *         cdef hb_blob_t* blob = hb_blob_create_from_file_or_fail(<char*>packed)
 *         if blob == NULL:             # <<<<<<<<<<<<<<
 *             raise HarfBuzzError(f"Failed to open: {filename}")
 *         cdef Blob inst = cls(None)
*/
  }

  /* "src/uharfbuzz/_blob.pxi":55
 *         if blob == NULL:
 *             raise HarfBuzzError(f"Failed to open: {filename}")
 *         cdef Blob inst = cls(None)             # <<<<<<<<<<<<<<
 *         inst._hb_blob = blob
 *         return inst
*/
  __pyx_t_2 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, Py_None};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_v_cls, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 55, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Blob))))) __PYX_ERR(6, 55, __pyx_L1_error)
  __pyx_v_inst = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_blob.pxi":56
 *             raise HarfBuzzError(f"Failed to open: {filename}")
 *         cdef Blob inst = cls(None)
 *         inst._hb_blob = blob             # <<<<<<<<<<<<<<
 *         return inst
 * 
*/
  __pyx_v_inst->_hb_blob = __pyx_v_blob;

  /* "src/uharfbuzz/_blob.pxi":57
 *         cdef Blob inst = cls(None)
 *         inst._hb_blob = blob
 *         return inst             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_inst);
  __pyx_r = __pyx_v_inst;
  goto __pyx_L0;

  /* "src/uharfbuzz/_blob.pxi":33
 *         return wrapper
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def from_file_path(cls, filename: Union[str, Path]) -> Blob:
 *         """Creates a new blob containing the data from the specified file.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Blob.from_file_path", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_XDECREF((PyObject *)__pyx_v_inst);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_blob.pxi":59
 *         return inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         hb_blob_destroy(self._hb_blob)
 * 
*/

/* Python wrapper */
static void __pyx_pw_9uharfbuzz_9_harfbuzz_4Blob_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_9uharfbuzz_9_harfbuzz_4Blob_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_9uharfbuzz_9_harfbuzz_4Blob_4__dealloc__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_9uharfbuzz_9_harfbuzz_4Blob_4__dealloc__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_v_self) {

  /* "src/uharfbuzz/_blob.pxi":60
 * 
 *     def __dealloc__(self):
 *         hb_blob_destroy(self._hb_blob)             # <<<<<<<<<<<<<<
 * 
 *     def __len__(self) -> int:
*/
  hb_blob_destroy(__pyx_v_self->_hb_blob);

  /* "src/uharfbuzz/_blob.pxi":59
 *         return inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         hb_blob_destroy(self._hb_blob)
 * 
*/

  /* function exit code */
}

/* "src/uharfbuzz/_blob.pxi":62
 *         hb_blob_destroy(self._hb_blob)
 * 
 *     def __len__(self) -> int:             # <<<<<<<<<<<<<<
 *         return hb_blob_get_length(self._hb_blob)
 * 
*/

/* Python wrapper */
static Py_ssize_t __pyx_pw_9uharfbuzz_9_harfbuzz_4Blob_7__len__(PyObject *__pyx_v_self); /*proto*/
static Py_ssize_t __pyx_pw_9uharfbuzz_9_harfbuzz_4Blob_7__len__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__len__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Blob_6__len__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_ssize_t __pyx_pf_9uharfbuzz_9_harfbuzz_4Blob_6__len__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_v_self) {
  Py_ssize_t __pyx_r;

  /* "src/uharfbuzz/_blob.pxi":63
 * 
 *     def __len__(self) -> int:
 *         return hb_blob_get_length(self._hb_blob)             # <<<<<<<<<<<<<<
 * 
 *     def __bool__(self) -> bool:
*/
  __pyx_r = hb_blob_get_length(__pyx_v_self->_hb_blob);
  goto __pyx_L0;

  /* "src/uharfbuzz/_blob.pxi":62
 *         hb_blob_destroy(self._hb_blob)
 * 
 *     def __len__(self) -> int:             # <<<<<<<<<<<<<<
 *         return hb_blob_get_length(self._hb_blob)
 * 
*/

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "src/uharfbuzz/_blob.pxi":65
 *         return hb_blob_get_length(self._hb_blob)
 * 
 *     def __bool__(self) -> bool:             # <<<<<<<<<<<<<<
 *         return len(self) > 0
 * 
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_4Blob_9__bool__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_4Blob_9__bool__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__bool__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Blob_8__bool__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_4Blob_8__bool__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_v_self) {
  int __pyx_r;
  Py_ssize_t __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "src/uharfbuzz/_blob.pxi":66
 * 
 *     def __bool__(self) -> bool:
 *         return len(self) > 0             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __pyx_t_1 = PyObject_Length(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(6, 66, __pyx_L1_error)
  __pyx_r = (__pyx_t_1 > 0);
  goto __pyx_L0;

  /* "src/uharfbuzz/_blob.pxi":65
 *         return hb_blob_get_length(self._hb_blob)
 * 
 *     def __bool__(self) -> bool:             # <<<<<<<<<<<<<<
 *         return len(self) > 0
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Blob.__bool__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "src/uharfbuzz/_blob.pxi":68
 *         return len(self) > 0
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def data(self) -> bytes:
 *         """Fetches the data from a blob.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Blob_4data_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Blob_4data_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Blob_4data___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Blob_4data___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_v_self) {
  unsigned int __pyx_v_blob_length;
  const char *__pyx_v_blob_data;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_blob.pxi":77
 *         <https://harfbuzz.github.io/harfbuzz-hb-blob.html#hb-blob-get-data>`_.
 *         """
 *         if not self:             # <<<<<<<<<<<<<<
 *             return b""
 *         cdef unsigned int blob_length
*/
  __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_self)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(6, 77, __pyx_L1_error)
  __pyx_t_2 = (!__pyx_t_1);
  if (__pyx_t_2) {

    /* "src/uharfbuzz/_blob.pxi":78
 *         """
 *         if not self:
 *             return b""             # <<<<<<<<<<<<<<
 *         cdef unsigned int blob_length
 *         cdef const_char* blob_data = hb_blob_get_data(self._hb_blob, &blob_length)
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_b_);
    __pyx_r = __pyx_mstate_global->__pyx_kp_b_;
    goto __pyx_L0;

    /* "src/uharfbuzz/_blob.pxi":77
 *         <https://harfbuzz.github.io/harfbuzz-hb-blob.html#hb-blob-get-data>`_.
 *         """
 *         if not self:             # <<<<<<<<<<<<<<
 *             return b""
 *         cdef unsigned int blob_length
*/
  }

  /* "src/uharfbuzz/_blob.pxi":80
 *             return b""
 *         cdef unsigned int blob_length
 *         cdef const_char* blob_data = hb_blob_get_data(self._hb_blob, &blob_length)             # <<<<<<<<<<<<<<
 *         return blob_data[:blob_length]
*/
  __pyx_v_blob_data = hb_blob_get_data(__pyx_v_self->_hb_blob, (&__pyx_v_blob_length));

  /* "src/uharfbuzz/_blob.pxi":81
 *         cdef unsigned int blob_length
 *         cdef const_char* blob_data = hb_blob_get_data(self._hb_blob, &blob_length)
 *         return blob_data[:blob_length]             # <<<<<<<<<<<<<<
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __Pyx_PyBytes_FromStringAndSize(__pyx_v_blob_data + 0, __pyx_v_blob_length - 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(6, 81, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_blob.pxi":68
 *         return len(self) > 0
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def data(self) -> bytes:
 *         """Fetches the data from a blob.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Blob.data.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Blob_11__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Blob_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Blob_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Blob_11__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Blob_10__reduce_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Blob_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Blob.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Blob_13__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Blob_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Blob_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Blob_13__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 3, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < (0)) __PYX_ERR(4, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(4, 3, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(4, 3, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Blob.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Blob_12__setstate_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Blob_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Blob.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":87
 *     # could maybe store Buffer to prevent GC
 * 
 *     cdef set(self, hb_glyph_info_t info):             # <<<<<<<<<<<<<<
 *         self._hb_glyph_info = info
 * 
*/

static PyObject *__pyx_f_9uharfbuzz_9_harfbuzz_9GlyphInfo_set(struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphInfo *__pyx_v_self, hb_glyph_info_t __pyx_v_info) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set", 0);

  /* "src/uharfbuzz/_buffer.pxi":88
 * 
 *     cdef set(self, hb_glyph_info_t info):
 *         self._hb_glyph_info = info             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __pyx_v_self->_hb_glyph_info = __pyx_v_info;

  /* "src/uharfbuzz/_buffer.pxi":87
 *     # could maybe store Buffer to prevent GC
 * 
 *     cdef set(self, hb_glyph_info_t info):             # <<<<<<<<<<<<<<
 *         self._hb_glyph_info = info
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":90
 *         self._hb_glyph_info = info
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def codepoint(self) -> int:
 *         """Either a Unicode code point (before shaping) or a glyph index
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9GlyphInfo_9codepoint_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9GlyphInfo_9codepoint_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_9GlyphInfo_9codepoint___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphInfo *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9GlyphInfo_9codepoint___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphInfo *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_buffer.pxi":95
 *         (after shaping).
 *         """
 *         return self._hb_glyph_info.codepoint             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_hb_codepoint_t(__pyx_v_self->_hb_glyph_info.codepoint); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 95, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_buffer.pxi":90
 *         self._hb_glyph_info = info
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def codepoint(self) -> int:
 *         """Either a Unicode code point (before shaping) or a glyph index
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.GlyphInfo.codepoint.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":97
 *         return self._hb_glyph_info.codepoint
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def cluster(self) -> int:
 *         """The index of the character in the original text that corresponds
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9GlyphInfo_7cluster_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9GlyphInfo_7cluster_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_9GlyphInfo_7cluster___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphInfo *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9GlyphInfo_7cluster___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphInfo *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_buffer.pxi":111
 *         selecting more fine-grained cluster handling.
 *         """
 *         return self._hb_glyph_info.cluster             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_long(__pyx_v_self->_hb_glyph_info.cluster); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 111, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_buffer.pxi":97
 *         return self._hb_glyph_info.codepoint
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def cluster(self) -> int:
 *         """The index of the character in the original text that corresponds
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.GlyphInfo.cluster.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":113
 *         return self._hb_glyph_info.cluster
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self) -> GlyphFlags:
 *         """Glyph flags encoded within a :class:`GlyphInfo`.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9GlyphInfo_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9GlyphInfo_5flags_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_9GlyphInfo_5flags___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphInfo *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9GlyphInfo_5flags___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphInfo *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_buffer.pxi":122
 *         <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-glyph-info-get-glyph-flags>`_.
 *         """
 *         return GlyphFlags(self._hb_glyph_info.mask & HB_GLYPH_FLAG_DEFINED)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_GlyphFlags); if (unlikely(!__pyx_t_3)) __PYX_ERR(7, 122, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_hb_mask_t((__pyx_v_self->_hb_glyph_info.mask & HB_GLYPH_FLAG_DEFINED)); if (unlikely(!__pyx_t_4)) __PYX_ERR(7, 122, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_4};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 122, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_buffer.pxi":113
 *         return self._hb_glyph_info.cluster
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self) -> GlyphFlags:
 *         """Glyph flags encoded within a :class:`GlyphInfo`.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.GlyphInfo.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "Pickling of struct members such as self._hb_glyph_info must be explicitly requested with @auto_pickle(True)"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9GlyphInfo_1__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_9GlyphInfo_1__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9GlyphInfo_1__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9GlyphInfo_1__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_9GlyphInfo___reduce_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphInfo *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9GlyphInfo___reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphInfo *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "Pickling of struct members such as self._hb_glyph_info must be explicitly requested with @auto_pickle(True)"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "Pickling of struct members such as self._hb_glyph_info must be explicitly requested with @auto_pickle(True)"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_Pickling_of_struct_members_such, 0, 0);
  __PYX_ERR(4, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "Pickling of struct members such as self._hb_glyph_info must be explicitly requested with @auto_pickle(True)"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.GlyphInfo.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "Pickling of struct members such as self._hb_glyph_info must be explicitly requested with @auto_pickle(True)"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "Pickling of struct members such as self._hb_glyph_info must be explicitly requested with @auto_pickle(True)"
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9GlyphInfo_3__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_9GlyphInfo_3__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9GlyphInfo_3__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9GlyphInfo_3__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 3, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < (0)) __PYX_ERR(4, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(4, 3, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(4, 3, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.GlyphInfo.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_9GlyphInfo_2__setstate_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphInfo *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9GlyphInfo_2__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphInfo *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "Pickling of struct members such as self._hb_glyph_info must be explicitly requested with @auto_pickle(True)"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "Pickling of struct members such as self._hb_glyph_info must be explicitly requested with @auto_pickle(True)"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_Pickling_of_struct_members_such, 0, 0);
  __PYX_ERR(4, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "Pickling of struct members such as self._hb_glyph_info must be explicitly requested with @auto_pickle(True)"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "Pickling of struct members such as self._hb_glyph_info must be explicitly requested with @auto_pickle(True)"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.GlyphInfo.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":136
 *     # could maybe store Buffer to prevent GC
 * 
 *     cdef set(self, hb_glyph_position_t position):             # <<<<<<<<<<<<<<
 *         self._hb_glyph_position = position
 * 
*/

static PyObject *__pyx_f_9uharfbuzz_9_harfbuzz_13GlyphPosition_set(struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition *__pyx_v_self, hb_glyph_position_t __pyx_v_position) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set", 0);

  /* "src/uharfbuzz/_buffer.pxi":137
 * 
 *     cdef set(self, hb_glyph_position_t position):
 *         self._hb_glyph_position = position             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __pyx_v_self->_hb_glyph_position = __pyx_v_position;

  /* "src/uharfbuzz/_buffer.pxi":136
 *     # could maybe store Buffer to prevent GC
 * 
 *     cdef set(self, hb_glyph_position_t position):             # <<<<<<<<<<<<<<
 *         self._hb_glyph_position = position
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":139
 *         self._hb_glyph_position = position
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def position(self) -> Tuple[int, int, int, int]:
 *         """A tuple of (:attr:`x_offset`, :attr:`y_offset`, :attr:`x_advance`,
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_13GlyphPosition_8position_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_13GlyphPosition_8position_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_13GlyphPosition_8position___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_13GlyphPosition_8position___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_buffer.pxi":144
 *         :attr:`y_advance`).
 *         """
 *         return (             # <<<<<<<<<<<<<<
 *             self._hb_glyph_position.x_offset,
 *             self._hb_glyph_position.y_offset,
*/
  __Pyx_XDECREF(__pyx_r);

  /* "src/uharfbuzz/_buffer.pxi":145
 *         """
 *         return (
 *             self._hb_glyph_position.x_offset,             # <<<<<<<<<<<<<<
 *             self._hb_glyph_position.y_offset,
 *             self._hb_glyph_position.x_advance,
*/
  __pyx_t_1 = __Pyx_PyLong_From_hb_position_t(__pyx_v_self->_hb_glyph_position.x_offset); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);

  /* "src/uharfbuzz/_buffer.pxi":146
 *         return (
 *             self._hb_glyph_position.x_offset,
 *             self._hb_glyph_position.y_offset,             # <<<<<<<<<<<<<<
 *             self._hb_glyph_position.x_advance,
 *             self._hb_glyph_position.y_advance
*/
  __pyx_t_2 = __Pyx_PyLong_From_hb_position_t(__pyx_v_self->_hb_glyph_position.y_offset); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 146, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);

  /* "src/uharfbuzz/_buffer.pxi":147
 *             self._hb_glyph_position.x_offset,
 *             self._hb_glyph_position.y_offset,
 *             self._hb_glyph_position.x_advance,             # <<<<<<<<<<<<<<
 *             self._hb_glyph_position.y_advance
 *         )
*/
  __pyx_t_3 = __Pyx_PyLong_From_hb_position_t(__pyx_v_self->_hb_glyph_position.x_advance); if (unlikely(!__pyx_t_3)) __PYX_ERR(7, 147, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);

  /* "src/uharfbuzz/_buffer.pxi":148
 *             self._hb_glyph_position.y_offset,
 *             self._hb_glyph_position.x_advance,
 *             self._hb_glyph_position.y_advance             # <<<<<<<<<<<<<<
 *         )
 * 
*/
  __pyx_t_4 = __Pyx_PyLong_From_hb_position_t(__pyx_v_self->_hb_glyph_position.y_advance); if (unlikely(!__pyx_t_4)) __PYX_ERR(7, 148, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);

  /* "src/uharfbuzz/_buffer.pxi":145
 *         """
 *         return (
 *             self._hb_glyph_position.x_offset,             # <<<<<<<<<<<<<<
 *             self._hb_glyph_position.y_offset,
 *             self._hb_glyph_position.x_advance,
*/
  __pyx_t_5 = PyTuple_New(4); if (unlikely(!__pyx_t_5)) __PYX_ERR(7, 145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1) != (0)) __PYX_ERR(7, 145, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_2) != (0)) __PYX_ERR(7, 145, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_3) != (0)) __PYX_ERR(7, 145, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_4) != (0)) __PYX_ERR(7, 145, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_buffer.pxi":139
 *         self._hb_glyph_position = position
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def position(self) -> Tuple[int, int, int, int]:
 *         """A tuple of (:attr:`x_offset`, :attr:`y_offset`, :attr:`x_advance`,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.GlyphPosition.position.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":151
 *         )
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def x_advance(self) -> int:
 *         """How much the line advances after drawing this glyph when setting
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_13GlyphPosition_9x_advance_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_13GlyphPosition_9x_advance_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_13GlyphPosition_9x_advance___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_13GlyphPosition_9x_advance___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_buffer.pxi":156
 *         text in horizontal direction.
 *         """
 *         return self._hb_glyph_position.x_advance             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_hb_position_t(__pyx_v_self->_hb_glyph_position.x_advance); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 156, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_buffer.pxi":151
 *         )
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def x_advance(self) -> int:
 *         """How much the line advances after drawing this glyph when setting
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.GlyphPosition.x_advance.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":158
 *         return self._hb_glyph_position.x_advance
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def y_advance(self) -> int:
 *         """How much the line advances after drawing this glyph when setting
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_13GlyphPosition_9y_advance_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_13GlyphPosition_9y_advance_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_13GlyphPosition_9y_advance___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_13GlyphPosition_9y_advance___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_buffer.pxi":163
 *         text in vertical direction.
 *         """
 *         return self._hb_glyph_position.y_advance             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_hb_position_t(__pyx_v_self->_hb_glyph_position.y_advance); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 163, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_buffer.pxi":158
 *         return self._hb_glyph_position.x_advance
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def y_advance(self) -> int:
 *         """How much the line advances after drawing this glyph when setting
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.GlyphPosition.y_advance.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":165
 *         return self._hb_glyph_position.y_advance
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def x_offset(self) -> int:
 *         """How much the glyph moves on the X-axis before drawing it, this
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_13GlyphPosition_8x_offset_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_13GlyphPosition_8x_offset_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_13GlyphPosition_8x_offset___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_13GlyphPosition_8x_offset___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_buffer.pxi":170
 *         should not affect how much the line advances.
 *         """
 *         return self._hb_glyph_position.x_offset             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_hb_position_t(__pyx_v_self->_hb_glyph_position.x_offset); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 170, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_buffer.pxi":165
 *         return self._hb_glyph_position.y_advance
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def x_offset(self) -> int:
 *         """How much the glyph moves on the X-axis before drawing it, this
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.GlyphPosition.x_offset.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":172
 *         return self._hb_glyph_position.x_offset
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def y_offset(self) -> int:
 *         """How much the glyph moves on the Y-axis before drawing it, this
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_13GlyphPosition_8y_offset_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_13GlyphPosition_8y_offset_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_13GlyphPosition_8y_offset___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_13GlyphPosition_8y_offset___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_buffer.pxi":177
 *         should not affect how much the line advances.
 *         """
 *         return self._hb_glyph_position.y_offset             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_hb_position_t(__pyx_v_self->_hb_glyph_position.y_offset); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 177, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_buffer.pxi":172
 *         return self._hb_glyph_position.x_offset
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def y_offset(self) -> int:
 *         """How much the glyph moves on the Y-axis before drawing it, this
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.GlyphPosition.y_offset.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "Pickling of struct members such as self._hb_glyph_position must be explicitly requested with @auto_pickle(True)"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_13GlyphPosition_1__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_13GlyphPosition_1__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_13GlyphPosition_1__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_13GlyphPosition_1__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_13GlyphPosition___reduce_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_13GlyphPosition___reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "Pickling of struct members such as self._hb_glyph_position must be explicitly requested with @auto_pickle(True)"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "Pickling of struct members such as self._hb_glyph_position must be explicitly requested with @auto_pickle(True)"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_Pickling_of_struct_members_such_2, 0, 0);
  __PYX_ERR(4, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "Pickling of struct members such as self._hb_glyph_position must be explicitly requested with @auto_pickle(True)"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.GlyphPosition.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "Pickling of struct members such as self._hb_glyph_position must be explicitly requested with @auto_pickle(True)"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "Pickling of struct members such as self._hb_glyph_position must be explicitly requested with @auto_pickle(True)"
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_13GlyphPosition_3__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_13GlyphPosition_3__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_13GlyphPosition_3__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_13GlyphPosition_3__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 3, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < (0)) __PYX_ERR(4, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(4, 3, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(4, 3, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.GlyphPosition.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_13GlyphPosition_2__setstate_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_13GlyphPosition_2__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "Pickling of struct members such as self._hb_glyph_position must be explicitly requested with @auto_pickle(True)"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "Pickling of struct members such as self._hb_glyph_position must be explicitly requested with @auto_pickle(True)"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_Pickling_of_struct_members_such_2, 0, 0);
  __PYX_ERR(4, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "Pickling of struct members such as self._hb_glyph_position must be explicitly requested with @auto_pickle(True)"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "Pickling of struct members such as self._hb_glyph_position must be explicitly requested with @auto_pickle(True)"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.GlyphPosition.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":461
 *     DEFAULT_REPLACEMENT_CODEPOINT = HB_BUFFER_REPLACEMENT_CODEPOINT_DEFAULT
 * 
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self._hb_buffer = hb_buffer_create()
 *         if not hb_buffer_allocation_successful(self._hb_buffer):
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, __pyx_nargs); return -1; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__cinit__", __pyx_kwds); return -1;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer___cinit__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "src/uharfbuzz/_buffer.pxi":462
 * 
 *     def __cinit__(self):
 *         self._hb_buffer = hb_buffer_create()             # <<<<<<<<<<<<<<
 *         if not hb_buffer_allocation_successful(self._hb_buffer):
 *             raise MemoryError()
*/
  __pyx_v_self->_hb_buffer = hb_buffer_create();

  /* "src/uharfbuzz/_buffer.pxi":463
 *     def __cinit__(self):
 *         self._hb_buffer = hb_buffer_create()
 *         if not hb_buffer_allocation_successful(self._hb_buffer):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 *         self._message_callback = None
*/
  __pyx_t_1 = (!(hb_buffer_allocation_successful(__pyx_v_self->_hb_buffer) != 0));
  if (unlikely(__pyx_t_1)) {

    /* "src/uharfbuzz/_buffer.pxi":464
 *         self._hb_buffer = hb_buffer_create()
 *         if not hb_buffer_allocation_successful(self._hb_buffer):
 *             raise MemoryError()             # <<<<<<<<<<<<<<
 *         self._message_callback = None
 * 
*/
    PyErr_NoMemory(); __PYX_ERR(7, 464, __pyx_L1_error)

    /* "src/uharfbuzz/_buffer.pxi":463
 *     def __cinit__(self):
 *         self._hb_buffer = hb_buffer_create()
 *         if not hb_buffer_allocation_successful(self._hb_buffer):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 *         self._message_callback = None
*/
  }

  /* "src/uharfbuzz/_buffer.pxi":465
 *         if not hb_buffer_allocation_successful(self._hb_buffer):
 *             raise MemoryError()
 *         self._message_callback = None             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->_message_callback);
  __Pyx_DECREF(__pyx_v_self->_message_callback);
  __pyx_v_self->_message_callback = Py_None;

  /* "src/uharfbuzz/_buffer.pxi":461
 *     DEFAULT_REPLACEMENT_CODEPOINT = HB_BUFFER_REPLACEMENT_CODEPOINT_DEFAULT
 * 
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self._hb_buffer = hb_buffer_create()
 *         if not hb_buffer_allocation_successful(self._hb_buffer):
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":467
 *         self._message_callback = None
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         hb_buffer_destroy(self._hb_buffer)
 * 
*/

/* Python wrapper */
static void __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_2__dealloc__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_2__dealloc__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self) {

  /* "src/uharfbuzz/_buffer.pxi":468
 * 
 *     def __dealloc__(self):
 *         hb_buffer_destroy(self._hb_buffer)             # <<<<<<<<<<<<<<
 * 
 *     @classmethod
*/
  hb_buffer_destroy(__pyx_v_self->_hb_buffer);

  /* "src/uharfbuzz/_buffer.pxi":467
 *         self._message_callback = None
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         hb_buffer_destroy(self._hb_buffer)
 * 
*/

  /* function exit code */
}

/* "src/uharfbuzz/_buffer.pxi":470
 *         hb_buffer_destroy(self._hb_buffer)
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     @deprecated("Buffer()", since="0.10.0")
 *     def create(cls) -> Buffer:
*/

/* Python wrapper */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_5create(PyObject *__pyx_v_cls, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_6Buffer_5create = {"create", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_5create, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_5create(PyObject *__pyx_v_cls, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("create (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("create", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("create", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_4create(((PyTypeObject*)__pyx_v_cls));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_4create(PyTypeObject *__pyx_v_cls) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_inst = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("create", 0);

  /* "src/uharfbuzz/_buffer.pxi":473
 *     @deprecated("Buffer()", since="0.10.0")
 *     def create(cls) -> Buffer:
 *         cdef Buffer inst = cls()             # <<<<<<<<<<<<<<
 *         return inst
 * 
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_v_cls, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 473, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Buffer))))) __PYX_ERR(7, 473, __pyx_L1_error)
  __pyx_v_inst = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_buffer.pxi":474
 *     def create(cls) -> Buffer:
 *         cdef Buffer inst = cls()
 *         return inst             # <<<<<<<<<<<<<<
 * 
 *     def __len__(self) -> int:
*/
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_inst);
  __pyx_r = __pyx_v_inst;
  goto __pyx_L0;

  /* "src/uharfbuzz/_buffer.pxi":470
 *         hb_buffer_destroy(self._hb_buffer)
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     @deprecated("Buffer()", since="0.10.0")
 *     def create(cls) -> Buffer:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.create", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_inst);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":476
 *         return inst
 * 
 *     def __len__(self) -> int:             # <<<<<<<<<<<<<<
 *         return hb_buffer_get_length(self._hb_buffer)
 * 
*/

/* Python wrapper */
static Py_ssize_t __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_7__len__(PyObject *__pyx_v_self); /*proto*/
static Py_ssize_t __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_7__len__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__len__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_6__len__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_ssize_t __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_6__len__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self) {
  Py_ssize_t __pyx_r;

  /* "src/uharfbuzz/_buffer.pxi":477
 * 
 *     def __len__(self) -> int:
 *         return hb_buffer_get_length(self._hb_buffer)             # <<<<<<<<<<<<<<
 * 
 *     def reset(self):
*/
  __pyx_r = hb_buffer_get_length(__pyx_v_self->_hb_buffer);
  goto __pyx_L0;

  /* "src/uharfbuzz/_buffer.pxi":476
 *         return inst
 * 
 *     def __len__(self) -> int:             # <<<<<<<<<<<<<<
 *         return hb_buffer_get_length(self._hb_buffer)
 * 
*/

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":479
 *         return hb_buffer_get_length(self._hb_buffer)
 * 
 *     def reset(self):             # <<<<<<<<<<<<<<
 *         """Resets the buffer to its initial status, as if it was just newly
 *         created.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_9reset(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_6Buffer_8reset, "Resets the buffer to its initial status, as if it was just newly\n        created.\n\n        Wraps `hb_buffer_reset()\n        <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-reset>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_6Buffer_9reset = {"reset", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_9reset, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_6Buffer_8reset};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_9reset(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("reset (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("reset", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("reset", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_8reset(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_8reset(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("reset", 0);

  /* "src/uharfbuzz/_buffer.pxi":486
 *         <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-reset>`_.
 *         """
 *         hb_buffer_reset (self._hb_buffer)             # <<<<<<<<<<<<<<
 * 
 *     def clear_contents(self):
*/
  hb_buffer_reset(__pyx_v_self->_hb_buffer);

  /* "src/uharfbuzz/_buffer.pxi":479
 *         return hb_buffer_get_length(self._hb_buffer)
 * 
 *     def reset(self):             # <<<<<<<<<<<<<<
 *         """Resets the buffer to its initial status, as if it was just newly
 *         created.
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":488
 *         hb_buffer_reset (self._hb_buffer)
 * 
 *     def clear_contents(self):             # <<<<<<<<<<<<<<
 *         """Similar to :meth:`reset`, but does not clear the Unicode functions
 *         and the replacement code point.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_11clear_contents(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_6Buffer_10clear_contents, "Similar to :meth:`reset`, but does not clear the Unicode functions\n        and the replacement code point.\n\n        Wraps `hb_buffer_clear_contents()\n        <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-clear-contents>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_6Buffer_11clear_contents = {"clear_contents", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_11clear_contents, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_6Buffer_10clear_contents};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_11clear_contents(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("clear_contents (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("clear_contents", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("clear_contents", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_10clear_contents(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_10clear_contents(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("clear_contents", 0);

  /* "src/uharfbuzz/_buffer.pxi":495
 *         <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-clear-contents>`_.
 *         """
 *         hb_buffer_clear_contents(self._hb_buffer)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  hb_buffer_clear_contents(__pyx_v_self->_hb_buffer);

  /* "src/uharfbuzz/_buffer.pxi":488
 *         hb_buffer_reset (self._hb_buffer)
 * 
 *     def clear_contents(self):             # <<<<<<<<<<<<<<
 *         """Similar to :meth:`reset`, but does not clear the Unicode functions
 *         and the replacement code point.
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":497
 *         hb_buffer_clear_contents(self._hb_buffer)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def direction(self) -> str:
 *         """The text flow direction of the buffer. No shaping can happen
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_9direction_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_9direction_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_9direction___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_9direction___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self) {
  const char *__pyx_v_cstr;
  PyObject *__pyx_v_packed = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_buffer.pxi":512
 *         <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-set-direction>`_.
 *         """
 *         cdef const_char* cstr = hb_direction_to_string(             # <<<<<<<<<<<<<<
 *             hb_buffer_get_direction(self._hb_buffer))
 *         cdef bytes packed = cstr
*/
  __pyx_v_cstr = hb_direction_to_string(hb_buffer_get_direction(__pyx_v_self->_hb_buffer));

  /* "src/uharfbuzz/_buffer.pxi":514
 *         cdef const_char* cstr = hb_direction_to_string(
 *             hb_buffer_get_direction(self._hb_buffer))
 *         cdef bytes packed = cstr             # <<<<<<<<<<<<<<
 *         return packed.decode()
 * 
*/
  __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_cstr); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 514, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_packed = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_buffer.pxi":515
 *             hb_buffer_get_direction(self._hb_buffer))
 *         cdef bytes packed = cstr
 *         return packed.decode()             # <<<<<<<<<<<<<<
 * 
 *     @direction.setter
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_decode_bytes(__pyx_v_packed, 0, PY_SSIZE_T_MAX, NULL, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 515, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_buffer.pxi":497
 *         hb_buffer_clear_contents(self._hb_buffer)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def direction(self) -> str:
 *         """The text flow direction of the buffer. No shaping can happen
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.direction.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":517
 *         return packed.decode()
 * 
 *     @direction.setter             # <<<<<<<<<<<<<<
 *     def direction(self, value: str):
 *         cdef bytes packed = value.encode()
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_9direction_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_9direction_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), (&PyUnicode_Type), 0, "value", 2))) __PYX_ERR(7, 518, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_9direction_2__set__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self), ((PyObject*)__pyx_v_value));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_9direction_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, PyObject *__pyx_v_value) {
  PyObject *__pyx_v_packed = 0;
  char *__pyx_v_cstr;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  char *__pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "src/uharfbuzz/_buffer.pxi":519
 *     @direction.setter
 *     def direction(self, value: str):
 *         cdef bytes packed = value.encode()             # <<<<<<<<<<<<<<
 *         cdef char* cstr = packed
 *         hb_buffer_set_direction(
*/
  __pyx_t_1 = PyUnicode_AsEncodedString(__pyx_v_value, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_packed = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_buffer.pxi":520
 *     def direction(self, value: str):
 *         cdef bytes packed = value.encode()
 *         cdef char* cstr = packed             # <<<<<<<<<<<<<<
 *         hb_buffer_set_direction(
 *             self._hb_buffer, hb_direction_from_string(cstr, -1))
*/
  __pyx_t_2 = __Pyx_PyBytes_AsWritableString(__pyx_v_packed); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(7, 520, __pyx_L1_error)
  __pyx_v_cstr = __pyx_t_2;

  /* "src/uharfbuzz/_buffer.pxi":521
 *         cdef bytes packed = value.encode()
 *         cdef char* cstr = packed
 *         hb_buffer_set_direction(             # <<<<<<<<<<<<<<
 *             self._hb_buffer, hb_direction_from_string(cstr, -1))
 * 
*/
  hb_buffer_set_direction(__pyx_v_self->_hb_buffer, hb_direction_from_string(__pyx_v_cstr, -1));

  /* "src/uharfbuzz/_buffer.pxi":517
 *         return packed.decode()
 * 
 *     @direction.setter             # <<<<<<<<<<<<<<
 *     def direction(self, value: str):
 *         cdef bytes packed = value.encode()
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.direction.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":524
 *             self._hb_buffer, hb_direction_from_string(cstr, -1))
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def glyph_infos(self) -> List[GlyphInfo]:
 *         """The buffer glyph information array. The value is valid as long as
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_11glyph_infos_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_11glyph_infos_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_11glyph_infos___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_11glyph_infos___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self) {
  unsigned int __pyx_v_count;
  hb_glyph_info_t *__pyx_v_glyph_infos;
  PyObject *__pyx_v_infos = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphInfo *__pyx_v_info = 0;
  unsigned int __pyx_v_i;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  unsigned int __pyx_t_2;
  unsigned int __pyx_t_3;
  unsigned int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_buffer.pxi":535
 *         """
 *         cdef unsigned int count
 *         cdef hb_glyph_info_t* glyph_infos = hb_buffer_get_glyph_infos(             # <<<<<<<<<<<<<<
 *             self._hb_buffer, &count)
 *         cdef list infos = []
*/
  __pyx_v_glyph_infos = hb_buffer_get_glyph_infos(__pyx_v_self->_hb_buffer, (&__pyx_v_count));

  /* "src/uharfbuzz/_buffer.pxi":537
 *         cdef hb_glyph_info_t* glyph_infos = hb_buffer_get_glyph_infos(
 *             self._hb_buffer, &count)
 *         cdef list infos = []             # <<<<<<<<<<<<<<
 *         cdef GlyphInfo info
 *         cdef unsigned int i
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 537, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_infos = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_buffer.pxi":540
 *         cdef GlyphInfo info
 *         cdef unsigned int i
 *         for i in range(count):             # <<<<<<<<<<<<<<
 *             info = GlyphInfo()
 *             info.set(glyph_infos[i])
*/
  __pyx_t_2 = __pyx_v_count;
  __pyx_t_3 = __pyx_t_2;
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
    __pyx_v_i = __pyx_t_4;

    /* "src/uharfbuzz/_buffer.pxi":541
 *         cdef unsigned int i
 *         for i in range(count):
 *             info = GlyphInfo()             # <<<<<<<<<<<<<<
 *             info.set(glyph_infos[i])
 *             infos.append(info)
*/
    __pyx_t_5 = NULL;
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphInfo, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 541, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_1);
    }
    __Pyx_XDECREF_SET(__pyx_v_info, ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphInfo *)__pyx_t_1));
    __pyx_t_1 = 0;

    /* "src/uharfbuzz/_buffer.pxi":542
 *         for i in range(count):
 *             info = GlyphInfo()
 *             info.set(glyph_infos[i])             # <<<<<<<<<<<<<<
 *             infos.append(info)
 *         return infos
*/
    __pyx_t_1 = ((struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_GlyphInfo *)__pyx_v_info->__pyx_vtab)->set(__pyx_v_info, (__pyx_v_glyph_infos[__pyx_v_i])); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 542, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "src/uharfbuzz/_buffer.pxi":543
 *             info = GlyphInfo()
 *             info.set(glyph_infos[i])
 *             infos.append(info)             # <<<<<<<<<<<<<<
 *         return infos
 * 
*/
    __pyx_t_7 = __Pyx_PyList_Append(__pyx_v_infos, ((PyObject *)__pyx_v_info)); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(7, 543, __pyx_L1_error)
  }

  /* "src/uharfbuzz/_buffer.pxi":544
 *             info.set(glyph_infos[i])
 *             infos.append(info)
 *         return infos             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_infos);
  __pyx_r = __pyx_v_infos;
  goto __pyx_L0;

  /* "src/uharfbuzz/_buffer.pxi":524
 *             self._hb_buffer, hb_direction_from_string(cstr, -1))
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def glyph_infos(self) -> List[GlyphInfo]:
 *         """The buffer glyph information array. The value is valid as long as
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.glyph_infos.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_infos);
  __Pyx_XDECREF((PyObject *)__pyx_v_info);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":546
 *         return infos
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def glyph_positions(self) -> List[GlyphPosition]:
 *         """The buffer glyph position array. The value is valid as long as the
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_15glyph_positions_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_15glyph_positions_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_15glyph_positions___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_15glyph_positions___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self) {
  unsigned int __pyx_v_count;
  hb_glyph_position_t *__pyx_v_glyph_positions;
  PyObject *__pyx_v_positions = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition *__pyx_v_position = 0;
  unsigned int __pyx_v_i;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  unsigned int __pyx_t_3;
  unsigned int __pyx_t_4;
  unsigned int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_buffer.pxi":563
 *         cdef unsigned int count
 *         cdef hb_glyph_position_t* glyph_positions = \
 *             hb_buffer_get_glyph_positions(self._hb_buffer, &count)             # <<<<<<<<<<<<<<
 *         if glyph_positions is NULL:
 *             return None
*/
  __pyx_v_glyph_positions = hb_buffer_get_glyph_positions(__pyx_v_self->_hb_buffer, (&__pyx_v_count));

  /* "src/uharfbuzz/_buffer.pxi":564
 *         cdef hb_glyph_position_t* glyph_positions = \
 *             hb_buffer_get_glyph_positions(self._hb_buffer, &count)
 *         if glyph_positions is NULL:             # <<<<<<<<<<<<<<
 *             return None
 *         cdef list positions = []
*/
  __pyx_t_1 = (__pyx_v_glyph_positions == NULL);
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_buffer.pxi":565
 *             hb_buffer_get_glyph_positions(self._hb_buffer, &count)
 *         if glyph_positions is NULL:
 *             return None             # <<<<<<<<<<<<<<
 *         cdef list positions = []
 *         cdef GlyphPosition position
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "src/uharfbuzz/_buffer.pxi":564
 *         cdef hb_glyph_position_t* glyph_positions = \
 *             hb_buffer_get_glyph_positions(self._hb_buffer, &count)
 *         if glyph_positions is NULL:             # <<<<<<<<<<<<<<
 *             return None
 *         cdef list positions = []
*/
  }

  /* "src/uharfbuzz/_buffer.pxi":566
 *         if glyph_positions is NULL:
 *             return None
 *         cdef list positions = []             # <<<<<<<<<<<<<<
 *         cdef GlyphPosition position
 *         cdef unsigned int i
*/
  __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 566, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_positions = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "src/uharfbuzz/_buffer.pxi":569
 *         cdef GlyphPosition position
 *         cdef unsigned int i
 *         for i in range(count):             # <<<<<<<<<<<<<<
 *             position = GlyphPosition()
 *             position.set(glyph_positions[i])
*/
  __pyx_t_3 = __pyx_v_count;
  __pyx_t_4 = __pyx_t_3;
  for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) {
    __pyx_v_i = __pyx_t_5;

    /* "src/uharfbuzz/_buffer.pxi":570
 *         cdef unsigned int i
 *         for i in range(count):
 *             position = GlyphPosition()             # <<<<<<<<<<<<<<
 *             position.set(glyph_positions[i])
 *             positions.append(position)
*/
    __pyx_t_6 = NULL;
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphPosition, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 570, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __Pyx_XDECREF_SET(__pyx_v_position, ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "src/uharfbuzz/_buffer.pxi":571
 *         for i in range(count):
 *             position = GlyphPosition()
 *             position.set(glyph_positions[i])             # <<<<<<<<<<<<<<
 *             positions.append(position)
 *         return positions
*/
    __pyx_t_2 = ((struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_GlyphPosition *)__pyx_v_position->__pyx_vtab)->set(__pyx_v_position, (__pyx_v_glyph_positions[__pyx_v_i])); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 571, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "src/uharfbuzz/_buffer.pxi":572
 *             position = GlyphPosition()
 *             position.set(glyph_positions[i])
 *             positions.append(position)             # <<<<<<<<<<<<<<
 *         return positions
 * 
*/
    __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_positions, ((PyObject *)__pyx_v_position)); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(7, 572, __pyx_L1_error)
  }

  /* "src/uharfbuzz/_buffer.pxi":573
 *             position.set(glyph_positions[i])
 *             positions.append(position)
 *         return positions             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_positions);
  __pyx_r = __pyx_v_positions;
  goto __pyx_L0;

  /* "src/uharfbuzz/_buffer.pxi":546
 *         return infos
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def glyph_positions(self) -> List[GlyphPosition]:
 *         """The buffer glyph position array. The value is valid as long as the
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.glyph_positions.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_positions);
  __Pyx_XDECREF((PyObject *)__pyx_v_position);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":575
 *         return positions
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def language(self) -> str:
 *         """The language of the buffer, as a BCP 47 language tag.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_8language_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_8language_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_8language___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_8language___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self) {
  const char *__pyx_v_cstr;
  PyObject *__pyx_v_packed = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_buffer.pxi":590
 *         <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-set-language>`_.
 *         """
 *         cdef const_char* cstr = hb_language_to_string(             # <<<<<<<<<<<<<<
 *             hb_buffer_get_language(self._hb_buffer))
 *         if cstr is NULL:
*/
  __pyx_v_cstr = hb_language_to_string(hb_buffer_get_language(__pyx_v_self->_hb_buffer));

  /* "src/uharfbuzz/_buffer.pxi":592
 *         cdef const_char* cstr = hb_language_to_string(
 *             hb_buffer_get_language(self._hb_buffer))
 *         if cstr is NULL:             # <<<<<<<<<<<<<<
 *             return None
 *         cdef bytes packed = cstr
*/
  __pyx_t_1 = (__pyx_v_cstr == NULL);
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_buffer.pxi":593
 *             hb_buffer_get_language(self._hb_buffer))
 *         if cstr is NULL:
 *             return None             # <<<<<<<<<<<<<<
 *         cdef bytes packed = cstr
 *         return packed.decode()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "src/uharfbuzz/_buffer.pxi":592
 *         cdef const_char* cstr = hb_language_to_string(
 *             hb_buffer_get_language(self._hb_buffer))
 *         if cstr is NULL:             # <<<<<<<<<<<<<<
 *             return None
 *         cdef bytes packed = cstr
*/
  }

  /* "src/uharfbuzz/_buffer.pxi":594
 *         if cstr is NULL:
 *             return None
 *         cdef bytes packed = cstr             # <<<<<<<<<<<<<<
 *         return packed.decode()
 * 
*/
  __pyx_t_2 = __Pyx_PyBytes_FromString(__pyx_v_cstr); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 594, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_packed = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "src/uharfbuzz/_buffer.pxi":595
 *             return None
 *         cdef bytes packed = cstr
 *         return packed.decode()             # <<<<<<<<<<<<<<
 * 
 *     @language.setter
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_decode_bytes(__pyx_v_packed, 0, PY_SSIZE_T_MAX, NULL, NULL, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 595, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_buffer.pxi":575
 *         return positions
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def language(self) -> str:
 *         """The language of the buffer, as a BCP 47 language tag.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.language.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":597
 *         return packed.decode()
 * 
 *     @language.setter             # <<<<<<<<<<<<<<
 *     def language(self, value: str):
 *         cdef bytes packed = value.encode()
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_8language_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_8language_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), (&PyUnicode_Type), 0, "value", 2))) __PYX_ERR(7, 598, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_8language_2__set__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self), ((PyObject*)__pyx_v_value));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_8language_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, PyObject *__pyx_v_value) {
  PyObject *__pyx_v_packed = 0;
  char *__pyx_v_cstr;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  char *__pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "src/uharfbuzz/_buffer.pxi":599
 *     @language.setter
 *     def language(self, value: str):
 *         cdef bytes packed = value.encode()             # <<<<<<<<<<<<<<
 *         cdef char* cstr = packed
 *         hb_buffer_set_language(
*/
  __pyx_t_1 = PyUnicode_AsEncodedString(__pyx_v_value, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 599, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_packed = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_buffer.pxi":600
 *     def language(self, value: str):
 *         cdef bytes packed = value.encode()
 *         cdef char* cstr = packed             # <<<<<<<<<<<<<<
 *         hb_buffer_set_language(
 *             self._hb_buffer, hb_language_from_string(cstr, -1))
*/
  __pyx_t_2 = __Pyx_PyBytes_AsWritableString(__pyx_v_packed); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(7, 600, __pyx_L1_error)
  __pyx_v_cstr = __pyx_t_2;

  /* "src/uharfbuzz/_buffer.pxi":601
 *         cdef bytes packed = value.encode()
 *         cdef char* cstr = packed
 *         hb_buffer_set_language(             # <<<<<<<<<<<<<<
 *             self._hb_buffer, hb_language_from_string(cstr, -1))
 * 
*/
  hb_buffer_set_language(__pyx_v_self->_hb_buffer, hb_language_from_string(__pyx_v_cstr, -1));

  /* "src/uharfbuzz/_buffer.pxi":597
 *         return packed.decode()
 * 
 *     @language.setter             # <<<<<<<<<<<<<<
 *     def language(self, value: str):
 *         cdef bytes packed = value.encode()
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.language.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":604
 *             self._hb_buffer, hb_language_from_string(cstr, -1))
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def script(self) -> str:
 *         """The script of the buffer, as an ISO 15924 script tag.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_6script_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_6script_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_6script___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_6script___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self) {
  char __pyx_v_cstr[5];
  PyObject *__pyx_v_packed = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_buffer.pxi":618
 *         """
 *         cdef char cstr[5]
 *         hb_tag_to_string(hb_buffer_get_script(self._hb_buffer), cstr)             # <<<<<<<<<<<<<<
 *         cstr[4] = b'\0'
 *         if cstr[0] == b'\0':
*/
  hb_tag_to_string(hb_buffer_get_script(__pyx_v_self->_hb_buffer), __pyx_v_cstr);

  /* "src/uharfbuzz/_buffer.pxi":619
 *         cdef char cstr[5]
 *         hb_tag_to_string(hb_buffer_get_script(self._hb_buffer), cstr)
 *         cstr[4] = b'\0'             # <<<<<<<<<<<<<<
 *         if cstr[0] == b'\0':
 *             return None
*/
  (__pyx_v_cstr[4]) = '\x00';

  /* "src/uharfbuzz/_buffer.pxi":620
 *         hb_tag_to_string(hb_buffer_get_script(self._hb_buffer), cstr)
 *         cstr[4] = b'\0'
 *         if cstr[0] == b'\0':             # <<<<<<<<<<<<<<
 *             return None
 *         cdef bytes packed = cstr
*/
  __pyx_t_1 = ((__pyx_v_cstr[0]) == '\x00');
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_buffer.pxi":621
 *         cstr[4] = b'\0'
 *         if cstr[0] == b'\0':
 *             return None             # <<<<<<<<<<<<<<
 *         cdef bytes packed = cstr
 *         return packed.decode()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "src/uharfbuzz/_buffer.pxi":620
 *         hb_tag_to_string(hb_buffer_get_script(self._hb_buffer), cstr)
 *         cstr[4] = b'\0'
 *         if cstr[0] == b'\0':             # <<<<<<<<<<<<<<
 *             return None
 *         cdef bytes packed = cstr
*/
  }

  /* "src/uharfbuzz/_buffer.pxi":622
 *         if cstr[0] == b'\0':
 *             return None
 *         cdef bytes packed = cstr             # <<<<<<<<<<<<<<
 *         return packed.decode()
 * 
*/
  __pyx_t_2 = __Pyx_PyBytes_FromString(__pyx_v_cstr); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 622, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_packed = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "src/uharfbuzz/_buffer.pxi":623
 *             return None
 *         cdef bytes packed = cstr
 *         return packed.decode()             # <<<<<<<<<<<<<<
 * 
 *     @script.setter
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_decode_bytes(__pyx_v_packed, 0, PY_SSIZE_T_MAX, NULL, NULL, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 623, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_buffer.pxi":604
 *             self._hb_buffer, hb_language_from_string(cstr, -1))
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def script(self) -> str:
 *         """The script of the buffer, as an ISO 15924 script tag.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.script.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":625
 *         return packed.decode()
 * 
 *     @script.setter             # <<<<<<<<<<<<<<
 *     def script(self, value: str):
 *         cdef bytes packed = value.encode()
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_6script_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_6script_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), (&PyUnicode_Type), 0, "value", 2))) __PYX_ERR(7, 626, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_6script_2__set__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self), ((PyObject*)__pyx_v_value));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_6script_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, PyObject *__pyx_v_value) {
  PyObject *__pyx_v_packed = 0;
  char *__pyx_v_cstr;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  char *__pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "src/uharfbuzz/_buffer.pxi":627
 *     @script.setter
 *     def script(self, value: str):
 *         cdef bytes packed = value.encode()             # <<<<<<<<<<<<<<
 *         cdef char* cstr = packed
 *         # all the *_from_string calls should probably be checked and throw an
*/
  __pyx_t_1 = PyUnicode_AsEncodedString(__pyx_v_value, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 627, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_packed = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_buffer.pxi":628
 *     def script(self, value: str):
 *         cdef bytes packed = value.encode()
 *         cdef char* cstr = packed             # <<<<<<<<<<<<<<
 *         # all the *_from_string calls should probably be checked and throw an
 *         # exception if invalid
*/
  __pyx_t_2 = __Pyx_PyBytes_AsWritableString(__pyx_v_packed); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(7, 628, __pyx_L1_error)
  __pyx_v_cstr = __pyx_t_2;

  /* "src/uharfbuzz/_buffer.pxi":631
 *         # all the *_from_string calls should probably be checked and throw an
 *         # exception if invalid
 *         hb_buffer_set_script(             # <<<<<<<<<<<<<<
 *             self._hb_buffer, hb_script_from_string(cstr, -1))
 * 
*/
  hb_buffer_set_script(__pyx_v_self->_hb_buffer, hb_script_from_string(__pyx_v_cstr, -1));

  /* "src/uharfbuzz/_buffer.pxi":625
 *         return packed.decode()
 * 
 *     @script.setter             # <<<<<<<<<<<<<<
 *     def script(self, value: str):
 *         cdef bytes packed = value.encode()
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.script.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":634
 *             self._hb_buffer, hb_script_from_string(cstr, -1))
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self) -> BufferFlags:
 *         """The :class:`BufferFlags` of the buffer.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_5flags_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_5flags___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_5flags___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self) {
  hb_buffer_flags_t __pyx_v_level;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_buffer.pxi":645
 *         <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-set-flags>`_.
 *         """
 *         level = hb_buffer_get_flags(self._hb_buffer)             # <<<<<<<<<<<<<<
 *         return BufferFlags(level)
 * 
*/
  __pyx_v_level = hb_buffer_get_flags(__pyx_v_self->_hb_buffer);

  /* "src/uharfbuzz/_buffer.pxi":646
 *         """
 *         level = hb_buffer_get_flags(self._hb_buffer)
 *         return BufferFlags(level)             # <<<<<<<<<<<<<<
 * 
 *     @flags.setter
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_BufferFlags); if (unlikely(!__pyx_t_3)) __PYX_ERR(7, 646, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_hb_buffer_flags_t(__pyx_v_level); if (unlikely(!__pyx_t_4)) __PYX_ERR(7, 646, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_4};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 646, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_buffer.pxi":634
 *             self._hb_buffer, hb_script_from_string(cstr, -1))
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self) -> BufferFlags:
 *         """The :class:`BufferFlags` of the buffer.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":648
 *         return BufferFlags(level)
 * 
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, value: BufferFlags):
 *         level = BufferFlags(value)
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_5flags_2__set__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_5flags_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, PyObject *__pyx_v_value) {
  PyObject *__pyx_v_level = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  hb_buffer_flags_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "src/uharfbuzz/_buffer.pxi":650
 *     @flags.setter
 *     def flags(self, value: BufferFlags):
 *         level = BufferFlags(value)             # <<<<<<<<<<<<<<
 *         hb_buffer_set_flags(self._hb_buffer, level)
 * 
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_BufferFlags); if (unlikely(!__pyx_t_3)) __PYX_ERR(7, 650, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_value};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 650, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_level = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_buffer.pxi":651
 *     def flags(self, value: BufferFlags):
 *         level = BufferFlags(value)
 *         hb_buffer_set_flags(self._hb_buffer, level)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __pyx_t_5 = ((hb_buffer_flags_t)__Pyx_PyLong_As_hb_buffer_flags_t(__pyx_v_level)); if (unlikely(PyErr_Occurred())) __PYX_ERR(7, 651, __pyx_L1_error)
  hb_buffer_set_flags(__pyx_v_self->_hb_buffer, __pyx_t_5);

  /* "src/uharfbuzz/_buffer.pxi":648
 *         return BufferFlags(level)
 * 
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, value: BufferFlags):
 *         level = BufferFlags(value)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_level);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":653
 *         hb_buffer_set_flags(self._hb_buffer, level)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def cluster_level(self) -> BufferClusterLevel:
 *         """The cluster level of the buffer. The :class:`BufferClusterLevel`
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_13cluster_level_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_13cluster_level_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_13cluster_level___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_13cluster_level___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self) {
  hb_buffer_cluster_level_t __pyx_v_level;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_buffer.pxi":666
 *         <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-set-cluster-level>`_.
 *         """
 *         level = hb_buffer_get_cluster_level(self._hb_buffer)             # <<<<<<<<<<<<<<
 *         return BufferClusterLevel(level)
 * 
*/
  __pyx_v_level = hb_buffer_get_cluster_level(__pyx_v_self->_hb_buffer);

  /* "src/uharfbuzz/_buffer.pxi":667
 *         """
 *         level = hb_buffer_get_cluster_level(self._hb_buffer)
 *         return BufferClusterLevel(level)             # <<<<<<<<<<<<<<
 * 
 *     @cluster_level.setter
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_BufferClusterLevel); if (unlikely(!__pyx_t_3)) __PYX_ERR(7, 667, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_hb_buffer_cluster_level_t(__pyx_v_level); if (unlikely(!__pyx_t_4)) __PYX_ERR(7, 667, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_4};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 667, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_buffer.pxi":653
 *         hb_buffer_set_flags(self._hb_buffer, level)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def cluster_level(self) -> BufferClusterLevel:
 *         """The cluster level of the buffer. The :class:`BufferClusterLevel`
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.cluster_level.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":669
 *         return BufferClusterLevel(level)
 * 
 *     @cluster_level.setter             # <<<<<<<<<<<<<<
 *     def cluster_level(self, value: BufferClusterLevel):
 *         level = BufferClusterLevel(value)
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_13cluster_level_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_13cluster_level_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_13cluster_level_2__set__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_13cluster_level_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, PyObject *__pyx_v_value) {
  PyObject *__pyx_v_level = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  hb_buffer_cluster_level_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "src/uharfbuzz/_buffer.pxi":671
 *     @cluster_level.setter
 *     def cluster_level(self, value: BufferClusterLevel):
 *         level = BufferClusterLevel(value)             # <<<<<<<<<<<<<<
 *         hb_buffer_set_cluster_level(self._hb_buffer, level)
 * 
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_BufferClusterLevel); if (unlikely(!__pyx_t_3)) __PYX_ERR(7, 671, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_value};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 671, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_level = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_buffer.pxi":672
 *     def cluster_level(self, value: BufferClusterLevel):
 *         level = BufferClusterLevel(value)
 *         hb_buffer_set_cluster_level(self._hb_buffer, level)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __pyx_t_5 = ((hb_buffer_cluster_level_t)__Pyx_PyLong_As_hb_buffer_cluster_level_t(__pyx_v_level)); if (unlikely(PyErr_Occurred())) __PYX_ERR(7, 672, __pyx_L1_error)
  hb_buffer_set_cluster_level(__pyx_v_self->_hb_buffer, __pyx_t_5);

  /* "src/uharfbuzz/_buffer.pxi":669
 *         return BufferClusterLevel(level)
 * 
 *     @cluster_level.setter             # <<<<<<<<<<<<<<
 *     def cluster_level(self, value: BufferClusterLevel):
 *         level = BufferClusterLevel(value)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.cluster_level.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_level);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":674
 *         hb_buffer_set_cluster_level(self._hb_buffer, level)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def content_type(self) -> BufferContentType:
 *         """The type of buffer contents. Buffers are either empty, contain
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_12content_type_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_12content_type_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_12content_type___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_12content_type___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self) {
  hb_buffer_content_type_t __pyx_v_level;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_buffer.pxi":687
 *         <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-set-content-type>`_.
 *         """
 *         level = hb_buffer_get_content_type(self._hb_buffer)             # <<<<<<<<<<<<<<
 *         return BufferContentType(level)
 * 
*/
  __pyx_v_level = hb_buffer_get_content_type(__pyx_v_self->_hb_buffer);

  /* "src/uharfbuzz/_buffer.pxi":688
 *         """
 *         level = hb_buffer_get_content_type(self._hb_buffer)
 *         return BufferContentType(level)             # <<<<<<<<<<<<<<
 * 
 *     @content_type.setter
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_BufferContentType); if (unlikely(!__pyx_t_3)) __PYX_ERR(7, 688, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_hb_buffer_content_type_t(__pyx_v_level); if (unlikely(!__pyx_t_4)) __PYX_ERR(7, 688, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_4};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 688, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_buffer.pxi":674
 *         hb_buffer_set_cluster_level(self._hb_buffer, level)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def content_type(self) -> BufferContentType:
 *         """The type of buffer contents. Buffers are either empty, contain
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.content_type.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":690
 *         return BufferContentType(level)
 * 
 *     @content_type.setter             # <<<<<<<<<<<<<<
 *     def content_type(self, value: BufferContentType):
 *         level = BufferContentType(value)
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_12content_type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_12content_type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_12content_type_2__set__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_12content_type_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, PyObject *__pyx_v_value) {
  PyObject *__pyx_v_level = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  hb_buffer_content_type_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "src/uharfbuzz/_buffer.pxi":692
 *     @content_type.setter
 *     def content_type(self, value: BufferContentType):
 *         level = BufferContentType(value)             # <<<<<<<<<<<<<<
 *         hb_buffer_set_content_type(self._hb_buffer, level)
 * 
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_BufferContentType); if (unlikely(!__pyx_t_3)) __PYX_ERR(7, 692, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_value};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 692, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_level = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_buffer.pxi":693
 *     def content_type(self, value: BufferContentType):
 *         level = BufferContentType(value)
 *         hb_buffer_set_content_type(self._hb_buffer, level)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __pyx_t_5 = ((hb_buffer_content_type_t)__Pyx_PyLong_As_hb_buffer_content_type_t(__pyx_v_level)); if (unlikely(PyErr_Occurred())) __PYX_ERR(7, 693, __pyx_L1_error)
  hb_buffer_set_content_type(__pyx_v_self->_hb_buffer, __pyx_t_5);

  /* "src/uharfbuzz/_buffer.pxi":690
 *         return BufferContentType(level)
 * 
 *     @content_type.setter             # <<<<<<<<<<<<<<
 *     def content_type(self, value: BufferContentType):
 *         level = BufferContentType(value)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.content_type.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_level);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":695
 *         hb_buffer_set_content_type(self._hb_buffer, level)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def replacement_codepoint(self) -> int:
 *         """The codepoint that replaces invalid entries for a given encoding
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_21replacement_codepoint_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_21replacement_codepoint_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_21replacement_codepoint___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_21replacement_codepoint___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_buffer.pxi":707
 *         <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-set-replacement-codepoint>`_.
 *         """
 *         return hb_buffer_get_replacement_codepoint(self._hb_buffer)             # <<<<<<<<<<<<<<
 * 
 *     @replacement_codepoint.setter
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_hb_codepoint_t(hb_buffer_get_replacement_codepoint(__pyx_v_self->_hb_buffer)); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 707, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_buffer.pxi":695
 *         hb_buffer_set_content_type(self._hb_buffer, level)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def replacement_codepoint(self) -> int:
 *         """The codepoint that replaces invalid entries for a given encoding
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.replacement_codepoint.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":709
 *         return hb_buffer_get_replacement_codepoint(self._hb_buffer)
 * 
 *     @replacement_codepoint.setter             # <<<<<<<<<<<<<<
 *     def replacement_codepoint(self, value: int):
 *         hb_buffer_set_replacement_codepoint(self._hb_buffer, value)
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_21replacement_codepoint_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_21replacement_codepoint_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), (&PyLong_Type), 0, "value", 2))) __PYX_ERR(7, 710, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_21replacement_codepoint_2__set__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self), ((PyObject*)__pyx_v_value));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_21replacement_codepoint_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  hb_codepoint_t __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "src/uharfbuzz/_buffer.pxi":711
 *     @replacement_codepoint.setter
 *     def replacement_codepoint(self, value: int):
 *         hb_buffer_set_replacement_codepoint(self._hb_buffer, value)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __pyx_t_1 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_value); if (unlikely((__pyx_t_1 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(7, 711, __pyx_L1_error)
  hb_buffer_set_replacement_codepoint(__pyx_v_self->_hb_buffer, __pyx_t_1);

  /* "src/uharfbuzz/_buffer.pxi":709
 *         return hb_buffer_get_replacement_codepoint(self._hb_buffer)
 * 
 *     @replacement_codepoint.setter             # <<<<<<<<<<<<<<
 *     def replacement_codepoint(self, value: int):
 *         hb_buffer_set_replacement_codepoint(self._hb_buffer, value)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.replacement_codepoint.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":713
 *         hb_buffer_set_replacement_codepoint(self._hb_buffer, value)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def invisible_glyph(self) -> int:
 *         """The codepoint that replaces invisible characters in the shaping
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_15invisible_glyph_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_15invisible_glyph_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_15invisible_glyph___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_15invisible_glyph___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_buffer.pxi":724
 *         <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-set-invisible-glyph>`_.
 *         """
 *         return hb_buffer_get_invisible_glyph(self._hb_buffer)             # <<<<<<<<<<<<<<
 * 
 *     @invisible_glyph.setter
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_hb_codepoint_t(hb_buffer_get_invisible_glyph(__pyx_v_self->_hb_buffer)); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 724, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_buffer.pxi":713
 *         hb_buffer_set_replacement_codepoint(self._hb_buffer, value)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def invisible_glyph(self) -> int:
 *         """The codepoint that replaces invisible characters in the shaping
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.invisible_glyph.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":726
 *         return hb_buffer_get_invisible_glyph(self._hb_buffer)
 * 
 *     @invisible_glyph.setter             # <<<<<<<<<<<<<<
 *     def invisible_glyph(self, value: int):
 *         hb_buffer_set_invisible_glyph(self._hb_buffer, value)
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_15invisible_glyph_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_15invisible_glyph_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), (&PyLong_Type), 0, "value", 2))) __PYX_ERR(7, 727, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_15invisible_glyph_2__set__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self), ((PyObject*)__pyx_v_value));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_15invisible_glyph_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  hb_codepoint_t __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "src/uharfbuzz/_buffer.pxi":728
 *     @invisible_glyph.setter
 *     def invisible_glyph(self, value: int):
 *         hb_buffer_set_invisible_glyph(self._hb_buffer, value)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __pyx_t_1 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_value); if (unlikely((__pyx_t_1 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(7, 728, __pyx_L1_error)
  hb_buffer_set_invisible_glyph(__pyx_v_self->_hb_buffer, __pyx_t_1);

  /* "src/uharfbuzz/_buffer.pxi":726
 *         return hb_buffer_get_invisible_glyph(self._hb_buffer)
 * 
 *     @invisible_glyph.setter             # <<<<<<<<<<<<<<
 *     def invisible_glyph(self, value: int):
 *         hb_buffer_set_invisible_glyph(self._hb_buffer, value)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.invisible_glyph.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":730
 *         hb_buffer_set_invisible_glyph(self._hb_buffer, value)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def not_found_glyph(self) -> int:
 *         """The codepoint that replaces characters not found in the font
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_15not_found_glyph_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_15not_found_glyph_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_15not_found_glyph___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_15not_found_glyph___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_buffer.pxi":743
 *         <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-set-not-found-glyph>`_.
 *         """
 *         return hb_buffer_get_not_found_glyph(self._hb_buffer)             # <<<<<<<<<<<<<<
 * 
 *     @not_found_glyph.setter
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_hb_codepoint_t(hb_buffer_get_not_found_glyph(__pyx_v_self->_hb_buffer)); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 743, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_buffer.pxi":730
 *         hb_buffer_set_invisible_glyph(self._hb_buffer, value)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def not_found_glyph(self) -> int:
 *         """The codepoint that replaces characters not found in the font
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.not_found_glyph.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":745
 *         return hb_buffer_get_not_found_glyph(self._hb_buffer)
 * 
 *     @not_found_glyph.setter             # <<<<<<<<<<<<<<
 *     def not_found_glyph(self, value: int):
 *         hb_buffer_set_not_found_glyph(self._hb_buffer, value)
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_15not_found_glyph_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_15not_found_glyph_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), (&PyLong_Type), 0, "value", 2))) __PYX_ERR(7, 746, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_15not_found_glyph_2__set__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self), ((PyObject*)__pyx_v_value));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_15not_found_glyph_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  hb_codepoint_t __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "src/uharfbuzz/_buffer.pxi":747
 *     @not_found_glyph.setter
 *     def not_found_glyph(self, value: int):
 *         hb_buffer_set_not_found_glyph(self._hb_buffer, value)             # <<<<<<<<<<<<<<
 * 
 *     def set_language_from_ot_tag(self, value: str):
*/
  __pyx_t_1 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_value); if (unlikely((__pyx_t_1 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(7, 747, __pyx_L1_error)
  hb_buffer_set_not_found_glyph(__pyx_v_self->_hb_buffer, __pyx_t_1);

  /* "src/uharfbuzz/_buffer.pxi":745
 *         return hb_buffer_get_not_found_glyph(self._hb_buffer)
 * 
 *     @not_found_glyph.setter             # <<<<<<<<<<<<<<
 *     def not_found_glyph(self, value: int):
 *         hb_buffer_set_not_found_glyph(self._hb_buffer, value)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.not_found_glyph.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":749
 *         hb_buffer_set_not_found_glyph(self._hb_buffer, value)
 * 
 *     def set_language_from_ot_tag(self, value: str):             # <<<<<<<<<<<<<<
 *         """Sets the language of the buffer from an OpenType language tag.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_13set_language_from_ot_tag(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_6Buffer_12set_language_from_ot_tag, "Sets the language of the buffer from an OpenType language tag.\n\n        Wraps `hb_ot_tag_to_language()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-layout.html#hb-ot-tag-to-language>`_\n        + `hb_buffer_set_language()\n        <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-set-language>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_6Buffer_13set_language_from_ot_tag = {"set_language_from_ot_tag", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_13set_language_from_ot_tag, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_6Buffer_12set_language_from_ot_tag};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_13set_language_from_ot_tag(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_value = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_language_from_ot_tag (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_value,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(7, 749, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(7, 749, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_language_from_ot_tag", 0) < (0)) __PYX_ERR(7, 749, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_language_from_ot_tag", 1, 1, 1, i); __PYX_ERR(7, 749, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(7, 749, __pyx_L3_error)
    }
    __pyx_v_value = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_language_from_ot_tag", 1, 1, 1, __pyx_nargs); __PYX_ERR(7, 749, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.set_language_from_ot_tag", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), (&PyUnicode_Type), 0, "value", 2))) __PYX_ERR(7, 749, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_12set_language_from_ot_tag(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self), __pyx_v_value);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_12set_language_from_ot_tag(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, PyObject *__pyx_v_value) {
  PyObject *__pyx_v_packed = 0;
  char *__pyx_v_cstr;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  char *__pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("set_language_from_ot_tag", 0);

  /* "src/uharfbuzz/_buffer.pxi":757
 *         <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-set-language>`_.
 *         """
 *         cdef bytes packed = value.encode()             # <<<<<<<<<<<<<<
 *         cdef char* cstr = packed
 *         hb_buffer_set_language(
*/
  __pyx_t_1 = PyUnicode_AsEncodedString(__pyx_v_value, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 757, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_packed = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_buffer.pxi":758
 *         """
 *         cdef bytes packed = value.encode()
 *         cdef char* cstr = packed             # <<<<<<<<<<<<<<
 *         hb_buffer_set_language(
 *             self._hb_buffer, hb_ot_tag_to_language(hb_tag_from_string(cstr, -1)))
*/
  __pyx_t_2 = __Pyx_PyBytes_AsWritableString(__pyx_v_packed); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(7, 758, __pyx_L1_error)
  __pyx_v_cstr = __pyx_t_2;

  /* "src/uharfbuzz/_buffer.pxi":759
 *         cdef bytes packed = value.encode()
 *         cdef char* cstr = packed
 *         hb_buffer_set_language(             # <<<<<<<<<<<<<<
 *             self._hb_buffer, hb_ot_tag_to_language(hb_tag_from_string(cstr, -1)))
 * 
*/
  hb_buffer_set_language(__pyx_v_self->_hb_buffer, hb_ot_tag_to_language(hb_tag_from_string(__pyx_v_cstr, -1)));

  /* "src/uharfbuzz/_buffer.pxi":749
 *         hb_buffer_set_not_found_glyph(self._hb_buffer, value)
 * 
 *     def set_language_from_ot_tag(self, value: str):             # <<<<<<<<<<<<<<
 *         """Sets the language of the buffer from an OpenType language tag.
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.set_language_from_ot_tag", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":762
 *             self._hb_buffer, hb_ot_tag_to_language(hb_tag_from_string(cstr, -1)))
 * 
 *     def set_script_from_ot_tag(self, value: str):             # <<<<<<<<<<<<<<
 *         """Sets the script of the buffer from an OpenType script tag.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_15set_script_from_ot_tag(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_6Buffer_14set_script_from_ot_tag, "Sets the script of the buffer from an OpenType script tag.\n\n        Wraps `hb_ot_tag_to_script()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-layout.html#hb-ot-tag-to-script>`_\n        + `hb_buffer_set_script()\n        <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-set-script>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_6Buffer_15set_script_from_ot_tag = {"set_script_from_ot_tag", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_15set_script_from_ot_tag, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_6Buffer_14set_script_from_ot_tag};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_15set_script_from_ot_tag(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_value = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_script_from_ot_tag (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_value,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(7, 762, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(7, 762, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_script_from_ot_tag", 0) < (0)) __PYX_ERR(7, 762, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_script_from_ot_tag", 1, 1, 1, i); __PYX_ERR(7, 762, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(7, 762, __pyx_L3_error)
    }
    __pyx_v_value = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_script_from_ot_tag", 1, 1, 1, __pyx_nargs); __PYX_ERR(7, 762, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.set_script_from_ot_tag", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), (&PyUnicode_Type), 0, "value", 2))) __PYX_ERR(7, 762, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_14set_script_from_ot_tag(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self), __pyx_v_value);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_14set_script_from_ot_tag(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, PyObject *__pyx_v_value) {
  PyObject *__pyx_v_packed = 0;
  char *__pyx_v_cstr;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  char *__pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("set_script_from_ot_tag", 0);

  /* "src/uharfbuzz/_buffer.pxi":770
 *         <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-set-script>`_.
 *         """
 *         cdef bytes packed = value.encode()             # <<<<<<<<<<<<<<
 *         cdef char* cstr = packed
 *         hb_buffer_set_script(
*/
  __pyx_t_1 = PyUnicode_AsEncodedString(__pyx_v_value, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 770, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_packed = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_buffer.pxi":771
 *         """
 *         cdef bytes packed = value.encode()
 *         cdef char* cstr = packed             # <<<<<<<<<<<<<<
 *         hb_buffer_set_script(
 *             self._hb_buffer, hb_ot_tag_to_script(hb_tag_from_string(cstr, -1)))
*/
  __pyx_t_2 = __Pyx_PyBytes_AsWritableString(__pyx_v_packed); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(7, 771, __pyx_L1_error)
  __pyx_v_cstr = __pyx_t_2;

  /* "src/uharfbuzz/_buffer.pxi":772
 *         cdef bytes packed = value.encode()
 *         cdef char* cstr = packed
 *         hb_buffer_set_script(             # <<<<<<<<<<<<<<
 *             self._hb_buffer, hb_ot_tag_to_script(hb_tag_from_string(cstr, -1)))
 * 
*/
  hb_buffer_set_script(__pyx_v_self->_hb_buffer, hb_ot_tag_to_script(hb_tag_from_string(__pyx_v_cstr, -1)));

  /* "src/uharfbuzz/_buffer.pxi":762
 *             self._hb_buffer, hb_ot_tag_to_language(hb_tag_from_string(cstr, -1)))
 * 
 *     def set_script_from_ot_tag(self, value: str):             # <<<<<<<<<<<<<<
 *         """Sets the script of the buffer from an OpenType script tag.
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.set_script_from_ot_tag", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":775
 *             self._hb_buffer, hb_ot_tag_to_script(hb_tag_from_string(cstr, -1)))
 * 
 *     def add_codepoints(self, codepoints: List[int],             # <<<<<<<<<<<<<<
 *                        item_offset: int = 0, item_length: int = -1):
 *         """Appends characters from ``codepoints`` to the buffer.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_17add_codepoints(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_6Buffer_16add_codepoints, "Appends characters from ``codepoints`` to the buffer.\n\n        The ``item_offset`` is the position of the first character from\n        ``codepoints`` that will be appended, and ``item_length`` is the\n        number of characters. When shaping part of a larger text (e.g. a run\n        of text from a paragraph), instead of passing just the substring\n        corresponding to the run, it is preferable to pass the whole\n        paragraph and specify the run start and length as ``item_offset`` and\n        ``item_length``, respectively, to give HarfBuzz the full context to\n        be able, for example, to do cross-run Arabic shaping or properly\n        handle combining marks at start of run.\n\n        This method does not check the validity of ``codepoints``, it is up\n        to the caller to ensure it contains valid Unicode scalar values. In\n        contrast, :meth:`add_utf8` and :meth:`add_str` perform sanity-check\n        on the input.\n\n        :param codepoints: A sequence of Unicode code points to append.\n        :param item_offset: The offset of the first code point to add to the\n            buffer.\n        :param item_length: The number of code points to add to the buffer,\n            or ``-1`` to add the rest of ``codepoints``.\n\n        :raises MemoryError: If memory allocation fails.\n\n        Wraps `hb_buffer_add_codepoints()\n        <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-add-codepoints>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_6Buffer_17add_codepoints = {"add_codepoints", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_17add_codepoints, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_6Buffer_16add_codepoints};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_17add_codepoints(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_codepoints = 0;
  PyObject *__pyx_v_item_offset = 0;
  PyObject *__pyx_v_item_length = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("add_codepoints (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_codepoints,&__pyx_mstate_global->__pyx_n_u_item_offset,&__pyx_mstate_global->__pyx_n_u_item_length,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(7, 775, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(7, 775, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(7, 775, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(7, 775, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "add_codepoints", 0) < (0)) __PYX_ERR(7, 775, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject*)__pyx_mstate_global->__pyx_int_0));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject*)__pyx_mstate_global->__pyx_int_neg_1));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("add_codepoints", 0, 1, 3, i); __PYX_ERR(7, 775, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(7, 775, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(7, 775, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(7, 775, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject*)__pyx_mstate_global->__pyx_int_0));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject*)__pyx_mstate_global->__pyx_int_neg_1));
    }
    __pyx_v_codepoints = ((PyObject*)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "item_offset", 0) < (0)) __PYX_ERR(7, 776, __pyx_L3_error)
    __pyx_v_item_offset = ((PyObject*)values[1]);
    if (__Pyx_PyInt_FromNumber(&values[2], "item_length", 0) < (0)) __PYX_ERR(7, 776, __pyx_L3_error)
    __pyx_v_item_length = ((PyObject*)values[2]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("add_codepoints", 0, 1, 3, __pyx_nargs); __PYX_ERR(7, 775, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.add_codepoints", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_codepoints), (&PyList_Type), 0, "codepoints", 2))) __PYX_ERR(7, 775, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_item_offset), (&PyLong_Type), 0, "item_offset", 2))) __PYX_ERR(7, 776, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_item_length), (&PyLong_Type), 0, "item_length", 2))) __PYX_ERR(7, 776, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_16add_codepoints(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self), __pyx_v_codepoints, __pyx_v_item_offset, __pyx_v_item_length);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_16add_codepoints(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, PyObject *__pyx_v_codepoints, PyObject *__pyx_v_item_offset, PyObject *__pyx_v_item_length) {
  unsigned int __pyx_v_size;
  hb_codepoint_t *__pyx_v_hb_codepoints;
  unsigned int __pyx_v_i;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  unsigned int __pyx_t_3;
  unsigned int __pyx_t_4;
  unsigned int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  hb_codepoint_t __pyx_t_7;
  int __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("add_codepoints", 0);

  /* "src/uharfbuzz/_buffer.pxi":805
 *         <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-add-codepoints>`_.
 *         """
 *         cdef unsigned int size = len(codepoints)             # <<<<<<<<<<<<<<
 *         cdef hb_codepoint_t* hb_codepoints
 *         if not size:
*/
  __pyx_t_1 = __Pyx_PyList_GET_SIZE(__pyx_v_codepoints); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(7, 805, __pyx_L1_error)
  __pyx_v_size = __pyx_t_1;

  /* "src/uharfbuzz/_buffer.pxi":807
 *         cdef unsigned int size = len(codepoints)
 *         cdef hb_codepoint_t* hb_codepoints
 *         if not size:             # <<<<<<<<<<<<<<
 *             return
 *         hb_codepoints = <hb_codepoint_t*>malloc(
*/
  __pyx_t_2 = (!(__pyx_v_size != 0));
  if (__pyx_t_2) {

    /* "src/uharfbuzz/_buffer.pxi":808
 *         cdef hb_codepoint_t* hb_codepoints
 *         if not size:
 *             return             # <<<<<<<<<<<<<<
 *         hb_codepoints = <hb_codepoint_t*>malloc(
 *             size * sizeof(hb_codepoint_t))
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "src/uharfbuzz/_buffer.pxi":807
 *         cdef unsigned int size = len(codepoints)
 *         cdef hb_codepoint_t* hb_codepoints
 *         if not size:             # <<<<<<<<<<<<<<
 *             return
 *         hb_codepoints = <hb_codepoint_t*>malloc(
*/
  }

  /* "src/uharfbuzz/_buffer.pxi":809
 *         if not size:
 *             return
 *         hb_codepoints = <hb_codepoint_t*>malloc(             # <<<<<<<<<<<<<<
 *             size * sizeof(hb_codepoint_t))
 *         for i in range(size):
*/
  __pyx_v_hb_codepoints = ((hb_codepoint_t *)malloc((__pyx_v_size * (sizeof(hb_codepoint_t)))));

  /* "src/uharfbuzz/_buffer.pxi":811
 *         hb_codepoints = <hb_codepoint_t*>malloc(
 *             size * sizeof(hb_codepoint_t))
 *         for i in range(size):             # <<<<<<<<<<<<<<
 *             hb_codepoints[i] = codepoints[i]
 *         hb_buffer_add_codepoints(
*/
  __pyx_t_3 = __pyx_v_size;
  __pyx_t_4 = __pyx_t_3;
  for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) {
    __pyx_v_i = __pyx_t_5;

    /* "src/uharfbuzz/_buffer.pxi":812
 *             size * sizeof(hb_codepoint_t))
 *         for i in range(size):
 *             hb_codepoints[i] = codepoints[i]             # <<<<<<<<<<<<<<
 *         hb_buffer_add_codepoints(
 *             self._hb_buffer, hb_codepoints, size, item_offset, item_length)
*/
    __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_codepoints, __pyx_v_i, unsigned int, 0, __Pyx_PyLong_From_unsigned_int, 1, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 812, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_t_6); if (unlikely((__pyx_t_7 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(7, 812, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    (__pyx_v_hb_codepoints[__pyx_v_i]) = __pyx_t_7;
  }

  /* "src/uharfbuzz/_buffer.pxi":814
 *             hb_codepoints[i] = codepoints[i]
 *         hb_buffer_add_codepoints(
 *             self._hb_buffer, hb_codepoints, size, item_offset, item_length)             # <<<<<<<<<<<<<<
 *         free(hb_codepoints)
 *         if not hb_buffer_allocation_successful(self._hb_buffer):
*/
  __pyx_t_3 = __Pyx_PyLong_As_unsigned_int(__pyx_v_item_offset); if (unlikely((__pyx_t_3 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(7, 814, __pyx_L1_error)
  __pyx_t_8 = __Pyx_PyLong_As_int(__pyx_v_item_length); if (unlikely((__pyx_t_8 == (int)-1) && PyErr_Occurred())) __PYX_ERR(7, 814, __pyx_L1_error)

  /* "src/uharfbuzz/_buffer.pxi":813
 *         for i in range(size):
 *             hb_codepoints[i] = codepoints[i]
 *         hb_buffer_add_codepoints(             # <<<<<<<<<<<<<<
 *             self._hb_buffer, hb_codepoints, size, item_offset, item_length)
 *         free(hb_codepoints)
*/
  hb_buffer_add_codepoints(__pyx_v_self->_hb_buffer, __pyx_v_hb_codepoints, __pyx_v_size, __pyx_t_3, __pyx_t_8);

  /* "src/uharfbuzz/_buffer.pxi":815
 *         hb_buffer_add_codepoints(
 *             self._hb_buffer, hb_codepoints, size, item_offset, item_length)
 *         free(hb_codepoints)             # <<<<<<<<<<<<<<
 *         if not hb_buffer_allocation_successful(self._hb_buffer):
 *             raise MemoryError()
*/
  free(__pyx_v_hb_codepoints);

  /* "src/uharfbuzz/_buffer.pxi":816
 *             self._hb_buffer, hb_codepoints, size, item_offset, item_length)
 *         free(hb_codepoints)
 *         if not hb_buffer_allocation_successful(self._hb_buffer):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  __pyx_t_2 = (!(hb_buffer_allocation_successful(__pyx_v_self->_hb_buffer) != 0));
  if (unlikely(__pyx_t_2)) {

    /* "src/uharfbuzz/_buffer.pxi":817
 *         free(hb_codepoints)
 *         if not hb_buffer_allocation_successful(self._hb_buffer):
 *             raise MemoryError()             # <<<<<<<<<<<<<<
 * 
 *     def add_utf8(self, text: bytes,
*/
    PyErr_NoMemory(); __PYX_ERR(7, 817, __pyx_L1_error)

    /* "src/uharfbuzz/_buffer.pxi":816
 *             self._hb_buffer, hb_codepoints, size, item_offset, item_length)
 *         free(hb_codepoints)
 *         if not hb_buffer_allocation_successful(self._hb_buffer):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  }

  /* "src/uharfbuzz/_buffer.pxi":775
 *             self._hb_buffer, hb_ot_tag_to_script(hb_tag_from_string(cstr, -1)))
 * 
 *     def add_codepoints(self, codepoints: List[int],             # <<<<<<<<<<<<<<
 *                        item_offset: int = 0, item_length: int = -1):
 *         """Appends characters from ``codepoints`` to the buffer.
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.add_codepoints", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":819
 *             raise MemoryError()
 * 
 *     def add_utf8(self, text: bytes,             # <<<<<<<<<<<<<<
 *                  item_offset: int = 0, item_length: int = -1):
 *         """Appends UTF-8 ``text`` to the buffer.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_19add_utf8(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_6Buffer_18add_utf8, "Appends UTF-8 ``text`` to the buffer.\n\n        Replaces invalid UTF-8 characters with the buffer replacement code\n        point, see :attr:`replacement_codepoint`.\n\n        :param text: UTF-8 encoded text to append.\n        :param item_offset: The offset of the first character to add to the\n            buffer.\n        :param item_length: The number of characters to add to the buffer,\n            or ``-1`` to add the rest of ``text``.\n\n        :raises MemoryError: If memory allocation fails.\n\n        Wraps `hb_buffer_add_utf8()\n        <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-add-utf8>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_6Buffer_19add_utf8 = {"add_utf8", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_19add_utf8, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_6Buffer_18add_utf8};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_19add_utf8(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_text = 0;
  PyObject *__pyx_v_item_offset = 0;
  PyObject *__pyx_v_item_length = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("add_utf8 (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_text,&__pyx_mstate_global->__pyx_n_u_item_offset,&__pyx_mstate_global->__pyx_n_u_item_length,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(7, 819, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(7, 819, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(7, 819, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(7, 819, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "add_utf8", 0) < (0)) __PYX_ERR(7, 819, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject*)__pyx_mstate_global->__pyx_int_0));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject*)__pyx_mstate_global->__pyx_int_neg_1));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("add_utf8", 0, 1, 3, i); __PYX_ERR(7, 819, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(7, 819, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(7, 819, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(7, 819, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject*)__pyx_mstate_global->__pyx_int_0));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject*)__pyx_mstate_global->__pyx_int_neg_1));
    }
    __pyx_v_text = ((PyObject*)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "item_offset", 0) < (0)) __PYX_ERR(7, 820, __pyx_L3_error)
    __pyx_v_item_offset = ((PyObject*)values[1]);
    if (__Pyx_PyInt_FromNumber(&values[2], "item_length", 0) < (0)) __PYX_ERR(7, 820, __pyx_L3_error)
    __pyx_v_item_length = ((PyObject*)values[2]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("add_utf8", 0, 1, 3, __pyx_nargs); __PYX_ERR(7, 819, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.add_utf8", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_text), (&PyBytes_Type), 0, "text", 2))) __PYX_ERR(7, 819, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_item_offset), (&PyLong_Type), 0, "item_offset", 2))) __PYX_ERR(7, 820, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_item_length), (&PyLong_Type), 0, "item_length", 2))) __PYX_ERR(7, 820, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_18add_utf8(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self), __pyx_v_text, __pyx_v_item_offset, __pyx_v_item_length);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_18add_utf8(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, PyObject *__pyx_v_text, PyObject *__pyx_v_item_offset, PyObject *__pyx_v_item_length) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  char const *__pyx_t_1;
  Py_ssize_t __pyx_t_2;
  unsigned int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("add_utf8", 0);

  /* "src/uharfbuzz/_buffer.pxi":838
 *         """
 *         hb_buffer_add_utf8(
 *             self._hb_buffer, text, len(text), item_offset, item_length)             # <<<<<<<<<<<<<<
 *         if not hb_buffer_allocation_successful(self._hb_buffer):
 *             raise MemoryError()
*/
  __pyx_t_1 = __Pyx_PyBytes_AsString(__pyx_v_text); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(7, 838, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyBytes_GET_SIZE(__pyx_v_text); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(7, 838, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyLong_As_unsigned_int(__pyx_v_item_offset); if (unlikely((__pyx_t_3 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(7, 838, __pyx_L1_error)
  __pyx_t_4 = __Pyx_PyLong_As_int(__pyx_v_item_length); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(7, 838, __pyx_L1_error)

  /* "src/uharfbuzz/_buffer.pxi":837
 *         <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-add-utf8>`_.
 *         """
 *         hb_buffer_add_utf8(             # <<<<<<<<<<<<<<
 *             self._hb_buffer, text, len(text), item_offset, item_length)
 *         if not hb_buffer_allocation_successful(self._hb_buffer):
*/
  hb_buffer_add_utf8(__pyx_v_self->_hb_buffer, __pyx_t_1, __pyx_t_2, __pyx_t_3, __pyx_t_4);

  /* "src/uharfbuzz/_buffer.pxi":839
 *         hb_buffer_add_utf8(
 *             self._hb_buffer, text, len(text), item_offset, item_length)
 *         if not hb_buffer_allocation_successful(self._hb_buffer):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  __pyx_t_5 = (!(hb_buffer_allocation_successful(__pyx_v_self->_hb_buffer) != 0));
  if (unlikely(__pyx_t_5)) {

    /* "src/uharfbuzz/_buffer.pxi":840
 *             self._hb_buffer, text, len(text), item_offset, item_length)
 *         if not hb_buffer_allocation_successful(self._hb_buffer):
 *             raise MemoryError()             # <<<<<<<<<<<<<<
 * 
 *     def add_str(self, text: str,
*/
    PyErr_NoMemory(); __PYX_ERR(7, 840, __pyx_L1_error)

    /* "src/uharfbuzz/_buffer.pxi":839
 *         hb_buffer_add_utf8(
 *             self._hb_buffer, text, len(text), item_offset, item_length)
 *         if not hb_buffer_allocation_successful(self._hb_buffer):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  }

  /* "src/uharfbuzz/_buffer.pxi":819
 *             raise MemoryError()
 * 
 *     def add_utf8(self, text: bytes,             # <<<<<<<<<<<<<<
 *                  item_offset: int = 0, item_length: int = -1):
 *         """Appends UTF-8 ``text`` to the buffer.
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.add_utf8", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":842
 *             raise MemoryError()
 * 
 *     def add_str(self, text: str,             # <<<<<<<<<<<<<<
 *                 item_offset: int = 0, item_length: int = -1):
 *         """Appends ``text`` to the buffer.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_21add_str(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_6Buffer_20add_str, "Appends ``text`` to the buffer.\n\n        Replaces invalid characters with the buffer replacement code point,\n        see :attr:`replacement_codepoint`.\n\n        :param text: Text to append.\n        :param item_offset: The offset of the first character to add to the\n            buffer.\n        :param item_length: The number of characters to add to the buffer,\n            or ``-1`` to add the rest of ``text``.\n\n        :raises MemoryError: If memory allocation fails.\n\n        Wraps `hb_buffer_add_utf32()\n        <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-add-utf32>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_6Buffer_21add_str = {"add_str", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_21add_str, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_6Buffer_20add_str};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_21add_str(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_text = 0;
  PyObject *__pyx_v_item_offset = 0;
  PyObject *__pyx_v_item_length = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("add_str (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_text,&__pyx_mstate_global->__pyx_n_u_item_offset,&__pyx_mstate_global->__pyx_n_u_item_length,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(7, 842, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(7, 842, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(7, 842, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(7, 842, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "add_str", 0) < (0)) __PYX_ERR(7, 842, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject*)__pyx_mstate_global->__pyx_int_0));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject*)__pyx_mstate_global->__pyx_int_neg_1));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("add_str", 0, 1, 3, i); __PYX_ERR(7, 842, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(7, 842, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(7, 842, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(7, 842, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject*)__pyx_mstate_global->__pyx_int_0));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject*)__pyx_mstate_global->__pyx_int_neg_1));
    }
    __pyx_v_text = ((PyObject*)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "item_offset", 0) < (0)) __PYX_ERR(7, 843, __pyx_L3_error)
    __pyx_v_item_offset = ((PyObject*)values[1]);
    if (__Pyx_PyInt_FromNumber(&values[2], "item_length", 0) < (0)) __PYX_ERR(7, 843, __pyx_L3_error)
    __pyx_v_item_length = ((PyObject*)values[2]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("add_str", 0, 1, 3, __pyx_nargs); __PYX_ERR(7, 842, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.add_str", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_text), (&PyUnicode_Type), 0, "text", 2))) __PYX_ERR(7, 842, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_item_offset), (&PyLong_Type), 0, "item_offset", 2))) __PYX_ERR(7, 843, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_item_length), (&PyLong_Type), 0, "item_length", 2))) __PYX_ERR(7, 843, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_20add_str(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self), __pyx_v_text, __pyx_v_item_offset, __pyx_v_item_length);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_20add_str(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, PyObject *__pyx_v_text, PyObject *__pyx_v_item_offset, PyObject *__pyx_v_item_length) {
  Py_UCS4 *__pyx_v_ucs4_buffer;
  Py_ssize_t __pyx_v_text_length;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_UCS4 *__pyx_t_1;
  int __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  unsigned int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  char const *__pyx_t_10;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("add_str", 0);

  /* "src/uharfbuzz/_buffer.pxi":863
 *         cdef Py_ssize_t text_length
 * 
 *         ucs4_buffer = PyUnicode_AsUCS4Copy(text)             # <<<<<<<<<<<<<<
 *         if ucs4_buffer == NULL:
 *             raise MemoryError()
*/
  __pyx_t_1 = PyUnicode_AsUCS4Copy(__pyx_v_text); if (unlikely(__pyx_t_1 == ((void *)NULL))) __PYX_ERR(7, 863, __pyx_L1_error)
  __pyx_v_ucs4_buffer = __pyx_t_1;

  /* "src/uharfbuzz/_buffer.pxi":864
 * 
 *         ucs4_buffer = PyUnicode_AsUCS4Copy(text)
 *         if ucs4_buffer == NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 *         try:
*/
  __pyx_t_2 = (__pyx_v_ucs4_buffer == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "src/uharfbuzz/_buffer.pxi":865
 *         ucs4_buffer = PyUnicode_AsUCS4Copy(text)
 *         if ucs4_buffer == NULL:
 *             raise MemoryError()             # <<<<<<<<<<<<<<
 *         try:
 *             text_length = PyUnicode_GetLength(text)
*/
    PyErr_NoMemory(); __PYX_ERR(7, 865, __pyx_L1_error)

    /* "src/uharfbuzz/_buffer.pxi":864
 * 
 *         ucs4_buffer = PyUnicode_AsUCS4Copy(text)
 *         if ucs4_buffer == NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 *         try:
*/
  }

  /* "src/uharfbuzz/_buffer.pxi":866
 *         if ucs4_buffer == NULL:
 *             raise MemoryError()
 *         try:             # <<<<<<<<<<<<<<
 *             text_length = PyUnicode_GetLength(text)
 *             if text_length == -1:
*/
  /*try:*/ {

    /* "src/uharfbuzz/_buffer.pxi":867
 *             raise MemoryError()
 *         try:
 *             text_length = PyUnicode_GetLength(text)             # <<<<<<<<<<<<<<
 *             if text_length == -1:
 *                 raise ValueError("Invalid Unicode string")
*/
    __pyx_t_3 = PyUnicode_GetLength(__pyx_v_text); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1L))) __PYX_ERR(7, 867, __pyx_L5_error)
    __pyx_v_text_length = __pyx_t_3;

    /* "src/uharfbuzz/_buffer.pxi":868
 *         try:
 *             text_length = PyUnicode_GetLength(text)
 *             if text_length == -1:             # <<<<<<<<<<<<<<
 *                 raise ValueError("Invalid Unicode string")
 *             hb_buffer_add_utf32(
*/
    __pyx_t_2 = (__pyx_v_text_length == -1L);
    if (unlikely(__pyx_t_2)) {

      /* "src/uharfbuzz/_buffer.pxi":869
 *             text_length = PyUnicode_GetLength(text)
 *             if text_length == -1:
 *                 raise ValueError("Invalid Unicode string")             # <<<<<<<<<<<<<<
 *             hb_buffer_add_utf32(
 *                 self._hb_buffer,
*/
      __pyx_t_5 = NULL;
      __pyx_t_6 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_Invalid_Unicode_string};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(7, 869, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __Pyx_Raise(__pyx_t_4, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __PYX_ERR(7, 869, __pyx_L5_error)

      /* "src/uharfbuzz/_buffer.pxi":868
 *         try:
 *             text_length = PyUnicode_GetLength(text)
 *             if text_length == -1:             # <<<<<<<<<<<<<<
 *                 raise ValueError("Invalid Unicode string")
 *             hb_buffer_add_utf32(
*/
    }

    /* "src/uharfbuzz/_buffer.pxi":874
 *                 <uint32_t*>ucs4_buffer,
 *                 text_length,
 *                 item_offset,             # <<<<<<<<<<<<<<
 *                 item_length
 *             )
*/
    __pyx_t_7 = __Pyx_PyLong_As_unsigned_int(__pyx_v_item_offset); if (unlikely((__pyx_t_7 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(7, 874, __pyx_L5_error)

    /* "src/uharfbuzz/_buffer.pxi":875
 *                 text_length,
 *                 item_offset,
 *                 item_length             # <<<<<<<<<<<<<<
 *             )
 *             if not hb_buffer_allocation_successful(self._hb_buffer):
*/
    __pyx_t_8 = __Pyx_PyLong_As_int(__pyx_v_item_length); if (unlikely((__pyx_t_8 == (int)-1) && PyErr_Occurred())) __PYX_ERR(7, 875, __pyx_L5_error)

    /* "src/uharfbuzz/_buffer.pxi":870
 *             if text_length == -1:
 *                 raise ValueError("Invalid Unicode string")
 *             hb_buffer_add_utf32(             # <<<<<<<<<<<<<<
 *                 self._hb_buffer,
 *                 <uint32_t*>ucs4_buffer,
*/
    hb_buffer_add_utf32(__pyx_v_self->_hb_buffer, ((uint32_t *)__pyx_v_ucs4_buffer), __pyx_v_text_length, __pyx_t_7, __pyx_t_8);

    /* "src/uharfbuzz/_buffer.pxi":877
 *                 item_length
 *             )
 *             if not hb_buffer_allocation_successful(self._hb_buffer):             # <<<<<<<<<<<<<<
 *                 raise MemoryError()
 *         finally:
*/
    __pyx_t_2 = (!(hb_buffer_allocation_successful(__pyx_v_self->_hb_buffer) != 0));
    if (unlikely(__pyx_t_2)) {

      /* "src/uharfbuzz/_buffer.pxi":878
 *             )
 *             if not hb_buffer_allocation_successful(self._hb_buffer):
 *                 raise MemoryError()             # <<<<<<<<<<<<<<
 *         finally:
 *             PyMem_Free(ucs4_buffer)
*/
      PyErr_NoMemory(); __PYX_ERR(7, 878, __pyx_L5_error)

      /* "src/uharfbuzz/_buffer.pxi":877
 *                 item_length
 *             )
 *             if not hb_buffer_allocation_successful(self._hb_buffer):             # <<<<<<<<<<<<<<
 *                 raise MemoryError()
 *         finally:
*/
    }
  }

  /* "src/uharfbuzz/_buffer.pxi":880
 *                 raise MemoryError()
 *         finally:
 *             PyMem_Free(ucs4_buffer)             # <<<<<<<<<<<<<<
 * 
 *     def guess_segment_properties(self):
*/
  /*finally:*/ {
    /*normal exit:*/{
      PyMem_Free(__pyx_v_ucs4_buffer);
      goto __pyx_L6;
    }
    __pyx_L5_error:;
    /*exception exit:*/{
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __pyx_t_11 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
       __Pyx_ExceptionSwap(&__pyx_t_14, &__pyx_t_15, &__pyx_t_16);
      if ( unlikely(__Pyx_GetException(&__pyx_t_11, &__pyx_t_12, &__pyx_t_13) < 0)) __Pyx_ErrFetch(&__pyx_t_11, &__pyx_t_12, &__pyx_t_13);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_13);
      __Pyx_XGOTREF(__pyx_t_14);
      __Pyx_XGOTREF(__pyx_t_15);
      __Pyx_XGOTREF(__pyx_t_16);
      __pyx_t_8 = __pyx_lineno; __pyx_t_9 = __pyx_clineno; __pyx_t_10 = __pyx_filename;
      {
        PyMem_Free(__pyx_v_ucs4_buffer);
      }
      __Pyx_XGIVEREF(__pyx_t_14);
      __Pyx_XGIVEREF(__pyx_t_15);
      __Pyx_XGIVEREF(__pyx_t_16);
      __Pyx_ExceptionReset(__pyx_t_14, __pyx_t_15, __pyx_t_16);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_13);
      __Pyx_ErrRestore(__pyx_t_11, __pyx_t_12, __pyx_t_13);
      __pyx_t_11 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0;
      __pyx_lineno = __pyx_t_8; __pyx_clineno = __pyx_t_9; __pyx_filename = __pyx_t_10;
      goto __pyx_L1_error;
    }
    __pyx_L6:;
  }

  /* "src/uharfbuzz/_buffer.pxi":842
 *             raise MemoryError()
 * 
 *     def add_str(self, text: str,             # <<<<<<<<<<<<<<
 *                 item_offset: int = 0, item_length: int = -1):
 *         """Appends ``text`` to the buffer.
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.add_str", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":882
 *             PyMem_Free(ucs4_buffer)
 * 
 *     def guess_segment_properties(self):             # <<<<<<<<<<<<<<
 *         """Sets unset buffer segment properties based on buffer Unicode
 *         contents. If the buffer is not empty, it must have content type
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_23guess_segment_properties(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_6Buffer_22guess_segment_properties, "Sets unset buffer segment properties based on buffer Unicode\n        contents. If the buffer is not empty, it must have content type\n        :attr:`BufferContentType.UNICODE`.\n\n        If the buffer script is not set, it will be set to the Unicode script\n        of the first character in the buffer that has a script other than\n        ``COMMON``, ``INHERITED``, and ``UNKNOWN``.\n\n        Next, if the buffer direction is not set, it will be set to the\n        natural horizontal direction of the buffer script.\n\n        Finally, if the buffer language is not set, it will be set to the\n        process's default language.\n\n        Wraps `hb_buffer_guess_segment_properties()\n        <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-guess-segment-properties>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_6Buffer_23guess_segment_properties = {"guess_segment_properties", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_23guess_segment_properties, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_6Buffer_22guess_segment_properties};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_23guess_segment_properties(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("guess_segment_properties (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("guess_segment_properties", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("guess_segment_properties", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_22guess_segment_properties(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_22guess_segment_properties(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("guess_segment_properties", 0);

  /* "src/uharfbuzz/_buffer.pxi":900
 *         <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-guess-segment-properties>`_.
 *         """
 *         hb_buffer_guess_segment_properties(self._hb_buffer)             # <<<<<<<<<<<<<<
 * 
 *     def set_message_func(self, callback: Callable[str]):
*/
  hb_buffer_guess_segment_properties(__pyx_v_self->_hb_buffer);

  /* "src/uharfbuzz/_buffer.pxi":882
 *             PyMem_Free(ucs4_buffer)
 * 
 *     def guess_segment_properties(self):             # <<<<<<<<<<<<<<
 *         """Sets unset buffer segment properties based on buffer Unicode
 *         contents. If the buffer is not empty, it must have content type
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":902
 *         hb_buffer_guess_segment_properties(self._hb_buffer)
 * 
 *     def set_message_func(self, callback: Callable[str]):             # <<<<<<<<<<<<<<
 *         """Sets the implementation function for the buffer's message
 *         callback.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_25set_message_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_6Buffer_24set_message_func, "Sets the implementation function for the buffer's message\n        callback.\n\n        The callback is called with a message describing what step of the\n        shaping process will be performed. Returning ``False`` from this\n        callback will skip this shaping step and move to the next one.\n\n        Wraps `hb_buffer_set_message_func()\n        <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-set-message-func>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_6Buffer_25set_message_func = {"set_message_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_25set_message_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_6Buffer_24set_message_func};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_25set_message_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_callback = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_message_func (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_callback,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(7, 902, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(7, 902, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_message_func", 0) < (0)) __PYX_ERR(7, 902, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_message_func", 1, 1, 1, i); __PYX_ERR(7, 902, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(7, 902, __pyx_L3_error)
    }
    __pyx_v_callback = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_message_func", 1, 1, 1, __pyx_nargs); __PYX_ERR(7, 902, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.set_message_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_24set_message_func(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self), __pyx_v_callback);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_24set_message_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, PyObject *__pyx_v_callback) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_message_func", 0);

  /* "src/uharfbuzz/_buffer.pxi":913
 *         <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-set-message-func>`_.
 *         """
 *         self._message_callback = callback             # <<<<<<<<<<<<<<
 *         hb_buffer_set_message_func(self._hb_buffer, msgcallback, <void*>callback, NULL)
 * 
*/
  __Pyx_INCREF(__pyx_v_callback);
  __Pyx_GIVEREF(__pyx_v_callback);
  __Pyx_GOTREF(__pyx_v_self->_message_callback);
  __Pyx_DECREF(__pyx_v_self->_message_callback);
  __pyx_v_self->_message_callback = __pyx_v_callback;

  /* "src/uharfbuzz/_buffer.pxi":914
 *         """
 *         self._message_callback = callback
 *         hb_buffer_set_message_func(self._hb_buffer, msgcallback, <void*>callback, NULL)             # <<<<<<<<<<<<<<
 * 
 *     def serialize(self,
*/
  hb_buffer_set_message_func(__pyx_v_self->_hb_buffer, __pyx_f_9uharfbuzz_9_harfbuzz_msgcallback, ((void *)__pyx_v_callback), NULL);

  /* "src/uharfbuzz/_buffer.pxi":902
 *         hb_buffer_guess_segment_properties(self._hb_buffer)
 * 
 *     def set_message_func(self, callback: Callable[str]):             # <<<<<<<<<<<<<<
 *         """Sets the implementation function for the buffer's message
 *         callback.
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_buffer.pxi":916
 *         hb_buffer_set_message_func(self._hb_buffer, msgcallback, <void*>callback, NULL)
 * 
 *     def serialize(self,             # <<<<<<<<<<<<<<
 *                   font: Font,
 *                   format: BufferSerializeFormat = BufferSerializeFormat.TEXT,
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_27serialize(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_6Buffer_26serialize, "Serializes the buffer into a textual representation of its\n        content, whether Unicode codepoints or glyph identifiers and\n        positioning information. This is useful for showing the contents of\n        the buffer, for example during debugging.\n\n        :param font: The :class:`Font` used to shape this buffer, needed to\n            read glyph names and extents.\n        :param format: The :class:`BufferSerializeFormat` to use for\n            formatting the output.\n        :param flags: The :class:`BufferSerializeFlags` that control what\n            glyph properties to serialize.\n\n        :returns: The serialized buffer contents.\n\n        Wraps `hb_buffer_serialize()\n        <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-serialize>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_6Buffer_27serialize = {"serialize", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_27serialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_6Buffer_26serialize};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_27serialize(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font = 0;
  PyObject *__pyx_v_format = 0;
  PyObject *__pyx_v_flags = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("serialize (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_font,&__pyx_mstate_global->__pyx_n_u_format,&__pyx_mstate_global->__pyx_n_u_flags,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(7, 916, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(7, 916, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(7, 916, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(7, 916, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "serialize", 0) < (0)) __PYX_ERR(7, 916, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(__pyx_mstate_global->__pyx_k__7);
      if (!values[2]) values[2] = __Pyx_NewRef(__pyx_mstate_global->__pyx_k__8);
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("serialize", 0, 1, 3, i); __PYX_ERR(7, 916, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(7, 916, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(7, 916, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(7, 916, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(__pyx_mstate_global->__pyx_k__7);
      if (!values[2]) values[2] = __Pyx_NewRef(__pyx_mstate_global->__pyx_k__8);
    }
    __pyx_v_font = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)values[0]);
    __pyx_v_format = values[1];
    __pyx_v_flags = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("serialize", 0, 1, 3, __pyx_nargs); __PYX_ERR(7, 916, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.serialize", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_font), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, 0, "font", 0))) __PYX_ERR(7, 917, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_26serialize(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self), __pyx_v_font, __pyx_v_format, __pyx_v_flags);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_26serialize(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_format, PyObject *__pyx_v_flags) {
  unsigned int __pyx_v_num_glyphs;
  unsigned int __pyx_v_start;
  char __pyx_v_cstr[128];
  unsigned int __pyx_v_consumed;
  PyObject *__pyx_v_packed = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  hb_buffer_serialize_format_t __pyx_t_2;
  hb_buffer_serialize_flags_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("serialize", 0);

  /* "src/uharfbuzz/_buffer.pxi":937
 *         <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-serialize>`_.
 *         """
 *         cdef unsigned int num_glyphs = hb_buffer_get_length(self._hb_buffer)             # <<<<<<<<<<<<<<
 *         cdef unsigned int start = 0
 *         cdef char cstr[STATIC_ARRAY_SIZE]
*/
  __pyx_v_num_glyphs = hb_buffer_get_length(__pyx_v_self->_hb_buffer);

  /* "src/uharfbuzz/_buffer.pxi":938
 *         """
 *         cdef unsigned int num_glyphs = hb_buffer_get_length(self._hb_buffer)
 *         cdef unsigned int start = 0             # <<<<<<<<<<<<<<
 *         cdef char cstr[STATIC_ARRAY_SIZE]
 *         cdef unsigned int consumed
*/
  __pyx_v_start = 0;

  /* "src/uharfbuzz/_buffer.pxi":941
 *         cdef char cstr[STATIC_ARRAY_SIZE]
 *         cdef unsigned int consumed
 *         cdef bytes packed = b""             # <<<<<<<<<<<<<<
 * 
 *         while start < num_glyphs:
*/
  __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_b_);
  __pyx_v_packed = __pyx_mstate_global->__pyx_kp_b_;

  /* "src/uharfbuzz/_buffer.pxi":943
 *         cdef bytes packed = b""
 * 
 *         while start < num_glyphs:             # <<<<<<<<<<<<<<
 *             start += hb_buffer_serialize(
 *                 self._hb_buffer,
*/
  while (1) {
    __pyx_t_1 = (__pyx_v_start < __pyx_v_num_glyphs);
    if (!__pyx_t_1) break;

    /* "src/uharfbuzz/_buffer.pxi":952
 *                 &consumed,
 *                 font._hb_font,
 *                 format,             # <<<<<<<<<<<<<<
 *                 flags
 *             )
*/
    __pyx_t_2 = ((hb_buffer_serialize_format_t)__Pyx_PyLong_As_hb_buffer_serialize_format_t(__pyx_v_format)); if (unlikely(PyErr_Occurred())) __PYX_ERR(7, 952, __pyx_L1_error)

    /* "src/uharfbuzz/_buffer.pxi":953
 *                 font._hb_font,
 *                 format,
 *                 flags             # <<<<<<<<<<<<<<
 *             )
 *             if consumed == 0:
*/
    __pyx_t_3 = ((hb_buffer_serialize_flags_t)__Pyx_PyLong_As_hb_buffer_serialize_flags_t(__pyx_v_flags)); if (unlikely(PyErr_Occurred())) __PYX_ERR(7, 953, __pyx_L1_error)

    /* "src/uharfbuzz/_buffer.pxi":944
 * 
 *         while start < num_glyphs:
 *             start += hb_buffer_serialize(             # <<<<<<<<<<<<<<
 *                 self._hb_buffer,
 *                 start,
*/
    __pyx_v_start = (__pyx_v_start + hb_buffer_serialize(__pyx_v_self->_hb_buffer, __pyx_v_start, __pyx_v_num_glyphs, __pyx_v_cstr, 0x80, (&__pyx_v_consumed), __pyx_v_font->_hb_font, __pyx_t_2, __pyx_t_3));

    /* "src/uharfbuzz/_buffer.pxi":955
 *                 flags
 *             )
 *             if consumed == 0:             # <<<<<<<<<<<<<<
 *                 break
 *             packed += cstr[:consumed]
*/
    __pyx_t_1 = (__pyx_v_consumed == 0);
    if (__pyx_t_1) {

      /* "src/uharfbuzz/_buffer.pxi":956
 *             )
 *             if consumed == 0:
 *                 break             # <<<<<<<<<<<<<<
 *             packed += cstr[:consumed]
 * 
*/
      goto __pyx_L4_break;

      /* "src/uharfbuzz/_buffer.pxi":955
 *                 flags
 *             )
 *             if consumed == 0:             # <<<<<<<<<<<<<<
 *                 break
 *             packed += cstr[:consumed]
*/
    }

    /* "src/uharfbuzz/_buffer.pxi":957
 *             if consumed == 0:
 *                 break
 *             packed += cstr[:consumed]             # <<<<<<<<<<<<<<
 * 
 *         return packed.decode()
*/
    __pyx_t_4 = __Pyx_PyBytes_FromStringAndSize(__pyx_v_cstr + 0, __pyx_v_consumed - 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(7, 957, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_packed, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(7, 957, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF_SET(__pyx_v_packed, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;
  }
  __pyx_L4_break:;

  /* "src/uharfbuzz/_buffer.pxi":959
 *             packed += cstr[:consumed]
 * 
 *         return packed.decode()             # <<<<<<<<<<<<<<
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_5 = __Pyx_decode_bytes(__pyx_v_packed, 0, PY_SSIZE_T_MAX, NULL, NULL, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(7, 959, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_r = ((PyObject*)__pyx_t_5);
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_buffer.pxi":916
 *         hb_buffer_set_message_func(self._hb_buffer, msgcallback, <void*>callback, NULL)
 * 
 *     def serialize(self,             # <<<<<<<<<<<<<<
 *                   font: Font,
 *                   format: BufferSerializeFormat = BufferSerializeFormat.TEXT,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.serialize", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_29__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_6Buffer_29__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_29__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_29__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_28__reduce_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_28__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_31__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_6Buffer_31__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_31__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_31__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 3, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < (0)) __PYX_ERR(4, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(4, 3, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(4, 3, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_30__setstate_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6Buffer_30__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Buffer.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":65
 *     """Alpha channel value."""
 * 
 *     def to_int(self) -> int:             # <<<<<<<<<<<<<<
 *         """Returns an :class:`int` representation of this :class:`Color`."""
 *         return HB_COLOR(self.blue, self.green, self.red, self.alpha)
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_5Color_1to_int(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_5Color_to_int, "Returns an :class:`int` representation of this :class:`Color`.");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_5Color_1to_int = {"to_int", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_5Color_1to_int, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_5Color_to_int};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_5Color_1to_int(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_int (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 65, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 65, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "to_int", 0) < (0)) __PYX_ERR(1, 65, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("to_int", 1, 1, 1, i); __PYX_ERR(1, 65, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 65, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("to_int", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 65, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Color.to_int", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_5Color_to_int(__pyx_self, __pyx_v_self);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_5Color_to_int(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  uint8_t __pyx_t_2;
  uint8_t __pyx_t_3;
  uint8_t __pyx_t_4;
  uint8_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_int", 0);

  /* "src/uharfbuzz/_face.pxi":67
 *     def to_int(self) -> int:
 *         """Returns an :class:`int` representation of this :class:`Color`."""
 *         return HB_COLOR(self.blue, self.green, self.red, self.alpha)             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_blue); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 67, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_As_uint8_t(__pyx_t_1); if (unlikely((__pyx_t_2 == ((uint8_t)-1)) && PyErr_Occurred())) __PYX_ERR(1, 67, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_green); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 67, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyLong_As_uint8_t(__pyx_t_1); if (unlikely((__pyx_t_3 == ((uint8_t)-1)) && PyErr_Occurred())) __PYX_ERR(1, 67, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_red); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 67, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_uint8_t(__pyx_t_1); if (unlikely((__pyx_t_4 == ((uint8_t)-1)) && PyErr_Occurred())) __PYX_ERR(1, 67, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_alpha); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 67, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_5 = __Pyx_PyLong_As_uint8_t(__pyx_t_1); if (unlikely((__pyx_t_5 == ((uint8_t)-1)) && PyErr_Occurred())) __PYX_ERR(1, 67, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyLong_From_uint32_t(HB_COLOR(__pyx_t_2, __pyx_t_3, __pyx_t_4, __pyx_t_5)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 67, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (__Pyx_PyInt_FromNumber(&__pyx_t_1, NULL, 0) < (0)) __PYX_ERR(1, 67, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":65
 *     """Alpha channel value."""
 * 
 *     def to_int(self) -> int:             # <<<<<<<<<<<<<<
 *         """Returns an :class:`int` representation of this :class:`Color`."""
 *         return HB_COLOR(self.blue, self.green, self.red, self.alpha)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Color.to_int", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":69
 *         return HB_COLOR(self.blue, self.green, self.red, self.alpha)
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def from_int(value: int) -> Color:
 *         """Construct a :class:`Color` from an integer representation."""
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_5Color_3from_int(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_5Color_2from_int, "Construct a :class:`Color` from an integer representation.");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_5Color_3from_int = {"from_int", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_5Color_3from_int, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_5Color_2from_int};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_5Color_3from_int(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_value = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_int (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_value,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 69, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 69, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "from_int", 0) < (0)) __PYX_ERR(1, 69, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("from_int", 1, 1, 1, i); __PYX_ERR(1, 69, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 69, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "value", 0) < (0)) __PYX_ERR(1, 70, __pyx_L3_error)
    __pyx_v_value = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_int", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 69, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Color.from_int", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), (&PyLong_Type), 0, "value", 2))) __PYX_ERR(1, 70, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_5Color_2from_int(__pyx_self, __pyx_v_value);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_5Color_2from_int(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_value) {
  uint8_t __pyx_v_r;
  uint8_t __pyx_v_g;
  uint8_t __pyx_v_b;
  uint8_t __pyx_v_a;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  hb_color_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  size_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("from_int", 0);

  /* "src/uharfbuzz/_face.pxi":72
 *     def from_int(value: int) -> Color:
 *         """Construct a :class:`Color` from an integer representation."""
 *         r = hb_color_get_red(value)             # <<<<<<<<<<<<<<
 *         g = hb_color_get_green(value)
 *         b = hb_color_get_blue(value)
*/
  __pyx_t_1 = __Pyx_PyLong_As_uint32_t(__pyx_v_value); if (unlikely((__pyx_t_1 == ((hb_color_t)-1)) && PyErr_Occurred())) __PYX_ERR(1, 72, __pyx_L1_error)
  __pyx_v_r = hb_color_get_red(__pyx_t_1);

  /* "src/uharfbuzz/_face.pxi":73
 *         """Construct a :class:`Color` from an integer representation."""
 *         r = hb_color_get_red(value)
 *         g = hb_color_get_green(value)             # <<<<<<<<<<<<<<
 *         b = hb_color_get_blue(value)
 *         a = hb_color_get_alpha(value)
*/
  __pyx_t_1 = __Pyx_PyLong_As_uint32_t(__pyx_v_value); if (unlikely((__pyx_t_1 == ((hb_color_t)-1)) && PyErr_Occurred())) __PYX_ERR(1, 73, __pyx_L1_error)
  __pyx_v_g = hb_color_get_green(__pyx_t_1);

  /* "src/uharfbuzz/_face.pxi":74
 *         r = hb_color_get_red(value)
 *         g = hb_color_get_green(value)
 *         b = hb_color_get_blue(value)             # <<<<<<<<<<<<<<
 *         a = hb_color_get_alpha(value)
 *         return Color(r, g, b, a)
*/
  __pyx_t_1 = __Pyx_PyLong_As_uint32_t(__pyx_v_value); if (unlikely((__pyx_t_1 == ((hb_color_t)-1)) && PyErr_Occurred())) __PYX_ERR(1, 74, __pyx_L1_error)
  __pyx_v_b = hb_color_get_blue(__pyx_t_1);

  /* "src/uharfbuzz/_face.pxi":75
 *         g = hb_color_get_green(value)
 *         b = hb_color_get_blue(value)
 *         a = hb_color_get_alpha(value)             # <<<<<<<<<<<<<<
 *         return Color(r, g, b, a)
 * 
*/
  __pyx_t_1 = __Pyx_PyLong_As_uint32_t(__pyx_v_value); if (unlikely((__pyx_t_1 == ((hb_color_t)-1)) && PyErr_Occurred())) __PYX_ERR(1, 75, __pyx_L1_error)
  __pyx_v_a = hb_color_get_alpha(__pyx_t_1);

  /* "src/uharfbuzz/_face.pxi":76
 *         b = hb_color_get_blue(value)
 *         a = hb_color_get_alpha(value)
 *         return Color(r, g, b, a)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_Color); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 76, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_uint8_t(__pyx_v_r); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 76, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_uint8_t(__pyx_v_g); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 76, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyLong_From_uint8_t(__pyx_v_b); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 76, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyLong_From_uint8_t(__pyx_v_a); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 76, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[5] = {__pyx_t_3, __pyx_t_5, __pyx_t_6, __pyx_t_7, __pyx_t_8};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_9, (5-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 76, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":69
 *         return HB_COLOR(self.blue, self.green, self.red, self.alpha)
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def from_int(value: int) -> Color:
 *         """Construct a :class:`Color` from an integer representation."""
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Color.from_int", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":181
 * 
 * 
 * cdef hb_blob_t* _reference_table_func(             # <<<<<<<<<<<<<<
 *         hb_face_t* face, hb_tag_t tag, void* user_data) noexcept:
 *     cdef Face py_face = <object>(hb_face_get_user_data(face, &k))
*/

static hb_blob_t *__pyx_f_9uharfbuzz_9_harfbuzz__reference_table_func(hb_face_t *__pyx_v_face, hb_tag_t __pyx_v_tag, void *__pyx_v_user_data) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_py_face = 0;
  char __pyx_v_cstr[5];
  PyObject *__pyx_v_packed = 0;
  PyObject *__pyx_v_table = 0;
  hb_blob_t *__pyx_r;
  __Pyx_RefNannyDeclarations
  void *__pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_t_7;
  char const *__pyx_t_8;
  Py_ssize_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_reference_table_func", 0);

  /* "src/uharfbuzz/_face.pxi":183
 * cdef hb_blob_t* _reference_table_func(
 *         hb_face_t* face, hb_tag_t tag, void* user_data) noexcept:
 *     cdef Face py_face = <object>(hb_face_get_user_data(face, &k))             # <<<<<<<<<<<<<<
 *     #
 *     cdef char cstr[5]
*/
  __pyx_t_1 = hb_face_get_user_data(__pyx_v_face, (&__pyx_v_9uharfbuzz_9_harfbuzz_k));
  __pyx_t_2 = ((PyObject *)__pyx_t_1);
  __Pyx_INCREF(__pyx_t_2);
  if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face))))) __PYX_ERR(1, 183, __pyx_L1_error)
  __pyx_v_py_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "src/uharfbuzz/_face.pxi":186
 *     #
 *     cdef char cstr[5]
 *     hb_tag_to_string(tag, cstr)             # <<<<<<<<<<<<<<
 *     cstr[4] = b'\0'
 *     cdef bytes packed = cstr
*/
  hb_tag_to_string(__pyx_v_tag, __pyx_v_cstr);

  /* "src/uharfbuzz/_face.pxi":187
 *     cdef char cstr[5]
 *     hb_tag_to_string(tag, cstr)
 *     cstr[4] = b'\0'             # <<<<<<<<<<<<<<
 *     cdef bytes packed = cstr
 *     #
*/
  (__pyx_v_cstr[4]) = '\x00';

  /* "src/uharfbuzz/_face.pxi":188
 *     hb_tag_to_string(tag, cstr)
 *     cstr[4] = b'\0'
 *     cdef bytes packed = cstr             # <<<<<<<<<<<<<<
 *     #
 *     cdef bytes table = py_face._reference_table_func(
*/
  __pyx_t_2 = __Pyx_PyBytes_FromString(__pyx_v_cstr); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 188, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_packed = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "src/uharfbuzz/_face.pxi":190
 *     cdef bytes packed = cstr
 *     #
 *     cdef bytes table = py_face._reference_table_func(             # <<<<<<<<<<<<<<
 *         py_face, packed.decode(), <object>user_data)
 *     if table is None:
*/
  __pyx_t_3 = NULL;
  __Pyx_INCREF(__pyx_v_py_face->_reference_table_func);
  __pyx_t_4 = __pyx_v_py_face->_reference_table_func; 

  /* "src/uharfbuzz/_face.pxi":191
 *     #
 *     cdef bytes table = py_face._reference_table_func(
 *         py_face, packed.decode(), <object>user_data)             # <<<<<<<<<<<<<<
 *     if table is None:
 *         return NULL
*/
  __pyx_t_5 = __Pyx_decode_bytes(__pyx_v_packed, 0, PY_SSIZE_T_MAX, NULL, NULL, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 191, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_3, ((PyObject *)__pyx_v_py_face), __pyx_t_5, ((PyObject *)__pyx_v_user_data)};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_6, (4-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 190, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }

  /* "src/uharfbuzz/_face.pxi":190
 *     cdef bytes packed = cstr
 *     #
 *     cdef bytes table = py_face._reference_table_func(             # <<<<<<<<<<<<<<
 *         py_face, packed.decode(), <object>user_data)
 *     if table is None:
*/
  if (!(likely(PyBytes_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None) || __Pyx_RaiseUnexpectedTypeError("bytes", __pyx_t_2))) __PYX_ERR(1, 190, __pyx_L1_error)
  __pyx_v_table = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "src/uharfbuzz/_face.pxi":192
 *     cdef bytes table = py_face._reference_table_func(
 *         py_face, packed.decode(), <object>user_data)
 *     if table is None:             # <<<<<<<<<<<<<<
 *         return NULL
 *     return hb_blob_create(
*/
  __pyx_t_7 = (__pyx_v_table == ((PyObject*)Py_None));
  if (__pyx_t_7) {

    /* "src/uharfbuzz/_face.pxi":193
 *         py_face, packed.decode(), <object>user_data)
 *     if table is None:
 *         return NULL             # <<<<<<<<<<<<<<
 *     return hb_blob_create(
 *         table, len(table), HB_MEMORY_MODE_READONLY, NULL, NULL)
*/
    __pyx_r = NULL;
    goto __pyx_L0;

    /* "src/uharfbuzz/_face.pxi":192
 *     cdef bytes table = py_face._reference_table_func(
 *         py_face, packed.decode(), <object>user_data)
 *     if table is None:             # <<<<<<<<<<<<<<
 *         return NULL
 *     return hb_blob_create(
*/
  }

  /* "src/uharfbuzz/_face.pxi":195
 *         return NULL
 *     return hb_blob_create(
 *         table, len(table), HB_MEMORY_MODE_READONLY, NULL, NULL)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  if (unlikely(__pyx_v_table == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
    __PYX_ERR(1, 195, __pyx_L1_error)
  }
  __pyx_t_8 = __Pyx_PyBytes_AsString(__pyx_v_table); if (unlikely((!__pyx_t_8) && PyErr_Occurred())) __PYX_ERR(1, 195, __pyx_L1_error)
  if (unlikely(__pyx_v_table == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 195, __pyx_L1_error)
  }
  __pyx_t_9 = __Pyx_PyBytes_GET_SIZE(__pyx_v_table); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(1, 195, __pyx_L1_error)

  /* "src/uharfbuzz/_face.pxi":194
 *     if table is None:
 *         return NULL
 *     return hb_blob_create(             # <<<<<<<<<<<<<<
 *         table, len(table), HB_MEMORY_MODE_READONLY, NULL, NULL)
 * 
*/
  __pyx_r = hb_blob_create(__pyx_t_8, __pyx_t_9, HB_MEMORY_MODE_READONLY, NULL, NULL);
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":181
 * 
 * 
 * cdef hb_blob_t* _reference_table_func(             # <<<<<<<<<<<<<<
 *         hb_face_t* face, hb_tag_t tag, void* user_data) noexcept:
 *     cdef Face py_face = <object>(hb_face_get_user_data(face, &k))
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._reference_table_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_face);
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_XDECREF(__pyx_v_table);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":198
 * 
 * 
 * cdef unsigned int _get_table_tags_func(             # <<<<<<<<<<<<<<
 *         const hb_face_t* face,
 *         unsigned int start_offset,
*/

static unsigned int __pyx_f_9uharfbuzz_9_harfbuzz__get_table_tags_func(hb_face_t const *__pyx_v_face, unsigned int __pyx_v_start_offset, unsigned int *__pyx_v_table_count, hb_tag_t *__pyx_v_table_tags, void *__pyx_v_user_data) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_py_face = 0;
  PyObject *__pyx_v_tags = 0;
  unsigned int __pyx_v_population;
  unsigned int __pyx_v_end_offset;
  unsigned int __pyx_v_i;
  PyObject *__pyx_v_packed = 0;
  unsigned int __pyx_r;
  __Pyx_RefNannyDeclarations
  void *__pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  int __pyx_t_7;
  unsigned int __pyx_t_8;
  unsigned int __pyx_t_9;
  unsigned int __pyx_t_10;
  char *__pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_get_table_tags_func", 0);

  /* "src/uharfbuzz/_face.pxi":204
 *         hb_tag_t* table_tags,
 *         void* user_data) noexcept:
 *     cdef Face py_face = <object>(hb_face_get_user_data(<hb_face_t*>face, &k))             # <<<<<<<<<<<<<<
 *     cdef list tags = py_face._get_table_tags_func(py_face, <object>user_data)
 *     cdef unsigned int population = len(tags)
*/
  __pyx_t_1 = hb_face_get_user_data(((hb_face_t *)__pyx_v_face), (&__pyx_v_9uharfbuzz_9_harfbuzz_k));
  __pyx_t_2 = ((PyObject *)__pyx_t_1);
  __Pyx_INCREF(__pyx_t_2);
  if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face))))) __PYX_ERR(1, 204, __pyx_L1_error)
  __pyx_v_py_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "src/uharfbuzz/_face.pxi":205
 *         void* user_data) noexcept:
 *     cdef Face py_face = <object>(hb_face_get_user_data(<hb_face_t*>face, &k))
 *     cdef list tags = py_face._get_table_tags_func(py_face, <object>user_data)             # <<<<<<<<<<<<<<
 *     cdef unsigned int population = len(tags)
 *     cdef unsigned int end_offset
*/
  __pyx_t_3 = NULL;
  __Pyx_INCREF(__pyx_v_py_face->_get_table_tags_func);
  __pyx_t_4 = __pyx_v_py_face->_get_table_tags_func; 
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_3, ((PyObject *)__pyx_v_py_face), ((PyObject *)__pyx_v_user_data)};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 205, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  if (!(likely(PyList_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None) || __Pyx_RaiseUnexpectedTypeError("list", __pyx_t_2))) __PYX_ERR(1, 205, __pyx_L1_error)
  __pyx_v_tags = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "src/uharfbuzz/_face.pxi":206
 *     cdef Face py_face = <object>(hb_face_get_user_data(<hb_face_t*>face, &k))
 *     cdef list tags = py_face._get_table_tags_func(py_face, <object>user_data)
 *     cdef unsigned int population = len(tags)             # <<<<<<<<<<<<<<
 *     cdef unsigned int end_offset
 *     cdef unsigned int i
*/
  if (unlikely(__pyx_v_tags == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 206, __pyx_L1_error)
  }
  __pyx_t_6 = __Pyx_PyList_GET_SIZE(__pyx_v_tags); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(1, 206, __pyx_L1_error)
  __pyx_v_population = __pyx_t_6;

  /* "src/uharfbuzz/_face.pxi":211
 *     cdef bytes packed
 * 
 *     if table_count is NULL:             # <<<<<<<<<<<<<<
 *         return population
 * 
*/
  __pyx_t_7 = (__pyx_v_table_count == NULL);
  if (__pyx_t_7) {

    /* "src/uharfbuzz/_face.pxi":212
 * 
 *     if table_count is NULL:
 *         return population             # <<<<<<<<<<<<<<
 * 
 *     if start_offset >= population:
*/
    __pyx_r = __pyx_v_population;
    goto __pyx_L0;

    /* "src/uharfbuzz/_face.pxi":211
 *     cdef bytes packed
 * 
 *     if table_count is NULL:             # <<<<<<<<<<<<<<
 *         return population
 * 
*/
  }

  /* "src/uharfbuzz/_face.pxi":214
 *         return population
 * 
 *     if start_offset >= population:             # <<<<<<<<<<<<<<
 *         table_count[0] = 0
 *         return population
*/
  __pyx_t_7 = (__pyx_v_start_offset >= __pyx_v_population);
  if (__pyx_t_7) {

    /* "src/uharfbuzz/_face.pxi":215
 * 
 *     if start_offset >= population:
 *         table_count[0] = 0             # <<<<<<<<<<<<<<
 *         return population
 * 
*/
    (__pyx_v_table_count[0]) = 0;

    /* "src/uharfbuzz/_face.pxi":216
 *     if start_offset >= population:
 *         table_count[0] = 0
 *         return population             # <<<<<<<<<<<<<<
 * 
 *     end_offset = start_offset + table_count[0]
*/
    __pyx_r = __pyx_v_population;
    goto __pyx_L0;

    /* "src/uharfbuzz/_face.pxi":214
 *         return population
 * 
 *     if start_offset >= population:             # <<<<<<<<<<<<<<
 *         table_count[0] = 0
 *         return population
*/
  }

  /* "src/uharfbuzz/_face.pxi":218
 *         return population
 * 
 *     end_offset = start_offset + table_count[0]             # <<<<<<<<<<<<<<
 *     if end_offset < start_offset:
 *         table_count[0] = 0
*/
  __pyx_v_end_offset = (__pyx_v_start_offset + (__pyx_v_table_count[0]));

  /* "src/uharfbuzz/_face.pxi":219
 * 
 *     end_offset = start_offset + table_count[0]
 *     if end_offset < start_offset:             # <<<<<<<<<<<<<<
 *         table_count[0] = 0
 *         return population
*/
  __pyx_t_7 = (__pyx_v_end_offset < __pyx_v_start_offset);
  if (__pyx_t_7) {

    /* "src/uharfbuzz/_face.pxi":220
 *     end_offset = start_offset + table_count[0]
 *     if end_offset < start_offset:
 *         table_count[0] = 0             # <<<<<<<<<<<<<<
 *         return population
 *     if end_offset > population:
*/
    (__pyx_v_table_count[0]) = 0;

    /* "src/uharfbuzz/_face.pxi":221
 *     if end_offset < start_offset:
 *         table_count[0] = 0
 *         return population             # <<<<<<<<<<<<<<
 *     if end_offset > population:
 *         end_offset = population
*/
    __pyx_r = __pyx_v_population;
    goto __pyx_L0;

    /* "src/uharfbuzz/_face.pxi":219
 * 
 *     end_offset = start_offset + table_count[0]
 *     if end_offset < start_offset:             # <<<<<<<<<<<<<<
 *         table_count[0] = 0
 *         return population
*/
  }

  /* "src/uharfbuzz/_face.pxi":222
 *         table_count[0] = 0
 *         return population
 *     if end_offset > population:             # <<<<<<<<<<<<<<
 *         end_offset = population
 * 
*/
  __pyx_t_7 = (__pyx_v_end_offset > __pyx_v_population);
  if (__pyx_t_7) {

    /* "src/uharfbuzz/_face.pxi":223
 *         return population
 *     if end_offset > population:
 *         end_offset = population             # <<<<<<<<<<<<<<
 * 
 *     table_count[0] = end_offset - start_offset
*/
    __pyx_v_end_offset = __pyx_v_population;

    /* "src/uharfbuzz/_face.pxi":222
 *         table_count[0] = 0
 *         return population
 *     if end_offset > population:             # <<<<<<<<<<<<<<
 *         end_offset = population
 * 
*/
  }

  /* "src/uharfbuzz/_face.pxi":225
 *         end_offset = population
 * 
 *     table_count[0] = end_offset - start_offset             # <<<<<<<<<<<<<<
 *     for i in range(start_offset, end_offset):
 *         packed = tags[i].encode()
*/
  (__pyx_v_table_count[0]) = (__pyx_v_end_offset - __pyx_v_start_offset);

  /* "src/uharfbuzz/_face.pxi":226
 * 
 *     table_count[0] = end_offset - start_offset
 *     for i in range(start_offset, end_offset):             # <<<<<<<<<<<<<<
 *         packed = tags[i].encode()
 *         table_tags[i - start_offset] = hb_tag_from_string(<char*>packed, -1)
*/
  __pyx_t_8 = __pyx_v_end_offset;
  __pyx_t_9 = __pyx_t_8;
  for (__pyx_t_10 = __pyx_v_start_offset; __pyx_t_10 < __pyx_t_9; __pyx_t_10+=1) {
    __pyx_v_i = __pyx_t_10;

    /* "src/uharfbuzz/_face.pxi":227
 *     table_count[0] = end_offset - start_offset
 *     for i in range(start_offset, end_offset):
 *         packed = tags[i].encode()             # <<<<<<<<<<<<<<
 *         table_tags[i - start_offset] = hb_tag_from_string(<char*>packed, -1)
 * 
*/
    if (unlikely(__pyx_v_tags == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 227, __pyx_L1_error)
    }
    __pyx_t_3 = __Pyx_GetItemInt_List(__pyx_v_tags, __pyx_v_i, unsigned int, 0, __Pyx_PyLong_From_unsigned_int, 1, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 227, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __pyx_t_3;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_encode, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 227, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    if (!(likely(PyBytes_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None) || __Pyx_RaiseUnexpectedTypeError("bytes", __pyx_t_2))) __PYX_ERR(1, 227, __pyx_L1_error)
    __Pyx_XDECREF_SET(__pyx_v_packed, ((PyObject*)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "src/uharfbuzz/_face.pxi":228
 *     for i in range(start_offset, end_offset):
 *         packed = tags[i].encode()
 *         table_tags[i - start_offset] = hb_tag_from_string(<char*>packed, -1)             # <<<<<<<<<<<<<<
 * 
 *     return population
*/
    if (unlikely(__pyx_v_packed == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
      __PYX_ERR(1, 228, __pyx_L1_error)
    }
    __pyx_t_11 = __Pyx_PyBytes_AsWritableString(__pyx_v_packed); if (unlikely((!__pyx_t_11) && PyErr_Occurred())) __PYX_ERR(1, 228, __pyx_L1_error)
    (__pyx_v_table_tags[(__pyx_v_i - __pyx_v_start_offset)]) = hb_tag_from_string(((char *)__pyx_t_11), -1);
  }

  /* "src/uharfbuzz/_face.pxi":230
 *         table_tags[i - start_offset] = hb_tag_from_string(<char*>packed, -1)
 * 
 *     return population             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_r = __pyx_v_population;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":198
 * 
 * 
 * cdef unsigned int _get_table_tags_func(             # <<<<<<<<<<<<<<
 *         const hb_face_t* face,
 *         unsigned int start_offset,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._get_table_tags_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_face);
  __Pyx_XDECREF(__pyx_v_tags);
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":411
 *     cdef Blob _blob
 * 
 *     def __cinit__(self, blob: Union[Blob, bytes] = None, int index=0):             # <<<<<<<<<<<<<<
 *         if blob is not None:
 *             if not isinstance(blob, Blob):
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_blob = 0;
  int __pyx_v_index;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_blob,&__pyx_mstate_global->__pyx_n_u_index,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 411, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 411, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 411, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__cinit__", 0) < (0)) __PYX_ERR(1, 411, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_None));
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 411, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 411, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_blob = values[0];
    if (values[1]) {
      __pyx_v_index = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_index == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 411, __pyx_L3_error)
    } else {
      __pyx_v_index = ((int)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(1, 411, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face___cinit__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self), __pyx_v_blob, __pyx_v_index);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_4Face___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_blob, int __pyx_v_index) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "src/uharfbuzz/_face.pxi":412
 * 
 *     def __cinit__(self, blob: Union[Blob, bytes] = None, int index=0):
 *         if blob is not None:             # <<<<<<<<<<<<<<
 *             if not isinstance(blob, Blob):
 *                 self._blob = Blob(blob)
*/
  __pyx_t_1 = (__pyx_v_blob != Py_None);
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_face.pxi":413
 *     def __cinit__(self, blob: Union[Blob, bytes] = None, int index=0):
 *         if blob is not None:
 *             if not isinstance(blob, Blob):             # <<<<<<<<<<<<<<
 *                 self._blob = Blob(blob)
 *             else:
*/
    __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_blob, __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Blob); 
    __pyx_t_2 = (!__pyx_t_1);
    if (__pyx_t_2) {

      /* "src/uharfbuzz/_face.pxi":414
 *         if blob is not None:
 *             if not isinstance(blob, Blob):
 *                 self._blob = Blob(blob)             # <<<<<<<<<<<<<<
 *             else:
 *                 self._blob = blob
*/
      __pyx_t_4 = NULL;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_blob};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Blob, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 414, __pyx_L1_error)
        __Pyx_GOTREF((PyObject *)__pyx_t_3);
      }
      __Pyx_GIVEREF((PyObject *)__pyx_t_3);
      __Pyx_GOTREF((PyObject *)__pyx_v_self->_blob);
      __Pyx_DECREF((PyObject *)__pyx_v_self->_blob);
      __pyx_v_self->_blob = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *)__pyx_t_3);
      __pyx_t_3 = 0;

      /* "src/uharfbuzz/_face.pxi":413
 *     def __cinit__(self, blob: Union[Blob, bytes] = None, int index=0):
 *         if blob is not None:
 *             if not isinstance(blob, Blob):             # <<<<<<<<<<<<<<
 *                 self._blob = Blob(blob)
 *             else:
*/
      goto __pyx_L4;
    }

    /* "src/uharfbuzz/_face.pxi":416
 *                 self._blob = Blob(blob)
 *             else:
 *                 self._blob = blob             # <<<<<<<<<<<<<<
 *             self._hb_face = hb_face_create(self._blob._hb_blob, index)
 *         else:
*/
    /*else*/ {
      __pyx_t_3 = __pyx_v_blob;
      __Pyx_INCREF(__pyx_t_3);
      if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Blob))))) __PYX_ERR(1, 416, __pyx_L1_error)
      __Pyx_GIVEREF(__pyx_t_3);
      __Pyx_GOTREF((PyObject *)__pyx_v_self->_blob);
      __Pyx_DECREF((PyObject *)__pyx_v_self->_blob);
      __pyx_v_self->_blob = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *)__pyx_t_3);
      __pyx_t_3 = 0;
    }
    __pyx_L4:;

    /* "src/uharfbuzz/_face.pxi":417
 *             else:
 *                 self._blob = blob
 *             self._hb_face = hb_face_create(self._blob._hb_blob, index)             # <<<<<<<<<<<<<<
 *         else:
 *             self._hb_face = hb_face_get_empty()
*/
    __pyx_v_self->_hb_face = hb_face_create(__pyx_v_self->_blob->_hb_blob, __pyx_v_index);

    /* "src/uharfbuzz/_face.pxi":412
 * 
 *     def __cinit__(self, blob: Union[Blob, bytes] = None, int index=0):
 *         if blob is not None:             # <<<<<<<<<<<<<<
 *             if not isinstance(blob, Blob):
 *                 self._blob = Blob(blob)
*/
    goto __pyx_L3;
  }

  /* "src/uharfbuzz/_face.pxi":419
 *             self._hb_face = hb_face_create(self._blob._hb_blob, index)
 *         else:
 *             self._hb_face = hb_face_get_empty()             # <<<<<<<<<<<<<<
 *             self._blob = None
 * 
*/
  /*else*/ {
    __pyx_v_self->_hb_face = hb_face_get_empty();

    /* "src/uharfbuzz/_face.pxi":420
 *         else:
 *             self._hb_face = hb_face_get_empty()
 *             self._blob = None             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    __Pyx_GOTREF((PyObject *)__pyx_v_self->_blob);
    __Pyx_DECREF((PyObject *)__pyx_v_self->_blob);
    __pyx_v_self->_blob = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *)Py_None);
  }
  __pyx_L3:;

  /* "src/uharfbuzz/_face.pxi":411
 *     cdef Blob _blob
 * 
 *     def __cinit__(self, blob: Union[Blob, bytes] = None, int index=0):             # <<<<<<<<<<<<<<
 *         if blob is not None:
 *             if not isinstance(blob, Blob):
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":422
 *             self._blob = None
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         hb_face_destroy(self._hb_face)
 *         self._blob = None
*/

/* Python wrapper */
static void __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_2__dealloc__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_2__dealloc__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "src/uharfbuzz/_face.pxi":423
 * 
 *     def __dealloc__(self):
 *         hb_face_destroy(self._hb_face)             # <<<<<<<<<<<<<<
 *         self._blob = None
 * 
*/
  hb_face_destroy(__pyx_v_self->_hb_face);

  /* "src/uharfbuzz/_face.pxi":424
 *     def __dealloc__(self):
 *         hb_face_destroy(self._hb_face)
 *         self._blob = None             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
*/
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_blob);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_blob);
  __pyx_v_self->_blob = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *)Py_None);

  /* "src/uharfbuzz/_face.pxi":422
 *             self._blob = None
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         hb_face_destroy(self._hb_face)
 *         self._blob = None
*/

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "src/uharfbuzz/_face.pxi":426
 *         self._blob = None
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     cdef Face from_ptr(hb_face_t* hb_face):
 *         """Create Face from a pointer, taking ownership of it."""
*/

static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_f_9uharfbuzz_9_harfbuzz_4Face_from_ptr(hb_face_t *__pyx_v_hb_face) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_wrapper = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("from_ptr", 0);

  /* "src/uharfbuzz/_face.pxi":430
 *         """Create Face from a pointer, taking ownership of it."""
 * 
 *         cdef Face wrapper = Face.__new__(Face)             # <<<<<<<<<<<<<<
 *         wrapper._hb_face = hb_face
 *         return wrapper
*/
  __pyx_t_1 = ((PyObject *)__pyx_tp_new_9uharfbuzz_9_harfbuzz_Face(((PyTypeObject *)__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face), __pyx_mstate_global->__pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 430, __pyx_L1_error)
  __Pyx_GOTREF((PyObject *)__pyx_t_1);
  __pyx_v_wrapper = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_face.pxi":431
 * 
 *         cdef Face wrapper = Face.__new__(Face)
 *         wrapper._hb_face = hb_face             # <<<<<<<<<<<<<<
 *         return wrapper
 * 
*/
  __pyx_v_wrapper->_hb_face = __pyx_v_hb_face;

  /* "src/uharfbuzz/_face.pxi":432
 *         cdef Face wrapper = Face.__new__(Face)
 *         wrapper._hb_face = hb_face
 *         return wrapper             # <<<<<<<<<<<<<<
 * 
 *     @classmethod
*/
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_wrapper);
  __pyx_r = __pyx_v_wrapper;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":426
 *         self._blob = None
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     cdef Face from_ptr(hb_face_t* hb_face):
 *         """Create Face from a pointer, taking ownership of it."""
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.from_ptr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_wrapper);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":434
 *         return wrapper
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     @deprecated("Face()", since="0.10.0")
 *     def create(cls, blob: bytes, index: int = 0) -> Face:
*/

/* Python wrapper */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_5create(PyObject *__pyx_v_cls, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_5create = {"create", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_5create, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_5create(PyObject *__pyx_v_cls, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_blob = 0;
  PyObject *__pyx_v_index = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("create (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_blob,&__pyx_mstate_global->__pyx_n_u_index,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 434, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 434, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 434, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "create", 0) < (0)) __PYX_ERR(1, 434, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject*)__pyx_mstate_global->__pyx_int_0));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("create", 0, 1, 2, i); __PYX_ERR(1, 434, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 434, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 434, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject*)__pyx_mstate_global->__pyx_int_0));
    }
    __pyx_v_blob = ((PyObject*)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "index", 0) < (0)) __PYX_ERR(1, 436, __pyx_L3_error)
    __pyx_v_index = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("create", 0, 1, 2, __pyx_nargs); __PYX_ERR(1, 434, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.create", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_blob), (&PyBytes_Type), 0, "blob", 2))) __PYX_ERR(1, 436, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_index), (&PyLong_Type), 0, "index", 2))) __PYX_ERR(1, 436, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_4create(((PyTypeObject*)__pyx_v_cls), __pyx_v_blob, __pyx_v_index);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_4create(PyTypeObject *__pyx_v_cls, PyObject *__pyx_v_blob, PyObject *__pyx_v_index) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_inst = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("create", 0);

  /* "src/uharfbuzz/_face.pxi":437
 *     @deprecated("Face()", since="0.10.0")
 *     def create(cls, blob: bytes, index: int = 0) -> Face:
 *         cdef Face inst = cls(blob, index)             # <<<<<<<<<<<<<<
 *         return inst
 * 
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_v_blob, __pyx_v_index};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_v_cls, __pyx_callargs+__pyx_t_3, (3-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 437, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face))))) __PYX_ERR(1, 437, __pyx_L1_error)
  __pyx_v_inst = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_face.pxi":438
 *     def create(cls, blob: bytes, index: int = 0) -> Face:
 *         cdef Face inst = cls(blob, index)
 *         return inst             # <<<<<<<<<<<<<<
 * 
 *     @classmethod
*/
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_inst);
  __pyx_r = __pyx_v_inst;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":434
 *         return wrapper
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     @deprecated("Face()", since="0.10.0")
 *     def create(cls, blob: bytes, index: int = 0) -> Face:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.create", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_inst);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":440
 *         return inst
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def create_for_tables(cls,
 *                           func: Callable[[
*/

/* Python wrapper */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_7create_for_tables(PyObject *__pyx_v_cls, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Face_6create_for_tables, "Variant of the normal constructor, built for those cases where it\n        is more convenient to provide data for individual tables instead of\n        the whole font data. With the caveat that :attr:`table_tags` would\n        not work with faces created this way. You can address that by\n        calling the :meth:`set_get_table_tags_func` method and setting the\n        appropriate callback.\n\n        Creates a new face object from the specified ``user_data`` and\n        ``func``.\n\n        :param func: A callback that takes the :class:`Face`, a table tag,\n            and the ``user_data`` and returns the table data as\n            :class:`bytes`.\n        :param user_data: User data passed to ``func`` on each call.\n\n        Wraps `hb_face_create_for_tables()\n        <https://harfbuzz.github.io/harfbuzz-hb-face.html#hb-face-create-for-tables>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_7create_for_tables = {"create_for_tables", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_7create_for_tables, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_6create_for_tables};
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_7create_for_tables(PyObject *__pyx_v_cls, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_func = 0;
  PyObject *__pyx_v_user_data = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("create_for_tables (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func,&__pyx_mstate_global->__pyx_n_u_user_data,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 440, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 440, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 440, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "create_for_tables", 0) < (0)) __PYX_ERR(1, 440, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("create_for_tables", 1, 2, 2, i); __PYX_ERR(1, 440, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 440, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 440, __pyx_L3_error)
    }
    __pyx_v_func = values[0];
    __pyx_v_user_data = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("create_for_tables", 1, 2, 2, __pyx_nargs); __PYX_ERR(1, 440, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.create_for_tables", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_6create_for_tables(((PyTypeObject*)__pyx_v_cls), __pyx_v_func, __pyx_v_user_data);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_6create_for_tables(PyTypeObject *__pyx_v_cls, PyObject *__pyx_v_func, PyObject *__pyx_v_user_data) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_inst = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("create_for_tables", 0);

  /* "src/uharfbuzz/_face.pxi":466
 *         <https://harfbuzz.github.io/harfbuzz-hb-face.html#hb-face-create-for-tables>`_.
 *         """
 *         cdef Face inst = cls(None)             # <<<<<<<<<<<<<<
 *         inst._hb_face = hb_face_create_for_tables(
 *             _reference_table_func, <void*>user_data, NULL)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, Py_None};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_v_cls, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 466, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face))))) __PYX_ERR(1, 466, __pyx_L1_error)
  __pyx_v_inst = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_face.pxi":467
 *         """
 *         cdef Face inst = cls(None)
 *         inst._hb_face = hb_face_create_for_tables(             # <<<<<<<<<<<<<<
 *             _reference_table_func, <void*>user_data, NULL)
 *         hb_face_set_user_data(inst._hb_face, &k, <void*>inst, NULL, 0)
*/
  __pyx_v_inst->_hb_face = hb_face_create_for_tables(__pyx_f_9uharfbuzz_9_harfbuzz__reference_table_func, ((void *)__pyx_v_user_data), NULL);

  /* "src/uharfbuzz/_face.pxi":469
 *         inst._hb_face = hb_face_create_for_tables(
 *             _reference_table_func, <void*>user_data, NULL)
 *         hb_face_set_user_data(inst._hb_face, &k, <void*>inst, NULL, 0)             # <<<<<<<<<<<<<<
 *         inst._reference_table_func = func
 *         return inst
*/
  (void)(hb_face_set_user_data(__pyx_v_inst->_hb_face, (&__pyx_v_9uharfbuzz_9_harfbuzz_k), ((void *)__pyx_v_inst), NULL, 0));

  /* "src/uharfbuzz/_face.pxi":470
 *             _reference_table_func, <void*>user_data, NULL)
 *         hb_face_set_user_data(inst._hb_face, &k, <void*>inst, NULL, 0)
 *         inst._reference_table_func = func             # <<<<<<<<<<<<<<
 *         return inst
 * 
*/
  __Pyx_INCREF(__pyx_v_func);
  __Pyx_GIVEREF(__pyx_v_func);
  __Pyx_GOTREF(__pyx_v_inst->_reference_table_func);
  __Pyx_DECREF(__pyx_v_inst->_reference_table_func);
  __pyx_v_inst->_reference_table_func = __pyx_v_func;

  /* "src/uharfbuzz/_face.pxi":471
 *         hb_face_set_user_data(inst._hb_face, &k, <void*>inst, NULL, 0)
 *         inst._reference_table_func = func
 *         return inst             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_inst);
  __pyx_r = __pyx_v_inst;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":440
 *         return inst
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def create_for_tables(cls,
 *                           func: Callable[[
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.create_for_tables", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_inst);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":473
 *         return inst
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def count(self) -> int:
 *         """The number of faces in the blob.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_5count_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_5count_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_5count___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_5count___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_face.pxi":480
 *         <https://harfbuzz.github.io/harfbuzz-hb-face.html#hb-face-count>`_.
 *         """
 *         return hb_face_count(self._blob._hb_blob)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int(hb_face_count(__pyx_v_self->_blob->_hb_blob)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 480, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":473
 *         return inst
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def count(self) -> int:
 *         """The number of faces in the blob.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.count.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":482
 *         return hb_face_count(self._blob._hb_blob)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def index(self) -> int:
 *         """The face-index of this face.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_5index_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_5index_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_5index___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_5index___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_face.pxi":495
 *         <https://harfbuzz.github.io/harfbuzz-hb-face.html#hb-face-set-index>`_.
 *         """
 *         return hb_face_get_index(self._hb_face)             # <<<<<<<<<<<<<<
 * 
 *     @index.setter
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int(hb_face_get_index(__pyx_v_self->_hb_face)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 495, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":482
 *         return hb_face_count(self._blob._hb_blob)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def index(self) -> int:
 *         """The face-index of this face.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.index.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":497
 *         return hb_face_get_index(self._hb_face)
 * 
 *     @index.setter             # <<<<<<<<<<<<<<
 *     def index(self, value: int):
 *         hb_face_set_index(self._hb_face, value)
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_5index_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_5index_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), (&PyLong_Type), 0, "value", 2))) __PYX_ERR(1, 498, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_5index_2__set__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self), ((PyObject*)__pyx_v_value));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_5index_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  unsigned int __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "src/uharfbuzz/_face.pxi":499
 *     @index.setter
 *     def index(self, value: int):
 *         hb_face_set_index(self._hb_face, value)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __pyx_t_1 = __Pyx_PyLong_As_unsigned_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(1, 499, __pyx_L1_error)
  hb_face_set_index(__pyx_v_self->_hb_face, __pyx_t_1);

  /* "src/uharfbuzz/_face.pxi":497
 *         return hb_face_get_index(self._hb_face)
 * 
 *     @index.setter             # <<<<<<<<<<<<<<
 *     def index(self, value: int):
 *         hb_face_set_index(self._hb_face, value)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.index.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":501
 *         hb_face_set_index(self._hb_face, value)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def upem(self) -> int:
 *         """The units-per-em (UPEM) value of the face.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_4upem_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_4upem_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_4upem___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_4upem___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_face.pxi":513
 *         <https://harfbuzz.github.io/harfbuzz-hb-face.html#hb-face-set-upem>`_.
 *         """
 *         return hb_face_get_upem(self._hb_face)             # <<<<<<<<<<<<<<
 * 
 *     @upem.setter
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int(hb_face_get_upem(__pyx_v_self->_hb_face)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 513, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":501
 *         hb_face_set_index(self._hb_face, value)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def upem(self) -> int:
 *         """The units-per-em (UPEM) value of the face.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.upem.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":515
 *         return hb_face_get_upem(self._hb_face)
 * 
 *     @upem.setter             # <<<<<<<<<<<<<<
 *     def upem(self, value: int):
 *         hb_face_set_upem(self._hb_face, value)
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_4upem_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_4upem_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), (&PyLong_Type), 0, "value", 2))) __PYX_ERR(1, 516, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_4upem_2__set__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self), ((PyObject*)__pyx_v_value));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_4upem_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  unsigned int __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "src/uharfbuzz/_face.pxi":517
 *     @upem.setter
 *     def upem(self, value: int):
 *         hb_face_set_upem(self._hb_face, value)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __pyx_t_1 = __Pyx_PyLong_As_unsigned_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(1, 517, __pyx_L1_error)
  hb_face_set_upem(__pyx_v_self->_hb_face, __pyx_t_1);

  /* "src/uharfbuzz/_face.pxi":515
 *         return hb_face_get_upem(self._hb_face)
 * 
 *     @upem.setter             # <<<<<<<<<<<<<<
 *     def upem(self, value: int):
 *         hb_face_set_upem(self._hb_face, value)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.upem.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":519
 *         hb_face_set_upem(self._hb_face, value)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def glyph_count(self) -> int:
 *         """The glyph-count value of the face.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_11glyph_count_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_11glyph_count_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_11glyph_count___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_11glyph_count___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_face.pxi":528
 *         <https://harfbuzz.github.io/harfbuzz-hb-face.html#hb-face-set-glyph-count>`_.
 *         """
 *         return hb_face_get_glyph_count(self._hb_face)             # <<<<<<<<<<<<<<
 * 
 *     @glyph_count.setter
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int(hb_face_get_glyph_count(__pyx_v_self->_hb_face)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 528, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":519
 *         hb_face_set_upem(self._hb_face, value)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def glyph_count(self) -> int:
 *         """The glyph-count value of the face.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.glyph_count.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":530
 *         return hb_face_get_glyph_count(self._hb_face)
 * 
 *     @glyph_count.setter             # <<<<<<<<<<<<<<
 *     def glyph_count(self, value: int):
 *         hb_face_set_glyph_count(self._hb_face, value)
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_11glyph_count_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_11glyph_count_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), (&PyLong_Type), 0, "value", 2))) __PYX_ERR(1, 531, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_11glyph_count_2__set__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self), ((PyObject*)__pyx_v_value));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_11glyph_count_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  unsigned int __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "src/uharfbuzz/_face.pxi":532
 *     @glyph_count.setter
 *     def glyph_count(self, value: int):
 *         hb_face_set_glyph_count(self._hb_face, value)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __pyx_t_1 = __Pyx_PyLong_As_unsigned_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(1, 532, __pyx_L1_error)
  hb_face_set_glyph_count(__pyx_v_self->_hb_face, __pyx_t_1);

  /* "src/uharfbuzz/_face.pxi":530
 *         return hb_face_get_glyph_count(self._hb_face)
 * 
 *     @glyph_count.setter             # <<<<<<<<<<<<<<
 *     def glyph_count(self, value: int):
 *         hb_face_set_glyph_count(self._hb_face, value)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.glyph_count.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":534
 *         hb_face_set_glyph_count(self._hb_face, value)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def blob(self) -> Blob:
 *         """A :class:`Blob` containing the binary data of the face.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_4blob_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_4blob_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_4blob___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_4blob___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self) {
  hb_blob_t *__pyx_v_blob;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_face.pxi":547
 *         <https://harfbuzz.github.io/harfbuzz-hb-face.html#hb-face-reference-blob>`_.
 *         """
 *         cdef hb_blob_t* blob = hb_face_reference_blob(self._hb_face)             # <<<<<<<<<<<<<<
 *         if blob is NULL:
 *             raise MemoryError()
*/
  __pyx_v_blob = hb_face_reference_blob(__pyx_v_self->_hb_face);

  /* "src/uharfbuzz/_face.pxi":548
 *         """
 *         cdef hb_blob_t* blob = hb_face_reference_blob(self._hb_face)
 *         if blob is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 *         return Blob.from_ptr(blob)
*/
  __pyx_t_1 = (__pyx_v_blob == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "src/uharfbuzz/_face.pxi":549
 *         cdef hb_blob_t* blob = hb_face_reference_blob(self._hb_face)
 *         if blob is NULL:
 *             raise MemoryError()             # <<<<<<<<<<<<<<
 *         return Blob.from_ptr(blob)
 * 
*/
    PyErr_NoMemory(); __PYX_ERR(1, 549, __pyx_L1_error)

    /* "src/uharfbuzz/_face.pxi":548
 *         """
 *         cdef hb_blob_t* blob = hb_face_reference_blob(self._hb_face)
 *         if blob is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 *         return Blob.from_ptr(blob)
*/
  }

  /* "src/uharfbuzz/_face.pxi":550
 *         if blob is NULL:
 *             raise MemoryError()
 *         return Blob.from_ptr(blob)             # <<<<<<<<<<<<<<
 * 
 *     def reference_table(self, tag: str) -> Blob:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_f_9uharfbuzz_9_harfbuzz_4Blob_from_ptr(__pyx_v_blob)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 550, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":534
 *         hb_face_set_glyph_count(self._hb_face, value)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def blob(self) -> Blob:
 *         """A :class:`Blob` containing the binary data of the face.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.blob.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":552
 *         return Blob.from_ptr(blob)
 * 
 *     def reference_table(self, tag: str) -> Blob:             # <<<<<<<<<<<<<<
 *         """Fetches a reference to the specified table within the face.
 * 
*/

/* Python wrapper */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_9reference_table(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Face_8reference_table, "Fetches a reference to the specified table within the face.\n\n        :param tag: The four-character tag of the table to query.\n\n        :returns: A :class:`Blob` with the table data, or an empty blob if\n            referencing table data is not possible.\n\n        Wraps `hb_face_reference_table()\n        <https://harfbuzz.github.io/harfbuzz-hb-face.html#hb-face-reference-table>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_9reference_table = {"reference_table", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_9reference_table, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_8reference_table};
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_9reference_table(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_tag = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("reference_table (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_tag,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 552, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 552, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "reference_table", 0) < (0)) __PYX_ERR(1, 552, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("reference_table", 1, 1, 1, i); __PYX_ERR(1, 552, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 552, __pyx_L3_error)
    }
    __pyx_v_tag = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("reference_table", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 552, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.reference_table", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tag), (&PyUnicode_Type), 0, "tag", 2))) __PYX_ERR(1, 552, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_8reference_table(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self), __pyx_v_tag);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_8reference_table(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_tag) {
  PyObject *__pyx_v_packed = 0;
  hb_tag_t __pyx_v_hb_tag;
  hb_blob_t *__pyx_v_blob;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  char *__pyx_t_2;
  int __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("reference_table", 0);

  /* "src/uharfbuzz/_face.pxi":563
 *         <https://harfbuzz.github.io/harfbuzz-hb-face.html#hb-face-reference-table>`_.
 *         """
 *         cdef bytes packed = tag.encode()             # <<<<<<<<<<<<<<
 *         cdef hb_tag_t hb_tag = hb_tag_from_string(<char*>packed, -1)
 *         cdef hb_blob_t* blob = hb_face_reference_table(self._hb_face, hb_tag)
*/
  __pyx_t_1 = PyUnicode_AsEncodedString(__pyx_v_tag, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 563, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_packed = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_face.pxi":564
 *         """
 *         cdef bytes packed = tag.encode()
 *         cdef hb_tag_t hb_tag = hb_tag_from_string(<char*>packed, -1)             # <<<<<<<<<<<<<<
 *         cdef hb_blob_t* blob = hb_face_reference_table(self._hb_face, hb_tag)
 *         if blob is NULL:
*/
  __pyx_t_2 = __Pyx_PyBytes_AsWritableString(__pyx_v_packed); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(1, 564, __pyx_L1_error)
  __pyx_v_hb_tag = hb_tag_from_string(((char *)__pyx_t_2), -1);

  /* "src/uharfbuzz/_face.pxi":565
 *         cdef bytes packed = tag.encode()
 *         cdef hb_tag_t hb_tag = hb_tag_from_string(<char*>packed, -1)
 *         cdef hb_blob_t* blob = hb_face_reference_table(self._hb_face, hb_tag)             # <<<<<<<<<<<<<<
 *         if blob is NULL:
 *             raise MemoryError()
*/
  __pyx_v_blob = hb_face_reference_table(__pyx_v_self->_hb_face, __pyx_v_hb_tag);

  /* "src/uharfbuzz/_face.pxi":566
 *         cdef hb_tag_t hb_tag = hb_tag_from_string(<char*>packed, -1)
 *         cdef hb_blob_t* blob = hb_face_reference_table(self._hb_face, hb_tag)
 *         if blob is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 *         return Blob.from_ptr(blob)
*/
  __pyx_t_3 = (__pyx_v_blob == NULL);
  if (unlikely(__pyx_t_3)) {

    /* "src/uharfbuzz/_face.pxi":567
 *         cdef hb_blob_t* blob = hb_face_reference_table(self._hb_face, hb_tag)
 *         if blob is NULL:
 *             raise MemoryError()             # <<<<<<<<<<<<<<
 *         return Blob.from_ptr(blob)
 * 
*/
    PyErr_NoMemory(); __PYX_ERR(1, 567, __pyx_L1_error)

    /* "src/uharfbuzz/_face.pxi":566
 *         cdef hb_tag_t hb_tag = hb_tag_from_string(<char*>packed, -1)
 *         cdef hb_blob_t* blob = hb_face_reference_table(self._hb_face, hb_tag)
 *         if blob is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 *         return Blob.from_ptr(blob)
*/
  }

  /* "src/uharfbuzz/_face.pxi":568
 *         if blob is NULL:
 *             raise MemoryError()
 *         return Blob.from_ptr(blob)             # <<<<<<<<<<<<<<
 * 
 *     def set_get_table_tags_func(self,
*/
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_9uharfbuzz_9_harfbuzz_4Blob_from_ptr(__pyx_v_blob)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 568, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":552
 *         return Blob.from_ptr(blob)
 * 
 *     def reference_table(self, tag: str) -> Blob:             # <<<<<<<<<<<<<<
 *         """Fetches a reference to the specified table within the face.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.reference_table", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":570
 *         return Blob.from_ptr(blob)
 * 
 *     def set_get_table_tags_func(self,             # <<<<<<<<<<<<<<
 *                                 func: Callable[[Face, object], List[str]],
 *                                 user_data: object = None):
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_11set_get_table_tags_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Face_10set_get_table_tags_func, "Sets the implementation function for retrieving the table tags\n        of the face.\n\n        :param func: A callback that takes the :class:`Face` and the\n            ``user_data`` and returns the list of table tags as\n            :class:`str`.\n        :param user_data: User data passed to ``func`` on each call.\n\n        Wraps `hb_face_set_get_table_tags_func()\n        <https://harfbuzz.github.io/harfbuzz-hb-face.html#hb-face-set-get-table-tags-func>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_11set_get_table_tags_func = {"set_get_table_tags_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_11set_get_table_tags_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_10set_get_table_tags_func};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_11set_get_table_tags_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_func = 0;
  PyObject *__pyx_v_user_data = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_get_table_tags_func (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func,&__pyx_mstate_global->__pyx_n_u_user_data,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 570, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 570, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 570, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_get_table_tags_func", 0) < (0)) __PYX_ERR(1, 570, __pyx_L3_error)

      /* "src/uharfbuzz/_face.pxi":572
 *     def set_get_table_tags_func(self,
 *                                 func: Callable[[Face, object], List[str]],
 *                                 user_data: object = None):             # <<<<<<<<<<<<<<
 *         """Sets the implementation function for retrieving the table tags
 *         of the face.
*/
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_get_table_tags_func", 0, 1, 2, i); __PYX_ERR(1, 570, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 570, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 570, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_func = values[0];
    __pyx_v_user_data = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_get_table_tags_func", 0, 1, 2, __pyx_nargs); __PYX_ERR(1, 570, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.set_get_table_tags_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_10set_get_table_tags_func(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self), __pyx_v_func, __pyx_v_user_data);

  /* "src/uharfbuzz/_face.pxi":570
 *         return Blob.from_ptr(blob)
 * 
 *     def set_get_table_tags_func(self,             # <<<<<<<<<<<<<<
 *                                 func: Callable[[Face, object], List[str]],
 *                                 user_data: object = None):
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_10set_get_table_tags_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_func, PyObject *__pyx_v_user_data) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_get_table_tags_func", 0);

  /* "src/uharfbuzz/_face.pxi":584
 *         <https://harfbuzz.github.io/harfbuzz-hb-face.html#hb-face-set-get-table-tags-func>`_.
 *         """
 *         self._get_table_tags_func = func             # <<<<<<<<<<<<<<
 *         hb_face_set_get_table_tags_func(
 *             self._hb_face, _get_table_tags_func, <void*>user_data, NULL)
*/
  __Pyx_INCREF(__pyx_v_func);
  __Pyx_GIVEREF(__pyx_v_func);
  __Pyx_GOTREF(__pyx_v_self->_get_table_tags_func);
  __Pyx_DECREF(__pyx_v_self->_get_table_tags_func);
  __pyx_v_self->_get_table_tags_func = __pyx_v_func;

  /* "src/uharfbuzz/_face.pxi":585
 *         """
 *         self._get_table_tags_func = func
 *         hb_face_set_get_table_tags_func(             # <<<<<<<<<<<<<<
 *             self._hb_face, _get_table_tags_func, <void*>user_data, NULL)
 * 
*/
  hb_face_set_get_table_tags_func(__pyx_v_self->_hb_face, __pyx_f_9uharfbuzz_9_harfbuzz__get_table_tags_func, ((void *)__pyx_v_user_data), NULL);

  /* "src/uharfbuzz/_face.pxi":570
 *         return Blob.from_ptr(blob)
 * 
 *     def set_get_table_tags_func(self,             # <<<<<<<<<<<<<<
 *                                 func: Callable[[Face, object], List[str]],
 *                                 user_data: object = None):
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":588
 *             self._hb_face, _get_table_tags_func, <void*>user_data, NULL)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def table_tags(self) -> List[str]:
 *         """A list of all table tags for the face, if possible.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_10table_tags_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_10table_tags_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_10table_tags___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_10table_tags___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self) {
  unsigned int __pyx_v_tag_count;
  hb_tag_t __pyx_v_tags_array[128];
  PyObject *__pyx_v_tags = 0;
  char __pyx_v_cstr[5];
  unsigned int __pyx_v_i;
  unsigned int __pyx_v_start_offset;
  char *__pyx_v_packed;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  unsigned int __pyx_t_3;
  unsigned int __pyx_t_4;
  unsigned int __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_face.pxi":597
 *         <https://harfbuzz.github.io/harfbuzz-hb-face.html#hb-face-get-table-tags>`_.
 *         """
 *         cdef unsigned int tag_count = STATIC_ARRAY_SIZE             # <<<<<<<<<<<<<<
 *         cdef hb_tag_t tags_array[STATIC_ARRAY_SIZE]
 *         cdef list tags = []
*/
  __pyx_v_tag_count = 0x80;

  /* "src/uharfbuzz/_face.pxi":599
 *         cdef unsigned int tag_count = STATIC_ARRAY_SIZE
 *         cdef hb_tag_t tags_array[STATIC_ARRAY_SIZE]
 *         cdef list tags = []             # <<<<<<<<<<<<<<
 *         cdef char cstr[5]
 *         cdef unsigned int i
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 599, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_tags = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_face.pxi":602
 *         cdef char cstr[5]
 *         cdef unsigned int i
 *         cdef unsigned int start_offset = 0             # <<<<<<<<<<<<<<
 *         while tag_count == STATIC_ARRAY_SIZE:
 *             hb_face_get_table_tags(
*/
  __pyx_v_start_offset = 0;

  /* "src/uharfbuzz/_face.pxi":603
 *         cdef unsigned int i
 *         cdef unsigned int start_offset = 0
 *         while tag_count == STATIC_ARRAY_SIZE:             # <<<<<<<<<<<<<<
 *             hb_face_get_table_tags(
 *                 self._hb_face, start_offset, &tag_count, tags_array)
*/
  while (1) {
    __pyx_t_2 = (__pyx_v_tag_count == 0x80);
    if (!__pyx_t_2) break;

    /* "src/uharfbuzz/_face.pxi":604
 *         cdef unsigned int start_offset = 0
 *         while tag_count == STATIC_ARRAY_SIZE:
 *             hb_face_get_table_tags(             # <<<<<<<<<<<<<<
 *                 self._hb_face, start_offset, &tag_count, tags_array)
 *             for i in range(tag_count):
*/
    (void)(hb_face_get_table_tags(__pyx_v_self->_hb_face, __pyx_v_start_offset, (&__pyx_v_tag_count), __pyx_v_tags_array));

    /* "src/uharfbuzz/_face.pxi":606
 *             hb_face_get_table_tags(
 *                 self._hb_face, start_offset, &tag_count, tags_array)
 *             for i in range(tag_count):             # <<<<<<<<<<<<<<
 *                 hb_tag_to_string(tags_array[i], cstr)
 *                 cstr[4] = b'\0'
*/
    __pyx_t_3 = __pyx_v_tag_count;
    __pyx_t_4 = __pyx_t_3;
    for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) {
      __pyx_v_i = __pyx_t_5;

      /* "src/uharfbuzz/_face.pxi":607
 *                 self._hb_face, start_offset, &tag_count, tags_array)
 *             for i in range(tag_count):
 *                 hb_tag_to_string(tags_array[i], cstr)             # <<<<<<<<<<<<<<
 *                 cstr[4] = b'\0'
 *                 packed = cstr
*/
      hb_tag_to_string((__pyx_v_tags_array[__pyx_v_i]), __pyx_v_cstr);

      /* "src/uharfbuzz/_face.pxi":608
 *             for i in range(tag_count):
 *                 hb_tag_to_string(tags_array[i], cstr)
 *                 cstr[4] = b'\0'             # <<<<<<<<<<<<<<
 *                 packed = cstr
 *                 tags.append(packed.decode())
*/
      (__pyx_v_cstr[4]) = '\x00';

      /* "src/uharfbuzz/_face.pxi":609
 *                 hb_tag_to_string(tags_array[i], cstr)
 *                 cstr[4] = b'\0'
 *                 packed = cstr             # <<<<<<<<<<<<<<
 *                 tags.append(packed.decode())
 *             start_offset += tag_count
*/
      __pyx_v_packed = __pyx_v_cstr;

      /* "src/uharfbuzz/_face.pxi":610
 *                 cstr[4] = b'\0'
 *                 packed = cstr
 *                 tags.append(packed.decode())             # <<<<<<<<<<<<<<
 *             start_offset += tag_count
 *         return tags
*/
      __pyx_t_6 = __Pyx_ssize_strlen(__pyx_v_packed); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(1, 610, __pyx_L1_error)
      __pyx_t_1 = __Pyx_decode_c_string(__pyx_v_packed, 0, __pyx_t_6, NULL, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 610, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_7 = __Pyx_PyList_Append(__pyx_v_tags, __pyx_t_1); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(1, 610, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    }

    /* "src/uharfbuzz/_face.pxi":611
 *                 packed = cstr
 *                 tags.append(packed.decode())
 *             start_offset += tag_count             # <<<<<<<<<<<<<<
 *         return tags
 * 
*/
    __pyx_v_start_offset = (__pyx_v_start_offset + __pyx_v_tag_count);
  }

  /* "src/uharfbuzz/_face.pxi":612
 *                 tags.append(packed.decode())
 *             start_offset += tag_count
 *         return tags             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_tags);
  __pyx_r = __pyx_v_tags;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":588
 *             self._hb_face, _get_table_tags_func, <void*>user_data, NULL)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def table_tags(self) -> List[str]:
 *         """A list of all table tags for the face, if possible.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.table_tags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_tags);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":614
 *         return tags
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def unicodes (self) -> Set[int]:
 *         """All Unicode characters covered by the face.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_8unicodes_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_8unicodes_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_8unicodes___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_8unicodes___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_s = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_face.pxi":623
 *         <https://harfbuzz.github.io/harfbuzz-hb-face.html#hb-face-collect-unicodes>`_.
 *         """
 *         s = Set()             # <<<<<<<<<<<<<<
 *         hb_face_collect_unicodes(self._hb_face, s._hb_set)
 *         return s
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 623, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_s = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_face.pxi":624
 *         """
 *         s = Set()
 *         hb_face_collect_unicodes(self._hb_face, s._hb_set)             # <<<<<<<<<<<<<<
 *         return s
 * 
*/
  hb_face_collect_unicodes(__pyx_v_self->_hb_face, __pyx_v_s->_hb_set);

  /* "src/uharfbuzz/_face.pxi":625
 *         s = Set()
 *         hb_face_collect_unicodes(self._hb_face, s._hb_set)
 *         return s             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_s);
  __pyx_r = ((PyObject *)__pyx_v_s);
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":614
 *         return tags
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def unicodes (self) -> Set[int]:
 *         """All Unicode characters covered by the face.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.unicodes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_s);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":627
 *         return s
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def variation_selectors(self) -> Set[int]:
 *         """All Unicode "Variation Selector" characters covered by the face.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_19variation_selectors_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_19variation_selectors_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_19variation_selectors___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_19variation_selectors___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_s = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_face.pxi":636
 *         <https://harfbuzz.github.io/harfbuzz-hb-face.html#hb-face-collect-variation-selectors>`_.
 *         """
 *         s = Set()             # <<<<<<<<<<<<<<
 *         hb_face_collect_variation_selectors(self._hb_face, s._hb_set)
 *         return s
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 636, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_s = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_face.pxi":637
 *         """
 *         s = Set()
 *         hb_face_collect_variation_selectors(self._hb_face, s._hb_set)             # <<<<<<<<<<<<<<
 *         return s
 * 
*/
  hb_face_collect_variation_selectors(__pyx_v_self->_hb_face, __pyx_v_s->_hb_set);

  /* "src/uharfbuzz/_face.pxi":638
 *         s = Set()
 *         hb_face_collect_variation_selectors(self._hb_face, s._hb_set)
 *         return s             # <<<<<<<<<<<<<<
 * 
 *     def variation_unicodes(self, variation_selector: int) -> Set[int]:
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_s);
  __pyx_r = ((PyObject *)__pyx_v_s);
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":627
 *         return s
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def variation_selectors(self) -> Set[int]:
 *         """All Unicode "Variation Selector" characters covered by the face.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.variation_selectors.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_s);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":640
 *         return s
 * 
 *     def variation_unicodes(self, variation_selector: int) -> Set[int]:             # <<<<<<<<<<<<<<
 *         """All Unicode characters for ``variation_selector`` covered by the
 *         face.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_13variation_unicodes(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Face_12variation_unicodes, "All Unicode characters for ``variation_selector`` covered by the\n        face.\n\n        :param variation_selector: The Variation Selector to query.\n\n        :returns: The :class:`Set` of Unicode characters.\n\n        Wraps `hb_face_collect_variation_unicodes()\n        <https://harfbuzz.github.io/harfbuzz-hb-face.html#hb-face-collect-variation-unicodes>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_13variation_unicodes = {"variation_unicodes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_13variation_unicodes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_12variation_unicodes};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_13variation_unicodes(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_variation_selector = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("variation_unicodes (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_variation_selector,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 640, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 640, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "variation_unicodes", 0) < (0)) __PYX_ERR(1, 640, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("variation_unicodes", 1, 1, 1, i); __PYX_ERR(1, 640, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 640, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "variation_selector", 0) < (0)) __PYX_ERR(1, 640, __pyx_L3_error)
    __pyx_v_variation_selector = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("variation_unicodes", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 640, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.variation_unicodes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_variation_selector), (&PyLong_Type), 0, "variation_selector", 2))) __PYX_ERR(1, 640, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_12variation_unicodes(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self), __pyx_v_variation_selector);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_12variation_unicodes(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_variation_selector) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_v_s = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  hb_codepoint_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("variation_unicodes", 0);

  /* "src/uharfbuzz/_face.pxi":651
 *         <https://harfbuzz.github.io/harfbuzz-hb-face.html#hb-face-collect-variation-unicodes>`_.
 *         """
 *         s = Set()             # <<<<<<<<<<<<<<
 *         hb_face_collect_variation_unicodes(self._hb_face, variation_selector, s._hb_set)
 *         return s
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 651, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_s = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_face.pxi":652
 *         """
 *         s = Set()
 *         hb_face_collect_variation_unicodes(self._hb_face, variation_selector, s._hb_set)             # <<<<<<<<<<<<<<
 *         return s
 * 
*/
  __pyx_t_4 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_variation_selector); if (unlikely((__pyx_t_4 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(1, 652, __pyx_L1_error)
  hb_face_collect_variation_unicodes(__pyx_v_self->_hb_face, __pyx_t_4, __pyx_v_s->_hb_set);

  /* "src/uharfbuzz/_face.pxi":653
 *         s = Set()
 *         hb_face_collect_variation_unicodes(self._hb_face, variation_selector, s._hb_set)
 *         return s             # <<<<<<<<<<<<<<
 * 
 *     # variations
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_s);
  __pyx_r = ((PyObject *)__pyx_v_s);
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":640
 *         return s
 * 
 *     def variation_unicodes(self, variation_selector: int) -> Set[int]:             # <<<<<<<<<<<<<<
 *         """All Unicode characters for ``variation_selector`` covered by the
 *         face.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.variation_unicodes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_s);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":656
 * 
 *     # variations
 *     @property             # <<<<<<<<<<<<<<
 *     def has_var_data(self) -> bool:
 *         """Whether the face includes any OpenType variation data in the
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_12has_var_data_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_12has_var_data_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_12has_var_data___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_12has_var_data___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_face.pxi":664
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-var.html#hb-ot-var-has-data>`_.
 *         """
 *         return hb_ot_var_has_data(self._hb_face)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_hb_bool_t(hb_ot_var_has_data(__pyx_v_self->_hb_face)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 664, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":656
 * 
 *     # variations
 *     @property             # <<<<<<<<<<<<<<
 *     def has_var_data(self) -> bool:
 *         """Whether the face includes any OpenType variation data in the
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.has_var_data.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":666
 *         return hb_ot_var_has_data(self._hb_face)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def axis_infos(self) -> List[OTVarAxisInfo]:
 *         """A list of all variation axes in the face.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_10axis_infos_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_10axis_infos_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_10axis_infos___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_10axis_infos___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self) {
  unsigned int __pyx_v_axis_count;
  hb_ot_var_axis_info_t __pyx_v_axis_array[128];
  PyObject *__pyx_v_infos = 0;
  char __pyx_v_cstr[5];
  PyObject *__pyx_v_packed = 0;
  unsigned int __pyx_v_i;
  unsigned int __pyx_v_start_offset;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  unsigned int __pyx_t_3;
  unsigned int __pyx_t_4;
  unsigned int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  size_t __pyx_t_15;
  PyObject *__pyx_t_16 = NULL;
  int __pyx_t_17;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_face.pxi":675
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-var.html#hb-ot-var-get-axis-infos>`_.
 *         """
 *         cdef unsigned int axis_count = STATIC_ARRAY_SIZE             # <<<<<<<<<<<<<<
 *         cdef hb_ot_var_axis_info_t axis_array[STATIC_ARRAY_SIZE]
 *         cdef list infos = []
*/
  __pyx_v_axis_count = 0x80;

  /* "src/uharfbuzz/_face.pxi":677
 *         cdef unsigned int axis_count = STATIC_ARRAY_SIZE
 *         cdef hb_ot_var_axis_info_t axis_array[STATIC_ARRAY_SIZE]
 *         cdef list infos = []             # <<<<<<<<<<<<<<
 *         cdef char cstr[5]
 *         cdef bytes packed
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 677, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_infos = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_face.pxi":681
 *         cdef bytes packed
 *         cdef unsigned int i
 *         cdef unsigned int start_offset = 0             # <<<<<<<<<<<<<<
 *         while axis_count == STATIC_ARRAY_SIZE:
 *             hb_ot_var_get_axis_infos(
*/
  __pyx_v_start_offset = 0;

  /* "src/uharfbuzz/_face.pxi":682
 *         cdef unsigned int i
 *         cdef unsigned int start_offset = 0
 *         while axis_count == STATIC_ARRAY_SIZE:             # <<<<<<<<<<<<<<
 *             hb_ot_var_get_axis_infos(
 *                 self._hb_face, start_offset, &axis_count, axis_array)
*/
  while (1) {
    __pyx_t_2 = (__pyx_v_axis_count == 0x80);
    if (!__pyx_t_2) break;

    /* "src/uharfbuzz/_face.pxi":683
 *         cdef unsigned int start_offset = 0
 *         while axis_count == STATIC_ARRAY_SIZE:
 *             hb_ot_var_get_axis_infos(             # <<<<<<<<<<<<<<
 *                 self._hb_face, start_offset, &axis_count, axis_array)
 *             for i in range(axis_count):
*/
    (void)(hb_ot_var_get_axis_infos(__pyx_v_self->_hb_face, __pyx_v_start_offset, (&__pyx_v_axis_count), __pyx_v_axis_array));

    /* "src/uharfbuzz/_face.pxi":685
 *             hb_ot_var_get_axis_infos(
 *                 self._hb_face, start_offset, &axis_count, axis_array)
 *             for i in range(axis_count):             # <<<<<<<<<<<<<<
 *                 hb_tag_to_string(axis_array[i].tag, cstr)
 *                 cstr[4] = b'\0'
*/
    __pyx_t_3 = __pyx_v_axis_count;
    __pyx_t_4 = __pyx_t_3;
    for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) {
      __pyx_v_i = __pyx_t_5;

      /* "src/uharfbuzz/_face.pxi":686
 *                 self._hb_face, start_offset, &axis_count, axis_array)
 *             for i in range(axis_count):
 *                 hb_tag_to_string(axis_array[i].tag, cstr)             # <<<<<<<<<<<<<<
 *                 cstr[4] = b'\0'
 *                 packed = cstr
*/
      hb_tag_to_string((__pyx_v_axis_array[__pyx_v_i]).tag, __pyx_v_cstr);

      /* "src/uharfbuzz/_face.pxi":687
 *             for i in range(axis_count):
 *                 hb_tag_to_string(axis_array[i].tag, cstr)
 *                 cstr[4] = b'\0'             # <<<<<<<<<<<<<<
 *                 packed = cstr
 *                 infos.append(
*/
      (__pyx_v_cstr[4]) = '\x00';

      /* "src/uharfbuzz/_face.pxi":688
 *                 hb_tag_to_string(axis_array[i].tag, cstr)
 *                 cstr[4] = b'\0'
 *                 packed = cstr             # <<<<<<<<<<<<<<
 *                 infos.append(
 *                     OTVarAxisInfo(
*/
      __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_cstr); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 688, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_XDECREF_SET(__pyx_v_packed, ((PyObject*)__pyx_t_1));
      __pyx_t_1 = 0;

      /* "src/uharfbuzz/_face.pxi":690
 *                 packed = cstr
 *                 infos.append(
 *                     OTVarAxisInfo(             # <<<<<<<<<<<<<<
 *                         axis_index=axis_array[i].axis_index,
 *                         tag=packed.decode(),
*/
      __pyx_t_6 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_OTVarAxisInfo); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 690, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);

      /* "src/uharfbuzz/_face.pxi":691
 *                 infos.append(
 *                     OTVarAxisInfo(
 *                         axis_index=axis_array[i].axis_index,             # <<<<<<<<<<<<<<
 *                         tag=packed.decode(),
 *                         name_id=axis_array[i].name_id,
*/
      __pyx_t_8 = __Pyx_PyLong_From_unsigned_int((__pyx_v_axis_array[__pyx_v_i]).axis_index); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 691, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);

      /* "src/uharfbuzz/_face.pxi":692
 *                     OTVarAxisInfo(
 *                         axis_index=axis_array[i].axis_index,
 *                         tag=packed.decode(),             # <<<<<<<<<<<<<<
 *                         name_id=axis_array[i].name_id,
 *                         flags=axis_array[i].flags,
*/
      __pyx_t_9 = __Pyx_decode_bytes(__pyx_v_packed, 0, PY_SSIZE_T_MAX, NULL, NULL, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 692, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);

      /* "src/uharfbuzz/_face.pxi":693
 *                         axis_index=axis_array[i].axis_index,
 *                         tag=packed.decode(),
 *                         name_id=axis_array[i].name_id,             # <<<<<<<<<<<<<<
 *                         flags=axis_array[i].flags,
 *                         min_value=axis_array[i].min_value,
*/
      __pyx_t_10 = __Pyx_PyLong_From_hb_ot_name_id_t((__pyx_v_axis_array[__pyx_v_i]).name_id); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 693, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);

      /* "src/uharfbuzz/_face.pxi":694
 *                         tag=packed.decode(),
 *                         name_id=axis_array[i].name_id,
 *                         flags=axis_array[i].flags,             # <<<<<<<<<<<<<<
 *                         min_value=axis_array[i].min_value,
 *                         default_value=axis_array[i].default_value,
*/
      __pyx_t_11 = __Pyx_PyLong_From_hb_ot_var_axis_flags_t((__pyx_v_axis_array[__pyx_v_i]).flags); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 694, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);

      /* "src/uharfbuzz/_face.pxi":695
 *                         name_id=axis_array[i].name_id,
 *                         flags=axis_array[i].flags,
 *                         min_value=axis_array[i].min_value,             # <<<<<<<<<<<<<<
 *                         default_value=axis_array[i].default_value,
 *                         max_value=axis_array[i].max_value
*/
      __pyx_t_12 = PyFloat_FromDouble((__pyx_v_axis_array[__pyx_v_i]).min_value); if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 695, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);

      /* "src/uharfbuzz/_face.pxi":696
 *                         flags=axis_array[i].flags,
 *                         min_value=axis_array[i].min_value,
 *                         default_value=axis_array[i].default_value,             # <<<<<<<<<<<<<<
 *                         max_value=axis_array[i].max_value
 *                     )
*/
      __pyx_t_13 = PyFloat_FromDouble((__pyx_v_axis_array[__pyx_v_i]).default_value); if (unlikely(!__pyx_t_13)) __PYX_ERR(1, 696, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);

      /* "src/uharfbuzz/_face.pxi":697
 *                         min_value=axis_array[i].min_value,
 *                         default_value=axis_array[i].default_value,
 *                         max_value=axis_array[i].max_value             # <<<<<<<<<<<<<<
 *                     )
 *                 )
*/
      __pyx_t_14 = PyFloat_FromDouble((__pyx_v_axis_array[__pyx_v_i]).max_value); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 697, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      __pyx_t_15 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_7))) {
        __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
        assert(__pyx_t_6);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
        __pyx_t_15 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 7 : 0)] = {__pyx_t_6, NULL};
        __pyx_t_16 = __Pyx_MakeVectorcallBuilderKwds(7); if (unlikely(!__pyx_t_16)) __PYX_ERR(1, 690, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_16);
        if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_axis_index, __pyx_t_8, __pyx_t_16, __pyx_callargs+1, 0) < (0)) __PYX_ERR(1, 690, __pyx_L1_error)
        if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_tag, __pyx_t_9, __pyx_t_16, __pyx_callargs+1, 1) < (0)) __PYX_ERR(1, 690, __pyx_L1_error)
        if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_name_id, __pyx_t_10, __pyx_t_16, __pyx_callargs+1, 2) < (0)) __PYX_ERR(1, 690, __pyx_L1_error)
        if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_flags, __pyx_t_11, __pyx_t_16, __pyx_callargs+1, 3) < (0)) __PYX_ERR(1, 690, __pyx_L1_error)
        if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_min_value, __pyx_t_12, __pyx_t_16, __pyx_callargs+1, 4) < (0)) __PYX_ERR(1, 690, __pyx_L1_error)
        if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_default_value, __pyx_t_13, __pyx_t_16, __pyx_callargs+1, 5) < (0)) __PYX_ERR(1, 690, __pyx_L1_error)
        if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_max_value, __pyx_t_14, __pyx_t_16, __pyx_callargs+1, 6) < (0)) __PYX_ERR(1, 690, __pyx_L1_error)
        __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_15, (1-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_16);
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
        __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 690, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }

      /* "src/uharfbuzz/_face.pxi":689
 *                 cstr[4] = b'\0'
 *                 packed = cstr
 *                 infos.append(             # <<<<<<<<<<<<<<
 *                     OTVarAxisInfo(
 *                         axis_index=axis_array[i].axis_index,
*/
      __pyx_t_17 = __Pyx_PyList_Append(__pyx_v_infos, __pyx_t_1); if (unlikely(__pyx_t_17 == ((int)-1))) __PYX_ERR(1, 689, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    }

    /* "src/uharfbuzz/_face.pxi":700
 *                     )
 *                 )
 *             start_offset += axis_count             # <<<<<<<<<<<<<<
 *         return infos
 * 
*/
    __pyx_v_start_offset = (__pyx_v_start_offset + __pyx_v_axis_count);
  }

  /* "src/uharfbuzz/_face.pxi":701
 *                 )
 *             start_offset += axis_count
 *         return infos             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_infos);
  __pyx_r = __pyx_v_infos;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":666
 *         return hb_ot_var_has_data(self._hb_face)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def axis_infos(self) -> List[OTVarAxisInfo]:
 *         """A list of all variation axes in the face.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_XDECREF(__pyx_t_16);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.axis_infos.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_infos);
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":703
 *         return infos
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def named_instances(self) -> List[OTVarNamedInstance]:
 *         """The named instances defined in the face's ``fvar`` table.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_15named_instances_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_15named_instances_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_15named_instances___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_15named_instances___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self) {
  PyObject *__pyx_v_instances = NULL;
  hb_face_t *__pyx_v_face;
  unsigned int __pyx_v_instance_count;
  unsigned int __pyx_v_axis_count;
  float *__pyx_v_coords;
  unsigned int __pyx_v_coord_length;
  unsigned int __pyx_v_i;
  unsigned int __pyx_8genexpr4__pyx_v_j;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  hb_face_t *__pyx_t_2;
  unsigned int __pyx_t_3;
  unsigned int __pyx_t_4;
  unsigned int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  unsigned int __pyx_t_11;
  unsigned int __pyx_t_12;
  unsigned int __pyx_t_13;
  PyObject *__pyx_t_14 = NULL;
  size_t __pyx_t_15;
  int __pyx_t_16;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_face.pxi":718
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-var.html#hb-ot-var-named-instance-get-design-coords>`_.
 *         """
 *         instances = []             # <<<<<<<<<<<<<<
 *         cdef hb_face_t* face = self._hb_face
 *         cdef unsigned int instance_count = hb_ot_var_get_named_instance_count(face)
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 718, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_instances = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_face.pxi":719
 *         """
 *         instances = []
 *         cdef hb_face_t* face = self._hb_face             # <<<<<<<<<<<<<<
 *         cdef unsigned int instance_count = hb_ot_var_get_named_instance_count(face)
 *         cdef unsigned int axis_count = hb_ot_var_get_axis_count(face)
*/
  __pyx_t_2 = __pyx_v_self->_hb_face;
  __pyx_v_face = __pyx_t_2;

  /* "src/uharfbuzz/_face.pxi":720
 *         instances = []
 *         cdef hb_face_t* face = self._hb_face
 *         cdef unsigned int instance_count = hb_ot_var_get_named_instance_count(face)             # <<<<<<<<<<<<<<
 *         cdef unsigned int axis_count = hb_ot_var_get_axis_count(face)
 *         cdef hb_ot_name_id_t subfamily_name_id
*/
  __pyx_v_instance_count = hb_ot_var_get_named_instance_count(__pyx_v_face);

  /* "src/uharfbuzz/_face.pxi":721
 *         cdef hb_face_t* face = self._hb_face
 *         cdef unsigned int instance_count = hb_ot_var_get_named_instance_count(face)
 *         cdef unsigned int axis_count = hb_ot_var_get_axis_count(face)             # <<<<<<<<<<<<<<
 *         cdef hb_ot_name_id_t subfamily_name_id
 *         cdef hb_ot_name_id_t postscript_name_id
*/
  __pyx_v_axis_count = hb_ot_var_get_axis_count(__pyx_v_face);

  /* "src/uharfbuzz/_face.pxi":724
 *         cdef hb_ot_name_id_t subfamily_name_id
 *         cdef hb_ot_name_id_t postscript_name_id
 *         cdef float* coords = <float*>malloc(axis_count * sizeof(float))             # <<<<<<<<<<<<<<
 *         cdef unsigned int coord_length
 *         for i in range(instance_count):
*/
  __pyx_v_coords = ((float *)malloc((__pyx_v_axis_count * (sizeof(float)))));

  /* "src/uharfbuzz/_face.pxi":726
 *         cdef float* coords = <float*>malloc(axis_count * sizeof(float))
 *         cdef unsigned int coord_length
 *         for i in range(instance_count):             # <<<<<<<<<<<<<<
 *             coord_length = axis_count
 *             hb_ot_var_named_instance_get_design_coords(face, i, &coord_length, coords)
*/
  __pyx_t_3 = __pyx_v_instance_count;
  __pyx_t_4 = __pyx_t_3;
  for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) {
    __pyx_v_i = __pyx_t_5;

    /* "src/uharfbuzz/_face.pxi":727
 *         cdef unsigned int coord_length
 *         for i in range(instance_count):
 *             coord_length = axis_count             # <<<<<<<<<<<<<<
 *             hb_ot_var_named_instance_get_design_coords(face, i, &coord_length, coords)
 *             instances.append(
*/
    __pyx_v_coord_length = __pyx_v_axis_count;

    /* "src/uharfbuzz/_face.pxi":728
 *         for i in range(instance_count):
 *             coord_length = axis_count
 *             hb_ot_var_named_instance_get_design_coords(face, i, &coord_length, coords)             # <<<<<<<<<<<<<<
 *             instances.append(
 *                 OTVarNamedInstance(
*/
    (void)(hb_ot_var_named_instance_get_design_coords(__pyx_v_face, __pyx_v_i, (&__pyx_v_coord_length), __pyx_v_coords));

    /* "src/uharfbuzz/_face.pxi":730
 *             hb_ot_var_named_instance_get_design_coords(face, i, &coord_length, coords)
 *             instances.append(
 *                 OTVarNamedInstance(             # <<<<<<<<<<<<<<
 *                     subfamily_name_id=hb_ot_var_named_instance_get_subfamily_name_id(face, i),
 *                     postscript_name_id=hb_ot_var_named_instance_get_postscript_name_id(face, i),
*/
    __pyx_t_6 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_OTVarNamedInstance); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 730, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);

    /* "src/uharfbuzz/_face.pxi":731
 *             instances.append(
 *                 OTVarNamedInstance(
 *                     subfamily_name_id=hb_ot_var_named_instance_get_subfamily_name_id(face, i),             # <<<<<<<<<<<<<<
 *                     postscript_name_id=hb_ot_var_named_instance_get_postscript_name_id(face, i),
 *                     design_coords=[coords[j] for j in range(coord_length)],
*/
    __pyx_t_8 = __Pyx_PyLong_From_hb_ot_name_id_t(hb_ot_var_named_instance_get_subfamily_name_id(__pyx_v_face, __pyx_v_i)); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 731, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);

    /* "src/uharfbuzz/_face.pxi":732
 *                 OTVarNamedInstance(
 *                     subfamily_name_id=hb_ot_var_named_instance_get_subfamily_name_id(face, i),
 *                     postscript_name_id=hb_ot_var_named_instance_get_postscript_name_id(face, i),             # <<<<<<<<<<<<<<
 *                     design_coords=[coords[j] for j in range(coord_length)],
 *                 )
*/
    __pyx_t_9 = __Pyx_PyLong_From_hb_ot_name_id_t(hb_ot_var_named_instance_get_postscript_name_id(__pyx_v_face, __pyx_v_i)); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 732, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    { /* enter inner scope */

      /* "src/uharfbuzz/_face.pxi":733
 *                     subfamily_name_id=hb_ot_var_named_instance_get_subfamily_name_id(face, i),
 *                     postscript_name_id=hb_ot_var_named_instance_get_postscript_name_id(face, i),
 *                     design_coords=[coords[j] for j in range(coord_length)],             # <<<<<<<<<<<<<<
 *                 )
 *             )
*/
      __pyx_t_10 = PyList_New(0); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 733, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __pyx_t_11 = __pyx_v_coord_length;
      __pyx_t_12 = __pyx_t_11;
      for (__pyx_t_13 = 0; __pyx_t_13 < __pyx_t_12; __pyx_t_13+=1) {
        __pyx_8genexpr4__pyx_v_j = __pyx_t_13;
        __pyx_t_14 = PyFloat_FromDouble((__pyx_v_coords[__pyx_8genexpr4__pyx_v_j])); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 733, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_10, (PyObject*)__pyx_t_14))) __PYX_ERR(1, 733, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      }
    } /* exit inner scope */
    __pyx_t_15 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
      assert(__pyx_t_6);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
      __pyx_t_15 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 3 : 0)] = {__pyx_t_6, NULL};
      __pyx_t_14 = __Pyx_MakeVectorcallBuilderKwds(3); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 730, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_subfamily_name_id, __pyx_t_8, __pyx_t_14, __pyx_callargs+1, 0) < (0)) __PYX_ERR(1, 730, __pyx_L1_error)
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_postscript_name_id, __pyx_t_9, __pyx_t_14, __pyx_callargs+1, 1) < (0)) __PYX_ERR(1, 730, __pyx_L1_error)
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_design_coords, __pyx_t_10, __pyx_t_14, __pyx_callargs+1, 2) < (0)) __PYX_ERR(1, 730, __pyx_L1_error)
      __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_15, (1-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_14);
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 730, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }

    /* "src/uharfbuzz/_face.pxi":729
 *             coord_length = axis_count
 *             hb_ot_var_named_instance_get_design_coords(face, i, &coord_length, coords)
 *             instances.append(             # <<<<<<<<<<<<<<
 *                 OTVarNamedInstance(
 *                     subfamily_name_id=hb_ot_var_named_instance_get_subfamily_name_id(face, i),
*/
    __pyx_t_16 = __Pyx_PyList_Append(__pyx_v_instances, __pyx_t_1); if (unlikely(__pyx_t_16 == ((int)-1))) __PYX_ERR(1, 729, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "src/uharfbuzz/_face.pxi":736
 *                 )
 *             )
 *         free(coords)             # <<<<<<<<<<<<<<
 *         return instances
 * 
*/
  free(__pyx_v_coords);

  /* "src/uharfbuzz/_face.pxi":737
 *             )
 *         free(coords)
 *         return instances             # <<<<<<<<<<<<<<
 * 
 *     # math
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_instances);
  __pyx_r = __pyx_v_instances;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":703
 *         return infos
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def named_instances(self) -> List[OTVarNamedInstance]:
 *         """The named instances defined in the face's ``fvar`` table.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.named_instances.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_instances);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":740
 * 
 *     # math
 *     @property             # <<<<<<<<<<<<<<
 *     def has_math_data(self) -> bool:
 *         """Whether the face has a ``MATH`` table.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_13has_math_data_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_13has_math_data_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_13has_math_data___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_13has_math_data___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_face.pxi":747
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-math.html#hb-ot-math-has-data>`_.
 *         """
 *         return hb_ot_math_has_data(self._hb_face)             # <<<<<<<<<<<<<<
 * 
 *     def is_glyph_extended_math_shape(self, glyph: int) -> bool:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_hb_bool_t(hb_ot_math_has_data(__pyx_v_self->_hb_face)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 747, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":740
 * 
 *     # math
 *     @property             # <<<<<<<<<<<<<<
 *     def has_math_data(self) -> bool:
 *         """Whether the face has a ``MATH`` table.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.has_math_data.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":749
 *         return hb_ot_math_has_data(self._hb_face)
 * 
 *     def is_glyph_extended_math_shape(self, glyph: int) -> bool:             # <<<<<<<<<<<<<<
 *         """Tests whether the given glyph index is an extended shape in the
 *         face.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_15is_glyph_extended_math_shape(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Face_14is_glyph_extended_math_shape, "Tests whether the given glyph index is an extended shape in the\n        face.\n\n        :param glyph: The glyph index to test.\n\n        :returns: ``True`` if the glyph is an extended shape, ``False``\n            otherwise.\n\n        Wraps `hb_ot_math_is_glyph_extended_shape()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-math.html#hb-ot-math-is-glyph-extended-shape>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_15is_glyph_extended_math_shape = {"is_glyph_extended_math_shape", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_15is_glyph_extended_math_shape, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_14is_glyph_extended_math_shape};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_15is_glyph_extended_math_shape(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_glyph = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_glyph_extended_math_shape (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_glyph,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 749, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 749, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "is_glyph_extended_math_shape", 0) < (0)) __PYX_ERR(1, 749, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("is_glyph_extended_math_shape", 1, 1, 1, i); __PYX_ERR(1, 749, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 749, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "glyph", 0) < (0)) __PYX_ERR(1, 749, __pyx_L3_error)
    __pyx_v_glyph = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("is_glyph_extended_math_shape", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 749, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.is_glyph_extended_math_shape", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_glyph), (&PyLong_Type), 0, "glyph", 2))) __PYX_ERR(1, 749, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_14is_glyph_extended_math_shape(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self), __pyx_v_glyph);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_14is_glyph_extended_math_shape(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_glyph) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  hb_codepoint_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("is_glyph_extended_math_shape", 0);

  /* "src/uharfbuzz/_face.pxi":761
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-math.html#hb-ot-math-is-glyph-extended-shape>`_.
 *         """
 *         return hb_ot_math_is_glyph_extended_shape(self._hb_face, glyph)             # <<<<<<<<<<<<<<
 * 
 *     # color
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_glyph); if (unlikely((__pyx_t_1 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(1, 761, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyLong_From_hb_bool_t(hb_ot_math_is_glyph_extended_shape(__pyx_v_self->_hb_face, __pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 761, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":749
 *         return hb_ot_math_has_data(self._hb_face)
 * 
 *     def is_glyph_extended_math_shape(self, glyph: int) -> bool:             # <<<<<<<<<<<<<<
 *         """Tests whether the given glyph index is an extended shape in the
 *         face.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.is_glyph_extended_math_shape", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":764
 * 
 *     # color
 *     @property             # <<<<<<<<<<<<<<
 *     def has_color_layers(self) -> bool:
 *         """Whether the face includes a ``COLR`` table with data according to
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_16has_color_layers_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_16has_color_layers_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_16has_color_layers___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_16has_color_layers___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_face.pxi":772
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-color.html#hb-ot-color-has-layers>`_.
 *         """
 *         return hb_ot_color_has_layers(self._hb_face)             # <<<<<<<<<<<<<<
 * 
 *     def get_glyph_color_layers(self, glyph: int) -> List[OTColorLayer]:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_hb_bool_t(hb_ot_color_has_layers(__pyx_v_self->_hb_face)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 772, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":764
 * 
 *     # color
 *     @property             # <<<<<<<<<<<<<<
 *     def has_color_layers(self) -> bool:
 *         """Whether the face includes a ``COLR`` table with data according to
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.has_color_layers.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":774
 *         return hb_ot_color_has_layers(self._hb_face)
 * 
 *     def get_glyph_color_layers(self, glyph: int) -> List[OTColorLayer]:             # <<<<<<<<<<<<<<
 *         """Fetches a list of all color layers for the specified glyph index in
 *         the face.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_17get_glyph_color_layers(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Face_16get_glyph_color_layers, "Fetches a list of all color layers for the specified glyph index in\n        the face.\n\n        :param glyph: The glyph index to query.\n\n        :returns: The array of layers found.\n\n        Wraps `hb_ot_color_glyph_get_layers()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-color.html#hb-ot-color-glyph-get-layers>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_17get_glyph_color_layers = {"get_glyph_color_layers", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_17get_glyph_color_layers, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_16get_glyph_color_layers};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_17get_glyph_color_layers(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_glyph = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_glyph_color_layers (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_glyph,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 774, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 774, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_glyph_color_layers", 0) < (0)) __PYX_ERR(1, 774, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_glyph_color_layers", 1, 1, 1, i); __PYX_ERR(1, 774, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 774, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "glyph", 0) < (0)) __PYX_ERR(1, 774, __pyx_L3_error)
    __pyx_v_glyph = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_glyph_color_layers", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 774, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.get_glyph_color_layers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_glyph), (&PyLong_Type), 0, "glyph", 2))) __PYX_ERR(1, 774, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_16get_glyph_color_layers(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self), __pyx_v_glyph);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_16get_glyph_color_layers(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_glyph) {
  PyObject *__pyx_v_ret = 0;
  unsigned int __pyx_v_i;
  unsigned int __pyx_v_start_offset;
  unsigned int __pyx_v_layer_count;
  hb_ot_color_layer_t __pyx_v_layers[128];
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  hb_codepoint_t __pyx_t_3;
  unsigned int __pyx_t_4;
  unsigned int __pyx_t_5;
  unsigned int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  size_t __pyx_t_11;
  int __pyx_t_12;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_glyph_color_layers", 0);

  /* "src/uharfbuzz/_face.pxi":785
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-color.html#hb-ot-color-glyph-get-layers>`_.
 *         """
 *         cdef list ret = []             # <<<<<<<<<<<<<<
 *         cdef unsigned int i
 *         cdef unsigned int start_offset = 0
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 785, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_ret = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_face.pxi":787
 *         cdef list ret = []
 *         cdef unsigned int i
 *         cdef unsigned int start_offset = 0             # <<<<<<<<<<<<<<
 *         cdef unsigned int layer_count = STATIC_ARRAY_SIZE
 *         cdef hb_ot_color_layer_t layers[STATIC_ARRAY_SIZE]
*/
  __pyx_v_start_offset = 0;

  /* "src/uharfbuzz/_face.pxi":788
 *         cdef unsigned int i
 *         cdef unsigned int start_offset = 0
 *         cdef unsigned int layer_count = STATIC_ARRAY_SIZE             # <<<<<<<<<<<<<<
 *         cdef hb_ot_color_layer_t layers[STATIC_ARRAY_SIZE]
 *         while layer_count == STATIC_ARRAY_SIZE:
*/
  __pyx_v_layer_count = 0x80;

  /* "src/uharfbuzz/_face.pxi":790
 *         cdef unsigned int layer_count = STATIC_ARRAY_SIZE
 *         cdef hb_ot_color_layer_t layers[STATIC_ARRAY_SIZE]
 *         while layer_count == STATIC_ARRAY_SIZE:             # <<<<<<<<<<<<<<
 *             hb_ot_color_glyph_get_layers(self._hb_face, glyph, start_offset, &layer_count, layers)
 *             for i in range(layer_count):
*/
  while (1) {
    __pyx_t_2 = (__pyx_v_layer_count == 0x80);
    if (!__pyx_t_2) break;

    /* "src/uharfbuzz/_face.pxi":791
 *         cdef hb_ot_color_layer_t layers[STATIC_ARRAY_SIZE]
 *         while layer_count == STATIC_ARRAY_SIZE:
 *             hb_ot_color_glyph_get_layers(self._hb_face, glyph, start_offset, &layer_count, layers)             # <<<<<<<<<<<<<<
 *             for i in range(layer_count):
 *                 ret.append(OTColorLayer(layers[i].glyph, layers[i].color_index))
*/
    __pyx_t_3 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_glyph); if (unlikely((__pyx_t_3 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(1, 791, __pyx_L1_error)
    (void)(hb_ot_color_glyph_get_layers(__pyx_v_self->_hb_face, __pyx_t_3, __pyx_v_start_offset, (&__pyx_v_layer_count), __pyx_v_layers));

    /* "src/uharfbuzz/_face.pxi":792
 *         while layer_count == STATIC_ARRAY_SIZE:
 *             hb_ot_color_glyph_get_layers(self._hb_face, glyph, start_offset, &layer_count, layers)
 *             for i in range(layer_count):             # <<<<<<<<<<<<<<
 *                 ret.append(OTColorLayer(layers[i].glyph, layers[i].color_index))
 *             start_offset += layer_count
*/
    __pyx_t_4 = __pyx_v_layer_count;
    __pyx_t_5 = __pyx_t_4;
    for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
      __pyx_v_i = __pyx_t_6;

      /* "src/uharfbuzz/_face.pxi":793
 *             hb_ot_color_glyph_get_layers(self._hb_face, glyph, start_offset, &layer_count, layers)
 *             for i in range(layer_count):
 *                 ret.append(OTColorLayer(layers[i].glyph, layers[i].color_index))             # <<<<<<<<<<<<<<
 *             start_offset += layer_count
 *         return ret
*/
      __pyx_t_7 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_OTColorLayer); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 793, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = __Pyx_PyLong_From_hb_codepoint_t((__pyx_v_layers[__pyx_v_i]).glyph); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 793, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_10 = __Pyx_PyLong_From_unsigned_int((__pyx_v_layers[__pyx_v_i]).color_index); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 793, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __pyx_t_11 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_8))) {
        __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
        assert(__pyx_t_7);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_8, __pyx__function);
        __pyx_t_11 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[3] = {__pyx_t_7, __pyx_t_9, __pyx_t_10};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_8, __pyx_callargs+__pyx_t_11, (3-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 793, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __pyx_t_12 = __Pyx_PyList_Append(__pyx_v_ret, __pyx_t_1); if (unlikely(__pyx_t_12 == ((int)-1))) __PYX_ERR(1, 793, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    }

    /* "src/uharfbuzz/_face.pxi":794
 *             for i in range(layer_count):
 *                 ret.append(OTColorLayer(layers[i].glyph, layers[i].color_index))
 *             start_offset += layer_count             # <<<<<<<<<<<<<<
 *         return ret
 * 
*/
    __pyx_v_start_offset = (__pyx_v_start_offset + __pyx_v_layer_count);
  }

  /* "src/uharfbuzz/_face.pxi":795
 *                 ret.append(OTColorLayer(layers[i].glyph, layers[i].color_index))
 *             start_offset += layer_count
 *         return ret             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_ret);
  __pyx_r = __pyx_v_ret;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":774
 *         return hb_ot_color_has_layers(self._hb_face)
 * 
 *     def get_glyph_color_layers(self, glyph: int) -> List[OTColorLayer]:             # <<<<<<<<<<<<<<
 *         """Fetches a list of all color layers for the specified glyph index in
 *         the face.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.get_glyph_color_layers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_ret);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":797
 *         return ret
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def has_color_palettes(self) -> bool:
 *         """Whether the face includes a ``CPAL`` color-palette table.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_18has_color_palettes_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_18has_color_palettes_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_18has_color_palettes___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_18has_color_palettes___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_face.pxi":804
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-color.html#hb-ot-color-has-palettes>`_.
 *         """
 *         return hb_ot_color_has_palettes(self._hb_face)             # <<<<<<<<<<<<<<
 * 
 *     def get_color_palette(self, palette_index: int) -> OTColorPalette:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_hb_bool_t(hb_ot_color_has_palettes(__pyx_v_self->_hb_face)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 804, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":797
 *         return ret
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def has_color_palettes(self) -> bool:
 *         """Whether the face includes a ``CPAL`` color-palette table.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.has_color_palettes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":806
 *         return hb_ot_color_has_palettes(self._hb_face)
 * 
 *     def get_color_palette(self, palette_index: int) -> OTColorPalette:             # <<<<<<<<<<<<<<
 *         """Fetches the color palette at the specified index.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_19get_color_palette(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Face_18get_color_palette, "Fetches the color palette at the specified index.\n\n        :param palette_index: The index of the color palette.\n\n        :returns: An :class:`OTColorPalette` with the colors, name ID, and\n            flags of the palette.\n\n        Wraps `hb_ot_color_palette_get_colors()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-color.html#hb-ot-color-palette-get-colors>`_,\n        `hb_ot_color_palette_get_name_id()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-color.html#hb-ot-color-palette-get-name-id>`_,\n        and `hb_ot_color_palette_get_flags()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-color.html#hb-ot-color-palette-get-flags>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_19get_color_palette = {"get_color_palette", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_19get_color_palette, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_18get_color_palette};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_19get_color_palette(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_palette_index = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_color_palette (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_palette_index,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 806, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 806, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_color_palette", 0) < (0)) __PYX_ERR(1, 806, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_color_palette", 1, 1, 1, i); __PYX_ERR(1, 806, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 806, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "palette_index", 0) < (0)) __PYX_ERR(1, 806, __pyx_L3_error)
    __pyx_v_palette_index = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_color_palette", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 806, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.get_color_palette", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_palette_index), (&PyLong_Type), 0, "palette_index", 2))) __PYX_ERR(1, 806, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_18get_color_palette(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self), __pyx_v_palette_index);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_18get_color_palette(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_palette_index) {
  hb_face_t *__pyx_v_face;
  PyObject *__pyx_v_colors = 0;
  unsigned int __pyx_v_i;
  unsigned int __pyx_v_start_offset;
  unsigned int __pyx_v_color_count;
  hb_color_t __pyx_v_c_colors[128];
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  hb_face_t *__pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  unsigned int __pyx_t_4;
  unsigned int __pyx_t_5;
  unsigned int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  size_t __pyx_t_10;
  int __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_color_palette", 0);

  /* "src/uharfbuzz/_face.pxi":821
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-color.html#hb-ot-color-palette-get-flags>`_.
 *         """
 *         cdef hb_face_t* face = self._hb_face             # <<<<<<<<<<<<<<
 *         cdef list colors = []
 *         cdef unsigned int i
*/
  __pyx_t_1 = __pyx_v_self->_hb_face;
  __pyx_v_face = __pyx_t_1;

  /* "src/uharfbuzz/_face.pxi":822
 *         """
 *         cdef hb_face_t* face = self._hb_face
 *         cdef list colors = []             # <<<<<<<<<<<<<<
 *         cdef unsigned int i
 *         cdef unsigned int start_offset = 0
*/
  __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 822, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_colors = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "src/uharfbuzz/_face.pxi":824
 *         cdef list colors = []
 *         cdef unsigned int i
 *         cdef unsigned int start_offset = 0             # <<<<<<<<<<<<<<
 *         cdef unsigned int color_count = STATIC_ARRAY_SIZE
 *         cdef hb_color_t c_colors[STATIC_ARRAY_SIZE]
*/
  __pyx_v_start_offset = 0;

  /* "src/uharfbuzz/_face.pxi":825
 *         cdef unsigned int i
 *         cdef unsigned int start_offset = 0
 *         cdef unsigned int color_count = STATIC_ARRAY_SIZE             # <<<<<<<<<<<<<<
 *         cdef hb_color_t c_colors[STATIC_ARRAY_SIZE]
 *         while color_count == STATIC_ARRAY_SIZE:
*/
  __pyx_v_color_count = 0x80;

  /* "src/uharfbuzz/_face.pxi":827
 *         cdef unsigned int color_count = STATIC_ARRAY_SIZE
 *         cdef hb_color_t c_colors[STATIC_ARRAY_SIZE]
 *         while color_count == STATIC_ARRAY_SIZE:             # <<<<<<<<<<<<<<
 *             hb_ot_color_palette_get_colors(face, palette_index, start_offset, &color_count, c_colors)
 *             for i in range(color_count):
*/
  while (1) {
    __pyx_t_3 = (__pyx_v_color_count == 0x80);
    if (!__pyx_t_3) break;

    /* "src/uharfbuzz/_face.pxi":828
 *         cdef hb_color_t c_colors[STATIC_ARRAY_SIZE]
 *         while color_count == STATIC_ARRAY_SIZE:
 *             hb_ot_color_palette_get_colors(face, palette_index, start_offset, &color_count, c_colors)             # <<<<<<<<<<<<<<
 *             for i in range(color_count):
 *                 colors.append(Color.from_int(c_colors[i]))
*/
    __pyx_t_4 = __Pyx_PyLong_As_unsigned_int(__pyx_v_palette_index); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(1, 828, __pyx_L1_error)
    (void)(hb_ot_color_palette_get_colors(__pyx_v_face, __pyx_t_4, __pyx_v_start_offset, (&__pyx_v_color_count), __pyx_v_c_colors));

    /* "src/uharfbuzz/_face.pxi":829
 *         while color_count == STATIC_ARRAY_SIZE:
 *             hb_ot_color_palette_get_colors(face, palette_index, start_offset, &color_count, c_colors)
 *             for i in range(color_count):             # <<<<<<<<<<<<<<
 *                 colors.append(Color.from_int(c_colors[i]))
 * 
*/
    __pyx_t_4 = __pyx_v_color_count;
    __pyx_t_5 = __pyx_t_4;
    for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
      __pyx_v_i = __pyx_t_6;

      /* "src/uharfbuzz/_face.pxi":830
 *             hb_ot_color_palette_get_colors(face, palette_index, start_offset, &color_count, c_colors)
 *             for i in range(color_count):
 *                 colors.append(Color.from_int(c_colors[i]))             # <<<<<<<<<<<<<<
 * 
 *         return OTColorPalette(
*/
      __pyx_t_7 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_Color); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 830, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_from_int); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 830, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyLong_From_uint32_t((__pyx_v_c_colors[__pyx_v_i])); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 830, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_10 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_9))) {
        __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_9);
        assert(__pyx_t_7);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_9);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_9, __pyx__function);
        __pyx_t_10 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_8};
        __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_9, __pyx_callargs+__pyx_t_10, (2-__pyx_t_10) | (__pyx_t_10*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 830, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __pyx_t_11 = __Pyx_PyList_Append(__pyx_v_colors, __pyx_t_2); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(1, 830, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    }
  }

  /* "src/uharfbuzz/_face.pxi":832
 *                 colors.append(Color.from_int(c_colors[i]))
 * 
 *         return OTColorPalette(             # <<<<<<<<<<<<<<
 *             colors=colors,
 *             name_id=hb_ot_color_palette_get_name_id(face, palette_index),
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_9 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_OTColorPalette); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 832, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);

  /* "src/uharfbuzz/_face.pxi":834
 *         return OTColorPalette(
 *             colors=colors,
 *             name_id=hb_ot_color_palette_get_name_id(face, palette_index),             # <<<<<<<<<<<<<<
 *             flags=OTColorPaletteFlags(hb_ot_color_palette_get_flags(face, palette_index))
 *         )
*/
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_int(__pyx_v_palette_index); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(1, 834, __pyx_L1_error)
  __pyx_t_7 = __Pyx_PyLong_From_hb_ot_name_id_t(hb_ot_color_palette_get_name_id(__pyx_v_face, __pyx_t_4)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 834, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);

  /* "src/uharfbuzz/_face.pxi":835
 *             colors=colors,
 *             name_id=hb_ot_color_palette_get_name_id(face, palette_index),
 *             flags=OTColorPaletteFlags(hb_ot_color_palette_get_flags(face, palette_index))             # <<<<<<<<<<<<<<
 *         )
 * 
*/
  __pyx_t_13 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_14, __pyx_mstate_global->__pyx_n_u_OTColorPaletteFlags); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 835, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_14);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_int(__pyx_v_palette_index); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(1, 835, __pyx_L1_error)
  __pyx_t_15 = __Pyx_PyLong_From_hb_ot_color_palette_flags_t(hb_ot_color_palette_get_flags(__pyx_v_face, __pyx_t_4)); if (unlikely(!__pyx_t_15)) __PYX_ERR(1, 835, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_15);
  __pyx_t_10 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_14))) {
    __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_14);
    assert(__pyx_t_13);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_14);
    __Pyx_INCREF(__pyx_t_13);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_14, __pyx__function);
    __pyx_t_10 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_t_15};
    __pyx_t_12 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_14, __pyx_callargs+__pyx_t_10, (2-__pyx_t_10) | (__pyx_t_10*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
    __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
    if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 835, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
  }
  __pyx_t_10 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_8))) {
    __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8);
    assert(__pyx_t_9);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_8);
    __Pyx_INCREF(__pyx_t_9);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_8, __pyx__function);
    __pyx_t_10 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 3 : 0)] = {__pyx_t_9, NULL};
    __pyx_t_14 = __Pyx_MakeVectorcallBuilderKwds(3); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 832, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_14);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_colors, __pyx_v_colors, __pyx_t_14, __pyx_callargs+1, 0) < (0)) __PYX_ERR(1, 832, __pyx_L1_error)
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_name_id, __pyx_t_7, __pyx_t_14, __pyx_callargs+1, 1) < (0)) __PYX_ERR(1, 832, __pyx_L1_error)
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_flags, __pyx_t_12, __pyx_t_14, __pyx_callargs+1, 2) < (0)) __PYX_ERR(1, 832, __pyx_L1_error)
    __pyx_t_2 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_8, __pyx_callargs+__pyx_t_10, (1-__pyx_t_10) | (__pyx_t_10*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_14);
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 832, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":806
 *         return hb_ot_color_has_palettes(self._hb_face)
 * 
 *     def get_color_palette(self, palette_index: int) -> OTColorPalette:             # <<<<<<<<<<<<<<
 *         """Fetches the color palette at the specified index.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_XDECREF(__pyx_t_15);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.get_color_palette", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_colors);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":838
 *         )
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def color_palettes(self) -> List[OTColorPalette]:
 *         """The face's color palettes.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_14color_palettes_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_14color_palettes_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_14color_palettes___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_14color_palettes___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self) {
  PyObject *__pyx_v_palettes = 0;
  unsigned int __pyx_v_palette_count;
  unsigned int __pyx_v_i;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  unsigned int __pyx_t_2;
  unsigned int __pyx_t_3;
  unsigned int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_face.pxi":847
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-color.html#hb-ot-color-palette-get-count>`_.
 *         """
 *         cdef list palettes = []             # <<<<<<<<<<<<<<
 *         cdef unsigned int palette_count = hb_ot_color_palette_get_count(self._hb_face)
 *         for i in range(palette_count):
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 847, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_palettes = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_face.pxi":848
 *         """
 *         cdef list palettes = []
 *         cdef unsigned int palette_count = hb_ot_color_palette_get_count(self._hb_face)             # <<<<<<<<<<<<<<
 *         for i in range(palette_count):
 *             palettes.append(self.get_color_palette(i))
*/
  __pyx_v_palette_count = hb_ot_color_palette_get_count(__pyx_v_self->_hb_face);

  /* "src/uharfbuzz/_face.pxi":849
 *         cdef list palettes = []
 *         cdef unsigned int palette_count = hb_ot_color_palette_get_count(self._hb_face)
 *         for i in range(palette_count):             # <<<<<<<<<<<<<<
 *             palettes.append(self.get_color_palette(i))
 *         return palettes
*/
  __pyx_t_2 = __pyx_v_palette_count;
  __pyx_t_3 = __pyx_t_2;
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
    __pyx_v_i = __pyx_t_4;

    /* "src/uharfbuzz/_face.pxi":850
 *         cdef unsigned int palette_count = hb_ot_color_palette_get_count(self._hb_face)
 *         for i in range(palette_count):
 *             palettes.append(self.get_color_palette(i))             # <<<<<<<<<<<<<<
 *         return palettes
 * 
*/
    __pyx_t_5 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyLong_From_unsigned_int(__pyx_v_i); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 850, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_6};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_get_color_palette, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 850, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_palettes, __pyx_t_1); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(1, 850, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "src/uharfbuzz/_face.pxi":851
 *         for i in range(palette_count):
 *             palettes.append(self.get_color_palette(i))
 *         return palettes             # <<<<<<<<<<<<<<
 * 
 *     def color_palette_color_get_name_id(self, color_index: int) -> int | None:
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_palettes);
  __pyx_r = __pyx_v_palettes;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":838
 *         )
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def color_palettes(self) -> List[OTColorPalette]:
 *         """The face's color palettes.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.color_palettes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_palettes);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":853
 *         return palettes
 * 
 *     def color_palette_color_get_name_id(self, color_index: int) -> int | None:             # <<<<<<<<<<<<<<
 *         """Fetches the ``name`` table Name ID that provides display names
 *         for the specified color in the face's ``CPAL`` color palette.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_21color_palette_color_get_name_id(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Face_20color_palette_color_get_name_id, "Fetches the ``name`` table Name ID that provides display names\n        for the specified color in the face's ``CPAL`` color palette.\n\n        :param color_index: The index of the color.\n\n        :returns: The Name ID, or ``None`` if the color is not named.\n\n        Wraps `hb_ot_color_palette_color_get_name_id()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-color.html#hb-ot-color-palette-color-get-name-id>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_21color_palette_color_get_name_id = {"color_palette_color_get_name_id", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_21color_palette_color_get_name_id, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_20color_palette_color_get_name_id};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_21color_palette_color_get_name_id(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_color_index = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("color_palette_color_get_name_id (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_color_index,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 853, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 853, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "color_palette_color_get_name_id", 0) < (0)) __PYX_ERR(1, 853, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("color_palette_color_get_name_id", 1, 1, 1, i); __PYX_ERR(1, 853, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 853, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "color_index", 0) < (0)) __PYX_ERR(1, 853, __pyx_L3_error)
    __pyx_v_color_index = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("color_palette_color_get_name_id", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 853, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.color_palette_color_get_name_id", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_color_index), (&PyLong_Type), 0, "color_index", 2))) __PYX_ERR(1, 853, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_20color_palette_color_get_name_id(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self), __pyx_v_color_index);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_20color_palette_color_get_name_id(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_color_index) {
  hb_ot_name_id_t __pyx_v_name_id;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  unsigned int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("color_palette_color_get_name_id", 0);

  /* "src/uharfbuzz/_face.pxi":865
 *         """
 *         cdef hb_ot_name_id_t name_id
 *         name_id =  hb_ot_color_palette_color_get_name_id(self._hb_face, color_index)             # <<<<<<<<<<<<<<
 *         if name_id == HB_OT_NAME_ID_INVALID:
 *             return None
*/
  __pyx_t_1 = __Pyx_PyLong_As_unsigned_int(__pyx_v_color_index); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(1, 865, __pyx_L1_error)
  __pyx_v_name_id = hb_ot_color_palette_color_get_name_id(__pyx_v_self->_hb_face, __pyx_t_1);

  /* "src/uharfbuzz/_face.pxi":866
 *         cdef hb_ot_name_id_t name_id
 *         name_id =  hb_ot_color_palette_color_get_name_id(self._hb_face, color_index)
 *         if name_id == HB_OT_NAME_ID_INVALID:             # <<<<<<<<<<<<<<
 *             return None
 *         return name_id
*/
  __pyx_t_2 = (__pyx_v_name_id == HB_OT_NAME_ID_INVALID);
  if (__pyx_t_2) {

    /* "src/uharfbuzz/_face.pxi":867
 *         name_id =  hb_ot_color_palette_color_get_name_id(self._hb_face, color_index)
 *         if name_id == HB_OT_NAME_ID_INVALID:
 *             return None             # <<<<<<<<<<<<<<
 *         return name_id
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = ((PyObject*)Py_None); __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "src/uharfbuzz/_face.pxi":866
 *         cdef hb_ot_name_id_t name_id
 *         name_id =  hb_ot_color_palette_color_get_name_id(self._hb_face, color_index)
 *         if name_id == HB_OT_NAME_ID_INVALID:             # <<<<<<<<<<<<<<
 *             return None
 *         return name_id
*/
  }

  /* "src/uharfbuzz/_face.pxi":868
 *         if name_id == HB_OT_NAME_ID_INVALID:
 *             return None
 *         return name_id             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __Pyx_PyLong_From_hb_ot_name_id_t(__pyx_v_name_id); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 868, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (__Pyx_PyInt_FromNumber(&__pyx_t_3, NULL, 0) < (0)) __PYX_ERR(1, 868, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":853
 *         return palettes
 * 
 *     def color_palette_color_get_name_id(self, color_index: int) -> int | None:             # <<<<<<<<<<<<<<
 *         """Fetches the ``name`` table Name ID that provides display names
 *         for the specified color in the face's ``CPAL`` color palette.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.color_palette_color_get_name_id", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":870
 *         return name_id
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def has_color_paint(self) -> bool:
 *         """Whether the face includes a ``COLR`` table with data according to
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_15has_color_paint_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_15has_color_paint_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_15has_color_paint___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_15has_color_paint___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_face.pxi":878
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-color.html#hb-ot-color-has-paint>`_.
 *         """
 *         return hb_ot_color_has_paint(self._hb_face)             # <<<<<<<<<<<<<<
 * 
 *     def glyph_has_color_paint(self, glyph: int) -> bool:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_hb_bool_t(hb_ot_color_has_paint(__pyx_v_self->_hb_face)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 878, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":870
 *         return name_id
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def has_color_paint(self) -> bool:
 *         """Whether the face includes a ``COLR`` table with data according to
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.has_color_paint.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":880
 *         return hb_ot_color_has_paint(self._hb_face)
 * 
 *     def glyph_has_color_paint(self, glyph: int) -> bool:             # <<<<<<<<<<<<<<
 *         """Tests whether the face includes COLRv1 paint data for ``glyph``.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_23glyph_has_color_paint(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Face_22glyph_has_color_paint, "Tests whether the face includes COLRv1 paint data for ``glyph``.\n\n        :param glyph: The glyph index to query.\n\n        :returns: ``True`` if data is found, ``False`` otherwise.\n\n        Wraps `hb_ot_color_glyph_has_paint()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-color.html#hb-ot-color-glyph-has-paint>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_23glyph_has_color_paint = {"glyph_has_color_paint", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_23glyph_has_color_paint, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_22glyph_has_color_paint};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_23glyph_has_color_paint(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_glyph = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glyph_has_color_paint (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_glyph,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 880, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 880, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glyph_has_color_paint", 0) < (0)) __PYX_ERR(1, 880, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glyph_has_color_paint", 1, 1, 1, i); __PYX_ERR(1, 880, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 880, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "glyph", 0) < (0)) __PYX_ERR(1, 880, __pyx_L3_error)
    __pyx_v_glyph = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glyph_has_color_paint", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 880, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.glyph_has_color_paint", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_glyph), (&PyLong_Type), 0, "glyph", 2))) __PYX_ERR(1, 880, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_22glyph_has_color_paint(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self), __pyx_v_glyph);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_22glyph_has_color_paint(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_glyph) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  hb_codepoint_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glyph_has_color_paint", 0);

  /* "src/uharfbuzz/_face.pxi":890
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-color.html#hb-ot-color-glyph-has-paint>`_.
 *         """
 *         return hb_ot_color_glyph_has_paint(self._hb_face, glyph)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_glyph); if (unlikely((__pyx_t_1 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(1, 890, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyLong_From_hb_bool_t(hb_ot_color_glyph_has_paint(__pyx_v_self->_hb_face, __pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 890, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":880
 *         return hb_ot_color_has_paint(self._hb_face)
 * 
 *     def glyph_has_color_paint(self, glyph: int) -> bool:             # <<<<<<<<<<<<<<
 *         """Tests whether the face includes COLRv1 paint data for ``glyph``.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.glyph_has_color_paint", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":892
 *         return hb_ot_color_glyph_has_paint(self._hb_face, glyph)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def has_color_svg(self) -> bool:
 *         """Whether the face includes any ``SVG`` glyph images.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_13has_color_svg_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_13has_color_svg_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_13has_color_svg___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_13has_color_svg___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_face.pxi":899
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-color.html#hb-ot-color-has-svg>`_.
 *         """
 *         return hb_ot_color_has_svg(self._hb_face)             # <<<<<<<<<<<<<<
 * 
 *     def get_glyph_color_svg(self, glyph: int) -> Blob:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_hb_bool_t(hb_ot_color_has_svg(__pyx_v_self->_hb_face)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 899, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":892
 *         return hb_ot_color_glyph_has_paint(self._hb_face, glyph)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def has_color_svg(self) -> bool:
 *         """Whether the face includes any ``SVG`` glyph images.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.has_color_svg.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":901
 *         return hb_ot_color_has_svg(self._hb_face)
 * 
 *     def get_glyph_color_svg(self, glyph: int) -> Blob:             # <<<<<<<<<<<<<<
 *         """Fetches the SVG document for a glyph. The blob may be either
 *         plain text or gzip-encoded.
*/

/* Python wrapper */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_25get_glyph_color_svg(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Face_24get_glyph_color_svg, "Fetches the SVG document for a glyph. The blob may be either\n        plain text or gzip-encoded.\n\n        If the glyph has no SVG document, the singleton empty blob is\n        returned.\n\n        :param glyph: An SVG glyph index.\n\n        :returns: A :class:`Blob` with the content of the SVG document.\n\n        Wraps `hb_ot_color_glyph_reference_svg()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-color.html#hb-ot-color-glyph-reference-svg>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_25get_glyph_color_svg = {"get_glyph_color_svg", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_25get_glyph_color_svg, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_24get_glyph_color_svg};
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_25get_glyph_color_svg(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_glyph = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_glyph_color_svg (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_glyph,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 901, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 901, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_glyph_color_svg", 0) < (0)) __PYX_ERR(1, 901, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_glyph_color_svg", 1, 1, 1, i); __PYX_ERR(1, 901, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 901, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "glyph", 0) < (0)) __PYX_ERR(1, 901, __pyx_L3_error)
    __pyx_v_glyph = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_glyph_color_svg", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 901, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.get_glyph_color_svg", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_glyph), (&PyLong_Type), 0, "glyph", 2))) __PYX_ERR(1, 901, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_24get_glyph_color_svg(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self), __pyx_v_glyph);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_24get_glyph_color_svg(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_glyph) {
  hb_blob_t *__pyx_v_blob;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  hb_codepoint_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_glyph_color_svg", 0);

  /* "src/uharfbuzz/_face.pxi":916
 *         """
 *         cdef hb_blob_t* blob
 *         blob = hb_ot_color_glyph_reference_svg(self._hb_face, glyph)             # <<<<<<<<<<<<<<
 *         return Blob.from_ptr(blob)
 * 
*/
  __pyx_t_1 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_glyph); if (unlikely((__pyx_t_1 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(1, 916, __pyx_L1_error)
  __pyx_v_blob = hb_ot_color_glyph_reference_svg(__pyx_v_self->_hb_face, __pyx_t_1);

  /* "src/uharfbuzz/_face.pxi":917
 *         cdef hb_blob_t* blob
 *         blob = hb_ot_color_glyph_reference_svg(self._hb_face, glyph)
 *         return Blob.from_ptr(blob)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_f_9uharfbuzz_9_harfbuzz_4Blob_from_ptr(__pyx_v_blob)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 917, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":901
 *         return hb_ot_color_has_svg(self._hb_face)
 * 
 *     def get_glyph_color_svg(self, glyph: int) -> Blob:             # <<<<<<<<<<<<<<
 *         """Fetches the SVG document for a glyph. The blob may be either
 *         plain text or gzip-encoded.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.get_glyph_color_svg", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":919
 *         return Blob.from_ptr(blob)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def has_color_png(self) -> bool:
 *         """Whether the face has PNG glyph images (either in ``CBDT`` or
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_13has_color_png_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_13has_color_png_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_13has_color_png___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_13has_color_png___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_face.pxi":927
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-color.html#hb-ot-color-has-png>`_.
 *         """
 *         return hb_ot_color_has_png(self._hb_face)             # <<<<<<<<<<<<<<
 * 
 *     # layout
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_hb_bool_t(hb_ot_color_has_png(__pyx_v_self->_hb_face)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 927, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":919
 *         return Blob.from_ptr(blob)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def has_color_png(self) -> bool:
 *         """Whether the face has PNG glyph images (either in ``CBDT`` or
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.has_color_png.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":930
 * 
 *     # layout
 *     @property             # <<<<<<<<<<<<<<
 *     def has_layout_glyph_classes(self) -> bool:
 *         """Whether the face has any glyph classes defined in its GDEF table.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_24has_layout_glyph_classes_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_24has_layout_glyph_classes_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_24has_layout_glyph_classes___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_24has_layout_glyph_classes___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_face.pxi":937
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-layout.html#hb-ot-layout-has-glyph-classes>`_.
 *         """
 *         return hb_ot_layout_has_glyph_classes(self._hb_face)             # <<<<<<<<<<<<<<
 * 
 *     def get_layout_glyph_class(self, glyph: int) -> OTLayoutGlyphClass:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_hb_bool_t(hb_ot_layout_has_glyph_classes(__pyx_v_self->_hb_face)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 937, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":930
 * 
 *     # layout
 *     @property             # <<<<<<<<<<<<<<
 *     def has_layout_glyph_classes(self) -> bool:
 *         """Whether the face has any glyph classes defined in its GDEF table.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.has_layout_glyph_classes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":939
 *         return hb_ot_layout_has_glyph_classes(self._hb_face)
 * 
 *     def get_layout_glyph_class(self, glyph: int) -> OTLayoutGlyphClass:             # <<<<<<<<<<<<<<
 *         """Fetches the GDEF class of the requested glyph.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_27get_layout_glyph_class(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Face_26get_layout_glyph_class, "Fetches the GDEF class of the requested glyph.\n\n        :param glyph: The glyph code point to query.\n\n        :returns: The :class:`OTLayoutGlyphClass` glyph class of the given\n            code point in the GDEF table of the face.\n\n        Wraps `hb_ot_layout_get_glyph_class()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-layout.html#hb-ot-layout-get-glyph-class>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_27get_layout_glyph_class = {"get_layout_glyph_class", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_27get_layout_glyph_class, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_26get_layout_glyph_class};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_27get_layout_glyph_class(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_glyph = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_layout_glyph_class (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_glyph,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 939, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 939, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_layout_glyph_class", 0) < (0)) __PYX_ERR(1, 939, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_layout_glyph_class", 1, 1, 1, i); __PYX_ERR(1, 939, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 939, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "glyph", 0) < (0)) __PYX_ERR(1, 939, __pyx_L3_error)
    __pyx_v_glyph = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_layout_glyph_class", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 939, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.get_layout_glyph_class", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_glyph), (&PyLong_Type), 0, "glyph", 2))) __PYX_ERR(1, 939, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_26get_layout_glyph_class(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self), __pyx_v_glyph);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_26get_layout_glyph_class(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_glyph) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  hb_codepoint_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_layout_glyph_class", 0);

  /* "src/uharfbuzz/_face.pxi":950
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-layout.html#hb-ot-layout-get-glyph-class>`_.
 *         """
 *         return OTLayoutGlyphClass(hb_ot_layout_get_glyph_class(self._hb_face, glyph))             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OTLayoutGlyphClass); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 950, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_glyph); if (unlikely((__pyx_t_4 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(1, 950, __pyx_L1_error)
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_layout_glyph_class_t(hb_ot_layout_get_glyph_class(__pyx_v_self->_hb_face, __pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 950, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_5};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 950, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":939
 *         return hb_ot_layout_has_glyph_classes(self._hb_face)
 * 
 *     def get_layout_glyph_class(self, glyph: int) -> OTLayoutGlyphClass:             # <<<<<<<<<<<<<<
 *         """Fetches the GDEF class of the requested glyph.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.get_layout_glyph_class", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":952
 *         return OTLayoutGlyphClass(hb_ot_layout_get_glyph_class(self._hb_face, glyph))
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def has_layout_positioning(self) -> bool:
 *         """Whether the face includes any GPOS positioning.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_22has_layout_positioning_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_22has_layout_positioning_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_22has_layout_positioning___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_22has_layout_positioning___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_face.pxi":959
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-layout.html#hb-ot-layout-has-positioning>`_.
 *         """
 *         return hb_ot_layout_has_positioning(self._hb_face)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_hb_bool_t(hb_ot_layout_has_positioning(__pyx_v_self->_hb_face)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 959, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":952
 *         return OTLayoutGlyphClass(hb_ot_layout_get_glyph_class(self._hb_face, glyph))
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def has_layout_positioning(self) -> bool:
 *         """Whether the face includes any GPOS positioning.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.has_layout_positioning.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":961
 *         return hb_ot_layout_has_positioning(self._hb_face)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def has_layout_substitution(self) -> bool:
 *         """Whether the face includes any GSUB substitutions.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_23has_layout_substitution_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_23has_layout_substitution_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_23has_layout_substitution___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_23has_layout_substitution___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_face.pxi":968
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-layout.html#hb-ot-layout-has-substitution>`_.
 *         """
 *         return hb_ot_layout_has_substitution(self._hb_face)             # <<<<<<<<<<<<<<
 * 
 *     def get_lookup_glyph_alternates(self, lookup_index: int, glyph: int) -> List[int]:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_hb_bool_t(hb_ot_layout_has_substitution(__pyx_v_self->_hb_face)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 968, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":961
 *         return hb_ot_layout_has_positioning(self._hb_face)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def has_layout_substitution(self) -> bool:
 *         """Whether the face includes any GSUB substitutions.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.has_layout_substitution.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":970
 *         return hb_ot_layout_has_substitution(self._hb_face)
 * 
 *     def get_lookup_glyph_alternates(self, lookup_index: int, glyph: int) -> List[int]:             # <<<<<<<<<<<<<<
 *         """Fetches alternates of a glyph from a given GSUB lookup index.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_29get_lookup_glyph_alternates(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Face_28get_lookup_glyph_alternates, "Fetches alternates of a glyph from a given GSUB lookup index.\n\n        :param lookup_index: Index of the feature lookup to query.\n        :param glyph: A glyph id.\n\n        :returns: Alternate glyphs associated with the glyph id.\n\n        Wraps `hb_ot_layout_lookup_get_glyph_alternates()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-layout.html#hb-ot-layout-lookup-get-glyph-alternates>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_29get_lookup_glyph_alternates = {"get_lookup_glyph_alternates", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_29get_lookup_glyph_alternates, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_28get_lookup_glyph_alternates};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_29get_lookup_glyph_alternates(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_lookup_index = 0;
  PyObject *__pyx_v_glyph = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_lookup_glyph_alternates (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_lookup_index,&__pyx_mstate_global->__pyx_n_u_glyph,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 970, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 970, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 970, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_lookup_glyph_alternates", 0) < (0)) __PYX_ERR(1, 970, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_lookup_glyph_alternates", 1, 2, 2, i); __PYX_ERR(1, 970, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 970, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 970, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "lookup_index", 0) < (0)) __PYX_ERR(1, 970, __pyx_L3_error)
    __pyx_v_lookup_index = ((PyObject*)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "glyph", 0) < (0)) __PYX_ERR(1, 970, __pyx_L3_error)
    __pyx_v_glyph = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_lookup_glyph_alternates", 1, 2, 2, __pyx_nargs); __PYX_ERR(1, 970, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.get_lookup_glyph_alternates", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_lookup_index), (&PyLong_Type), 0, "lookup_index", 2))) __PYX_ERR(1, 970, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_glyph), (&PyLong_Type), 0, "glyph", 2))) __PYX_ERR(1, 970, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_28get_lookup_glyph_alternates(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self), __pyx_v_lookup_index, __pyx_v_glyph);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_28get_lookup_glyph_alternates(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_lookup_index, PyObject *__pyx_v_glyph) {
  PyObject *__pyx_v_alternates = 0;
  unsigned int __pyx_v_i;
  unsigned int __pyx_v_start_offset;
  unsigned int __pyx_v_alternate_count;
  hb_codepoint_t __pyx_v_c_alternates[128];
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  unsigned int __pyx_t_3;
  hb_codepoint_t __pyx_t_4;
  unsigned int __pyx_t_5;
  unsigned int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_lookup_glyph_alternates", 0);

  /* "src/uharfbuzz/_face.pxi":981
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-layout.html#hb-ot-layout-lookup-get-glyph-alternates>`_.
 *         """
 *         cdef list alternates = []             # <<<<<<<<<<<<<<
 *         cdef unsigned int i
 *         cdef unsigned int start_offset = 0
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 981, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_alternates = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_face.pxi":983
 *         cdef list alternates = []
 *         cdef unsigned int i
 *         cdef unsigned int start_offset = 0             # <<<<<<<<<<<<<<
 *         cdef unsigned int alternate_count = STATIC_ARRAY_SIZE
 *         cdef hb_codepoint_t c_alternates[STATIC_ARRAY_SIZE]
*/
  __pyx_v_start_offset = 0;

  /* "src/uharfbuzz/_face.pxi":984
 *         cdef unsigned int i
 *         cdef unsigned int start_offset = 0
 *         cdef unsigned int alternate_count = STATIC_ARRAY_SIZE             # <<<<<<<<<<<<<<
 *         cdef hb_codepoint_t c_alternates[STATIC_ARRAY_SIZE]
 *         while alternate_count == STATIC_ARRAY_SIZE:
*/
  __pyx_v_alternate_count = 0x80;

  /* "src/uharfbuzz/_face.pxi":986
 *         cdef unsigned int alternate_count = STATIC_ARRAY_SIZE
 *         cdef hb_codepoint_t c_alternates[STATIC_ARRAY_SIZE]
 *         while alternate_count == STATIC_ARRAY_SIZE:             # <<<<<<<<<<<<<<
 *             hb_ot_layout_lookup_get_glyph_alternates(self._hb_face, lookup_index, glyph, start_offset,
 *                 &alternate_count, c_alternates)
*/
  while (1) {
    __pyx_t_2 = (__pyx_v_alternate_count == 0x80);
    if (!__pyx_t_2) break;

    /* "src/uharfbuzz/_face.pxi":987
 *         cdef hb_codepoint_t c_alternates[STATIC_ARRAY_SIZE]
 *         while alternate_count == STATIC_ARRAY_SIZE:
 *             hb_ot_layout_lookup_get_glyph_alternates(self._hb_face, lookup_index, glyph, start_offset,             # <<<<<<<<<<<<<<
 *                 &alternate_count, c_alternates)
 *             for i in range(alternate_count):
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_int(__pyx_v_lookup_index); if (unlikely((__pyx_t_3 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(1, 987, __pyx_L1_error)
    __pyx_t_4 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_glyph); if (unlikely((__pyx_t_4 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(1, 987, __pyx_L1_error)

    /* "src/uharfbuzz/_face.pxi":988
 *         while alternate_count == STATIC_ARRAY_SIZE:
 *             hb_ot_layout_lookup_get_glyph_alternates(self._hb_face, lookup_index, glyph, start_offset,
 *                 &alternate_count, c_alternates)             # <<<<<<<<<<<<<<
 *             for i in range(alternate_count):
 *                 alternates.append(c_alternates[i])
*/
    (void)(hb_ot_layout_lookup_get_glyph_alternates(__pyx_v_self->_hb_face, __pyx_t_3, __pyx_t_4, __pyx_v_start_offset, (&__pyx_v_alternate_count), __pyx_v_c_alternates));

    /* "src/uharfbuzz/_face.pxi":989
 *             hb_ot_layout_lookup_get_glyph_alternates(self._hb_face, lookup_index, glyph, start_offset,
 *                 &alternate_count, c_alternates)
 *             for i in range(alternate_count):             # <<<<<<<<<<<<<<
 *                 alternates.append(c_alternates[i])
 *             start_offset += alternate_count
*/
    __pyx_t_3 = __pyx_v_alternate_count;
    __pyx_t_5 = __pyx_t_3;
    for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
      __pyx_v_i = __pyx_t_6;

      /* "src/uharfbuzz/_face.pxi":990
 *                 &alternate_count, c_alternates)
 *             for i in range(alternate_count):
 *                 alternates.append(c_alternates[i])             # <<<<<<<<<<<<<<
 *             start_offset += alternate_count
 *         return alternates
*/
      __pyx_t_1 = __Pyx_PyLong_From_hb_codepoint_t((__pyx_v_c_alternates[__pyx_v_i])); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 990, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_7 = __Pyx_PyList_Append(__pyx_v_alternates, __pyx_t_1); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(1, 990, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    }

    /* "src/uharfbuzz/_face.pxi":991
 *             for i in range(alternate_count):
 *                 alternates.append(c_alternates[i])
 *             start_offset += alternate_count             # <<<<<<<<<<<<<<
 *         return alternates
 * 
*/
    __pyx_v_start_offset = (__pyx_v_start_offset + __pyx_v_alternate_count);
  }

  /* "src/uharfbuzz/_face.pxi":992
 *                 alternates.append(c_alternates[i])
 *             start_offset += alternate_count
 *         return alternates             # <<<<<<<<<<<<<<
 * 
 *     def get_language_feature_tags(self,
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_alternates);
  __pyx_r = __pyx_v_alternates;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":970
 *         return hb_ot_layout_has_substitution(self._hb_face)
 * 
 *     def get_lookup_glyph_alternates(self, lookup_index: int, glyph: int) -> List[int]:             # <<<<<<<<<<<<<<
 *         """Fetches alternates of a glyph from a given GSUB lookup index.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.get_lookup_glyph_alternates", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_alternates);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":994
 *         return alternates
 * 
 *     def get_language_feature_tags(self,             # <<<<<<<<<<<<<<
 *                                   tag: str,
 *                                   script_index: int = 0,
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_31get_language_feature_tags(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Face_30get_language_feature_tags, "Fetches a list of all features in the face's GSUB or GPOS table.\n\n        :param tag: ``\"GSUB\"`` or ``\"GPOS\"``.\n        :param script_index: The index of the requested script tag.\n        :param language_index: The index of the requested language tag.\n\n        :returns: The array of feature tags found for the query.\n\n        Wraps `hb_ot_layout_language_get_feature_tags()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-layout.html#hb-ot-layout-language-get-feature-tags>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_31get_language_feature_tags = {"get_language_feature_tags", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_31get_language_feature_tags, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_30get_language_feature_tags};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_31get_language_feature_tags(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_tag = 0;
  PyObject *__pyx_v_script_index = 0;
  PyObject *__pyx_v_language_index = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_language_feature_tags (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_tag,&__pyx_mstate_global->__pyx_n_u_script_index,&__pyx_mstate_global->__pyx_n_u_language_index,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 994, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(1, 994, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 994, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 994, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_language_feature_tags", 0) < (0)) __PYX_ERR(1, 994, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject*)__pyx_mstate_global->__pyx_int_0));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject*)__pyx_mstate_global->__pyx_int_65535));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_language_feature_tags", 0, 1, 3, i); __PYX_ERR(1, 994, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(1, 994, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 994, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 994, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject*)__pyx_mstate_global->__pyx_int_0));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject*)__pyx_mstate_global->__pyx_int_65535));
    }
    __pyx_v_tag = ((PyObject*)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "script_index", 0) < (0)) __PYX_ERR(1, 996, __pyx_L3_error)
    __pyx_v_script_index = ((PyObject*)values[1]);
    if (__Pyx_PyInt_FromNumber(&values[2], "language_index", 0) < (0)) __PYX_ERR(1, 997, __pyx_L3_error)
    __pyx_v_language_index = ((PyObject*)values[2]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_language_feature_tags", 0, 1, 3, __pyx_nargs); __PYX_ERR(1, 994, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.get_language_feature_tags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tag), (&PyUnicode_Type), 0, "tag", 2))) __PYX_ERR(1, 995, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_script_index), (&PyLong_Type), 0, "script_index", 2))) __PYX_ERR(1, 996, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_language_index), (&PyLong_Type), 0, "language_index", 2))) __PYX_ERR(1, 997, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_30get_language_feature_tags(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self), __pyx_v_tag, __pyx_v_script_index, __pyx_v_language_index);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_30get_language_feature_tags(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_tag, PyObject *__pyx_v_script_index, PyObject *__pyx_v_language_index) {
  PyObject *__pyx_v_packed = 0;
  hb_tag_t __pyx_v_hb_tag;
  unsigned int __pyx_v_feature_count;
  hb_tag_t __pyx_v_c_tags[128];
  PyObject *__pyx_v_tags = 0;
  char __pyx_v_cstr[5];
  unsigned int __pyx_v_i;
  unsigned int __pyx_v_start_offset;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  char *__pyx_t_2;
  int __pyx_t_3;
  unsigned int __pyx_t_4;
  unsigned int __pyx_t_5;
  unsigned int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_language_feature_tags", 0);

  /* "src/uharfbuzz/_face.pxi":1009
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-layout.html#hb-ot-layout-language-get-feature-tags>`_.
 *         """
 *         cdef bytes packed = tag.encode()             # <<<<<<<<<<<<<<
 *         cdef hb_tag_t hb_tag = hb_tag_from_string(<char*>packed, -1)
 *         cdef unsigned int feature_count = STATIC_ARRAY_SIZE
*/
  __pyx_t_1 = PyUnicode_AsEncodedString(__pyx_v_tag, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1009, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_packed = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_face.pxi":1010
 *         """
 *         cdef bytes packed = tag.encode()
 *         cdef hb_tag_t hb_tag = hb_tag_from_string(<char*>packed, -1)             # <<<<<<<<<<<<<<
 *         cdef unsigned int feature_count = STATIC_ARRAY_SIZE
 *         cdef hb_tag_t c_tags[STATIC_ARRAY_SIZE]
*/
  __pyx_t_2 = __Pyx_PyBytes_AsWritableString(__pyx_v_packed); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(1, 1010, __pyx_L1_error)
  __pyx_v_hb_tag = hb_tag_from_string(((char *)__pyx_t_2), -1);

  /* "src/uharfbuzz/_face.pxi":1011
 *         cdef bytes packed = tag.encode()
 *         cdef hb_tag_t hb_tag = hb_tag_from_string(<char*>packed, -1)
 *         cdef unsigned int feature_count = STATIC_ARRAY_SIZE             # <<<<<<<<<<<<<<
 *         cdef hb_tag_t c_tags[STATIC_ARRAY_SIZE]
 *         cdef list tags = []
*/
  __pyx_v_feature_count = 0x80;

  /* "src/uharfbuzz/_face.pxi":1013
 *         cdef unsigned int feature_count = STATIC_ARRAY_SIZE
 *         cdef hb_tag_t c_tags[STATIC_ARRAY_SIZE]
 *         cdef list tags = []             # <<<<<<<<<<<<<<
 *         cdef char cstr[5]
 *         cdef unsigned int i
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1013, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_tags = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_face.pxi":1016
 *         cdef char cstr[5]
 *         cdef unsigned int i
 *         cdef unsigned int start_offset = 0             # <<<<<<<<<<<<<<
 *         while feature_count == STATIC_ARRAY_SIZE:
 *             hb_ot_layout_language_get_feature_tags(
*/
  __pyx_v_start_offset = 0;

  /* "src/uharfbuzz/_face.pxi":1017
 *         cdef unsigned int i
 *         cdef unsigned int start_offset = 0
 *         while feature_count == STATIC_ARRAY_SIZE:             # <<<<<<<<<<<<<<
 *             hb_ot_layout_language_get_feature_tags(
 *                 self._hb_face,
*/
  while (1) {
    __pyx_t_3 = (__pyx_v_feature_count == 0x80);
    if (!__pyx_t_3) break;

    /* "src/uharfbuzz/_face.pxi":1020
 *             hb_ot_layout_language_get_feature_tags(
 *                 self._hb_face,
 *                 hb_tag, script_index,             # <<<<<<<<<<<<<<
 *                 language_index,
 *                 start_offset,
*/
    __pyx_t_4 = __Pyx_PyLong_As_unsigned_int(__pyx_v_script_index); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(1, 1020, __pyx_L1_error)

    /* "src/uharfbuzz/_face.pxi":1021
 *                 self._hb_face,
 *                 hb_tag, script_index,
 *                 language_index,             # <<<<<<<<<<<<<<
 *                 start_offset,
 *                 &feature_count,
*/
    __pyx_t_5 = __Pyx_PyLong_As_unsigned_int(__pyx_v_language_index); if (unlikely((__pyx_t_5 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(1, 1021, __pyx_L1_error)

    /* "src/uharfbuzz/_face.pxi":1018
 *         cdef unsigned int start_offset = 0
 *         while feature_count == STATIC_ARRAY_SIZE:
 *             hb_ot_layout_language_get_feature_tags(             # <<<<<<<<<<<<<<
 *                 self._hb_face,
 *                 hb_tag, script_index,
*/
    (void)(hb_ot_layout_language_get_feature_tags(__pyx_v_self->_hb_face, __pyx_v_hb_tag, __pyx_t_4, __pyx_t_5, __pyx_v_start_offset, (&__pyx_v_feature_count), __pyx_v_c_tags));

    /* "src/uharfbuzz/_face.pxi":1025
 *                 &feature_count,
 *                 c_tags)
 *             for i in range(feature_count):             # <<<<<<<<<<<<<<
 *                 hb_tag_to_string(c_tags[i], cstr)
 *                 cstr[4] = b'\0'
*/
    __pyx_t_5 = __pyx_v_feature_count;
    __pyx_t_4 = __pyx_t_5;
    for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_4; __pyx_t_6+=1) {
      __pyx_v_i = __pyx_t_6;

      /* "src/uharfbuzz/_face.pxi":1026
 *                 c_tags)
 *             for i in range(feature_count):
 *                 hb_tag_to_string(c_tags[i], cstr)             # <<<<<<<<<<<<<<
 *                 cstr[4] = b'\0'
 *                 packed = cstr
*/
      hb_tag_to_string((__pyx_v_c_tags[__pyx_v_i]), __pyx_v_cstr);

      /* "src/uharfbuzz/_face.pxi":1027
 *             for i in range(feature_count):
 *                 hb_tag_to_string(c_tags[i], cstr)
 *                 cstr[4] = b'\0'             # <<<<<<<<<<<<<<
 *                 packed = cstr
 *                 tags.append(packed.decode())
*/
      (__pyx_v_cstr[4]) = '\x00';

      /* "src/uharfbuzz/_face.pxi":1028
 *                 hb_tag_to_string(c_tags[i], cstr)
 *                 cstr[4] = b'\0'
 *                 packed = cstr             # <<<<<<<<<<<<<<
 *                 tags.append(packed.decode())
 *             start_offset += feature_count
*/
      __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_cstr); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1028, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF_SET(__pyx_v_packed, ((PyObject*)__pyx_t_1));
      __pyx_t_1 = 0;

      /* "src/uharfbuzz/_face.pxi":1029
 *                 cstr[4] = b'\0'
 *                 packed = cstr
 *                 tags.append(packed.decode())             # <<<<<<<<<<<<<<
 *             start_offset += feature_count
 *         return tags
*/
      __pyx_t_1 = __Pyx_decode_bytes(__pyx_v_packed, 0, PY_SSIZE_T_MAX, NULL, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1029, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_7 = __Pyx_PyList_Append(__pyx_v_tags, __pyx_t_1); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(1, 1029, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    }

    /* "src/uharfbuzz/_face.pxi":1030
 *                 packed = cstr
 *                 tags.append(packed.decode())
 *             start_offset += feature_count             # <<<<<<<<<<<<<<
 *         return tags
 * 
*/
    __pyx_v_start_offset = (__pyx_v_start_offset + __pyx_v_feature_count);
  }

  /* "src/uharfbuzz/_face.pxi":1031
 *                 tags.append(packed.decode())
 *             start_offset += feature_count
 *         return tags             # <<<<<<<<<<<<<<
 * 
 *     def get_script_language_tags(self, tag: str, script_index: int = 0) -> List[str]:
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_tags);
  __pyx_r = __pyx_v_tags;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":994
 *         return alternates
 * 
 *     def get_language_feature_tags(self,             # <<<<<<<<<<<<<<
 *                                   tag: str,
 *                                   script_index: int = 0,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.get_language_feature_tags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_XDECREF(__pyx_v_tags);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":1033
 *         return tags
 * 
 *     def get_script_language_tags(self, tag: str, script_index: int = 0) -> List[str]:             # <<<<<<<<<<<<<<
 *         """Fetches a list of language tags in the face's GSUB or GPOS table,
 *         underneath the specified script index.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_33get_script_language_tags(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Face_32get_script_language_tags, "Fetches a list of language tags in the face's GSUB or GPOS table,\n        underneath the specified script index.\n\n        :param tag: ``\"GSUB\"`` or ``\"GPOS\"``.\n        :param script_index: The index of the requested script tag.\n\n        :returns: Array of language tags found in the table.\n\n        Wraps `hb_ot_layout_script_get_language_tags()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-layout.html#hb-ot-layout-script-get-language-tags>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_33get_script_language_tags = {"get_script_language_tags", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_33get_script_language_tags, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_32get_script_language_tags};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_33get_script_language_tags(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_tag = 0;
  PyObject *__pyx_v_script_index = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_script_language_tags (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_tag,&__pyx_mstate_global->__pyx_n_u_script_index,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 1033, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 1033, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1033, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_script_language_tags", 0) < (0)) __PYX_ERR(1, 1033, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject*)__pyx_mstate_global->__pyx_int_0));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_script_language_tags", 0, 1, 2, i); __PYX_ERR(1, 1033, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 1033, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1033, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject*)__pyx_mstate_global->__pyx_int_0));
    }
    __pyx_v_tag = ((PyObject*)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "script_index", 0) < (0)) __PYX_ERR(1, 1033, __pyx_L3_error)
    __pyx_v_script_index = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_script_language_tags", 0, 1, 2, __pyx_nargs); __PYX_ERR(1, 1033, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.get_script_language_tags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tag), (&PyUnicode_Type), 0, "tag", 2))) __PYX_ERR(1, 1033, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_script_index), (&PyLong_Type), 0, "script_index", 2))) __PYX_ERR(1, 1033, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_32get_script_language_tags(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self), __pyx_v_tag, __pyx_v_script_index);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_32get_script_language_tags(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_tag, PyObject *__pyx_v_script_index) {
  PyObject *__pyx_v_packed = 0;
  hb_tag_t __pyx_v_hb_tag;
  unsigned int __pyx_v_language_count;
  hb_tag_t __pyx_v_c_tags[128];
  PyObject *__pyx_v_tags = 0;
  char __pyx_v_cstr[5];
  unsigned int __pyx_v_i;
  unsigned int __pyx_v_start_offset;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  char *__pyx_t_2;
  int __pyx_t_3;
  unsigned int __pyx_t_4;
  unsigned int __pyx_t_5;
  unsigned int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_script_language_tags", 0);

  /* "src/uharfbuzz/_face.pxi":1045
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-layout.html#hb-ot-layout-script-get-language-tags>`_.
 *         """
 *         cdef bytes packed = tag.encode()             # <<<<<<<<<<<<<<
 *         cdef hb_tag_t hb_tag = hb_tag_from_string(<char*>packed, -1)
 *         cdef unsigned int language_count = STATIC_ARRAY_SIZE
*/
  __pyx_t_1 = PyUnicode_AsEncodedString(__pyx_v_tag, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1045, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_packed = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_face.pxi":1046
 *         """
 *         cdef bytes packed = tag.encode()
 *         cdef hb_tag_t hb_tag = hb_tag_from_string(<char*>packed, -1)             # <<<<<<<<<<<<<<
 *         cdef unsigned int language_count = STATIC_ARRAY_SIZE
 *         cdef hb_tag_t c_tags[STATIC_ARRAY_SIZE]
*/
  __pyx_t_2 = __Pyx_PyBytes_AsWritableString(__pyx_v_packed); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(1, 1046, __pyx_L1_error)
  __pyx_v_hb_tag = hb_tag_from_string(((char *)__pyx_t_2), -1);

  /* "src/uharfbuzz/_face.pxi":1047
 *         cdef bytes packed = tag.encode()
 *         cdef hb_tag_t hb_tag = hb_tag_from_string(<char*>packed, -1)
 *         cdef unsigned int language_count = STATIC_ARRAY_SIZE             # <<<<<<<<<<<<<<
 *         cdef hb_tag_t c_tags[STATIC_ARRAY_SIZE]
 *         cdef list tags = []
*/
  __pyx_v_language_count = 0x80;

  /* "src/uharfbuzz/_face.pxi":1049
 *         cdef unsigned int language_count = STATIC_ARRAY_SIZE
 *         cdef hb_tag_t c_tags[STATIC_ARRAY_SIZE]
 *         cdef list tags = []             # <<<<<<<<<<<<<<
 *         cdef char cstr[5]
 *         cdef unsigned int i
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1049, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_tags = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_face.pxi":1052
 *         cdef char cstr[5]
 *         cdef unsigned int i
 *         cdef unsigned int start_offset = 0             # <<<<<<<<<<<<<<
 *         while language_count == STATIC_ARRAY_SIZE:
 *             hb_ot_layout_script_get_language_tags(
*/
  __pyx_v_start_offset = 0;

  /* "src/uharfbuzz/_face.pxi":1053
 *         cdef unsigned int i
 *         cdef unsigned int start_offset = 0
 *         while language_count == STATIC_ARRAY_SIZE:             # <<<<<<<<<<<<<<
 *             hb_ot_layout_script_get_language_tags(
 *                 self._hb_face,
*/
  while (1) {
    __pyx_t_3 = (__pyx_v_language_count == 0x80);
    if (!__pyx_t_3) break;

    /* "src/uharfbuzz/_face.pxi":1057
 *                 self._hb_face,
 *                 hb_tag,
 *                 script_index,             # <<<<<<<<<<<<<<
 *                 start_offset,
 *                 &language_count,
*/
    __pyx_t_4 = __Pyx_PyLong_As_unsigned_int(__pyx_v_script_index); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(1, 1057, __pyx_L1_error)

    /* "src/uharfbuzz/_face.pxi":1054
 *         cdef unsigned int start_offset = 0
 *         while language_count == STATIC_ARRAY_SIZE:
 *             hb_ot_layout_script_get_language_tags(             # <<<<<<<<<<<<<<
 *                 self._hb_face,
 *                 hb_tag,
*/
    (void)(hb_ot_layout_script_get_language_tags(__pyx_v_self->_hb_face, __pyx_v_hb_tag, __pyx_t_4, __pyx_v_start_offset, (&__pyx_v_language_count), __pyx_v_c_tags));

    /* "src/uharfbuzz/_face.pxi":1061
 *                 &language_count,
 *                 c_tags)
 *             for i in range(language_count):             # <<<<<<<<<<<<<<
 *                 hb_tag_to_string(c_tags[i], cstr)
 *                 cstr[4] = b'\0'
*/
    __pyx_t_4 = __pyx_v_language_count;
    __pyx_t_5 = __pyx_t_4;
    for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
      __pyx_v_i = __pyx_t_6;

      /* "src/uharfbuzz/_face.pxi":1062
 *                 c_tags)
 *             for i in range(language_count):
 *                 hb_tag_to_string(c_tags[i], cstr)             # <<<<<<<<<<<<<<
 *                 cstr[4] = b'\0'
 *                 packed = cstr
*/
      hb_tag_to_string((__pyx_v_c_tags[__pyx_v_i]), __pyx_v_cstr);

      /* "src/uharfbuzz/_face.pxi":1063
 *             for i in range(language_count):
 *                 hb_tag_to_string(c_tags[i], cstr)
 *                 cstr[4] = b'\0'             # <<<<<<<<<<<<<<
 *                 packed = cstr
 *                 tags.append(packed.decode())
*/
      (__pyx_v_cstr[4]) = '\x00';

      /* "src/uharfbuzz/_face.pxi":1064
 *                 hb_tag_to_string(c_tags[i], cstr)
 *                 cstr[4] = b'\0'
 *                 packed = cstr             # <<<<<<<<<<<<<<
 *                 tags.append(packed.decode())
 *             start_offset += language_count
*/
      __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_cstr); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1064, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF_SET(__pyx_v_packed, ((PyObject*)__pyx_t_1));
      __pyx_t_1 = 0;

      /* "src/uharfbuzz/_face.pxi":1065
 *                 cstr[4] = b'\0'
 *                 packed = cstr
 *                 tags.append(packed.decode())             # <<<<<<<<<<<<<<
 *             start_offset += language_count
 *         return tags
*/
      __pyx_t_1 = __Pyx_decode_bytes(__pyx_v_packed, 0, PY_SSIZE_T_MAX, NULL, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1065, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_7 = __Pyx_PyList_Append(__pyx_v_tags, __pyx_t_1); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(1, 1065, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    }

    /* "src/uharfbuzz/_face.pxi":1066
 *                 packed = cstr
 *                 tags.append(packed.decode())
 *             start_offset += language_count             # <<<<<<<<<<<<<<
 *         return tags
 * 
*/
    __pyx_v_start_offset = (__pyx_v_start_offset + __pyx_v_language_count);
  }

  /* "src/uharfbuzz/_face.pxi":1067
 *                 tags.append(packed.decode())
 *             start_offset += language_count
 *         return tags             # <<<<<<<<<<<<<<
 * 
 *     def get_table_script_tags(self, tag: str) -> List[str]:
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_tags);
  __pyx_r = __pyx_v_tags;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":1033
 *         return tags
 * 
 *     def get_script_language_tags(self, tag: str, script_index: int = 0) -> List[str]:             # <<<<<<<<<<<<<<
 *         """Fetches a list of language tags in the face's GSUB or GPOS table,
 *         underneath the specified script index.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.get_script_language_tags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_XDECREF(__pyx_v_tags);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":1069
 *         return tags
 * 
 *     def get_table_script_tags(self, tag: str) -> List[str]:             # <<<<<<<<<<<<<<
 *         """Fetches a list of all scripts enumerated in the specified face's
 *         GSUB or GPOS table.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_35get_table_script_tags(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Face_34get_table_script_tags, "Fetches a list of all scripts enumerated in the specified face's\n        GSUB or GPOS table.\n\n        :param tag: ``\"GSUB\"`` or ``\"GPOS\"``.\n\n        :returns: The array of script tags found for the query.\n\n        Wraps `hb_ot_layout_table_get_script_tags()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-layout.html#hb-ot-layout-table-get-script-tags>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_35get_table_script_tags = {"get_table_script_tags", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_35get_table_script_tags, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_34get_table_script_tags};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_35get_table_script_tags(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_tag = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_table_script_tags (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_tag,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 1069, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1069, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_table_script_tags", 0) < (0)) __PYX_ERR(1, 1069, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_table_script_tags", 1, 1, 1, i); __PYX_ERR(1, 1069, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1069, __pyx_L3_error)
    }
    __pyx_v_tag = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_table_script_tags", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 1069, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.get_table_script_tags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tag), (&PyUnicode_Type), 0, "tag", 2))) __PYX_ERR(1, 1069, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_34get_table_script_tags(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self), __pyx_v_tag);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_34get_table_script_tags(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_tag) {
  PyObject *__pyx_v_packed = 0;
  hb_tag_t __pyx_v_hb_tag;
  unsigned int __pyx_v_script_count;
  hb_tag_t __pyx_v_c_tags[128];
  PyObject *__pyx_v_tags = 0;
  char __pyx_v_cstr[5];
  unsigned int __pyx_v_i;
  unsigned int __pyx_v_start_offset;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  char *__pyx_t_2;
  int __pyx_t_3;
  unsigned int __pyx_t_4;
  unsigned int __pyx_t_5;
  unsigned int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_table_script_tags", 0);

  /* "src/uharfbuzz/_face.pxi":1080
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-layout.html#hb-ot-layout-table-get-script-tags>`_.
 *         """
 *         cdef bytes packed = tag.encode()             # <<<<<<<<<<<<<<
 *         cdef hb_tag_t hb_tag = hb_tag_from_string(<char*>packed, -1)
 *         cdef unsigned int script_count = STATIC_ARRAY_SIZE
*/
  __pyx_t_1 = PyUnicode_AsEncodedString(__pyx_v_tag, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1080, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_packed = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_face.pxi":1081
 *         """
 *         cdef bytes packed = tag.encode()
 *         cdef hb_tag_t hb_tag = hb_tag_from_string(<char*>packed, -1)             # <<<<<<<<<<<<<<
 *         cdef unsigned int script_count = STATIC_ARRAY_SIZE
 *         cdef hb_tag_t c_tags[STATIC_ARRAY_SIZE]
*/
  __pyx_t_2 = __Pyx_PyBytes_AsWritableString(__pyx_v_packed); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(1, 1081, __pyx_L1_error)
  __pyx_v_hb_tag = hb_tag_from_string(((char *)__pyx_t_2), -1);

  /* "src/uharfbuzz/_face.pxi":1082
 *         cdef bytes packed = tag.encode()
 *         cdef hb_tag_t hb_tag = hb_tag_from_string(<char*>packed, -1)
 *         cdef unsigned int script_count = STATIC_ARRAY_SIZE             # <<<<<<<<<<<<<<
 *         cdef hb_tag_t c_tags[STATIC_ARRAY_SIZE]
 *         cdef list tags = []
*/
  __pyx_v_script_count = 0x80;

  /* "src/uharfbuzz/_face.pxi":1084
 *         cdef unsigned int script_count = STATIC_ARRAY_SIZE
 *         cdef hb_tag_t c_tags[STATIC_ARRAY_SIZE]
 *         cdef list tags = []             # <<<<<<<<<<<<<<
 *         cdef char cstr[5]
 *         cdef unsigned int i
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1084, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_tags = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_face.pxi":1087
 *         cdef char cstr[5]
 *         cdef unsigned int i
 *         cdef unsigned int start_offset = 0             # <<<<<<<<<<<<<<
 *         while script_count == STATIC_ARRAY_SIZE:
 *             hb_ot_layout_table_get_script_tags(
*/
  __pyx_v_start_offset = 0;

  /* "src/uharfbuzz/_face.pxi":1088
 *         cdef unsigned int i
 *         cdef unsigned int start_offset = 0
 *         while script_count == STATIC_ARRAY_SIZE:             # <<<<<<<<<<<<<<
 *             hb_ot_layout_table_get_script_tags(
 *                 self._hb_face,
*/
  while (1) {
    __pyx_t_3 = (__pyx_v_script_count == 0x80);
    if (!__pyx_t_3) break;

    /* "src/uharfbuzz/_face.pxi":1089
 *         cdef unsigned int start_offset = 0
 *         while script_count == STATIC_ARRAY_SIZE:
 *             hb_ot_layout_table_get_script_tags(             # <<<<<<<<<<<<<<
 *                 self._hb_face,
 *                 hb_tag,
*/
    (void)(hb_ot_layout_table_get_script_tags(__pyx_v_self->_hb_face, __pyx_v_hb_tag, __pyx_v_start_offset, (&__pyx_v_script_count), __pyx_v_c_tags));

    /* "src/uharfbuzz/_face.pxi":1095
 *                 &script_count,
 *                 c_tags)
 *             for i in range(script_count):             # <<<<<<<<<<<<<<
 *                 hb_tag_to_string(c_tags[i], cstr)
 *                 cstr[4] = b'\0'
*/
    __pyx_t_4 = __pyx_v_script_count;
    __pyx_t_5 = __pyx_t_4;
    for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
      __pyx_v_i = __pyx_t_6;

      /* "src/uharfbuzz/_face.pxi":1096
 *                 c_tags)
 *             for i in range(script_count):
 *                 hb_tag_to_string(c_tags[i], cstr)             # <<<<<<<<<<<<<<
 *                 cstr[4] = b'\0'
 *                 packed = cstr
*/
      hb_tag_to_string((__pyx_v_c_tags[__pyx_v_i]), __pyx_v_cstr);

      /* "src/uharfbuzz/_face.pxi":1097
 *             for i in range(script_count):
 *                 hb_tag_to_string(c_tags[i], cstr)
 *                 cstr[4] = b'\0'             # <<<<<<<<<<<<<<
 *                 packed = cstr
 *                 tags.append(packed.decode())
*/
      (__pyx_v_cstr[4]) = '\x00';

      /* "src/uharfbuzz/_face.pxi":1098
 *                 hb_tag_to_string(c_tags[i], cstr)
 *                 cstr[4] = b'\0'
 *                 packed = cstr             # <<<<<<<<<<<<<<
 *                 tags.append(packed.decode())
 *             start_offset += script_count
*/
      __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_cstr); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1098, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF_SET(__pyx_v_packed, ((PyObject*)__pyx_t_1));
      __pyx_t_1 = 0;

      /* "src/uharfbuzz/_face.pxi":1099
 *                 cstr[4] = b'\0'
 *                 packed = cstr
 *                 tags.append(packed.decode())             # <<<<<<<<<<<<<<
 *             start_offset += script_count
 *         return tags
*/
      __pyx_t_1 = __Pyx_decode_bytes(__pyx_v_packed, 0, PY_SSIZE_T_MAX, NULL, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1099, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_7 = __Pyx_PyList_Append(__pyx_v_tags, __pyx_t_1); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(1, 1099, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    }

    /* "src/uharfbuzz/_face.pxi":1100
 *                 packed = cstr
 *                 tags.append(packed.decode())
 *             start_offset += script_count             # <<<<<<<<<<<<<<
 *         return tags
 * 
*/
    __pyx_v_start_offset = (__pyx_v_start_offset + __pyx_v_script_count);
  }

  /* "src/uharfbuzz/_face.pxi":1101
 *                 tags.append(packed.decode())
 *             start_offset += script_count
 *         return tags             # <<<<<<<<<<<<<<
 * 
 *     def list_names(self) -> List[OTNameEntry]:
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_tags);
  __pyx_r = __pyx_v_tags;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":1069
 *         return tags
 * 
 *     def get_table_script_tags(self, tag: str) -> List[str]:             # <<<<<<<<<<<<<<
 *         """Fetches a list of all scripts enumerated in the specified face's
 *         GSUB or GPOS table.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.get_table_script_tags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_XDECREF(__pyx_v_tags);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":1103
 *         return tags
 * 
 *     def list_names(self) -> List[OTNameEntry]:             # <<<<<<<<<<<<<<
 *         """Enumerates all available name IDs and language combinations.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_37list_names(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Face_36list_names, "Enumerates all available name IDs and language combinations.\n\n        :returns: Array of available name entries.\n\n        Wraps `hb_ot_name_list_names()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-name.html#hb-ot-name-list-names>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_37list_names = {"list_names", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_37list_names, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_36list_names};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_37list_names(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("list_names (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("list_names", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("list_names", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_36list_names(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_36list_names(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self) {
  PyObject *__pyx_v_ret = 0;
  unsigned int __pyx_v_num_entries;
  hb_ot_name_entry_t const *__pyx_v_entries;
  unsigned int __pyx_v_i;
  const char *__pyx_v_cstr;
  PyObject *__pyx_v_packed = 0;
  PyObject *__pyx_v_language = NULL;
  PyObject *__pyx_v_name_id = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  unsigned int __pyx_t_2;
  unsigned int __pyx_t_3;
  unsigned int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  size_t __pyx_t_9;
  int __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("list_names", 0);

  /* "src/uharfbuzz/_face.pxi":1111
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-name.html#hb-ot-name-list-names>`_.
 *         """
 *         cdef list ret = []             # <<<<<<<<<<<<<<
 *         cdef unsigned int num_entries
 *         cdef const hb_ot_name_entry_t* entries
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1111, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_ret = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_face.pxi":1118
 *         cdef bytes packed
 * 
 *         entries = hb_ot_name_list_names(self._hb_face, &num_entries)             # <<<<<<<<<<<<<<
 *         for i in range(num_entries):
 *             cstr = hb_language_to_string(entries[i].language)
*/
  __pyx_v_entries = hb_ot_name_list_names(__pyx_v_self->_hb_face, (&__pyx_v_num_entries));

  /* "src/uharfbuzz/_face.pxi":1119
 * 
 *         entries = hb_ot_name_list_names(self._hb_face, &num_entries)
 *         for i in range(num_entries):             # <<<<<<<<<<<<<<
 *             cstr = hb_language_to_string(entries[i].language)
 *             if cstr is NULL:
*/
  __pyx_t_2 = __pyx_v_num_entries;
  __pyx_t_3 = __pyx_t_2;
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
    __pyx_v_i = __pyx_t_4;

    /* "src/uharfbuzz/_face.pxi":1120
 *         entries = hb_ot_name_list_names(self._hb_face, &num_entries)
 *         for i in range(num_entries):
 *             cstr = hb_language_to_string(entries[i].language)             # <<<<<<<<<<<<<<
 *             if cstr is NULL:
 *                 language = None
*/
    __pyx_v_cstr = hb_language_to_string((__pyx_v_entries[__pyx_v_i]).language);

    /* "src/uharfbuzz/_face.pxi":1121
 *         for i in range(num_entries):
 *             cstr = hb_language_to_string(entries[i].language)
 *             if cstr is NULL:             # <<<<<<<<<<<<<<
 *                 language = None
 *             else:
*/
    __pyx_t_5 = (__pyx_v_cstr == NULL);
    if (__pyx_t_5) {

      /* "src/uharfbuzz/_face.pxi":1122
 *             cstr = hb_language_to_string(entries[i].language)
 *             if cstr is NULL:
 *                 language = None             # <<<<<<<<<<<<<<
 *             else:
 *                 packed = cstr
*/
      __Pyx_INCREF(Py_None);
      __Pyx_XDECREF_SET(__pyx_v_language, ((PyObject*)Py_None));

      /* "src/uharfbuzz/_face.pxi":1121
 *         for i in range(num_entries):
 *             cstr = hb_language_to_string(entries[i].language)
 *             if cstr is NULL:             # <<<<<<<<<<<<<<
 *                 language = None
 *             else:
*/
      goto __pyx_L5;
    }

    /* "src/uharfbuzz/_face.pxi":1124
 *                 language = None
 *             else:
 *                 packed = cstr             # <<<<<<<<<<<<<<
 *                 language = packed.decode()
 *             if entries[i].name_id in iter(OTNameIdPredefined):
*/
    /*else*/ {
      __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_cstr); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1124, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_XDECREF_SET(__pyx_v_packed, ((PyObject*)__pyx_t_1));
      __pyx_t_1 = 0;

      /* "src/uharfbuzz/_face.pxi":1125
 *             else:
 *                 packed = cstr
 *                 language = packed.decode()             # <<<<<<<<<<<<<<
 *             if entries[i].name_id in iter(OTNameIdPredefined):
 *                 name_id = OTNameIdPredefined(entries[i].name_id)
*/
      __pyx_t_1 = __Pyx_decode_bytes(__pyx_v_packed, 0, PY_SSIZE_T_MAX, NULL, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1125, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_XDECREF_SET(__pyx_v_language, ((PyObject*)__pyx_t_1));
      __pyx_t_1 = 0;
    }
    __pyx_L5:;

    /* "src/uharfbuzz/_face.pxi":1126
 *                 packed = cstr
 *                 language = packed.decode()
 *             if entries[i].name_id in iter(OTNameIdPredefined):             # <<<<<<<<<<<<<<
 *                 name_id = OTNameIdPredefined(entries[i].name_id)
 *             else:
*/
    __pyx_t_1 = __Pyx_PyLong_From_hb_ot_name_id_t((__pyx_v_entries[__pyx_v_i]).name_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1126, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_OTNameIdPredefined); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1126, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = PyObject_GetIter(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 1126, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_5 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_7, Py_EQ)); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(1, 1126, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (__pyx_t_5) {

      /* "src/uharfbuzz/_face.pxi":1127
 *                 language = packed.decode()
 *             if entries[i].name_id in iter(OTNameIdPredefined):
 *                 name_id = OTNameIdPredefined(entries[i].name_id)             # <<<<<<<<<<<<<<
 *             else:
 *                 name_id = entries[i].name_id
*/
      __pyx_t_1 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_OTNameIdPredefined); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1127, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_8 = __Pyx_PyLong_From_hb_ot_name_id_t((__pyx_v_entries[__pyx_v_i]).name_id); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 1127, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_6))) {
        __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6);
        assert(__pyx_t_1);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
        __Pyx_INCREF(__pyx_t_1);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
        __pyx_t_9 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_t_8};
        __pyx_t_7 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_9, (2-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 1127, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
      }
      __Pyx_XDECREF_SET(__pyx_v_name_id, __pyx_t_7);
      __pyx_t_7 = 0;

      /* "src/uharfbuzz/_face.pxi":1126
 *                 packed = cstr
 *                 language = packed.decode()
 *             if entries[i].name_id in iter(OTNameIdPredefined):             # <<<<<<<<<<<<<<
 *                 name_id = OTNameIdPredefined(entries[i].name_id)
 *             else:
*/
      goto __pyx_L6;
    }

    /* "src/uharfbuzz/_face.pxi":1129
 *                 name_id = OTNameIdPredefined(entries[i].name_id)
 *             else:
 *                 name_id = entries[i].name_id             # <<<<<<<<<<<<<<
 *             ret.append(OTNameEntry(name_id=name_id, language=language))
 *         return ret
*/
    /*else*/ {
      __pyx_t_7 = __Pyx_PyLong_From_hb_ot_name_id_t((__pyx_v_entries[__pyx_v_i]).name_id); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 1129, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_XDECREF_SET(__pyx_v_name_id, __pyx_t_7);
      __pyx_t_7 = 0;
    }
    __pyx_L6:;

    /* "src/uharfbuzz/_face.pxi":1130
 *             else:
 *                 name_id = entries[i].name_id
 *             ret.append(OTNameEntry(name_id=name_id, language=language))             # <<<<<<<<<<<<<<
 *         return ret
 * 
*/
    __pyx_t_6 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_OTNameEntry); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 1130, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_9 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_8);
      assert(__pyx_t_6);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_8);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_8, __pyx__function);
      __pyx_t_9 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 2 : 0)] = {__pyx_t_6, NULL};
      __pyx_t_1 = __Pyx_MakeVectorcallBuilderKwds(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1130, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_name_id, __pyx_v_name_id, __pyx_t_1, __pyx_callargs+1, 0) < (0)) __PYX_ERR(1, 1130, __pyx_L1_error)
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_language, __pyx_v_language, __pyx_t_1, __pyx_callargs+1, 1) < (0)) __PYX_ERR(1, 1130, __pyx_L1_error)
      __pyx_t_7 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_8, __pyx_callargs+__pyx_t_9, (1-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_1);
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 1130, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
    }
    __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_ret, __pyx_t_7); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(1, 1130, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  }

  /* "src/uharfbuzz/_face.pxi":1131
 *                 name_id = entries[i].name_id
 *             ret.append(OTNameEntry(name_id=name_id, language=language))
 *         return ret             # <<<<<<<<<<<<<<
 * 
 *     def get_name(self, name_id: OTNameIdPredefined | int, language: str | None = None) -> str | None:
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_ret);
  __pyx_r = __pyx_v_ret;
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":1103
 *         return tags
 * 
 *     def list_names(self) -> List[OTNameEntry]:             # <<<<<<<<<<<<<<
 *         """Enumerates all available name IDs and language combinations.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.list_names", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_ret);
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_XDECREF(__pyx_v_language);
  __Pyx_XDECREF(__pyx_v_name_id);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_face.pxi":1133
 *         return ret
 * 
 *     def get_name(self, name_id: OTNameIdPredefined | int, language: str | None = None) -> str | None:             # <<<<<<<<<<<<<<
 *         """Fetches a font name from the OpenType ``name`` table.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_39get_name(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Face_38get_name, "Fetches a font name from the OpenType ``name`` table.\n\n        :param name_id: The OpenType name identifier to fetch.\n        :param language: The BCP 47 language tag to fetch the name for. If\n            ``None``, English (``\"en\"``) is assumed.\n\n        :returns: The name as a :class:`str`, or ``None`` if not found.\n\n        Wraps `hb_ot_name_get_utf8()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-name.html#hb-ot-name-get-utf8>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_39get_name = {"get_name", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_39get_name, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_38get_name};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_39get_name(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_name_id = 0;
  PyObject *__pyx_v_language = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_name (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_name_id,&__pyx_mstate_global->__pyx_n_u_language,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 1133, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 1133, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1133, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_name", 0) < (0)) __PYX_ERR(1, 1133, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject*)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_name", 0, 1, 2, i); __PYX_ERR(1, 1133, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 1133, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1133, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject*)Py_None));
    }
    __pyx_v_name_id = values[0];
    __pyx_v_language = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_name", 0, 1, 2, __pyx_nargs); __PYX_ERR(1, 1133, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.get_name", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_language), (&PyUnicode_Type), 1, "language", 2))) __PYX_ERR(1, 1133, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_38get_name(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self), __pyx_v_name_id, __pyx_v_language);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_38get_name(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, PyObject *__pyx_v_name_id, PyObject *__pyx_v_language) {
  PyObject *__pyx_v_packed = 0;
  hb_language_t __pyx_v_lang;
  char *__pyx_v_text;
  unsigned int __pyx_v_length;
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  char *__pyx_t_3;
  hb_ot_name_id_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  char const *__pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_name", 0);

  /* "src/uharfbuzz/_face.pxi":1150
 *         cdef unsigned int length
 * 
 *         if language is None:             # <<<<<<<<<<<<<<
 *             lang = <hb_language_t>0  # HB_LANGUAGE_INVALID
 *         else:
*/
  __pyx_t_1 = (__pyx_v_language == ((PyObject*)Py_None));
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_face.pxi":1151
 * 
 *         if language is None:
 *             lang = <hb_language_t>0  # HB_LANGUAGE_INVALID             # <<<<<<<<<<<<<<
 *         else:
 *             packed = language.encode()
*/
    __pyx_v_lang = 0;

    /* "src/uharfbuzz/_face.pxi":1150
 *         cdef unsigned int length
 * 
 *         if language is None:             # <<<<<<<<<<<<<<
 *             lang = <hb_language_t>0  # HB_LANGUAGE_INVALID
 *         else:
*/
    goto __pyx_L3;
  }

  /* "src/uharfbuzz/_face.pxi":1153
 *             lang = <hb_language_t>0  # HB_LANGUAGE_INVALID
 *         else:
 *             packed = language.encode()             # <<<<<<<<<<<<<<
 *             lang = hb_language_from_string(<char*>packed, -1)
 * 
*/
  /*else*/ {
    if (unlikely(__pyx_v_language == Py_None)) {
      PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "encode");
      __PYX_ERR(1, 1153, __pyx_L1_error)
    }
    __pyx_t_2 = PyUnicode_AsEncodedString(__pyx_v_language, NULL, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1153, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_packed = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "src/uharfbuzz/_face.pxi":1154
 *         else:
 *             packed = language.encode()
 *             lang = hb_language_from_string(<char*>packed, -1)             # <<<<<<<<<<<<<<
 * 
 *         length = hb_ot_name_get_utf8(self._hb_face, name_id, lang, NULL, NULL)
*/
    __pyx_t_3 = __Pyx_PyBytes_AsWritableString(__pyx_v_packed); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(1, 1154, __pyx_L1_error)
    __pyx_v_lang = hb_language_from_string(((char *)__pyx_t_3), -1);
  }
  __pyx_L3:;

  /* "src/uharfbuzz/_face.pxi":1156
 *             lang = hb_language_from_string(<char*>packed, -1)
 * 
 *         length = hb_ot_name_get_utf8(self._hb_face, name_id, lang, NULL, NULL)             # <<<<<<<<<<<<<<
 *         if length:
 *             length += 1  # for the null terminator
*/
  __pyx_t_4 = __Pyx_PyLong_As_hb_ot_name_id_t(__pyx_v_name_id); if (unlikely((__pyx_t_4 == ((hb_ot_name_id_t)-1)) && PyErr_Occurred())) __PYX_ERR(1, 1156, __pyx_L1_error)
  __pyx_v_length = hb_ot_name_get_utf8(__pyx_v_self->_hb_face, __pyx_t_4, __pyx_v_lang, NULL, NULL);

  /* "src/uharfbuzz/_face.pxi":1157
 * 
 *         length = hb_ot_name_get_utf8(self._hb_face, name_id, lang, NULL, NULL)
 *         if length:             # <<<<<<<<<<<<<<
 *             length += 1  # for the null terminator
 *             text = <char*>malloc(length * sizeof(char))
*/
  __pyx_t_1 = (__pyx_v_length != 0);
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_face.pxi":1158
 *         length = hb_ot_name_get_utf8(self._hb_face, name_id, lang, NULL, NULL)
 *         if length:
 *             length += 1  # for the null terminator             # <<<<<<<<<<<<<<
 *             text = <char*>malloc(length * sizeof(char))
 *             if text == NULL:
*/
    __pyx_v_length = (__pyx_v_length + 1);

    /* "src/uharfbuzz/_face.pxi":1159
 *         if length:
 *             length += 1  # for the null terminator
 *             text = <char*>malloc(length * sizeof(char))             # <<<<<<<<<<<<<<
 *             if text == NULL:
 *                 raise MemoryError()
*/
    __pyx_v_text = ((char *)malloc((__pyx_v_length * (sizeof(char)))));

    /* "src/uharfbuzz/_face.pxi":1160
 *             length += 1  # for the null terminator
 *             text = <char*>malloc(length * sizeof(char))
 *             if text == NULL:             # <<<<<<<<<<<<<<
 *                 raise MemoryError()
 *             try:
*/
    __pyx_t_1 = (__pyx_v_text == NULL);
    if (unlikely(__pyx_t_1)) {

      /* "src/uharfbuzz/_face.pxi":1161
 *             text = <char*>malloc(length * sizeof(char))
 *             if text == NULL:
 *                 raise MemoryError()             # <<<<<<<<<<<<<<
 *             try:
 *                 hb_ot_name_get_utf8(self._hb_face, name_id, lang, &length, text)
*/
      PyErr_NoMemory(); __PYX_ERR(1, 1161, __pyx_L1_error)

      /* "src/uharfbuzz/_face.pxi":1160
 *             length += 1  # for the null terminator
 *             text = <char*>malloc(length * sizeof(char))
 *             if text == NULL:             # <<<<<<<<<<<<<<
 *                 raise MemoryError()
 *             try:
*/
    }

    /* "src/uharfbuzz/_face.pxi":1162
 *             if text == NULL:
 *                 raise MemoryError()
 *             try:             # <<<<<<<<<<<<<<
 *                 hb_ot_name_get_utf8(self._hb_face, name_id, lang, &length, text)
 *                 result = text[:length].decode("utf-8")
*/
    /*try:*/ {

      /* "src/uharfbuzz/_face.pxi":1163
 *                 raise MemoryError()
 *             try:
 *                 hb_ot_name_get_utf8(self._hb_face, name_id, lang, &length, text)             # <<<<<<<<<<<<<<
 *                 result = text[:length].decode("utf-8")
 *                 return result
*/
      __pyx_t_4 = __Pyx_PyLong_As_hb_ot_name_id_t(__pyx_v_name_id); if (unlikely((__pyx_t_4 == ((hb_ot_name_id_t)-1)) && PyErr_Occurred())) __PYX_ERR(1, 1163, __pyx_L7_error)
      (void)(hb_ot_name_get_utf8(__pyx_v_self->_hb_face, __pyx_t_4, __pyx_v_lang, (&__pyx_v_length), __pyx_v_text));

      /* "src/uharfbuzz/_face.pxi":1164
 *             try:
 *                 hb_ot_name_get_utf8(self._hb_face, name_id, lang, &length, text)
 *                 result = text[:length].decode("utf-8")             # <<<<<<<<<<<<<<
 *                 return result
 *             finally:
*/
      __pyx_t_2 = __Pyx_decode_c_string(__pyx_v_text, 0, __pyx_v_length, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1164, __pyx_L7_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_v_result = ((PyObject*)__pyx_t_2);
      __pyx_t_2 = 0;

      /* "src/uharfbuzz/_face.pxi":1165
 *                 hb_ot_name_get_utf8(self._hb_face, name_id, lang, &length, text)
 *                 result = text[:length].decode("utf-8")
 *                 return result             # <<<<<<<<<<<<<<
 *             finally:
 *                 free(text)
*/
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_v_result);
      __pyx_r = __pyx_v_result;
      goto __pyx_L6_return;
    }

    /* "src/uharfbuzz/_face.pxi":1167
 *                 return result
 *             finally:
 *                 free(text)             # <<<<<<<<<<<<<<
 *         return None
*/
    /*finally:*/ {
      __pyx_L7_error:;
      /*exception exit:*/{
        __Pyx_PyThreadState_declare
        __Pyx_PyThreadState_assign
        __pyx_t_8 = 0; __pyx_t_9 = 0; __pyx_t_10 = 0; __pyx_t_11 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
         __Pyx_ExceptionSwap(&__pyx_t_11, &__pyx_t_12, &__pyx_t_13);
        if ( unlikely(__Pyx_GetException(&__pyx_t_8, &__pyx_t_9, &__pyx_t_10) < 0)) __Pyx_ErrFetch(&__pyx_t_8, &__pyx_t_9, &__pyx_t_10);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_9);
        __Pyx_XGOTREF(__pyx_t_10);
        __Pyx_XGOTREF(__pyx_t_11);
        __Pyx_XGOTREF(__pyx_t_12);
        __Pyx_XGOTREF(__pyx_t_13);
        __pyx_t_5 = __pyx_lineno; __pyx_t_6 = __pyx_clineno; __pyx_t_7 = __pyx_filename;
        {
          free(__pyx_v_text);
        }
        __Pyx_XGIVEREF(__pyx_t_11);
        __Pyx_XGIVEREF(__pyx_t_12);
        __Pyx_XGIVEREF(__pyx_t_13);
        __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_12, __pyx_t_13);
        __Pyx_XGIVEREF(__pyx_t_8);
        __Pyx_XGIVEREF(__pyx_t_9);
        __Pyx_XGIVEREF(__pyx_t_10);
        __Pyx_ErrRestore(__pyx_t_8, __pyx_t_9, __pyx_t_10);
        __pyx_t_8 = 0; __pyx_t_9 = 0; __pyx_t_10 = 0; __pyx_t_11 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0;
        __pyx_lineno = __pyx_t_5; __pyx_clineno = __pyx_t_6; __pyx_filename = __pyx_t_7;
        goto __pyx_L1_error;
      }
      __pyx_L6_return: {
        __pyx_t_14 = __pyx_r;
        __pyx_r = 0;
        free(__pyx_v_text);
        __pyx_r = __pyx_t_14;
        __pyx_t_14 = 0;
        goto __pyx_L0;
      }
    }

    /* "src/uharfbuzz/_face.pxi":1157
 * 
 *         length = hb_ot_name_get_utf8(self._hb_face, name_id, lang, NULL, NULL)
 *         if length:             # <<<<<<<<<<<<<<
 *             length += 1  # for the null terminator
 *             text = <char*>malloc(length * sizeof(char))
*/
  }

  /* "src/uharfbuzz/_face.pxi":1168
 *             finally:
 *                 free(text)
 *         return None             # <<<<<<<<<<<<<<
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_r = ((PyObject*)Py_None); __Pyx_INCREF(Py_None);
  goto __pyx_L0;

  /* "src/uharfbuzz/_face.pxi":1133
 *         return ret
 * 
 *     def get_name(self, name_id: OTNameIdPredefined | int, language: str | None = None) -> str | None:             # <<<<<<<<<<<<<<
 *         """Fetches a font name from the OpenType ``name`` table.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.get_name", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_41__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_41__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_41__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_41__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_40__reduce_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_40__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_43__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_43__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_43__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_43__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 3, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < (0)) __PYX_ERR(4, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(4, 3, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(4, 3, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Face_42__setstate_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Face_42__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Face.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_draw.pxi":1
 * cdef void _move_to_func(hb_draw_funcs_t *dfuncs,             # <<<<<<<<<<<<<<
 *                         void *draw_data,
 *                         hb_draw_state_t *st,
*/

static void __pyx_f_9uharfbuzz_9_harfbuzz__move_to_func(CYTHON_UNUSED hb_draw_funcs_t *__pyx_v_dfuncs, void *__pyx_v_draw_data, CYTHON_UNUSED hb_draw_state_t *__pyx_v_st, float __pyx_v_to_x, float __pyx_v_to_y, void *__pyx_v_user_data) {
  PyObject *__pyx_v_m = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_move_to_func", 0);

  /* "src/uharfbuzz/_draw.pxi":7
 *                         float to_y,
 *                         void *user_data) noexcept:
 *     m = <object>user_data             # <<<<<<<<<<<<<<
 *     m(to_x, to_y, <object>draw_data)
 * 
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_user_data);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_m = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_draw.pxi":8
 *                         void *user_data) noexcept:
 *     m = <object>user_data
 *     m(to_x, to_y, <object>draw_data)             # <<<<<<<<<<<<<<
 * 
 * cdef void _line_to_func(hb_draw_funcs_t *dfuncs,
*/
  __pyx_t_2 = NULL;
  __Pyx_INCREF(__pyx_v_m);
  __pyx_t_3 = __pyx_v_m; 
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_to_x); if (unlikely(!__pyx_t_4)) __PYX_ERR(8, 8, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_to_y); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 8, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_t_4, __pyx_t_5, ((PyObject *)__pyx_v_draw_data)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_6, (4-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/uharfbuzz/_draw.pxi":1
 * cdef void _move_to_func(hb_draw_funcs_t *dfuncs,             # <<<<<<<<<<<<<<
 *                         void *draw_data,
 *                         hb_draw_state_t *st,
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._move_to_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_m);
  __Pyx_RefNannyFinishContext();
}

/* "src/uharfbuzz/_draw.pxi":10
 *     m(to_x, to_y, <object>draw_data)
 * 
 * cdef void _line_to_func(hb_draw_funcs_t *dfuncs,             # <<<<<<<<<<<<<<
 *                         void *draw_data,
 *                         hb_draw_state_t *st,
*/

static void __pyx_f_9uharfbuzz_9_harfbuzz__line_to_func(CYTHON_UNUSED hb_draw_funcs_t *__pyx_v_dfuncs, void *__pyx_v_draw_data, CYTHON_UNUSED hb_draw_state_t *__pyx_v_st, float __pyx_v_to_x, float __pyx_v_to_y, void *__pyx_v_user_data) {
  PyObject *__pyx_v_l = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_line_to_func", 0);

  /* "src/uharfbuzz/_draw.pxi":16
 *                         float to_y,
 *                         void *user_data) noexcept:
 *     l = <object>user_data             # <<<<<<<<<<<<<<
 *     l(to_x, to_y, <object>draw_data)
 * 
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_user_data);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_l = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_draw.pxi":17
 *                         void *user_data) noexcept:
 *     l = <object>user_data
 *     l(to_x, to_y, <object>draw_data)             # <<<<<<<<<<<<<<
 * 
 * cdef void _close_path_func(hb_draw_funcs_t *dfuncs,
*/
  __pyx_t_2 = NULL;
  __Pyx_INCREF(__pyx_v_l);
  __pyx_t_3 = __pyx_v_l; 
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_to_x); if (unlikely(!__pyx_t_4)) __PYX_ERR(8, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_to_y); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_t_4, __pyx_t_5, ((PyObject *)__pyx_v_draw_data)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_6, (4-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 17, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/uharfbuzz/_draw.pxi":10
 *     m(to_x, to_y, <object>draw_data)
 * 
 * cdef void _line_to_func(hb_draw_funcs_t *dfuncs,             # <<<<<<<<<<<<<<
 *                         void *draw_data,
 *                         hb_draw_state_t *st,
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._line_to_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_l);
  __Pyx_RefNannyFinishContext();
}

/* "src/uharfbuzz/_draw.pxi":19
 *     l(to_x, to_y, <object>draw_data)
 * 
 * cdef void _close_path_func(hb_draw_funcs_t *dfuncs,             # <<<<<<<<<<<<<<
 *                            void *draw_data,
 *                            hb_draw_state_t *st,
*/

static void __pyx_f_9uharfbuzz_9_harfbuzz__close_path_func(CYTHON_UNUSED hb_draw_funcs_t *__pyx_v_dfuncs, void *__pyx_v_draw_data, CYTHON_UNUSED hb_draw_state_t *__pyx_v_st, void *__pyx_v_user_data) {
  PyObject *__pyx_v_cl = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_close_path_func", 0);

  /* "src/uharfbuzz/_draw.pxi":23
 *                            hb_draw_state_t *st,
 *                            void *user_data) noexcept:
 *     cl = <object>user_data             # <<<<<<<<<<<<<<
 *     cl(<object>draw_data)
 * 
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_user_data);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_cl = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_draw.pxi":24
 *                            void *user_data) noexcept:
 *     cl = <object>user_data
 *     cl(<object>draw_data)             # <<<<<<<<<<<<<<
 * 
 * cdef void _quadratic_to_func(hb_draw_funcs_t *dfuncs,
*/
  __pyx_t_2 = NULL;
  __Pyx_INCREF(__pyx_v_cl);
  __pyx_t_3 = __pyx_v_cl; 
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, ((PyObject *)__pyx_v_draw_data)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 24, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/uharfbuzz/_draw.pxi":19
 *     l(to_x, to_y, <object>draw_data)
 * 
 * cdef void _close_path_func(hb_draw_funcs_t *dfuncs,             # <<<<<<<<<<<<<<
 *                            void *draw_data,
 *                            hb_draw_state_t *st,
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._close_path_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_cl);
  __Pyx_RefNannyFinishContext();
}

/* "src/uharfbuzz/_draw.pxi":26
 *     cl(<object>draw_data)
 * 
 * cdef void _quadratic_to_func(hb_draw_funcs_t *dfuncs,             # <<<<<<<<<<<<<<
 *                              void *draw_data,
 *                              hb_draw_state_t *st,
*/

static void __pyx_f_9uharfbuzz_9_harfbuzz__quadratic_to_func(CYTHON_UNUSED hb_draw_funcs_t *__pyx_v_dfuncs, void *__pyx_v_draw_data, CYTHON_UNUSED hb_draw_state_t *__pyx_v_st, float __pyx_v_c1_x, float __pyx_v_c1_y, float __pyx_v_to_x, float __pyx_v_to_y, void *__pyx_v_user_data) {
  PyObject *__pyx_v_q = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_quadratic_to_func", 0);

  /* "src/uharfbuzz/_draw.pxi":34
 *                              float to_y,
 *                              void *user_data) noexcept:
 *     q = <object>user_data             # <<<<<<<<<<<<<<
 *     q(c1_x, c1_y, to_x, to_y, <object>draw_data)
 * 
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_user_data);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_q = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_draw.pxi":35
 *                              void *user_data) noexcept:
 *     q = <object>user_data
 *     q(c1_x, c1_y, to_x, to_y, <object>draw_data)             # <<<<<<<<<<<<<<
 * 
 * cdef void _cubic_to_func(hb_draw_funcs_t *dfuncs,
*/
  __pyx_t_2 = NULL;
  __Pyx_INCREF(__pyx_v_q);
  __pyx_t_3 = __pyx_v_q; 
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_c1_x); if (unlikely(!__pyx_t_4)) __PYX_ERR(8, 35, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_c1_y); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 35, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyFloat_FromDouble(__pyx_v_to_x); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 35, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = PyFloat_FromDouble(__pyx_v_to_y); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 35, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_2, __pyx_t_4, __pyx_t_5, __pyx_t_6, __pyx_t_7, ((PyObject *)__pyx_v_draw_data)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (6-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 35, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/uharfbuzz/_draw.pxi":26
 *     cl(<object>draw_data)
 * 
 * cdef void _quadratic_to_func(hb_draw_funcs_t *dfuncs,             # <<<<<<<<<<<<<<
 *                              void *draw_data,
 *                              hb_draw_state_t *st,
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._quadratic_to_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_q);
  __Pyx_RefNannyFinishContext();
}

/* "src/uharfbuzz/_draw.pxi":37
 *     q(c1_x, c1_y, to_x, to_y, <object>draw_data)
 * 
 * cdef void _cubic_to_func(hb_draw_funcs_t *dfuncs,             # <<<<<<<<<<<<<<
 *                          void *draw_data,
 *                          hb_draw_state_t *st,
*/

static void __pyx_f_9uharfbuzz_9_harfbuzz__cubic_to_func(CYTHON_UNUSED hb_draw_funcs_t *__pyx_v_dfuncs, void *__pyx_v_draw_data, CYTHON_UNUSED hb_draw_state_t *__pyx_v_st, float __pyx_v_c1_x, float __pyx_v_c1_y, float __pyx_v_c2_x, float __pyx_v_c2_y, float __pyx_v_to_x, float __pyx_v_to_y, void *__pyx_v_user_data) {
  PyObject *__pyx_v_c = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  size_t __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_cubic_to_func", 0);

  /* "src/uharfbuzz/_draw.pxi":47
 *                          float to_y,
 *                          void *user_data) noexcept:
 *     c = <object>user_data             # <<<<<<<<<<<<<<
 *     c(c1_x, c1_y, c2_x, c2_y, to_x, to_y, <object>draw_data)
 * 
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_user_data);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_c = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_draw.pxi":48
 *                          void *user_data) noexcept:
 *     c = <object>user_data
 *     c(c1_x, c1_y, c2_x, c2_y, to_x, to_y, <object>draw_data)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_2 = NULL;
  __Pyx_INCREF(__pyx_v_c);
  __pyx_t_3 = __pyx_v_c; 
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_c1_x); if (unlikely(!__pyx_t_4)) __PYX_ERR(8, 48, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_c1_y); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 48, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyFloat_FromDouble(__pyx_v_c2_x); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 48, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = PyFloat_FromDouble(__pyx_v_c2_y); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 48, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = PyFloat_FromDouble(__pyx_v_to_x); if (unlikely(!__pyx_t_8)) __PYX_ERR(8, 48, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = PyFloat_FromDouble(__pyx_v_to_y); if (unlikely(!__pyx_t_9)) __PYX_ERR(8, 48, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_10 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_10 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_2, __pyx_t_4, __pyx_t_5, __pyx_t_6, __pyx_t_7, __pyx_t_8, __pyx_t_9, ((PyObject *)__pyx_v_draw_data)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_10, (8-__pyx_t_10) | (__pyx_t_10*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 48, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/uharfbuzz/_draw.pxi":37
 *     q(c1_x, c1_y, to_x, to_y, <object>draw_data)
 * 
 * cdef void _cubic_to_func(hb_draw_funcs_t *dfuncs,             # <<<<<<<<<<<<<<
 *                          void *draw_data,
 *                          hb_draw_state_t *st,
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._cubic_to_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_c);
  __Pyx_RefNannyFinishContext();
}

/* "src/uharfbuzz/_draw.pxi":59
 *     cdef object _close_path_func
 * 
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self._hb_drawfuncs = hb_draw_funcs_create()
 * 
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, __pyx_nargs); return -1; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__cinit__", __pyx_kwds); return -1;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs___cinit__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *__pyx_v_self) {
  int __pyx_r;

  /* "src/uharfbuzz/_draw.pxi":60
 * 
 *     def __cinit__(self):
 *         self._hb_drawfuncs = hb_draw_funcs_create()             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
  __pyx_v_self->_hb_drawfuncs = hb_draw_funcs_create();

  /* "src/uharfbuzz/_draw.pxi":59
 *     cdef object _close_path_func
 * 
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self._hb_drawfuncs = hb_draw_funcs_create()
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "src/uharfbuzz/_draw.pxi":62
 *         self._hb_drawfuncs = hb_draw_funcs_create()
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         hb_draw_funcs_destroy(self._hb_drawfuncs)
 * 
*/

/* Python wrapper */
static void __pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs_2__dealloc__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs_2__dealloc__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *__pyx_v_self) {

  /* "src/uharfbuzz/_draw.pxi":63
 * 
 *     def __dealloc__(self):
 *         hb_draw_funcs_destroy(self._hb_drawfuncs)             # <<<<<<<<<<<<<<
 * 
 *     @deprecated("Font.draw_glyph()", since="0.34.0")
*/
  hb_draw_funcs_destroy(__pyx_v_self->_hb_drawfuncs);

  /* "src/uharfbuzz/_draw.pxi":62
 *         self._hb_drawfuncs = hb_draw_funcs_create()
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         hb_draw_funcs_destroy(self._hb_drawfuncs)
 * 
*/

  /* function exit code */
}

/* "src/uharfbuzz/_draw.pxi":65
 *         hb_draw_funcs_destroy(self._hb_drawfuncs)
 * 
 *     @deprecated("Font.draw_glyph()", since="0.34.0")             # <<<<<<<<<<<<<<
 *     def get_glyph_shape(self, font: Font, gid: int):
 *         font.draw_glyph(gid, self)
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_5get_glyph_shape(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_9DrawFuncs_5get_glyph_shape = {"get_glyph_shape", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_5get_glyph_shape, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_5get_glyph_shape(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font = 0;
  PyObject *__pyx_v_gid = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_glyph_shape (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_font,&__pyx_mstate_global->__pyx_n_u_gid,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(8, 65, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(8, 65, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 65, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_glyph_shape", 0) < (0)) __PYX_ERR(8, 65, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_glyph_shape", 1, 2, 2, i); __PYX_ERR(8, 65, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 65, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(8, 65, __pyx_L3_error)
    }
    __pyx_v_font = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "gid", 0) < (0)) __PYX_ERR(8, 66, __pyx_L3_error)
    __pyx_v_gid = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_glyph_shape", 1, 2, 2, __pyx_nargs); __PYX_ERR(8, 65, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.DrawFuncs.get_glyph_shape", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_font), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, 0, "font", 0))) __PYX_ERR(8, 66, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gid), (&PyLong_Type), 0, "gid", 2))) __PYX_ERR(8, 66, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs_4get_glyph_shape(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *)__pyx_v_self), __pyx_v_font, __pyx_v_gid);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs_4get_glyph_shape(struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_gid) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_glyph_shape", 0);

  /* "src/uharfbuzz/_draw.pxi":67
 *     @deprecated("Font.draw_glyph()", since="0.34.0")
 *     def get_glyph_shape(self, font: Font, gid: int):
 *         font.draw_glyph(gid, self)             # <<<<<<<<<<<<<<
 * 
 *     @deprecated("Font.draw_glyph()", since="0.34.0")
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_font);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_v_gid, ((PyObject *)__pyx_v_self)};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_draw_glyph, __pyx_callargs+__pyx_t_3, (3-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 67, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/uharfbuzz/_draw.pxi":65
 *         hb_draw_funcs_destroy(self._hb_drawfuncs)
 * 
 *     @deprecated("Font.draw_glyph()", since="0.34.0")             # <<<<<<<<<<<<<<
 *     def get_glyph_shape(self, font: Font, gid: int):
 *         font.draw_glyph(gid, self)
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.DrawFuncs.get_glyph_shape", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_draw.pxi":69
 *         font.draw_glyph(gid, self)
 * 
 *     @deprecated("Font.draw_glyph()", since="0.34.0")             # <<<<<<<<<<<<<<
 *     def draw_glyph(self, font: Font, gid: int, draw_data: object = None):
 *         font.draw_glyph(gid, self, draw_data)
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_7draw_glyph(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_9DrawFuncs_7draw_glyph = {"draw_glyph", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_7draw_glyph, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_7draw_glyph(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font = 0;
  PyObject *__pyx_v_gid = 0;
  PyObject *__pyx_v_draw_data = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("draw_glyph (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_font,&__pyx_mstate_global->__pyx_n_u_gid,&__pyx_mstate_global->__pyx_n_u_draw_data,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(8, 69, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(8, 69, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(8, 69, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 69, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "draw_glyph", 0) < (0)) __PYX_ERR(8, 69, __pyx_L3_error)

      /* "src/uharfbuzz/_draw.pxi":70
 * 
 *     @deprecated("Font.draw_glyph()", since="0.34.0")
 *     def draw_glyph(self, font: Font, gid: int, draw_data: object = None):             # <<<<<<<<<<<<<<
 *         font.draw_glyph(gid, self, draw_data)
 * 
*/
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("draw_glyph", 0, 2, 3, i); __PYX_ERR(8, 69, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(8, 69, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(8, 69, __pyx_L3_error)
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 69, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_font = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "gid", 0) < (0)) __PYX_ERR(8, 70, __pyx_L3_error)
    __pyx_v_gid = ((PyObject*)values[1]);
    __pyx_v_draw_data = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("draw_glyph", 0, 2, 3, __pyx_nargs); __PYX_ERR(8, 69, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.DrawFuncs.draw_glyph", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_font), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, 0, "font", 0))) __PYX_ERR(8, 70, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gid), (&PyLong_Type), 0, "gid", 2))) __PYX_ERR(8, 70, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs_6draw_glyph(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *)__pyx_v_self), __pyx_v_font, __pyx_v_gid, __pyx_v_draw_data);

  /* "src/uharfbuzz/_draw.pxi":69
 *         font.draw_glyph(gid, self)
 * 
 *     @deprecated("Font.draw_glyph()", since="0.34.0")             # <<<<<<<<<<<<<<
 *     def draw_glyph(self, font: Font, gid: int, draw_data: object = None):
 *         font.draw_glyph(gid, self, draw_data)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs_6draw_glyph(struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_gid, PyObject *__pyx_v_draw_data) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("draw_glyph", 0);

  /* "src/uharfbuzz/_draw.pxi":71
 *     @deprecated("Font.draw_glyph()", since="0.34.0")
 *     def draw_glyph(self, font: Font, gid: int, draw_data: object = None):
 *         font.draw_glyph(gid, self, draw_data)             # <<<<<<<<<<<<<<
 * 
 *     def set_move_to_func(self,
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_font);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_v_gid, ((PyObject *)__pyx_v_self), __pyx_v_draw_data};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_draw_glyph, __pyx_callargs+__pyx_t_3, (4-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 71, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/uharfbuzz/_draw.pxi":69
 *         font.draw_glyph(gid, self)
 * 
 *     @deprecated("Font.draw_glyph()", since="0.34.0")             # <<<<<<<<<<<<<<
 *     def draw_glyph(self, font: Font, gid: int, draw_data: object = None):
 *         font.draw_glyph(gid, self, draw_data)
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.DrawFuncs.draw_glyph", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_draw.pxi":73
 *         font.draw_glyph(gid, self, draw_data)
 * 
 *     def set_move_to_func(self,             # <<<<<<<<<<<<<<
 *                          func: Callable[[
 *                              float,
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_9set_move_to_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_9DrawFuncs_9set_move_to_func = {"set_move_to_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_9set_move_to_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_9set_move_to_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_func = 0;
  PyObject *__pyx_v_user_data = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_move_to_func (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func,&__pyx_mstate_global->__pyx_n_u_user_data,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(8, 73, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(8, 73, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 73, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_move_to_func", 0) < (0)) __PYX_ERR(8, 73, __pyx_L3_error)

      /* "src/uharfbuzz/_draw.pxi":79
 *                              object,  # draw_data
 *                          ], None],
 *                          user_data: object = None):             # <<<<<<<<<<<<<<
 *         cdef hb_draw_move_to_func_t func_p
 *         cdef void *user_data_p
*/
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_move_to_func", 0, 1, 2, i); __PYX_ERR(8, 73, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(8, 73, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 73, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_func = values[0];
    __pyx_v_user_data = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_move_to_func", 0, 1, 2, __pyx_nargs); __PYX_ERR(8, 73, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.DrawFuncs.set_move_to_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs_8set_move_to_func(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *)__pyx_v_self), __pyx_v_func, __pyx_v_user_data);

  /* "src/uharfbuzz/_draw.pxi":73
 *         font.draw_glyph(gid, self, draw_data)
 * 
 *     def set_move_to_func(self,             # <<<<<<<<<<<<<<
 *                          func: Callable[[
 *                              float,
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs_8set_move_to_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *__pyx_v_self, PyObject *__pyx_v_func, PyObject *__pyx_v_user_data) {
  hb_draw_move_to_func_t __pyx_v_func_p;
  void *__pyx_v_user_data_p;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  void *__pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("set_move_to_func", 0);

  /* "src/uharfbuzz/_draw.pxi":82
 *         cdef hb_draw_move_to_func_t func_p
 *         cdef void *user_data_p
 *         if PyCapsule_IsValid(func, NULL):             # <<<<<<<<<<<<<<
 *             self._move_to_func = None
 *             func_p = <hb_draw_move_to_func_t>PyCapsule_GetPointer(func, NULL)
*/
  __pyx_t_1 = PyCapsule_IsValid(__pyx_v_func, NULL);
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_draw.pxi":83
 *         cdef void *user_data_p
 *         if PyCapsule_IsValid(func, NULL):
 *             self._move_to_func = None             # <<<<<<<<<<<<<<
 *             func_p = <hb_draw_move_to_func_t>PyCapsule_GetPointer(func, NULL)
 *             if PyCapsule_IsValid(user_data, NULL):
*/
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    __Pyx_GOTREF(__pyx_v_self->_move_to_func);
    __Pyx_DECREF(__pyx_v_self->_move_to_func);
    __pyx_v_self->_move_to_func = Py_None;

    /* "src/uharfbuzz/_draw.pxi":84
 *         if PyCapsule_IsValid(func, NULL):
 *             self._move_to_func = None
 *             func_p = <hb_draw_move_to_func_t>PyCapsule_GetPointer(func, NULL)             # <<<<<<<<<<<<<<
 *             if PyCapsule_IsValid(user_data, NULL):
 *                 user_data_p = <void*>PyCapsule_GetPointer(user_data, NULL)
*/
    __pyx_t_2 = PyCapsule_GetPointer(__pyx_v_func, NULL); if (unlikely(__pyx_t_2 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(8, 84, __pyx_L1_error)
    __pyx_v_func_p = ((hb_draw_move_to_func_t)__pyx_t_2);

    /* "src/uharfbuzz/_draw.pxi":85
 *             self._move_to_func = None
 *             func_p = <hb_draw_move_to_func_t>PyCapsule_GetPointer(func, NULL)
 *             if PyCapsule_IsValid(user_data, NULL):             # <<<<<<<<<<<<<<
 *                 user_data_p = <void*>PyCapsule_GetPointer(user_data, NULL)
 *             else:
*/
    __pyx_t_1 = PyCapsule_IsValid(__pyx_v_user_data, NULL);
    if (__pyx_t_1) {

      /* "src/uharfbuzz/_draw.pxi":86
 *             func_p = <hb_draw_move_to_func_t>PyCapsule_GetPointer(func, NULL)
 *             if PyCapsule_IsValid(user_data, NULL):
 *                 user_data_p = <void*>PyCapsule_GetPointer(user_data, NULL)             # <<<<<<<<<<<<<<
 *             else:
 *                 user_data_p = <void*>user_data
*/
      __pyx_t_2 = PyCapsule_GetPointer(__pyx_v_user_data, NULL); if (unlikely(__pyx_t_2 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(8, 86, __pyx_L1_error)
      __pyx_v_user_data_p = ((void *)__pyx_t_2);

      /* "src/uharfbuzz/_draw.pxi":85
 *             self._move_to_func = None
 *             func_p = <hb_draw_move_to_func_t>PyCapsule_GetPointer(func, NULL)
 *             if PyCapsule_IsValid(user_data, NULL):             # <<<<<<<<<<<<<<
 *                 user_data_p = <void*>PyCapsule_GetPointer(user_data, NULL)
 *             else:
*/
      goto __pyx_L4;
    }

    /* "src/uharfbuzz/_draw.pxi":88
 *                 user_data_p = <void*>PyCapsule_GetPointer(user_data, NULL)
 *             else:
 *                 user_data_p = <void*>user_data             # <<<<<<<<<<<<<<
 *         else:
 *             self._move_to_func = func
*/
    /*else*/ {
      __pyx_v_user_data_p = ((void *)__pyx_v_user_data);
    }
    __pyx_L4:;

    /* "src/uharfbuzz/_draw.pxi":82
 *         cdef hb_draw_move_to_func_t func_p
 *         cdef void *user_data_p
 *         if PyCapsule_IsValid(func, NULL):             # <<<<<<<<<<<<<<
 *             self._move_to_func = None
 *             func_p = <hb_draw_move_to_func_t>PyCapsule_GetPointer(func, NULL)
*/
    goto __pyx_L3;
  }

  /* "src/uharfbuzz/_draw.pxi":90
 *                 user_data_p = <void*>user_data
 *         else:
 *             self._move_to_func = func             # <<<<<<<<<<<<<<
 *             func_p = _move_to_func
 *             assert user_data is None, "Pass draw_state to Font.draw_glyph"
*/
  /*else*/ {
    __Pyx_INCREF(__pyx_v_func);
    __Pyx_GIVEREF(__pyx_v_func);
    __Pyx_GOTREF(__pyx_v_self->_move_to_func);
    __Pyx_DECREF(__pyx_v_self->_move_to_func);
    __pyx_v_self->_move_to_func = __pyx_v_func;

    /* "src/uharfbuzz/_draw.pxi":91
 *         else:
 *             self._move_to_func = func
 *             func_p = _move_to_func             # <<<<<<<<<<<<<<
 *             assert user_data is None, "Pass draw_state to Font.draw_glyph"
 *             user_data_p = <void*>func
*/
    __pyx_v_func_p = __pyx_f_9uharfbuzz_9_harfbuzz__move_to_func;

    /* "src/uharfbuzz/_draw.pxi":92
 *             self._move_to_func = func
 *             func_p = _move_to_func
 *             assert user_data is None, "Pass draw_state to Font.draw_glyph"             # <<<<<<<<<<<<<<
 *             user_data_p = <void*>func
 *         hb_draw_funcs_set_move_to_func(
*/
    #ifndef CYTHON_WITHOUT_ASSERTIONS
    if (unlikely(__pyx_assertions_enabled())) {
      __pyx_t_1 = (__pyx_v_user_data == Py_None);
      if (unlikely(!__pyx_t_1)) {
        __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_AssertionError))), __pyx_mstate_global->__pyx_kp_u_Pass_draw_state_to_Font_draw_gly, 0, 0);
        __PYX_ERR(8, 92, __pyx_L1_error)
      }
    }
    #else
    if ((1)); else __PYX_ERR(8, 92, __pyx_L1_error)
    #endif

    /* "src/uharfbuzz/_draw.pxi":93
 *             func_p = _move_to_func
 *             assert user_data is None, "Pass draw_state to Font.draw_glyph"
 *             user_data_p = <void*>func             # <<<<<<<<<<<<<<
 *         hb_draw_funcs_set_move_to_func(
 *             self._hb_drawfuncs, func_p, user_data_p, NULL)
*/
    __pyx_v_user_data_p = ((void *)__pyx_v_func);
  }
  __pyx_L3:;

  /* "src/uharfbuzz/_draw.pxi":94
 *             assert user_data is None, "Pass draw_state to Font.draw_glyph"
 *             user_data_p = <void*>func
 *         hb_draw_funcs_set_move_to_func(             # <<<<<<<<<<<<<<
 *             self._hb_drawfuncs, func_p, user_data_p, NULL)
 * 
*/
  hb_draw_funcs_set_move_to_func(__pyx_v_self->_hb_drawfuncs, __pyx_v_func_p, __pyx_v_user_data_p, NULL);

  /* "src/uharfbuzz/_draw.pxi":73
 *         font.draw_glyph(gid, self, draw_data)
 * 
 *     def set_move_to_func(self,             # <<<<<<<<<<<<<<
 *                          func: Callable[[
 *                              float,
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.DrawFuncs.set_move_to_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_draw.pxi":97
 *             self._hb_drawfuncs, func_p, user_data_p, NULL)
 * 
 *     def set_line_to_func(self,             # <<<<<<<<<<<<<<
 *                          func: Callable[[
 *                              float,
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_11set_line_to_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_9DrawFuncs_11set_line_to_func = {"set_line_to_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_11set_line_to_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_11set_line_to_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_func = 0;
  PyObject *__pyx_v_user_data = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_line_to_func (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func,&__pyx_mstate_global->__pyx_n_u_user_data,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(8, 97, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(8, 97, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 97, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_line_to_func", 0) < (0)) __PYX_ERR(8, 97, __pyx_L3_error)

      /* "src/uharfbuzz/_draw.pxi":103
 *                              object,  # draw_data
 *                          ], None],
 *                          user_data: object = None):             # <<<<<<<<<<<<<<
 *         cdef hb_draw_line_to_func_t func_p
 *         cdef void *user_data_p
*/
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_line_to_func", 0, 1, 2, i); __PYX_ERR(8, 97, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(8, 97, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 97, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_func = values[0];
    __pyx_v_user_data = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_line_to_func", 0, 1, 2, __pyx_nargs); __PYX_ERR(8, 97, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.DrawFuncs.set_line_to_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs_10set_line_to_func(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *)__pyx_v_self), __pyx_v_func, __pyx_v_user_data);

  /* "src/uharfbuzz/_draw.pxi":97
 *             self._hb_drawfuncs, func_p, user_data_p, NULL)
 * 
 *     def set_line_to_func(self,             # <<<<<<<<<<<<<<
 *                          func: Callable[[
 *                              float,
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs_10set_line_to_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *__pyx_v_self, PyObject *__pyx_v_func, PyObject *__pyx_v_user_data) {
  hb_draw_line_to_func_t __pyx_v_func_p;
  void *__pyx_v_user_data_p;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  void *__pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("set_line_to_func", 0);

  /* "src/uharfbuzz/_draw.pxi":106
 *         cdef hb_draw_line_to_func_t func_p
 *         cdef void *user_data_p
 *         if PyCapsule_IsValid(func, NULL):             # <<<<<<<<<<<<<<
 *             self._line_to_func = None
 *             func_p = <hb_draw_line_to_func_t>PyCapsule_GetPointer(func, NULL)
*/
  __pyx_t_1 = PyCapsule_IsValid(__pyx_v_func, NULL);
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_draw.pxi":107
 *         cdef void *user_data_p
 *         if PyCapsule_IsValid(func, NULL):
 *             self._line_to_func = None             # <<<<<<<<<<<<<<
 *             func_p = <hb_draw_line_to_func_t>PyCapsule_GetPointer(func, NULL)
 *             if PyCapsule_IsValid(user_data, NULL):
*/
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    __Pyx_GOTREF(__pyx_v_self->_line_to_func);
    __Pyx_DECREF(__pyx_v_self->_line_to_func);
    __pyx_v_self->_line_to_func = Py_None;

    /* "src/uharfbuzz/_draw.pxi":108
 *         if PyCapsule_IsValid(func, NULL):
 *             self._line_to_func = None
 *             func_p = <hb_draw_line_to_func_t>PyCapsule_GetPointer(func, NULL)             # <<<<<<<<<<<<<<
 *             if PyCapsule_IsValid(user_data, NULL):
 *                 user_data_p = <void*>PyCapsule_GetPointer(user_data, NULL)
*/
    __pyx_t_2 = PyCapsule_GetPointer(__pyx_v_func, NULL); if (unlikely(__pyx_t_2 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(8, 108, __pyx_L1_error)
    __pyx_v_func_p = ((hb_draw_line_to_func_t)__pyx_t_2);

    /* "src/uharfbuzz/_draw.pxi":109
 *             self._line_to_func = None
 *             func_p = <hb_draw_line_to_func_t>PyCapsule_GetPointer(func, NULL)
 *             if PyCapsule_IsValid(user_data, NULL):             # <<<<<<<<<<<<<<
 *                 user_data_p = <void*>PyCapsule_GetPointer(user_data, NULL)
 *             else:
*/
    __pyx_t_1 = PyCapsule_IsValid(__pyx_v_user_data, NULL);
    if (__pyx_t_1) {

      /* "src/uharfbuzz/_draw.pxi":110
 *             func_p = <hb_draw_line_to_func_t>PyCapsule_GetPointer(func, NULL)
 *             if PyCapsule_IsValid(user_data, NULL):
 *                 user_data_p = <void*>PyCapsule_GetPointer(user_data, NULL)             # <<<<<<<<<<<<<<
 *             else:
 *                 user_data_p = <void*>user_data
*/
      __pyx_t_2 = PyCapsule_GetPointer(__pyx_v_user_data, NULL); if (unlikely(__pyx_t_2 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(8, 110, __pyx_L1_error)
      __pyx_v_user_data_p = ((void *)__pyx_t_2);

      /* "src/uharfbuzz/_draw.pxi":109
 *             self._line_to_func = None
 *             func_p = <hb_draw_line_to_func_t>PyCapsule_GetPointer(func, NULL)
 *             if PyCapsule_IsValid(user_data, NULL):             # <<<<<<<<<<<<<<
 *                 user_data_p = <void*>PyCapsule_GetPointer(user_data, NULL)
 *             else:
*/
      goto __pyx_L4;
    }

    /* "src/uharfbuzz/_draw.pxi":112
 *                 user_data_p = <void*>PyCapsule_GetPointer(user_data, NULL)
 *             else:
 *                 user_data_p = <void*>user_data             # <<<<<<<<<<<<<<
 *         else:
 *             self._line_to_func = func
*/
    /*else*/ {
      __pyx_v_user_data_p = ((void *)__pyx_v_user_data);
    }
    __pyx_L4:;

    /* "src/uharfbuzz/_draw.pxi":106
 *         cdef hb_draw_line_to_func_t func_p
 *         cdef void *user_data_p
 *         if PyCapsule_IsValid(func, NULL):             # <<<<<<<<<<<<<<
 *             self._line_to_func = None
 *             func_p = <hb_draw_line_to_func_t>PyCapsule_GetPointer(func, NULL)
*/
    goto __pyx_L3;
  }

  /* "src/uharfbuzz/_draw.pxi":114
 *                 user_data_p = <void*>user_data
 *         else:
 *             self._line_to_func = func             # <<<<<<<<<<<<<<
 *             func_p = _line_to_func
 *             assert user_data is None, "Pass draw_state to Font.draw_glyph"
*/
  /*else*/ {
    __Pyx_INCREF(__pyx_v_func);
    __Pyx_GIVEREF(__pyx_v_func);
    __Pyx_GOTREF(__pyx_v_self->_line_to_func);
    __Pyx_DECREF(__pyx_v_self->_line_to_func);
    __pyx_v_self->_line_to_func = __pyx_v_func;

    /* "src/uharfbuzz/_draw.pxi":115
 *         else:
 *             self._line_to_func = func
 *             func_p = _line_to_func             # <<<<<<<<<<<<<<
 *             assert user_data is None, "Pass draw_state to Font.draw_glyph"
 *             user_data_p = <void*>func
*/
    __pyx_v_func_p = __pyx_f_9uharfbuzz_9_harfbuzz__line_to_func;

    /* "src/uharfbuzz/_draw.pxi":116
 *             self._line_to_func = func
 *             func_p = _line_to_func
 *             assert user_data is None, "Pass draw_state to Font.draw_glyph"             # <<<<<<<<<<<<<<
 *             user_data_p = <void*>func
 *         hb_draw_funcs_set_line_to_func(
*/
    #ifndef CYTHON_WITHOUT_ASSERTIONS
    if (unlikely(__pyx_assertions_enabled())) {
      __pyx_t_1 = (__pyx_v_user_data == Py_None);
      if (unlikely(!__pyx_t_1)) {
        __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_AssertionError))), __pyx_mstate_global->__pyx_kp_u_Pass_draw_state_to_Font_draw_gly, 0, 0);
        __PYX_ERR(8, 116, __pyx_L1_error)
      }
    }
    #else
    if ((1)); else __PYX_ERR(8, 116, __pyx_L1_error)
    #endif

    /* "src/uharfbuzz/_draw.pxi":117
 *             func_p = _line_to_func
 *             assert user_data is None, "Pass draw_state to Font.draw_glyph"
 *             user_data_p = <void*>func             # <<<<<<<<<<<<<<
 *         hb_draw_funcs_set_line_to_func(
 *             self._hb_drawfuncs, func_p, user_data_p, NULL)
*/
    __pyx_v_user_data_p = ((void *)__pyx_v_func);
  }
  __pyx_L3:;

  /* "src/uharfbuzz/_draw.pxi":118
 *             assert user_data is None, "Pass draw_state to Font.draw_glyph"
 *             user_data_p = <void*>func
 *         hb_draw_funcs_set_line_to_func(             # <<<<<<<<<<<<<<
 *             self._hb_drawfuncs, func_p, user_data_p, NULL)
 * 
*/
  hb_draw_funcs_set_line_to_func(__pyx_v_self->_hb_drawfuncs, __pyx_v_func_p, __pyx_v_user_data_p, NULL);

  /* "src/uharfbuzz/_draw.pxi":97
 *             self._hb_drawfuncs, func_p, user_data_p, NULL)
 * 
 *     def set_line_to_func(self,             # <<<<<<<<<<<<<<
 *                          func: Callable[[
 *                              float,
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.DrawFuncs.set_line_to_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_draw.pxi":121
 *             self._hb_drawfuncs, func_p, user_data_p, NULL)
 * 
 *     def set_cubic_to_func(self,             # <<<<<<<<<<<<<<
 *                           func: Callable[[
 *                              float,
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_13set_cubic_to_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_9DrawFuncs_13set_cubic_to_func = {"set_cubic_to_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_13set_cubic_to_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_13set_cubic_to_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_func = 0;
  PyObject *__pyx_v_user_data = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_cubic_to_func (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func,&__pyx_mstate_global->__pyx_n_u_user_data,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(8, 121, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(8, 121, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 121, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_cubic_to_func", 0) < (0)) __PYX_ERR(8, 121, __pyx_L3_error)

      /* "src/uharfbuzz/_draw.pxi":131
 *                              object,  # draw_data
 *                           ], None],
 *                           user_data: object = None):             # <<<<<<<<<<<<<<
 *         cdef hb_draw_cubic_to_func_t func_p
 *         cdef void *user_data_p
*/
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_cubic_to_func", 0, 1, 2, i); __PYX_ERR(8, 121, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(8, 121, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 121, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_func = values[0];
    __pyx_v_user_data = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_cubic_to_func", 0, 1, 2, __pyx_nargs); __PYX_ERR(8, 121, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.DrawFuncs.set_cubic_to_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs_12set_cubic_to_func(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *)__pyx_v_self), __pyx_v_func, __pyx_v_user_data);

  /* "src/uharfbuzz/_draw.pxi":121
 *             self._hb_drawfuncs, func_p, user_data_p, NULL)
 * 
 *     def set_cubic_to_func(self,             # <<<<<<<<<<<<<<
 *                           func: Callable[[
 *                              float,
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs_12set_cubic_to_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *__pyx_v_self, PyObject *__pyx_v_func, PyObject *__pyx_v_user_data) {
  hb_draw_cubic_to_func_t __pyx_v_func_p;
  void *__pyx_v_user_data_p;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  void *__pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("set_cubic_to_func", 0);

  /* "src/uharfbuzz/_draw.pxi":134
 *         cdef hb_draw_cubic_to_func_t func_p
 *         cdef void *user_data_p
 *         if PyCapsule_IsValid(func, NULL):             # <<<<<<<<<<<<<<
 *             self._cubic_to_func = None
 *             func_p = <hb_draw_cubic_to_func_t>PyCapsule_GetPointer(func, NULL)
*/
  __pyx_t_1 = PyCapsule_IsValid(__pyx_v_func, NULL);
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_draw.pxi":135
 *         cdef void *user_data_p
 *         if PyCapsule_IsValid(func, NULL):
 *             self._cubic_to_func = None             # <<<<<<<<<<<<<<
 *             func_p = <hb_draw_cubic_to_func_t>PyCapsule_GetPointer(func, NULL)
 *             if PyCapsule_IsValid(user_data, NULL):
*/
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    __Pyx_GOTREF(__pyx_v_self->_cubic_to_func);
    __Pyx_DECREF(__pyx_v_self->_cubic_to_func);
    __pyx_v_self->_cubic_to_func = Py_None;

    /* "src/uharfbuzz/_draw.pxi":136
 *         if PyCapsule_IsValid(func, NULL):
 *             self._cubic_to_func = None
 *             func_p = <hb_draw_cubic_to_func_t>PyCapsule_GetPointer(func, NULL)             # <<<<<<<<<<<<<<
 *             if PyCapsule_IsValid(user_data, NULL):
 *                 user_data_p = <void*>PyCapsule_GetPointer(user_data, NULL)
*/
    __pyx_t_2 = PyCapsule_GetPointer(__pyx_v_func, NULL); if (unlikely(__pyx_t_2 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(8, 136, __pyx_L1_error)
    __pyx_v_func_p = ((hb_draw_cubic_to_func_t)__pyx_t_2);

    /* "src/uharfbuzz/_draw.pxi":137
 *             self._cubic_to_func = None
 *             func_p = <hb_draw_cubic_to_func_t>PyCapsule_GetPointer(func, NULL)
 *             if PyCapsule_IsValid(user_data, NULL):             # <<<<<<<<<<<<<<
 *                 user_data_p = <void*>PyCapsule_GetPointer(user_data, NULL)
 *             else:
*/
    __pyx_t_1 = PyCapsule_IsValid(__pyx_v_user_data, NULL);
    if (__pyx_t_1) {

      /* "src/uharfbuzz/_draw.pxi":138
 *             func_p = <hb_draw_cubic_to_func_t>PyCapsule_GetPointer(func, NULL)
 *             if PyCapsule_IsValid(user_data, NULL):
 *                 user_data_p = <void*>PyCapsule_GetPointer(user_data, NULL)             # <<<<<<<<<<<<<<
 *             else:
 *                 user_data_p = <void*>user_data
*/
      __pyx_t_2 = PyCapsule_GetPointer(__pyx_v_user_data, NULL); if (unlikely(__pyx_t_2 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(8, 138, __pyx_L1_error)
      __pyx_v_user_data_p = ((void *)__pyx_t_2);

      /* "src/uharfbuzz/_draw.pxi":137
 *             self._cubic_to_func = None
 *             func_p = <hb_draw_cubic_to_func_t>PyCapsule_GetPointer(func, NULL)
 *             if PyCapsule_IsValid(user_data, NULL):             # <<<<<<<<<<<<<<
 *                 user_data_p = <void*>PyCapsule_GetPointer(user_data, NULL)
 *             else:
*/
      goto __pyx_L4;
    }

    /* "src/uharfbuzz/_draw.pxi":140
 *                 user_data_p = <void*>PyCapsule_GetPointer(user_data, NULL)
 *             else:
 *                 user_data_p = <void*>user_data             # <<<<<<<<<<<<<<
 *         else:
 *             self._cubic_to_func = func
*/
    /*else*/ {
      __pyx_v_user_data_p = ((void *)__pyx_v_user_data);
    }
    __pyx_L4:;

    /* "src/uharfbuzz/_draw.pxi":134
 *         cdef hb_draw_cubic_to_func_t func_p
 *         cdef void *user_data_p
 *         if PyCapsule_IsValid(func, NULL):             # <<<<<<<<<<<<<<
 *             self._cubic_to_func = None
 *             func_p = <hb_draw_cubic_to_func_t>PyCapsule_GetPointer(func, NULL)
*/
    goto __pyx_L3;
  }

  /* "src/uharfbuzz/_draw.pxi":142
 *                 user_data_p = <void*>user_data
 *         else:
 *             self._cubic_to_func = func             # <<<<<<<<<<<<<<
 *             func_p = _cubic_to_func
 *             assert user_data is None, "Pass draw_state to Font.draw_glyph"
*/
  /*else*/ {
    __Pyx_INCREF(__pyx_v_func);
    __Pyx_GIVEREF(__pyx_v_func);
    __Pyx_GOTREF(__pyx_v_self->_cubic_to_func);
    __Pyx_DECREF(__pyx_v_self->_cubic_to_func);
    __pyx_v_self->_cubic_to_func = __pyx_v_func;

    /* "src/uharfbuzz/_draw.pxi":143
 *         else:
 *             self._cubic_to_func = func
 *             func_p = _cubic_to_func             # <<<<<<<<<<<<<<
 *             assert user_data is None, "Pass draw_state to Font.draw_glyph"
 *             user_data_p = <void*>func
*/
    __pyx_v_func_p = __pyx_f_9uharfbuzz_9_harfbuzz__cubic_to_func;

    /* "src/uharfbuzz/_draw.pxi":144
 *             self._cubic_to_func = func
 *             func_p = _cubic_to_func
 *             assert user_data is None, "Pass draw_state to Font.draw_glyph"             # <<<<<<<<<<<<<<
 *             user_data_p = <void*>func
 *         hb_draw_funcs_set_cubic_to_func(
*/
    #ifndef CYTHON_WITHOUT_ASSERTIONS
    if (unlikely(__pyx_assertions_enabled())) {
      __pyx_t_1 = (__pyx_v_user_data == Py_None);
      if (unlikely(!__pyx_t_1)) {
        __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_AssertionError))), __pyx_mstate_global->__pyx_kp_u_Pass_draw_state_to_Font_draw_gly, 0, 0);
        __PYX_ERR(8, 144, __pyx_L1_error)
      }
    }
    #else
    if ((1)); else __PYX_ERR(8, 144, __pyx_L1_error)
    #endif

    /* "src/uharfbuzz/_draw.pxi":145
 *             func_p = _cubic_to_func
 *             assert user_data is None, "Pass draw_state to Font.draw_glyph"
 *             user_data_p = <void*>func             # <<<<<<<<<<<<<<
 *         hb_draw_funcs_set_cubic_to_func(
 *             self._hb_drawfuncs, func_p, user_data_p, NULL)
*/
    __pyx_v_user_data_p = ((void *)__pyx_v_func);
  }
  __pyx_L3:;

  /* "src/uharfbuzz/_draw.pxi":146
 *             assert user_data is None, "Pass draw_state to Font.draw_glyph"
 *             user_data_p = <void*>func
 *         hb_draw_funcs_set_cubic_to_func(             # <<<<<<<<<<<<<<
 *             self._hb_drawfuncs, func_p, user_data_p, NULL)
 * 
*/
  hb_draw_funcs_set_cubic_to_func(__pyx_v_self->_hb_drawfuncs, __pyx_v_func_p, __pyx_v_user_data_p, NULL);

  /* "src/uharfbuzz/_draw.pxi":121
 *             self._hb_drawfuncs, func_p, user_data_p, NULL)
 * 
 *     def set_cubic_to_func(self,             # <<<<<<<<<<<<<<
 *                           func: Callable[[
 *                              float,
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.DrawFuncs.set_cubic_to_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_draw.pxi":149
 *             self._hb_drawfuncs, func_p, user_data_p, NULL)
 * 
 *     def set_quadratic_to_func(self,             # <<<<<<<<<<<<<<
 *                               func: Callable[[
 *                                  float,
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_15set_quadratic_to_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_9DrawFuncs_15set_quadratic_to_func = {"set_quadratic_to_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_15set_quadratic_to_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_15set_quadratic_to_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_func = 0;
  PyObject *__pyx_v_user_data = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_quadratic_to_func (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func,&__pyx_mstate_global->__pyx_n_u_user_data,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(8, 149, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(8, 149, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 149, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_quadratic_to_func", 0) < (0)) __PYX_ERR(8, 149, __pyx_L3_error)

      /* "src/uharfbuzz/_draw.pxi":157
 *                                  object,  # draw_data
 *                               ], None],
 *                               user_data: object = None):             # <<<<<<<<<<<<<<
 *         cdef hb_draw_quadratic_to_func_t func_p
 *         cdef void *user_data_p
*/
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_quadratic_to_func", 0, 1, 2, i); __PYX_ERR(8, 149, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(8, 149, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 149, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_func = values[0];
    __pyx_v_user_data = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_quadratic_to_func", 0, 1, 2, __pyx_nargs); __PYX_ERR(8, 149, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.DrawFuncs.set_quadratic_to_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs_14set_quadratic_to_func(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *)__pyx_v_self), __pyx_v_func, __pyx_v_user_data);

  /* "src/uharfbuzz/_draw.pxi":149
 *             self._hb_drawfuncs, func_p, user_data_p, NULL)
 * 
 *     def set_quadratic_to_func(self,             # <<<<<<<<<<<<<<
 *                               func: Callable[[
 *                                  float,
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs_14set_quadratic_to_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *__pyx_v_self, PyObject *__pyx_v_func, PyObject *__pyx_v_user_data) {
  hb_draw_quadratic_to_func_t __pyx_v_func_p;
  void *__pyx_v_user_data_p;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  void *__pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("set_quadratic_to_func", 0);

  /* "src/uharfbuzz/_draw.pxi":160
 *         cdef hb_draw_quadratic_to_func_t func_p
 *         cdef void *user_data_p
 *         if PyCapsule_IsValid(func, NULL):             # <<<<<<<<<<<<<<
 *             self._quadratic_to_func = None
 *             func_p = <hb_draw_quadratic_to_func_t>PyCapsule_GetPointer(func, NULL)
*/
  __pyx_t_1 = PyCapsule_IsValid(__pyx_v_func, NULL);
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_draw.pxi":161
 *         cdef void *user_data_p
 *         if PyCapsule_IsValid(func, NULL):
 *             self._quadratic_to_func = None             # <<<<<<<<<<<<<<
 *             func_p = <hb_draw_quadratic_to_func_t>PyCapsule_GetPointer(func, NULL)
 *             if PyCapsule_IsValid(user_data, NULL):
*/
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    __Pyx_GOTREF(__pyx_v_self->_quadratic_to_func);
    __Pyx_DECREF(__pyx_v_self->_quadratic_to_func);
    __pyx_v_self->_quadratic_to_func = Py_None;

    /* "src/uharfbuzz/_draw.pxi":162
 *         if PyCapsule_IsValid(func, NULL):
 *             self._quadratic_to_func = None
 *             func_p = <hb_draw_quadratic_to_func_t>PyCapsule_GetPointer(func, NULL)             # <<<<<<<<<<<<<<
 *             if PyCapsule_IsValid(user_data, NULL):
 *                 user_data_p = <void*>PyCapsule_GetPointer(user_data, NULL)
*/
    __pyx_t_2 = PyCapsule_GetPointer(__pyx_v_func, NULL); if (unlikely(__pyx_t_2 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(8, 162, __pyx_L1_error)
    __pyx_v_func_p = ((hb_draw_quadratic_to_func_t)__pyx_t_2);

    /* "src/uharfbuzz/_draw.pxi":163
 *             self._quadratic_to_func = None
 *             func_p = <hb_draw_quadratic_to_func_t>PyCapsule_GetPointer(func, NULL)
 *             if PyCapsule_IsValid(user_data, NULL):             # <<<<<<<<<<<<<<
 *                 user_data_p = <void*>PyCapsule_GetPointer(user_data, NULL)
 *             else:
*/
    __pyx_t_1 = PyCapsule_IsValid(__pyx_v_user_data, NULL);
    if (__pyx_t_1) {

      /* "src/uharfbuzz/_draw.pxi":164
 *             func_p = <hb_draw_quadratic_to_func_t>PyCapsule_GetPointer(func, NULL)
 *             if PyCapsule_IsValid(user_data, NULL):
 *                 user_data_p = <void*>PyCapsule_GetPointer(user_data, NULL)             # <<<<<<<<<<<<<<
 *             else:
 *                 user_data_p = <void*>user_data
*/
      __pyx_t_2 = PyCapsule_GetPointer(__pyx_v_user_data, NULL); if (unlikely(__pyx_t_2 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(8, 164, __pyx_L1_error)
      __pyx_v_user_data_p = ((void *)__pyx_t_2);

      /* "src/uharfbuzz/_draw.pxi":163
 *             self._quadratic_to_func = None
 *             func_p = <hb_draw_quadratic_to_func_t>PyCapsule_GetPointer(func, NULL)
 *             if PyCapsule_IsValid(user_data, NULL):             # <<<<<<<<<<<<<<
 *                 user_data_p = <void*>PyCapsule_GetPointer(user_data, NULL)
 *             else:
*/
      goto __pyx_L4;
    }

    /* "src/uharfbuzz/_draw.pxi":166
 *                 user_data_p = <void*>PyCapsule_GetPointer(user_data, NULL)
 *             else:
 *                 user_data_p = <void*>user_data             # <<<<<<<<<<<<<<
 *         else:
 *             self._quadratic_to_func = func
*/
    /*else*/ {
      __pyx_v_user_data_p = ((void *)__pyx_v_user_data);
    }
    __pyx_L4:;

    /* "src/uharfbuzz/_draw.pxi":160
 *         cdef hb_draw_quadratic_to_func_t func_p
 *         cdef void *user_data_p
 *         if PyCapsule_IsValid(func, NULL):             # <<<<<<<<<<<<<<
 *             self._quadratic_to_func = None
 *             func_p = <hb_draw_quadratic_to_func_t>PyCapsule_GetPointer(func, NULL)
*/
    goto __pyx_L3;
  }

  /* "src/uharfbuzz/_draw.pxi":168
 *                 user_data_p = <void*>user_data
 *         else:
 *             self._quadratic_to_func = func             # <<<<<<<<<<<<<<
 *             func_p = _quadratic_to_func
 *             assert user_data is None, "Pass draw_state to Font.draw_glyph"
*/
  /*else*/ {
    __Pyx_INCREF(__pyx_v_func);
    __Pyx_GIVEREF(__pyx_v_func);
    __Pyx_GOTREF(__pyx_v_self->_quadratic_to_func);
    __Pyx_DECREF(__pyx_v_self->_quadratic_to_func);
    __pyx_v_self->_quadratic_to_func = __pyx_v_func;

    /* "src/uharfbuzz/_draw.pxi":169
 *         else:
 *             self._quadratic_to_func = func
 *             func_p = _quadratic_to_func             # <<<<<<<<<<<<<<
 *             assert user_data is None, "Pass draw_state to Font.draw_glyph"
 *             user_data_p = <void*>func
*/
    __pyx_v_func_p = __pyx_f_9uharfbuzz_9_harfbuzz__quadratic_to_func;

    /* "src/uharfbuzz/_draw.pxi":170
 *             self._quadratic_to_func = func
 *             func_p = _quadratic_to_func
 *             assert user_data is None, "Pass draw_state to Font.draw_glyph"             # <<<<<<<<<<<<<<
 *             user_data_p = <void*>func
 *         hb_draw_funcs_set_quadratic_to_func(
*/
    #ifndef CYTHON_WITHOUT_ASSERTIONS
    if (unlikely(__pyx_assertions_enabled())) {
      __pyx_t_1 = (__pyx_v_user_data == Py_None);
      if (unlikely(!__pyx_t_1)) {
        __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_AssertionError))), __pyx_mstate_global->__pyx_kp_u_Pass_draw_state_to_Font_draw_gly, 0, 0);
        __PYX_ERR(8, 170, __pyx_L1_error)
      }
    }
    #else
    if ((1)); else __PYX_ERR(8, 170, __pyx_L1_error)
    #endif

    /* "src/uharfbuzz/_draw.pxi":171
 *             func_p = _quadratic_to_func
 *             assert user_data is None, "Pass draw_state to Font.draw_glyph"
 *             user_data_p = <void*>func             # <<<<<<<<<<<<<<
 *         hb_draw_funcs_set_quadratic_to_func(
 *             self._hb_drawfuncs, func_p, user_data_p, NULL)
*/
    __pyx_v_user_data_p = ((void *)__pyx_v_func);
  }
  __pyx_L3:;

  /* "src/uharfbuzz/_draw.pxi":172
 *             assert user_data is None, "Pass draw_state to Font.draw_glyph"
 *             user_data_p = <void*>func
 *         hb_draw_funcs_set_quadratic_to_func(             # <<<<<<<<<<<<<<
 *             self._hb_drawfuncs, func_p, user_data_p, NULL)
 * 
*/
  hb_draw_funcs_set_quadratic_to_func(__pyx_v_self->_hb_drawfuncs, __pyx_v_func_p, __pyx_v_user_data_p, NULL);

  /* "src/uharfbuzz/_draw.pxi":149
 *             self._hb_drawfuncs, func_p, user_data_p, NULL)
 * 
 *     def set_quadratic_to_func(self,             # <<<<<<<<<<<<<<
 *                               func: Callable[[
 *                                  float,
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.DrawFuncs.set_quadratic_to_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_draw.pxi":175
 *             self._hb_drawfuncs, func_p, user_data_p, NULL)
 * 
 *     def set_close_path_func(self,             # <<<<<<<<<<<<<<
 *                             func: Callable[[
 *                                 object
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_17set_close_path_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_9DrawFuncs_17set_close_path_func = {"set_close_path_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_17set_close_path_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_17set_close_path_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_func = 0;
  PyObject *__pyx_v_user_data = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_close_path_func (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func,&__pyx_mstate_global->__pyx_n_u_user_data,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(8, 175, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(8, 175, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 175, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_close_path_func", 0) < (0)) __PYX_ERR(8, 175, __pyx_L3_error)

      /* "src/uharfbuzz/_draw.pxi":179
 *                                 object
 *                             ], None],
 *                             user_data: object = None):             # <<<<<<<<<<<<<<
 *         cdef hb_draw_close_path_func_t func_p
 *         cdef void *user_data_p
*/
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_close_path_func", 0, 1, 2, i); __PYX_ERR(8, 175, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(8, 175, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 175, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_func = values[0];
    __pyx_v_user_data = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_close_path_func", 0, 1, 2, __pyx_nargs); __PYX_ERR(8, 175, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.DrawFuncs.set_close_path_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs_16set_close_path_func(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *)__pyx_v_self), __pyx_v_func, __pyx_v_user_data);

  /* "src/uharfbuzz/_draw.pxi":175
 *             self._hb_drawfuncs, func_p, user_data_p, NULL)
 * 
 *     def set_close_path_func(self,             # <<<<<<<<<<<<<<
 *                             func: Callable[[
 *                                 object
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs_16set_close_path_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *__pyx_v_self, PyObject *__pyx_v_func, PyObject *__pyx_v_user_data) {
  hb_draw_close_path_func_t __pyx_v_func_p;
  void *__pyx_v_user_data_p;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  void *__pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("set_close_path_func", 0);

  /* "src/uharfbuzz/_draw.pxi":182
 *         cdef hb_draw_close_path_func_t func_p
 *         cdef void *user_data_p
 *         if PyCapsule_IsValid(func, NULL):             # <<<<<<<<<<<<<<
 *             self._close_path_func = None
 *             func_p = <hb_draw_close_path_func_t>PyCapsule_GetPointer(func, NULL)
*/
  __pyx_t_1 = PyCapsule_IsValid(__pyx_v_func, NULL);
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_draw.pxi":183
 *         cdef void *user_data_p
 *         if PyCapsule_IsValid(func, NULL):
 *             self._close_path_func = None             # <<<<<<<<<<<<<<
 *             func_p = <hb_draw_close_path_func_t>PyCapsule_GetPointer(func, NULL)
 *             if PyCapsule_IsValid(user_data, NULL):
*/
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    __Pyx_GOTREF(__pyx_v_self->_close_path_func);
    __Pyx_DECREF(__pyx_v_self->_close_path_func);
    __pyx_v_self->_close_path_func = Py_None;

    /* "src/uharfbuzz/_draw.pxi":184
 *         if PyCapsule_IsValid(func, NULL):
 *             self._close_path_func = None
 *             func_p = <hb_draw_close_path_func_t>PyCapsule_GetPointer(func, NULL)             # <<<<<<<<<<<<<<
 *             if PyCapsule_IsValid(user_data, NULL):
 *                 user_data_p = <void*>PyCapsule_GetPointer(user_data, NULL)
*/
    __pyx_t_2 = PyCapsule_GetPointer(__pyx_v_func, NULL); if (unlikely(__pyx_t_2 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(8, 184, __pyx_L1_error)
    __pyx_v_func_p = ((hb_draw_close_path_func_t)__pyx_t_2);

    /* "src/uharfbuzz/_draw.pxi":185
 *             self._close_path_func = None
 *             func_p = <hb_draw_close_path_func_t>PyCapsule_GetPointer(func, NULL)
 *             if PyCapsule_IsValid(user_data, NULL):             # <<<<<<<<<<<<<<
 *                 user_data_p = <void*>PyCapsule_GetPointer(user_data, NULL)
 *             else:
*/
    __pyx_t_1 = PyCapsule_IsValid(__pyx_v_user_data, NULL);
    if (__pyx_t_1) {

      /* "src/uharfbuzz/_draw.pxi":186
 *             func_p = <hb_draw_close_path_func_t>PyCapsule_GetPointer(func, NULL)
 *             if PyCapsule_IsValid(user_data, NULL):
 *                 user_data_p = <void*>PyCapsule_GetPointer(user_data, NULL)             # <<<<<<<<<<<<<<
 *             else:
 *                 user_data_p = <void*>user_data
*/
      __pyx_t_2 = PyCapsule_GetPointer(__pyx_v_user_data, NULL); if (unlikely(__pyx_t_2 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(8, 186, __pyx_L1_error)
      __pyx_v_user_data_p = ((void *)__pyx_t_2);

      /* "src/uharfbuzz/_draw.pxi":185
 *             self._close_path_func = None
 *             func_p = <hb_draw_close_path_func_t>PyCapsule_GetPointer(func, NULL)
 *             if PyCapsule_IsValid(user_data, NULL):             # <<<<<<<<<<<<<<
 *                 user_data_p = <void*>PyCapsule_GetPointer(user_data, NULL)
 *             else:
*/
      goto __pyx_L4;
    }

    /* "src/uharfbuzz/_draw.pxi":188
 *                 user_data_p = <void*>PyCapsule_GetPointer(user_data, NULL)
 *             else:
 *                 user_data_p = <void*>user_data             # <<<<<<<<<<<<<<
 *         else:
 *             self._close_path_func = func
*/
    /*else*/ {
      __pyx_v_user_data_p = ((void *)__pyx_v_user_data);
    }
    __pyx_L4:;

    /* "src/uharfbuzz/_draw.pxi":182
 *         cdef hb_draw_close_path_func_t func_p
 *         cdef void *user_data_p
 *         if PyCapsule_IsValid(func, NULL):             # <<<<<<<<<<<<<<
 *             self._close_path_func = None
 *             func_p = <hb_draw_close_path_func_t>PyCapsule_GetPointer(func, NULL)
*/
    goto __pyx_L3;
  }

  /* "src/uharfbuzz/_draw.pxi":190
 *                 user_data_p = <void*>user_data
 *         else:
 *             self._close_path_func = func             # <<<<<<<<<<<<<<
 *             func_p = _close_path_func
 *             assert user_data is None, "Pass draw_state to Font.draw_glyph"
*/
  /*else*/ {
    __Pyx_INCREF(__pyx_v_func);
    __Pyx_GIVEREF(__pyx_v_func);
    __Pyx_GOTREF(__pyx_v_self->_close_path_func);
    __Pyx_DECREF(__pyx_v_self->_close_path_func);
    __pyx_v_self->_close_path_func = __pyx_v_func;

    /* "src/uharfbuzz/_draw.pxi":191
 *         else:
 *             self._close_path_func = func
 *             func_p = _close_path_func             # <<<<<<<<<<<<<<
 *             assert user_data is None, "Pass draw_state to Font.draw_glyph"
 *             user_data_p = <void*>func
*/
    __pyx_v_func_p = __pyx_f_9uharfbuzz_9_harfbuzz__close_path_func;

    /* "src/uharfbuzz/_draw.pxi":192
 *             self._close_path_func = func
 *             func_p = _close_path_func
 *             assert user_data is None, "Pass draw_state to Font.draw_glyph"             # <<<<<<<<<<<<<<
 *             user_data_p = <void*>func
 *         hb_draw_funcs_set_close_path_func(
*/
    #ifndef CYTHON_WITHOUT_ASSERTIONS
    if (unlikely(__pyx_assertions_enabled())) {
      __pyx_t_1 = (__pyx_v_user_data == Py_None);
      if (unlikely(!__pyx_t_1)) {
        __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_AssertionError))), __pyx_mstate_global->__pyx_kp_u_Pass_draw_state_to_Font_draw_gly, 0, 0);
        __PYX_ERR(8, 192, __pyx_L1_error)
      }
    }
    #else
    if ((1)); else __PYX_ERR(8, 192, __pyx_L1_error)
    #endif

    /* "src/uharfbuzz/_draw.pxi":193
 *             func_p = _close_path_func
 *             assert user_data is None, "Pass draw_state to Font.draw_glyph"
 *             user_data_p = <void*>func             # <<<<<<<<<<<<<<
 *         hb_draw_funcs_set_close_path_func(
 *             self._hb_drawfuncs, func_p, user_data_p, NULL)
*/
    __pyx_v_user_data_p = ((void *)__pyx_v_func);
  }
  __pyx_L3:;

  /* "src/uharfbuzz/_draw.pxi":194
 *             assert user_data is None, "Pass draw_state to Font.draw_glyph"
 *             user_data_p = <void*>func
 *         hb_draw_funcs_set_close_path_func(             # <<<<<<<<<<<<<<
 *             self._hb_drawfuncs, func_p, user_data_p, NULL)
*/
  hb_draw_funcs_set_close_path_func(__pyx_v_self->_hb_drawfuncs, __pyx_v_func_p, __pyx_v_user_data_p, NULL);

  /* "src/uharfbuzz/_draw.pxi":175
 *             self._hb_drawfuncs, func_p, user_data_p, NULL)
 * 
 *     def set_close_path_func(self,             # <<<<<<<<<<<<<<
 *                             func: Callable[[
 *                                 object
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.DrawFuncs.set_close_path_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_19__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_9DrawFuncs_19__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_19__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_19__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs_18__reduce_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs_18__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.DrawFuncs.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_21__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_9DrawFuncs_21__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_21__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_21__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 3, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < (0)) __PYX_ERR(4, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(4, 3, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(4, 3, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.DrawFuncs.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs_20__setstate_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9DrawFuncs_20__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.DrawFuncs.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_paint.pxi":236
 *     cdef hb_color_line_t* _color_line
 * 
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self._color_line = NULL
 * 
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_9ColorLine_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_9ColorLine_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, __pyx_nargs); return -1; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__cinit__", __pyx_kwds); return -1;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_9ColorLine___cinit__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_9ColorLine___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine *__pyx_v_self) {
  int __pyx_r;

  /* "src/uharfbuzz/_paint.pxi":237
 * 
 *     def __cinit__(self):
 *         self._color_line = NULL             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
*/
  __pyx_v_self->_color_line = NULL;

  /* "src/uharfbuzz/_paint.pxi":236
 *     cdef hb_color_line_t* _color_line
 * 
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self._color_line = NULL
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "src/uharfbuzz/_paint.pxi":239
 *         self._color_line = NULL
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     cdef ColorLine from_ptr(hb_color_line_t* color_line):
 *         cdef ColorLine wrapper = ColorLine()
*/

static struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine *__pyx_f_9uharfbuzz_9_harfbuzz_9ColorLine_from_ptr(hb_color_line_t *__pyx_v_color_line) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine *__pyx_v_wrapper = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("from_ptr", 0);

  /* "src/uharfbuzz/_paint.pxi":241
 *     @staticmethod
 *     cdef ColorLine from_ptr(hb_color_line_t* color_line):
 *         cdef ColorLine wrapper = ColorLine()             # <<<<<<<<<<<<<<
 *         wrapper._color_line = color_line
 *         return wrapper
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_ColorLine, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 241, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_wrapper = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":242
 *     cdef ColorLine from_ptr(hb_color_line_t* color_line):
 *         cdef ColorLine wrapper = ColorLine()
 *         wrapper._color_line = color_line             # <<<<<<<<<<<<<<
 *         return wrapper
 * 
*/
  __pyx_v_wrapper->_color_line = __pyx_v_color_line;

  /* "src/uharfbuzz/_paint.pxi":243
 *         cdef ColorLine wrapper = ColorLine()
 *         wrapper._color_line = color_line
 *         return wrapper             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_wrapper);
  __pyx_r = __pyx_v_wrapper;
  goto __pyx_L0;

  /* "src/uharfbuzz/_paint.pxi":239
 *         self._color_line = NULL
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     cdef ColorLine from_ptr(hb_color_line_t* color_line):
 *         cdef ColorLine wrapper = ColorLine()
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ColorLine.from_ptr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_wrapper);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_paint.pxi":246
 * 
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def color_stops(self) -> Sequence[ColorStop]:
 *         """Fetches a list of color stops from this color line.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9ColorLine_11color_stops_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9ColorLine_11color_stops_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_9ColorLine_11color_stops___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9ColorLine_11color_stops___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine *__pyx_v_self) {
  unsigned int __pyx_v_stop_count;
  hb_color_stop_t __pyx_v_stops_array[128];
  PyObject *__pyx_v_stops = 0;
  unsigned int __pyx_v_i;
  unsigned int __pyx_v_start_offset;
  hb_color_stop_t __pyx_v_c_stop;
  PyObject *__pyx_v_py_color = NULL;
  PyObject *__pyx_v_stop = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  unsigned int __pyx_t_3;
  unsigned int __pyx_t_4;
  unsigned int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  size_t __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_paint.pxi":259
 *         <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-color-line-get-color-stops>`_.
 *         """
 *         if self._color_line is NULL:             # <<<<<<<<<<<<<<
 *             return []
 *         cdef unsigned int stop_count = STATIC_ARRAY_SIZE
*/
  __pyx_t_1 = (__pyx_v_self->_color_line == NULL);
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_paint.pxi":260
 *         """
 *         if self._color_line is NULL:
 *             return []             # <<<<<<<<<<<<<<
 *         cdef unsigned int stop_count = STATIC_ARRAY_SIZE
 *         cdef hb_color_stop_t stops_array[STATIC_ARRAY_SIZE]
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 260, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "src/uharfbuzz/_paint.pxi":259
 *         <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-color-line-get-color-stops>`_.
 *         """
 *         if self._color_line is NULL:             # <<<<<<<<<<<<<<
 *             return []
 *         cdef unsigned int stop_count = STATIC_ARRAY_SIZE
*/
  }

  /* "src/uharfbuzz/_paint.pxi":261
 *         if self._color_line is NULL:
 *             return []
 *         cdef unsigned int stop_count = STATIC_ARRAY_SIZE             # <<<<<<<<<<<<<<
 *         cdef hb_color_stop_t stops_array[STATIC_ARRAY_SIZE]
 *         cdef list stops = []
*/
  __pyx_v_stop_count = 0x80;

  /* "src/uharfbuzz/_paint.pxi":263
 *         cdef unsigned int stop_count = STATIC_ARRAY_SIZE
 *         cdef hb_color_stop_t stops_array[STATIC_ARRAY_SIZE]
 *         cdef list stops = []             # <<<<<<<<<<<<<<
 *         cdef unsigned int i
 *         cdef unsigned int start_offset = 0
*/
  __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_stops = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "src/uharfbuzz/_paint.pxi":265
 *         cdef list stops = []
 *         cdef unsigned int i
 *         cdef unsigned int start_offset = 0             # <<<<<<<<<<<<<<
 *         while stop_count == STATIC_ARRAY_SIZE:
 *             hb_color_line_get_color_stops(
*/
  __pyx_v_start_offset = 0;

  /* "src/uharfbuzz/_paint.pxi":266
 *         cdef unsigned int i
 *         cdef unsigned int start_offset = 0
 *         while stop_count == STATIC_ARRAY_SIZE:             # <<<<<<<<<<<<<<
 *             hb_color_line_get_color_stops(
 *                 self._color_line, start_offset, &stop_count, stops_array)
*/
  while (1) {
    __pyx_t_1 = (__pyx_v_stop_count == 0x80);
    if (!__pyx_t_1) break;

    /* "src/uharfbuzz/_paint.pxi":267
 *         cdef unsigned int start_offset = 0
 *         while stop_count == STATIC_ARRAY_SIZE:
 *             hb_color_line_get_color_stops(             # <<<<<<<<<<<<<<
 *                 self._color_line, start_offset, &stop_count, stops_array)
 *             for i in range(stop_count):
*/
    (void)(hb_color_line_get_color_stops(__pyx_v_self->_color_line, __pyx_v_start_offset, (&__pyx_v_stop_count), __pyx_v_stops_array));

    /* "src/uharfbuzz/_paint.pxi":269
 *             hb_color_line_get_color_stops(
 *                 self._color_line, start_offset, &stop_count, stops_array)
 *             for i in range(stop_count):             # <<<<<<<<<<<<<<
 *                 c_stop = stops_array[i]
 *                 py_color = Color.from_int(c_stop.color)
*/
    __pyx_t_3 = __pyx_v_stop_count;
    __pyx_t_4 = __pyx_t_3;
    for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) {
      __pyx_v_i = __pyx_t_5;

      /* "src/uharfbuzz/_paint.pxi":270
 *                 self._color_line, start_offset, &stop_count, stops_array)
 *             for i in range(stop_count):
 *                 c_stop = stops_array[i]             # <<<<<<<<<<<<<<
 *                 py_color = Color.from_int(c_stop.color)
 *                 stop = ColorStop(c_stop.offset, <bint>c_stop.is_foreground, py_color)
*/
      __pyx_v_c_stop = (__pyx_v_stops_array[__pyx_v_i]);

      /* "src/uharfbuzz/_paint.pxi":271
 *             for i in range(stop_count):
 *                 c_stop = stops_array[i]
 *                 py_color = Color.from_int(c_stop.color)             # <<<<<<<<<<<<<<
 *                 stop = ColorStop(c_stop.offset, <bint>c_stop.is_foreground, py_color)
 *                 stops.append(stop)
*/
      __pyx_t_6 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_Color); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 271, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_from_int); if (unlikely(!__pyx_t_8)) __PYX_ERR(9, 271, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = __Pyx_PyLong_From_uint32_t(__pyx_v_c_stop.color); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 271, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_9 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_8))) {
        __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_8);
        assert(__pyx_t_6);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_8, __pyx__function);
        __pyx_t_9 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_7};
        __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_8, __pyx_callargs+__pyx_t_9, (2-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 271, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __Pyx_XDECREF_SET(__pyx_v_py_color, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "src/uharfbuzz/_paint.pxi":272
 *                 c_stop = stops_array[i]
 *                 py_color = Color.from_int(c_stop.color)
 *                 stop = ColorStop(c_stop.offset, <bint>c_stop.is_foreground, py_color)             # <<<<<<<<<<<<<<
 *                 stops.append(stop)
 *             start_offset += stop_count
*/
      __pyx_t_8 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_ColorStop); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 272, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_6 = PyFloat_FromDouble(__pyx_v_c_stop.offset); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 272, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_10 = __Pyx_PyBool_FromLong((__pyx_v_c_stop.is_foreground != 0)); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 272, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __pyx_t_9 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_7))) {
        __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7);
        assert(__pyx_t_8);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_8);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
        __pyx_t_9 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[4] = {__pyx_t_8, __pyx_t_6, __pyx_t_10, __pyx_v_py_color};
        __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_9, (4-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 272, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __Pyx_XDECREF_SET(__pyx_v_stop, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "src/uharfbuzz/_paint.pxi":273
 *                 py_color = Color.from_int(c_stop.color)
 *                 stop = ColorStop(c_stop.offset, <bint>c_stop.is_foreground, py_color)
 *                 stops.append(stop)             # <<<<<<<<<<<<<<
 *             start_offset += stop_count
 *         return stops
*/
      __pyx_t_11 = __Pyx_PyList_Append(__pyx_v_stops, __pyx_v_stop); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(9, 273, __pyx_L1_error)
    }

    /* "src/uharfbuzz/_paint.pxi":274
 *                 stop = ColorStop(c_stop.offset, <bint>c_stop.is_foreground, py_color)
 *                 stops.append(stop)
 *             start_offset += stop_count             # <<<<<<<<<<<<<<
 *         return stops
 * 
*/
    __pyx_v_start_offset = (__pyx_v_start_offset + __pyx_v_stop_count);
  }

  /* "src/uharfbuzz/_paint.pxi":275
 *                 stops.append(stop)
 *             start_offset += stop_count
 *         return stops             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_stops);
  __pyx_r = __pyx_v_stops;
  goto __pyx_L0;

  /* "src/uharfbuzz/_paint.pxi":246
 * 
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def color_stops(self) -> Sequence[ColorStop]:
 *         """Fetches a list of color stops from this color line.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ColorLine.color_stops.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_stops);
  __Pyx_XDECREF(__pyx_v_py_color);
  __Pyx_XDECREF(__pyx_v_stop);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_paint.pxi":277
 *         return stops
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def extend(self) -> PaintExtend:
 *         """Fetches the extend mode of this color line.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9ColorLine_6extend_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9ColorLine_6extend_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_9ColorLine_6extend___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9ColorLine_6extend___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_paint.pxi":286
 *         <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-color-line-get-extend>`_.
 *         """
 *         if self._color_line is NULL:             # <<<<<<<<<<<<<<
 *             return None
 *         return PaintExtend(hb_color_line_get_extend(self._color_line))
*/
  __pyx_t_1 = (__pyx_v_self->_color_line == NULL);
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_paint.pxi":287
 *         """
 *         if self._color_line is NULL:
 *             return None             # <<<<<<<<<<<<<<
 *         return PaintExtend(hb_color_line_get_extend(self._color_line))
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "src/uharfbuzz/_paint.pxi":286
 *         <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-color-line-get-extend>`_.
 *         """
 *         if self._color_line is NULL:             # <<<<<<<<<<<<<<
 *             return None
 *         return PaintExtend(hb_color_line_get_extend(self._color_line))
*/
  }

  /* "src/uharfbuzz/_paint.pxi":288
 *         if self._color_line is NULL:
 *             return None
 *         return PaintExtend(hb_color_line_get_extend(self._color_line))             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_PaintExtend); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 288, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_hb_paint_extend_t(hb_color_line_get_extend(__pyx_v_self->_color_line)); if (unlikely(!__pyx_t_5)) __PYX_ERR(9, 288, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_5};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 288, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_paint.pxi":277
 *         return stops
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def extend(self) -> PaintExtend:
 *         """Fetches the extend mode of this color line.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ColorLine.extend.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9ColorLine_3__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_9ColorLine_3__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9ColorLine_3__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9ColorLine_3__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_9ColorLine_2__reduce_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9ColorLine_2__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ColorLine.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9ColorLine_5__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_9ColorLine_5__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9ColorLine_5__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9ColorLine_5__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 3, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < (0)) __PYX_ERR(4, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(4, 3, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(4, 3, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ColorLine.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_9ColorLine_4__setstate_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9ColorLine_4__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ColorLine.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_paint.pxi":291
 * 
 * 
 * cdef void _paint_push_transform_func(             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_t *funcs,
 *         void *paint_data,
*/

static void __pyx_f_9uharfbuzz_9_harfbuzz__paint_push_transform_func(CYTHON_UNUSED hb_paint_funcs_t *__pyx_v_funcs, void *__pyx_v_paint_data, float __pyx_v_xx, float __pyx_v_yx, float __pyx_v_xy, float __pyx_v_yy, float __pyx_v_dx, float __pyx_v_dy, void *__pyx_v_user_data) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_py_funcs = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  size_t __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_paint_push_transform_func", 0);

  /* "src/uharfbuzz/_paint.pxi":301
 *         float dy,
 *         void *user_data) noexcept:
 *     py_funcs = <PaintFuncs>user_data             # <<<<<<<<<<<<<<
 *     py_funcs._push_transform_func(xx, yx, xy, yy, dx, dy, <object>paint_data)
 * 
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_user_data);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_py_funcs = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":302
 *         void *user_data) noexcept:
 *     py_funcs = <PaintFuncs>user_data
 *     py_funcs._push_transform_func(xx, yx, xy, yy, dx, dy, <object>paint_data)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_2 = NULL;
  __Pyx_INCREF(__pyx_v_py_funcs->_push_transform_func);
  __pyx_t_3 = __pyx_v_py_funcs->_push_transform_func; 
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_xx); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 302, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_yx); if (unlikely(!__pyx_t_5)) __PYX_ERR(9, 302, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyFloat_FromDouble(__pyx_v_xy); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 302, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = PyFloat_FromDouble(__pyx_v_yy); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 302, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = PyFloat_FromDouble(__pyx_v_dx); if (unlikely(!__pyx_t_8)) __PYX_ERR(9, 302, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = PyFloat_FromDouble(__pyx_v_dy); if (unlikely(!__pyx_t_9)) __PYX_ERR(9, 302, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_10 = 1;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_10 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_2, __pyx_t_4, __pyx_t_5, __pyx_t_6, __pyx_t_7, __pyx_t_8, __pyx_t_9, ((PyObject *)__pyx_v_paint_data)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_10, (8-__pyx_t_10) | (__pyx_t_10*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 302, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":291
 * 
 * 
 * cdef void _paint_push_transform_func(             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_t *funcs,
 *         void *paint_data,
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._paint_push_transform_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_funcs);
  __Pyx_RefNannyFinishContext();
}

/* "src/uharfbuzz/_paint.pxi":305
 * 
 * 
 * cdef void _paint_pop_transform_func(             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_t *funcs,
 *         void *paint_data,
*/

static void __pyx_f_9uharfbuzz_9_harfbuzz__paint_pop_transform_func(CYTHON_UNUSED hb_paint_funcs_t *__pyx_v_funcs, void *__pyx_v_paint_data, void *__pyx_v_user_data) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_py_funcs = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_paint_pop_transform_func", 0);

  /* "src/uharfbuzz/_paint.pxi":309
 *         void *paint_data,
 *         void *user_data) noexcept:
 *     py_funcs = <PaintFuncs>user_data             # <<<<<<<<<<<<<<
 *     py_funcs._pop_transform_func(<object>paint_data)
 * 
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_user_data);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_py_funcs = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":310
 *         void *user_data) noexcept:
 *     py_funcs = <PaintFuncs>user_data
 *     py_funcs._pop_transform_func(<object>paint_data)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_2 = NULL;
  __Pyx_INCREF(__pyx_v_py_funcs->_pop_transform_func);
  __pyx_t_3 = __pyx_v_py_funcs->_pop_transform_func; 
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, ((PyObject *)__pyx_v_paint_data)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 310, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":305
 * 
 * 
 * cdef void _paint_pop_transform_func(             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_t *funcs,
 *         void *paint_data,
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._paint_pop_transform_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_funcs);
  __Pyx_RefNannyFinishContext();
}

/* "src/uharfbuzz/_paint.pxi":313
 * 
 * 
 * cdef hb_bool_t _paint_color_glyph_func(             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_t *funcs,
 *         void *paint_data,
*/

static hb_bool_t __pyx_f_9uharfbuzz_9_harfbuzz__paint_color_glyph_func(CYTHON_UNUSED hb_paint_funcs_t *__pyx_v_funcs, void *__pyx_v_paint_data, hb_codepoint_t __pyx_v_glyph, CYTHON_UNUSED hb_font_t *__pyx_v_font, void *__pyx_v_user_data) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_py_funcs = NULL;
  hb_bool_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_paint_color_glyph_func", 0);

  /* "src/uharfbuzz/_paint.pxi":319
 *         hb_font_t *font,
 *         void *user_data) noexcept:
 *     py_funcs = <PaintFuncs>user_data             # <<<<<<<<<<<<<<
 *     if py_funcs._color_glyph_func(glyph, <object>paint_data):
 *         return 1
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_user_data);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_py_funcs = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":320
 *         void *user_data) noexcept:
 *     py_funcs = <PaintFuncs>user_data
 *     if py_funcs._color_glyph_func(glyph, <object>paint_data):             # <<<<<<<<<<<<<<
 *         return 1
 *     return 0
*/
  __pyx_t_2 = NULL;
  __Pyx_INCREF(__pyx_v_py_funcs->_color_glyph_func);
  __pyx_t_3 = __pyx_v_py_funcs->_color_glyph_func; 
  __pyx_t_4 = __Pyx_PyLong_From_hb_codepoint_t(__pyx_v_glyph); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 320, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_t_4, ((PyObject *)__pyx_v_paint_data)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 320, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(9, 320, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_6) {

    /* "src/uharfbuzz/_paint.pxi":321
 *     py_funcs = <PaintFuncs>user_data
 *     if py_funcs._color_glyph_func(glyph, <object>paint_data):
 *         return 1             # <<<<<<<<<<<<<<
 *     return 0
 * 
*/
    __pyx_r = 1;
    goto __pyx_L0;

    /* "src/uharfbuzz/_paint.pxi":320
 *         void *user_data) noexcept:
 *     py_funcs = <PaintFuncs>user_data
 *     if py_funcs._color_glyph_func(glyph, <object>paint_data):             # <<<<<<<<<<<<<<
 *         return 1
 *     return 0
*/
  }

  /* "src/uharfbuzz/_paint.pxi":322
 *     if py_funcs._color_glyph_func(glyph, <object>paint_data):
 *         return 1
 *     return 0             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_r = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_paint.pxi":313
 * 
 * 
 * cdef hb_bool_t _paint_color_glyph_func(             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_t *funcs,
 *         void *paint_data,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._paint_color_glyph_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_funcs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_paint.pxi":325
 * 
 * 
 * cdef void _paint_push_clip_glyph_func(             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_t *funcs,
 *         void *paint_data,
*/

static void __pyx_f_9uharfbuzz_9_harfbuzz__paint_push_clip_glyph_func(CYTHON_UNUSED hb_paint_funcs_t *__pyx_v_funcs, void *__pyx_v_paint_data, hb_codepoint_t __pyx_v_glyph, CYTHON_UNUSED hb_font_t *__pyx_v_font, void *__pyx_v_user_data) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_py_funcs = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_paint_push_clip_glyph_func", 0);

  /* "src/uharfbuzz/_paint.pxi":331
 *         hb_font_t *font,
 *         void *user_data) noexcept:
 *     py_funcs = <PaintFuncs>user_data             # <<<<<<<<<<<<<<
 *     py_funcs._push_clip_glyph_func(glyph, <object>paint_data)
 * 
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_user_data);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_py_funcs = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":332
 *         void *user_data) noexcept:
 *     py_funcs = <PaintFuncs>user_data
 *     py_funcs._push_clip_glyph_func(glyph, <object>paint_data)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_2 = NULL;
  __Pyx_INCREF(__pyx_v_py_funcs->_push_clip_glyph_func);
  __pyx_t_3 = __pyx_v_py_funcs->_push_clip_glyph_func; 
  __pyx_t_4 = __Pyx_PyLong_From_hb_codepoint_t(__pyx_v_glyph); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 332, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_t_4, ((PyObject *)__pyx_v_paint_data)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 332, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":325
 * 
 * 
 * cdef void _paint_push_clip_glyph_func(             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_t *funcs,
 *         void *paint_data,
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._paint_push_clip_glyph_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_funcs);
  __Pyx_RefNannyFinishContext();
}

/* "src/uharfbuzz/_paint.pxi":335
 * 
 * 
 * cdef void _paint_push_clip_rectangle_func(             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_t *funcs,
 *         void *paint_data,
*/

static void __pyx_f_9uharfbuzz_9_harfbuzz__paint_push_clip_rectangle_func(CYTHON_UNUSED hb_paint_funcs_t *__pyx_v_funcs, void *__pyx_v_paint_data, float __pyx_v_xmin, float __pyx_v_ymin, float __pyx_v_xmax, float __pyx_v_ymax, void *__pyx_v_user_data) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_py_funcs = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_paint_push_clip_rectangle_func", 0);

  /* "src/uharfbuzz/_paint.pxi":343
 *         float ymax,
 *         void *user_data) noexcept:
 *     py_funcs = <PaintFuncs>user_data             # <<<<<<<<<<<<<<
 *     py_funcs._push_clip_rectangle_func(xmin, ymin, xmax, ymax, <object>paint_data)
 * 
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_user_data);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_py_funcs = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":344
 *         void *user_data) noexcept:
 *     py_funcs = <PaintFuncs>user_data
 *     py_funcs._push_clip_rectangle_func(xmin, ymin, xmax, ymax, <object>paint_data)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_2 = NULL;
  __Pyx_INCREF(__pyx_v_py_funcs->_push_clip_rectangle_func);
  __pyx_t_3 = __pyx_v_py_funcs->_push_clip_rectangle_func; 
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_xmin); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 344, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_ymin); if (unlikely(!__pyx_t_5)) __PYX_ERR(9, 344, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyFloat_FromDouble(__pyx_v_xmax); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 344, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = PyFloat_FromDouble(__pyx_v_ymax); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 344, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_2, __pyx_t_4, __pyx_t_5, __pyx_t_6, __pyx_t_7, ((PyObject *)__pyx_v_paint_data)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (6-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 344, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":335
 * 
 * 
 * cdef void _paint_push_clip_rectangle_func(             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_t *funcs,
 *         void *paint_data,
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._paint_push_clip_rectangle_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_funcs);
  __Pyx_RefNannyFinishContext();
}

/* "src/uharfbuzz/_paint.pxi":347
 * 
 * 
 * cdef void _paint_pop_clip_func(             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_t *funcs,
 *         void *paint_data,
*/

static void __pyx_f_9uharfbuzz_9_harfbuzz__paint_pop_clip_func(CYTHON_UNUSED hb_paint_funcs_t *__pyx_v_funcs, void *__pyx_v_paint_data, void *__pyx_v_user_data) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_py_funcs = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_paint_pop_clip_func", 0);

  /* "src/uharfbuzz/_paint.pxi":351
 *         void *paint_data,
 *         void *user_data) noexcept:
 *     py_funcs = <PaintFuncs>user_data             # <<<<<<<<<<<<<<
 *     py_funcs._pop_clip_func(<object>paint_data)
 * 
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_user_data);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_py_funcs = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":352
 *         void *user_data) noexcept:
 *     py_funcs = <PaintFuncs>user_data
 *     py_funcs._pop_clip_func(<object>paint_data)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_2 = NULL;
  __Pyx_INCREF(__pyx_v_py_funcs->_pop_clip_func);
  __pyx_t_3 = __pyx_v_py_funcs->_pop_clip_func; 
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, ((PyObject *)__pyx_v_paint_data)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 352, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":347
 * 
 * 
 * cdef void _paint_pop_clip_func(             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_t *funcs,
 *         void *paint_data,
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._paint_pop_clip_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_funcs);
  __Pyx_RefNannyFinishContext();
}

/* "src/uharfbuzz/_paint.pxi":355
 * 
 * 
 * cdef void _paint_color_func(             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_t *funcs,
 *         void *paint_data,
*/

static void __pyx_f_9uharfbuzz_9_harfbuzz__paint_color_func(CYTHON_UNUSED hb_paint_funcs_t *__pyx_v_funcs, void *__pyx_v_paint_data, hb_bool_t __pyx_v_is_foreground, hb_color_t __pyx_v_color, void *__pyx_v_user_data) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_py_funcs = NULL;
  PyObject *__pyx_v_py_color = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_paint_color_func", 0);

  /* "src/uharfbuzz/_paint.pxi":361
 *         hb_color_t color,
 *         void *user_data) noexcept:
 *     py_funcs = <PaintFuncs>user_data             # <<<<<<<<<<<<<<
 *     py_color: Color = Color.from_int(color)
 *     py_funcs._color_func(py_color, <bint>is_foreground, <object>paint_data)
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_user_data);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_py_funcs = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":362
 *         void *user_data) noexcept:
 *     py_funcs = <PaintFuncs>user_data
 *     py_color: Color = Color.from_int(color)             # <<<<<<<<<<<<<<
 *     py_funcs._color_func(py_color, <bint>is_foreground, <object>paint_data)
 * 
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_Color); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 362, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_from_int); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 362, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyLong_From_uint32_t(__pyx_v_color); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 362, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 362, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_py_color = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":363
 *     py_funcs = <PaintFuncs>user_data
 *     py_color: Color = Color.from_int(color)
 *     py_funcs._color_func(py_color, <bint>is_foreground, <object>paint_data)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_4 = NULL;
  __Pyx_INCREF(__pyx_v_py_funcs->_color_func);
  __pyx_t_3 = __pyx_v_py_funcs->_color_func; 
  __pyx_t_2 = __Pyx_PyBool_FromLong((__pyx_v_is_foreground != 0)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 363, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_4);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_4, __pyx_v_py_color, __pyx_t_2, ((PyObject *)__pyx_v_paint_data)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 363, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":355
 * 
 * 
 * cdef void _paint_color_func(             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_t *funcs,
 *         void *paint_data,
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._paint_color_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_funcs);
  __Pyx_XDECREF(__pyx_v_py_color);
  __Pyx_RefNannyFinishContext();
}

/* "src/uharfbuzz/_paint.pxi":366
 * 
 * 
 * cdef hb_bool_t _paint_image_func(             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_t *funcs,
 *         void *paint_data,
*/

static hb_bool_t __pyx_f_9uharfbuzz_9_harfbuzz__paint_image_func(CYTHON_UNUSED hb_paint_funcs_t *__pyx_v_funcs, void *__pyx_v_paint_data, hb_blob_t *__pyx_v_image, unsigned int __pyx_v_width, unsigned int __pyx_v_height, hb_tag_t __pyx_v_format, float __pyx_v_slant, hb_glyph_extents_t *__pyx_v_extents, void *__pyx_v_user_data) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_py_funcs = NULL;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_v_py_image = NULL;
  PyObject *__pyx_v_py_format = NULL;
  PyObject *__pyx_v_py_extents = NULL;
  hb_bool_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_paint_image_func", 0);

  /* "src/uharfbuzz/_paint.pxi":376
 *         hb_glyph_extents_t *extents,
 *         void *user_data) noexcept:
 *     py_funcs = <PaintFuncs>user_data             # <<<<<<<<<<<<<<
 *     py_image = Blob.from_ptr(hb_blob_reference(image))
 *     py_format = hb_tag_to_string(format, NULL)
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_user_data);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_py_funcs = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":377
 *         void *user_data) noexcept:
 *     py_funcs = <PaintFuncs>user_data
 *     py_image = Blob.from_ptr(hb_blob_reference(image))             # <<<<<<<<<<<<<<
 *     py_format = hb_tag_to_string(format, NULL)
 *     py_extents = GlyphExtents(extents.x_bearing, extents.y_bearing, extents.width, extents.height)
*/
  __pyx_t_1 = ((PyObject *)__pyx_f_9uharfbuzz_9_harfbuzz_4Blob_from_ptr(hb_blob_reference(__pyx_v_image))); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 377, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_py_image = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":378
 *     py_funcs = <PaintFuncs>user_data
 *     py_image = Blob.from_ptr(hb_blob_reference(image))
 *     py_format = hb_tag_to_string(format, NULL)             # <<<<<<<<<<<<<<
 *     py_extents = GlyphExtents(extents.x_bearing, extents.y_bearing, extents.width, extents.height)
 *     if py_funcs._image_func(py_image, width, height, py_format, slant, py_extents, <object>paint_data):
*/
  __pyx_t_1 = __Pyx_void_to_None(hb_tag_to_string(__pyx_v_format, NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 378, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_py_format = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":379
 *     py_image = Blob.from_ptr(hb_blob_reference(image))
 *     py_format = hb_tag_to_string(format, NULL)
 *     py_extents = GlyphExtents(extents.x_bearing, extents.y_bearing, extents.width, extents.height)             # <<<<<<<<<<<<<<
 *     if py_funcs._image_func(py_image, width, height, py_format, slant, py_extents, <object>paint_data):
 *         return 1
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_GlyphExtents); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 379, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_hb_position_t(__pyx_v_extents->x_bearing); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 379, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_hb_position_t(__pyx_v_extents->y_bearing); if (unlikely(!__pyx_t_5)) __PYX_ERR(9, 379, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_hb_position_t(__pyx_v_extents->width); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 379, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyLong_From_hb_position_t(__pyx_v_extents->height); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 379, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[5] = {__pyx_t_2, __pyx_t_4, __pyx_t_5, __pyx_t_6, __pyx_t_7};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (5-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 379, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_py_extents = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":380
 *     py_format = hb_tag_to_string(format, NULL)
 *     py_extents = GlyphExtents(extents.x_bearing, extents.y_bearing, extents.width, extents.height)
 *     if py_funcs._image_func(py_image, width, height, py_format, slant, py_extents, <object>paint_data):             # <<<<<<<<<<<<<<
 *         return 1
 *     return 0
*/
  __pyx_t_3 = NULL;
  __Pyx_INCREF(__pyx_v_py_funcs->_image_func);
  __pyx_t_7 = __pyx_v_py_funcs->_image_func; 
  __pyx_t_6 = __Pyx_PyLong_From_unsigned_int(__pyx_v_width); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 380, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_5 = __Pyx_PyLong_From_unsigned_int(__pyx_v_height); if (unlikely(!__pyx_t_5)) __PYX_ERR(9, 380, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_slant); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 380, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_3, ((PyObject *)__pyx_v_py_image), __pyx_t_6, __pyx_t_5, __pyx_v_py_format, __pyx_t_4, __pyx_v_py_extents, ((PyObject *)__pyx_v_paint_data)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_8, (8-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 380, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(9, 380, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_9) {

    /* "src/uharfbuzz/_paint.pxi":381
 *     py_extents = GlyphExtents(extents.x_bearing, extents.y_bearing, extents.width, extents.height)
 *     if py_funcs._image_func(py_image, width, height, py_format, slant, py_extents, <object>paint_data):
 *         return 1             # <<<<<<<<<<<<<<
 *     return 0
 * 
*/
    __pyx_r = 1;
    goto __pyx_L0;

    /* "src/uharfbuzz/_paint.pxi":380
 *     py_format = hb_tag_to_string(format, NULL)
 *     py_extents = GlyphExtents(extents.x_bearing, extents.y_bearing, extents.width, extents.height)
 *     if py_funcs._image_func(py_image, width, height, py_format, slant, py_extents, <object>paint_data):             # <<<<<<<<<<<<<<
 *         return 1
 *     return 0
*/
  }

  /* "src/uharfbuzz/_paint.pxi":382
 *     if py_funcs._image_func(py_image, width, height, py_format, slant, py_extents, <object>paint_data):
 *         return 1
 *     return 0             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_r = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_paint.pxi":366
 * 
 * 
 * cdef hb_bool_t _paint_image_func(             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_t *funcs,
 *         void *paint_data,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._paint_image_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_funcs);
  __Pyx_XDECREF((PyObject *)__pyx_v_py_image);
  __Pyx_XDECREF(__pyx_v_py_format);
  __Pyx_XDECREF(__pyx_v_py_extents);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_paint.pxi":385
 * 
 * 
 * cdef void _paint_linear_gradient_func(             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_t *funcs,
 *         void *paint_data,
*/

static void __pyx_f_9uharfbuzz_9_harfbuzz__paint_linear_gradient_func(CYTHON_UNUSED hb_paint_funcs_t *__pyx_v_funcs, void *__pyx_v_paint_data, hb_color_line_t *__pyx_v_color_line, float __pyx_v_x0, float __pyx_v_y0, float __pyx_v_x1, float __pyx_v_y1, float __pyx_v_x2, float __pyx_v_y2, void *__pyx_v_user_data) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_py_funcs = NULL;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine *__pyx_v_py_color_line = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  size_t __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_paint_linear_gradient_func", 0);

  /* "src/uharfbuzz/_paint.pxi":396
 *         float y2,
 *         void *user_data) noexcept:
 *     py_funcs = <PaintFuncs>user_data             # <<<<<<<<<<<<<<
 *     py_color_line = ColorLine.from_ptr(color_line)
 *     py_funcs._linear_gradient_func(py_color_line, x0, y0, x1, y1, x2, y2, <object>paint_data)
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_user_data);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_py_funcs = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":397
 *         void *user_data) noexcept:
 *     py_funcs = <PaintFuncs>user_data
 *     py_color_line = ColorLine.from_ptr(color_line)             # <<<<<<<<<<<<<<
 *     py_funcs._linear_gradient_func(py_color_line, x0, y0, x1, y1, x2, y2, <object>paint_data)
 * 
*/
  __pyx_t_1 = ((PyObject *)__pyx_f_9uharfbuzz_9_harfbuzz_9ColorLine_from_ptr(__pyx_v_color_line)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 397, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_py_color_line = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":398
 *     py_funcs = <PaintFuncs>user_data
 *     py_color_line = ColorLine.from_ptr(color_line)
 *     py_funcs._linear_gradient_func(py_color_line, x0, y0, x1, y1, x2, y2, <object>paint_data)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_2 = NULL;
  __Pyx_INCREF(__pyx_v_py_funcs->_linear_gradient_func);
  __pyx_t_3 = __pyx_v_py_funcs->_linear_gradient_func; 
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_x0); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 398, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_y0); if (unlikely(!__pyx_t_5)) __PYX_ERR(9, 398, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyFloat_FromDouble(__pyx_v_x1); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 398, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = PyFloat_FromDouble(__pyx_v_y1); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 398, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = PyFloat_FromDouble(__pyx_v_x2); if (unlikely(!__pyx_t_8)) __PYX_ERR(9, 398, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = PyFloat_FromDouble(__pyx_v_y2); if (unlikely(!__pyx_t_9)) __PYX_ERR(9, 398, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_10 = 1;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_10 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[9] = {__pyx_t_2, ((PyObject *)__pyx_v_py_color_line), __pyx_t_4, __pyx_t_5, __pyx_t_6, __pyx_t_7, __pyx_t_8, __pyx_t_9, ((PyObject *)__pyx_v_paint_data)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_10, (9-__pyx_t_10) | (__pyx_t_10*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 398, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":385
 * 
 * 
 * cdef void _paint_linear_gradient_func(             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_t *funcs,
 *         void *paint_data,
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._paint_linear_gradient_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_funcs);
  __Pyx_XDECREF((PyObject *)__pyx_v_py_color_line);
  __Pyx_RefNannyFinishContext();
}

/* "src/uharfbuzz/_paint.pxi":401
 * 
 * 
 * cdef void _paint_radial_gradient_func(             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_t *funcs,
 *         void *paint_data,
*/

static void __pyx_f_9uharfbuzz_9_harfbuzz__paint_radial_gradient_func(CYTHON_UNUSED hb_paint_funcs_t *__pyx_v_funcs, void *__pyx_v_paint_data, hb_color_line_t *__pyx_v_color_line, float __pyx_v_x0, float __pyx_v_y0, float __pyx_v_r0, float __pyx_v_x1, float __pyx_v_y1, float __pyx_v_r1, void *__pyx_v_user_data) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_py_funcs = NULL;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine *__pyx_v_py_color_line = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  size_t __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_paint_radial_gradient_func", 0);

  /* "src/uharfbuzz/_paint.pxi":412
 *         float r1,
 *         void *user_data) noexcept:
 *     py_funcs = <PaintFuncs>user_data             # <<<<<<<<<<<<<<
 *     py_color_line = ColorLine.from_ptr(color_line)
 *     py_funcs._radial_gradient_func(py_color_line, x0, y0, r0, x1, y1, r1, <object>paint_data)
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_user_data);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_py_funcs = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":413
 *         void *user_data) noexcept:
 *     py_funcs = <PaintFuncs>user_data
 *     py_color_line = ColorLine.from_ptr(color_line)             # <<<<<<<<<<<<<<
 *     py_funcs._radial_gradient_func(py_color_line, x0, y0, r0, x1, y1, r1, <object>paint_data)
 * 
*/
  __pyx_t_1 = ((PyObject *)__pyx_f_9uharfbuzz_9_harfbuzz_9ColorLine_from_ptr(__pyx_v_color_line)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 413, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_py_color_line = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":414
 *     py_funcs = <PaintFuncs>user_data
 *     py_color_line = ColorLine.from_ptr(color_line)
 *     py_funcs._radial_gradient_func(py_color_line, x0, y0, r0, x1, y1, r1, <object>paint_data)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_2 = NULL;
  __Pyx_INCREF(__pyx_v_py_funcs->_radial_gradient_func);
  __pyx_t_3 = __pyx_v_py_funcs->_radial_gradient_func; 
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_x0); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 414, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_y0); if (unlikely(!__pyx_t_5)) __PYX_ERR(9, 414, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyFloat_FromDouble(__pyx_v_r0); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 414, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = PyFloat_FromDouble(__pyx_v_x1); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 414, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = PyFloat_FromDouble(__pyx_v_y1); if (unlikely(!__pyx_t_8)) __PYX_ERR(9, 414, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = PyFloat_FromDouble(__pyx_v_r1); if (unlikely(!__pyx_t_9)) __PYX_ERR(9, 414, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_10 = 1;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_10 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[9] = {__pyx_t_2, ((PyObject *)__pyx_v_py_color_line), __pyx_t_4, __pyx_t_5, __pyx_t_6, __pyx_t_7, __pyx_t_8, __pyx_t_9, ((PyObject *)__pyx_v_paint_data)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_10, (9-__pyx_t_10) | (__pyx_t_10*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 414, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":401
 * 
 * 
 * cdef void _paint_radial_gradient_func(             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_t *funcs,
 *         void *paint_data,
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._paint_radial_gradient_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_funcs);
  __Pyx_XDECREF((PyObject *)__pyx_v_py_color_line);
  __Pyx_RefNannyFinishContext();
}

/* "src/uharfbuzz/_paint.pxi":417
 * 
 * 
 * cdef void _paint_sweep_gradient_func(             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_t *funcs,
 *         void *paint_data,
*/

static void __pyx_f_9uharfbuzz_9_harfbuzz__paint_sweep_gradient_func(CYTHON_UNUSED hb_paint_funcs_t *__pyx_v_funcs, void *__pyx_v_paint_data, hb_color_line_t *__pyx_v_color_line, float __pyx_v_x0, float __pyx_v_y0, float __pyx_v_start_angle, float __pyx_v_end_angle, void *__pyx_v_user_data) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_py_funcs = NULL;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine *__pyx_v_py_color_line = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_paint_sweep_gradient_func", 0);

  /* "src/uharfbuzz/_paint.pxi":426
 *         float end_angle,
 *         void *user_data) noexcept:
 *     py_funcs = <PaintFuncs>user_data             # <<<<<<<<<<<<<<
 *     py_color_line = ColorLine.from_ptr(color_line)
 *     py_funcs._sweep_gradient_func(py_color_line, x0, y0, start_angle, end_angle, <object>paint_data)
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_user_data);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_py_funcs = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":427
 *         void *user_data) noexcept:
 *     py_funcs = <PaintFuncs>user_data
 *     py_color_line = ColorLine.from_ptr(color_line)             # <<<<<<<<<<<<<<
 *     py_funcs._sweep_gradient_func(py_color_line, x0, y0, start_angle, end_angle, <object>paint_data)
 * 
*/
  __pyx_t_1 = ((PyObject *)__pyx_f_9uharfbuzz_9_harfbuzz_9ColorLine_from_ptr(__pyx_v_color_line)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 427, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_py_color_line = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":428
 *     py_funcs = <PaintFuncs>user_data
 *     py_color_line = ColorLine.from_ptr(color_line)
 *     py_funcs._sweep_gradient_func(py_color_line, x0, y0, start_angle, end_angle, <object>paint_data)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_2 = NULL;
  __Pyx_INCREF(__pyx_v_py_funcs->_sweep_gradient_func);
  __pyx_t_3 = __pyx_v_py_funcs->_sweep_gradient_func; 
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_x0); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 428, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_y0); if (unlikely(!__pyx_t_5)) __PYX_ERR(9, 428, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyFloat_FromDouble(__pyx_v_start_angle); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 428, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = PyFloat_FromDouble(__pyx_v_end_angle); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 428, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[7] = {__pyx_t_2, ((PyObject *)__pyx_v_py_color_line), __pyx_t_4, __pyx_t_5, __pyx_t_6, __pyx_t_7, ((PyObject *)__pyx_v_paint_data)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (7-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 428, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":417
 * 
 * 
 * cdef void _paint_sweep_gradient_func(             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_t *funcs,
 *         void *paint_data,
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._paint_sweep_gradient_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_funcs);
  __Pyx_XDECREF((PyObject *)__pyx_v_py_color_line);
  __Pyx_RefNannyFinishContext();
}

/* "src/uharfbuzz/_paint.pxi":431
 * 
 * 
 * cdef void _paint_push_group_func(             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_t *funcs,
 *         void *paint_data,
*/

static void __pyx_f_9uharfbuzz_9_harfbuzz__paint_push_group_func(CYTHON_UNUSED hb_paint_funcs_t *__pyx_v_funcs, void *__pyx_v_paint_data, void *__pyx_v_user_data) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_py_funcs = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_paint_push_group_func", 0);

  /* "src/uharfbuzz/_paint.pxi":435
 *         void *paint_data,
 *         void *user_data) noexcept:
 *     py_funcs = <PaintFuncs>user_data             # <<<<<<<<<<<<<<
 *     py_funcs._push_group_func(<object>paint_data)
 * 
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_user_data);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_py_funcs = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":436
 *         void *user_data) noexcept:
 *     py_funcs = <PaintFuncs>user_data
 *     py_funcs._push_group_func(<object>paint_data)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_2 = NULL;
  __Pyx_INCREF(__pyx_v_py_funcs->_push_group_func);
  __pyx_t_3 = __pyx_v_py_funcs->_push_group_func; 
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, ((PyObject *)__pyx_v_paint_data)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 436, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":431
 * 
 * 
 * cdef void _paint_push_group_func(             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_t *funcs,
 *         void *paint_data,
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._paint_push_group_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_funcs);
  __Pyx_RefNannyFinishContext();
}

/* "src/uharfbuzz/_paint.pxi":439
 * 
 * 
 * cdef void _paint_pop_group_func(             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_t *funcs,
 *         void *paint_data,
*/

static void __pyx_f_9uharfbuzz_9_harfbuzz__paint_pop_group_func(CYTHON_UNUSED hb_paint_funcs_t *__pyx_v_funcs, void *__pyx_v_paint_data, hb_paint_composite_mode_t __pyx_v_mode, void *__pyx_v_user_data) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_py_funcs = NULL;
  PyObject *__pyx_v_py_mode = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_paint_pop_group_func", 0);

  /* "src/uharfbuzz/_paint.pxi":444
 *         hb_paint_composite_mode_t mode,
 *         void *user_data) noexcept:
 *     py_funcs = <PaintFuncs>user_data             # <<<<<<<<<<<<<<
 *     py_mode = PaintCompositeMode(mode)
 *     py_funcs._pop_group_func(py_mode, <object>paint_data)
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_user_data);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_py_funcs = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":445
 *         void *user_data) noexcept:
 *     py_funcs = <PaintFuncs>user_data
 *     py_mode = PaintCompositeMode(mode)             # <<<<<<<<<<<<<<
 *     py_funcs._pop_group_func(py_mode, <object>paint_data)
 * 
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_PaintCompositeMode); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 445, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_hb_paint_composite_mode_t(__pyx_v_mode); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 445, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_4};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 445, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_py_mode = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":446
 *     py_funcs = <PaintFuncs>user_data
 *     py_mode = PaintCompositeMode(mode)
 *     py_funcs._pop_group_func(py_mode, <object>paint_data)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_3 = NULL;
  __Pyx_INCREF(__pyx_v_py_funcs->_pop_group_func);
  __pyx_t_4 = __pyx_v_py_funcs->_pop_group_func; 
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_3, __pyx_v_py_mode, ((PyObject *)__pyx_v_paint_data)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 446, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":439
 * 
 * 
 * cdef void _paint_pop_group_func(             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_t *funcs,
 *         void *paint_data,
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._paint_pop_group_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_funcs);
  __Pyx_XDECREF(__pyx_v_py_mode);
  __Pyx_RefNannyFinishContext();
}

/* "src/uharfbuzz/_paint.pxi":449
 * 
 * 
 * cdef hb_bool_t _paint_custom_palette_color_func(             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_t *funcs,
 *         void *paint_data,
*/

static hb_bool_t __pyx_f_9uharfbuzz_9_harfbuzz__paint_custom_palette_color_func(CYTHON_UNUSED hb_paint_funcs_t *__pyx_v_funcs, void *__pyx_v_paint_data, unsigned int __pyx_v_color_index, hb_color_t *__pyx_v_color, void *__pyx_v_user_data) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_py_funcs = NULL;
  PyObject *__pyx_v_py_color = NULL;
  hb_bool_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_t_6;
  hb_color_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_paint_custom_palette_color_func", 0);

  /* "src/uharfbuzz/_paint.pxi":455
 *         hb_color_t *color,
 *         void *user_data) noexcept:
 *     py_funcs = <PaintFuncs>user_data             # <<<<<<<<<<<<<<
 *     py_color: Color = py_funcs._custom_palette_color_func(color_index, <object>paint_data)
 *     if py_color is not None:
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_user_data);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_py_funcs = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":456
 *         void *user_data) noexcept:
 *     py_funcs = <PaintFuncs>user_data
 *     py_color: Color = py_funcs._custom_palette_color_func(color_index, <object>paint_data)             # <<<<<<<<<<<<<<
 *     if py_color is not None:
 *         color[0] = py_color.to_int()
*/
  __pyx_t_2 = NULL;
  __Pyx_INCREF(__pyx_v_py_funcs->_custom_palette_color_func);
  __pyx_t_3 = __pyx_v_py_funcs->_custom_palette_color_func; 
  __pyx_t_4 = __Pyx_PyLong_From_unsigned_int(__pyx_v_color_index); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 456, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_t_4, ((PyObject *)__pyx_v_paint_data)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 456, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_py_color = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_paint.pxi":457
 *     py_funcs = <PaintFuncs>user_data
 *     py_color: Color = py_funcs._custom_palette_color_func(color_index, <object>paint_data)
 *     if py_color is not None:             # <<<<<<<<<<<<<<
 *         color[0] = py_color.to_int()
 *         return 1
*/
  __pyx_t_6 = (__pyx_v_py_color != Py_None);
  if (__pyx_t_6) {

    /* "src/uharfbuzz/_paint.pxi":458
 *     py_color: Color = py_funcs._custom_palette_color_func(color_index, <object>paint_data)
 *     if py_color is not None:
 *         color[0] = py_color.to_int()             # <<<<<<<<<<<<<<
 *         return 1
 *     return 0
*/
    __pyx_t_3 = __pyx_v_py_color;
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_to_int, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 458, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_t_7 = __Pyx_PyLong_As_uint32_t(__pyx_t_1); if (unlikely((__pyx_t_7 == ((hb_color_t)-1)) && PyErr_Occurred())) __PYX_ERR(9, 458, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    (__pyx_v_color[0]) = __pyx_t_7;

    /* "src/uharfbuzz/_paint.pxi":459
 *     if py_color is not None:
 *         color[0] = py_color.to_int()
 *         return 1             # <<<<<<<<<<<<<<
 *     return 0
 * 
*/
    __pyx_r = 1;
    goto __pyx_L0;

    /* "src/uharfbuzz/_paint.pxi":457
 *     py_funcs = <PaintFuncs>user_data
 *     py_color: Color = py_funcs._custom_palette_color_func(color_index, <object>paint_data)
 *     if py_color is not None:             # <<<<<<<<<<<<<<
 *         color[0] = py_color.to_int()
 *         return 1
*/
  }

  /* "src/uharfbuzz/_paint.pxi":460
 *         color[0] = py_color.to_int()
 *         return 1
 *     return 0             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_r = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_paint.pxi":449
 * 
 * 
 * cdef hb_bool_t _paint_custom_palette_color_func(             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_t *funcs,
 *         void *paint_data,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._paint_custom_palette_color_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_funcs);
  __Pyx_XDECREF(__pyx_v_py_color);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_paint.pxi":502
 *     cdef object _custom_palette_color_func
 * 
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self._hb_paintfuncs = hb_paint_funcs_create()
 * 
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, __pyx_nargs); return -1; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__cinit__", __pyx_kwds); return -1;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs___cinit__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self) {
  int __pyx_r;

  /* "src/uharfbuzz/_paint.pxi":503
 * 
 *     def __cinit__(self):
 *         self._hb_paintfuncs = hb_paint_funcs_create()             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
  __pyx_v_self->_hb_paintfuncs = hb_paint_funcs_create();

  /* "src/uharfbuzz/_paint.pxi":502
 *     cdef object _custom_palette_color_func
 * 
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self._hb_paintfuncs = hb_paint_funcs_create()
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "src/uharfbuzz/_paint.pxi":505
 *         self._hb_paintfuncs = hb_paint_funcs_create()
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_destroy(self._hb_paintfuncs)
 * 
*/

/* Python wrapper */
static void __pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_2__dealloc__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_2__dealloc__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self) {

  /* "src/uharfbuzz/_paint.pxi":506
 * 
 *     def __dealloc__(self):
 *         hb_paint_funcs_destroy(self._hb_paintfuncs)             # <<<<<<<<<<<<<<
 * 
 *     def set_push_transform_func(self,
*/
  hb_paint_funcs_destroy(__pyx_v_self->_hb_paintfuncs);

  /* "src/uharfbuzz/_paint.pxi":505
 *         self._hb_paintfuncs = hb_paint_funcs_create()
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_destroy(self._hb_paintfuncs)
 * 
*/

  /* function exit code */
}

/* "src/uharfbuzz/_paint.pxi":508
 *         hb_paint_funcs_destroy(self._hb_paintfuncs)
 * 
 *     def set_push_transform_func(self,             # <<<<<<<<<<<<<<
 *                                 func: Callable[[
 *                                     float,  # xx
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_5set_push_transform_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_4set_push_transform_func, "Sets the push-transform callback on this :class:`PaintFuncs`.\n\n        The callback applies a transform to subsequent paint calls. This\n        transform is applied after the current transform, and remains in\n        effect until a matching call to the pop-transform callback.\n\n        Wraps `hb_paint_funcs_set_push_transform_func()\n        <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-funcs-set-push-transform-func>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_10PaintFuncs_5set_push_transform_func = {"set_push_transform_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_5set_push_transform_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_4set_push_transform_func};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_5set_push_transform_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_func = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_push_transform_func (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(9, 508, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(9, 508, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_push_transform_func", 0) < (0)) __PYX_ERR(9, 508, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_push_transform_func", 1, 1, 1, i); __PYX_ERR(9, 508, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(9, 508, __pyx_L3_error)
    }
    __pyx_v_func = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_push_transform_func", 1, 1, 1, __pyx_nargs); __PYX_ERR(9, 508, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.PaintFuncs.set_push_transform_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_4set_push_transform_func(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)__pyx_v_self), __pyx_v_func);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_4set_push_transform_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self, PyObject *__pyx_v_func) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_push_transform_func", 0);

  /* "src/uharfbuzz/_paint.pxi":527
 *         <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-funcs-set-push-transform-func>`_.
 *         """
 *         self._push_transform_func = func             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_set_push_transform_func(
 *             self._hb_paintfuncs, _paint_push_transform_func, <void*>self, NULL)
*/
  __Pyx_INCREF(__pyx_v_func);
  __Pyx_GIVEREF(__pyx_v_func);
  __Pyx_GOTREF(__pyx_v_self->_push_transform_func);
  __Pyx_DECREF(__pyx_v_self->_push_transform_func);
  __pyx_v_self->_push_transform_func = __pyx_v_func;

  /* "src/uharfbuzz/_paint.pxi":528
 *         """
 *         self._push_transform_func = func
 *         hb_paint_funcs_set_push_transform_func(             # <<<<<<<<<<<<<<
 *             self._hb_paintfuncs, _paint_push_transform_func, <void*>self, NULL)
 * 
*/
  hb_paint_funcs_set_push_transform_func(__pyx_v_self->_hb_paintfuncs, __pyx_f_9uharfbuzz_9_harfbuzz__paint_push_transform_func, ((void *)__pyx_v_self), NULL);

  /* "src/uharfbuzz/_paint.pxi":508
 *         hb_paint_funcs_destroy(self._hb_paintfuncs)
 * 
 *     def set_push_transform_func(self,             # <<<<<<<<<<<<<<
 *                                 func: Callable[[
 *                                     float,  # xx
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_paint.pxi":531
 *             self._hb_paintfuncs, _paint_push_transform_func, <void*>self, NULL)
 * 
 *     def set_pop_transform_func(self,             # <<<<<<<<<<<<<<
 *                                func: Callable[[
 *                                    object,  # paint_data
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_7set_pop_transform_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_6set_pop_transform_func, "Sets the pop-transform callback on this :class:`PaintFuncs`.\n\n        The callback undoes the effect of a prior call to the\n        push-transform callback.\n\n        Wraps `hb_paint_funcs_set_pop_transform_func()\n        <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-funcs-set-pop-transform-func>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_10PaintFuncs_7set_pop_transform_func = {"set_pop_transform_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_7set_pop_transform_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_6set_pop_transform_func};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_7set_pop_transform_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_func = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_pop_transform_func (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(9, 531, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(9, 531, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_pop_transform_func", 0) < (0)) __PYX_ERR(9, 531, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_pop_transform_func", 1, 1, 1, i); __PYX_ERR(9, 531, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(9, 531, __pyx_L3_error)
    }
    __pyx_v_func = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_pop_transform_func", 1, 1, 1, __pyx_nargs); __PYX_ERR(9, 531, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.PaintFuncs.set_pop_transform_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_6set_pop_transform_func(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)__pyx_v_self), __pyx_v_func);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_6set_pop_transform_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self, PyObject *__pyx_v_func) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_pop_transform_func", 0);

  /* "src/uharfbuzz/_paint.pxi":543
 *         <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-funcs-set-pop-transform-func>`_.
 *         """
 *         self._pop_transform_func = func             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_set_pop_transform_func(
 *             self._hb_paintfuncs, _paint_pop_transform_func, <void*>self, NULL)
*/
  __Pyx_INCREF(__pyx_v_func);
  __Pyx_GIVEREF(__pyx_v_func);
  __Pyx_GOTREF(__pyx_v_self->_pop_transform_func);
  __Pyx_DECREF(__pyx_v_self->_pop_transform_func);
  __pyx_v_self->_pop_transform_func = __pyx_v_func;

  /* "src/uharfbuzz/_paint.pxi":544
 *         """
 *         self._pop_transform_func = func
 *         hb_paint_funcs_set_pop_transform_func(             # <<<<<<<<<<<<<<
 *             self._hb_paintfuncs, _paint_pop_transform_func, <void*>self, NULL)
 * 
*/
  hb_paint_funcs_set_pop_transform_func(__pyx_v_self->_hb_paintfuncs, __pyx_f_9uharfbuzz_9_harfbuzz__paint_pop_transform_func, ((void *)__pyx_v_self), NULL);

  /* "src/uharfbuzz/_paint.pxi":531
 *             self._hb_paintfuncs, _paint_push_transform_func, <void*>self, NULL)
 * 
 *     def set_pop_transform_func(self,             # <<<<<<<<<<<<<<
 *                                func: Callable[[
 *                                    object,  # paint_data
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_paint.pxi":547
 *             self._hb_paintfuncs, _paint_pop_transform_func, <void*>self, NULL)
 * 
 *     def set_color_glyph_func(self,             # <<<<<<<<<<<<<<
 *                              func: Callable[[
 *                                  int,  # gid
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_9set_color_glyph_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_8set_color_glyph_func, "Sets the color-glyph callback on this :class:`PaintFuncs`.\n\n        The callback renders a color glyph by glyph index. It should return\n        ``True`` if the glyph was painted, ``False`` otherwise.\n\n        Wraps `hb_paint_funcs_set_color_glyph_func()\n        <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-funcs-set-color-glyph-func>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_10PaintFuncs_9set_color_glyph_func = {"set_color_glyph_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_9set_color_glyph_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_8set_color_glyph_func};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_9set_color_glyph_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_func = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_color_glyph_func (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(9, 547, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(9, 547, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_color_glyph_func", 0) < (0)) __PYX_ERR(9, 547, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_color_glyph_func", 1, 1, 1, i); __PYX_ERR(9, 547, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(9, 547, __pyx_L3_error)
    }
    __pyx_v_func = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_color_glyph_func", 1, 1, 1, __pyx_nargs); __PYX_ERR(9, 547, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.PaintFuncs.set_color_glyph_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_8set_color_glyph_func(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)__pyx_v_self), __pyx_v_func);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_8set_color_glyph_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self, PyObject *__pyx_v_func) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_color_glyph_func", 0);

  /* "src/uharfbuzz/_paint.pxi":560
 *         <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-funcs-set-color-glyph-func>`_.
 *         """
 *         self._color_glyph_func = func             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_set_color_glyph_func(
 *             self._hb_paintfuncs, _paint_color_glyph_func, <void*>self, NULL)
*/
  __Pyx_INCREF(__pyx_v_func);
  __Pyx_GIVEREF(__pyx_v_func);
  __Pyx_GOTREF(__pyx_v_self->_color_glyph_func);
  __Pyx_DECREF(__pyx_v_self->_color_glyph_func);
  __pyx_v_self->_color_glyph_func = __pyx_v_func;

  /* "src/uharfbuzz/_paint.pxi":561
 *         """
 *         self._color_glyph_func = func
 *         hb_paint_funcs_set_color_glyph_func(             # <<<<<<<<<<<<<<
 *             self._hb_paintfuncs, _paint_color_glyph_func, <void*>self, NULL)
 * 
*/
  hb_paint_funcs_set_color_glyph_func(__pyx_v_self->_hb_paintfuncs, __pyx_f_9uharfbuzz_9_harfbuzz__paint_color_glyph_func, ((void *)__pyx_v_self), NULL);

  /* "src/uharfbuzz/_paint.pxi":547
 *             self._hb_paintfuncs, _paint_pop_transform_func, <void*>self, NULL)
 * 
 *     def set_color_glyph_func(self,             # <<<<<<<<<<<<<<
 *                              func: Callable[[
 *                                  int,  # gid
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_paint.pxi":564
 *             self._hb_paintfuncs, _paint_color_glyph_func, <void*>self, NULL)
 * 
 *     def set_push_clip_glyph_func(self,             # <<<<<<<<<<<<<<
 *                                  func: Callable[[
 *                                      int,  # gid
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_11set_push_clip_glyph_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_10set_push_clip_glyph_func, "Sets the push-clip-glyph callback on this :class:`PaintFuncs`.\n\n        The callback clips subsequent paint calls to the outline of a glyph.\n\n        This clip is applied in addition to the current clip, and remains in\n        effect until a matching call to the pop-clip callback.\n\n        Wraps `hb_paint_funcs_set_push_clip_glyph_func()\n        <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-funcs-set-push-clip-glyph-func>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_10PaintFuncs_11set_push_clip_glyph_func = {"set_push_clip_glyph_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_11set_push_clip_glyph_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_10set_push_clip_glyph_func};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_11set_push_clip_glyph_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_func = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_push_clip_glyph_func (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(9, 564, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(9, 564, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_push_clip_glyph_func", 0) < (0)) __PYX_ERR(9, 564, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_push_clip_glyph_func", 1, 1, 1, i); __PYX_ERR(9, 564, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(9, 564, __pyx_L3_error)
    }
    __pyx_v_func = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_push_clip_glyph_func", 1, 1, 1, __pyx_nargs); __PYX_ERR(9, 564, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.PaintFuncs.set_push_clip_glyph_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_10set_push_clip_glyph_func(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)__pyx_v_self), __pyx_v_func);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_10set_push_clip_glyph_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self, PyObject *__pyx_v_func) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_push_clip_glyph_func", 0);

  /* "src/uharfbuzz/_paint.pxi":579
 *         <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-funcs-set-push-clip-glyph-func>`_.
 *         """
 *         self._push_clip_glyph_func = func             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_set_push_clip_glyph_func(
 *             self._hb_paintfuncs, _paint_push_clip_glyph_func, <void*>self, NULL)
*/
  __Pyx_INCREF(__pyx_v_func);
  __Pyx_GIVEREF(__pyx_v_func);
  __Pyx_GOTREF(__pyx_v_self->_push_clip_glyph_func);
  __Pyx_DECREF(__pyx_v_self->_push_clip_glyph_func);
  __pyx_v_self->_push_clip_glyph_func = __pyx_v_func;

  /* "src/uharfbuzz/_paint.pxi":580
 *         """
 *         self._push_clip_glyph_func = func
 *         hb_paint_funcs_set_push_clip_glyph_func(             # <<<<<<<<<<<<<<
 *             self._hb_paintfuncs, _paint_push_clip_glyph_func, <void*>self, NULL)
 * 
*/
  hb_paint_funcs_set_push_clip_glyph_func(__pyx_v_self->_hb_paintfuncs, __pyx_f_9uharfbuzz_9_harfbuzz__paint_push_clip_glyph_func, ((void *)__pyx_v_self), NULL);

  /* "src/uharfbuzz/_paint.pxi":564
 *             self._hb_paintfuncs, _paint_color_glyph_func, <void*>self, NULL)
 * 
 *     def set_push_clip_glyph_func(self,             # <<<<<<<<<<<<<<
 *                                  func: Callable[[
 *                                      int,  # gid
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_paint.pxi":583
 *             self._hb_paintfuncs, _paint_push_clip_glyph_func, <void*>self, NULL)
 * 
 *     def set_push_clip_rectangle_func(self,             # <<<<<<<<<<<<<<
 *                                      func: Callable[[
 *                                          float,  # xmin
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_13set_push_clip_rectangle_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_12set_push_clip_rectangle_func, "Sets the push-clip-rectangle callback on this :class:`PaintFuncs`.\n\n        The callback clips subsequent paint calls to a rectangle. The\n        coordinates of the rectangle are interpreted according to the\n        current transform.\n\n        This clip is applied in addition to the current clip, and remains in\n        effect until a matching call to the pop-clip callback.\n\n        Wraps `hb_paint_funcs_set_push_clip_rectangle_func()\n        <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-funcs-set-push-clip-rectangle-func>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_10PaintFuncs_13set_push_clip_rectangle_func = {"set_push_clip_rectangle_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_13set_push_clip_rectangle_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_12set_push_clip_rectangle_func};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_13set_push_clip_rectangle_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_func = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_push_clip_rectangle_func (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(9, 583, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(9, 583, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_push_clip_rectangle_func", 0) < (0)) __PYX_ERR(9, 583, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_push_clip_rectangle_func", 1, 1, 1, i); __PYX_ERR(9, 583, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(9, 583, __pyx_L3_error)
    }
    __pyx_v_func = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_push_clip_rectangle_func", 1, 1, 1, __pyx_nargs); __PYX_ERR(9, 583, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.PaintFuncs.set_push_clip_rectangle_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_12set_push_clip_rectangle_func(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)__pyx_v_self), __pyx_v_func);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_12set_push_clip_rectangle_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self, PyObject *__pyx_v_func) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_push_clip_rectangle_func", 0);

  /* "src/uharfbuzz/_paint.pxi":603
 *         <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-funcs-set-push-clip-rectangle-func>`_.
 *         """
 *         self._push_clip_rectangle_func = func             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_set_push_clip_rectangle_func(
 *             self._hb_paintfuncs, _paint_push_clip_rectangle_func, <void*>self, NULL)
*/
  __Pyx_INCREF(__pyx_v_func);
  __Pyx_GIVEREF(__pyx_v_func);
  __Pyx_GOTREF(__pyx_v_self->_push_clip_rectangle_func);
  __Pyx_DECREF(__pyx_v_self->_push_clip_rectangle_func);
  __pyx_v_self->_push_clip_rectangle_func = __pyx_v_func;

  /* "src/uharfbuzz/_paint.pxi":604
 *         """
 *         self._push_clip_rectangle_func = func
 *         hb_paint_funcs_set_push_clip_rectangle_func(             # <<<<<<<<<<<<<<
 *             self._hb_paintfuncs, _paint_push_clip_rectangle_func, <void*>self, NULL)
 * 
*/
  hb_paint_funcs_set_push_clip_rectangle_func(__pyx_v_self->_hb_paintfuncs, __pyx_f_9uharfbuzz_9_harfbuzz__paint_push_clip_rectangle_func, ((void *)__pyx_v_self), NULL);

  /* "src/uharfbuzz/_paint.pxi":583
 *             self._hb_paintfuncs, _paint_push_clip_glyph_func, <void*>self, NULL)
 * 
 *     def set_push_clip_rectangle_func(self,             # <<<<<<<<<<<<<<
 *                                      func: Callable[[
 *                                          float,  # xmin
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_paint.pxi":607
 *             self._hb_paintfuncs, _paint_push_clip_rectangle_func, <void*>self, NULL)
 * 
 *     def set_pop_clip_func(self,             # <<<<<<<<<<<<<<
 *                           func: Callable[[
 *                               object,  # paint_data
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_15set_pop_clip_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_14set_pop_clip_func, "Sets the pop-clip callback on this :class:`PaintFuncs`.\n\n        The callback undoes the effect of a prior call to the\n        push-clip-glyph or push-clip-rectangle callback.\n\n        Wraps `hb_paint_funcs_set_pop_clip_func()\n        <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-funcs-set-pop-clip-func>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_10PaintFuncs_15set_pop_clip_func = {"set_pop_clip_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_15set_pop_clip_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_14set_pop_clip_func};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_15set_pop_clip_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_func = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_pop_clip_func (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(9, 607, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(9, 607, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_pop_clip_func", 0) < (0)) __PYX_ERR(9, 607, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_pop_clip_func", 1, 1, 1, i); __PYX_ERR(9, 607, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(9, 607, __pyx_L3_error)
    }
    __pyx_v_func = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_pop_clip_func", 1, 1, 1, __pyx_nargs); __PYX_ERR(9, 607, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.PaintFuncs.set_pop_clip_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_14set_pop_clip_func(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)__pyx_v_self), __pyx_v_func);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_14set_pop_clip_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self, PyObject *__pyx_v_func) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_pop_clip_func", 0);

  /* "src/uharfbuzz/_paint.pxi":619
 *         <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-funcs-set-pop-clip-func>`_.
 *         """
 *         self._pop_clip_func = func             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_set_pop_clip_func(
 *             self._hb_paintfuncs, _paint_pop_clip_func, <void*>self, NULL)
*/
  __Pyx_INCREF(__pyx_v_func);
  __Pyx_GIVEREF(__pyx_v_func);
  __Pyx_GOTREF(__pyx_v_self->_pop_clip_func);
  __Pyx_DECREF(__pyx_v_self->_pop_clip_func);
  __pyx_v_self->_pop_clip_func = __pyx_v_func;

  /* "src/uharfbuzz/_paint.pxi":620
 *         """
 *         self._pop_clip_func = func
 *         hb_paint_funcs_set_pop_clip_func(             # <<<<<<<<<<<<<<
 *             self._hb_paintfuncs, _paint_pop_clip_func, <void*>self, NULL)
 * 
*/
  hb_paint_funcs_set_pop_clip_func(__pyx_v_self->_hb_paintfuncs, __pyx_f_9uharfbuzz_9_harfbuzz__paint_pop_clip_func, ((void *)__pyx_v_self), NULL);

  /* "src/uharfbuzz/_paint.pxi":607
 *             self._hb_paintfuncs, _paint_push_clip_rectangle_func, <void*>self, NULL)
 * 
 *     def set_pop_clip_func(self,             # <<<<<<<<<<<<<<
 *                           func: Callable[[
 *                               object,  # paint_data
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_paint.pxi":623
 *             self._hb_paintfuncs, _paint_pop_clip_func, <void*>self, NULL)
 * 
 *     def set_color_func(self,             # <<<<<<<<<<<<<<
 *                        func: Callable[[
 *                            Color,  # color
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_17set_color_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_16set_color_func, "Sets the color callback on this :class:`PaintFuncs`.\n\n        The callback paints a color everywhere within the current clip.\n        ``is_foreground`` indicates whether the color is the foreground.\n        ``color`` is the color to use, unpremultiplied.\n\n        Wraps `hb_paint_funcs_set_color_func()\n        <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-funcs-set-color-func>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_10PaintFuncs_17set_color_func = {"set_color_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_17set_color_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_16set_color_func};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_17set_color_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_func = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_color_func (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(9, 623, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(9, 623, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_color_func", 0) < (0)) __PYX_ERR(9, 623, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_color_func", 1, 1, 1, i); __PYX_ERR(9, 623, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(9, 623, __pyx_L3_error)
    }
    __pyx_v_func = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_color_func", 1, 1, 1, __pyx_nargs); __PYX_ERR(9, 623, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.PaintFuncs.set_color_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_16set_color_func(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)__pyx_v_self), __pyx_v_func);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_16set_color_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self, PyObject *__pyx_v_func) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_color_func", 0);

  /* "src/uharfbuzz/_paint.pxi":638
 *         <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-funcs-set-color-func>`_.
 *         """
 *         self._color_func = func             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_set_color_func(
 *             self._hb_paintfuncs, _paint_color_func, <void*>self, NULL)
*/
  __Pyx_INCREF(__pyx_v_func);
  __Pyx_GIVEREF(__pyx_v_func);
  __Pyx_GOTREF(__pyx_v_self->_color_func);
  __Pyx_DECREF(__pyx_v_self->_color_func);
  __pyx_v_self->_color_func = __pyx_v_func;

  /* "src/uharfbuzz/_paint.pxi":639
 *         """
 *         self._color_func = func
 *         hb_paint_funcs_set_color_func(             # <<<<<<<<<<<<<<
 *             self._hb_paintfuncs, _paint_color_func, <void*>self, NULL)
 * 
*/
  hb_paint_funcs_set_color_func(__pyx_v_self->_hb_paintfuncs, __pyx_f_9uharfbuzz_9_harfbuzz__paint_color_func, ((void *)__pyx_v_self), NULL);

  /* "src/uharfbuzz/_paint.pxi":623
 *             self._hb_paintfuncs, _paint_pop_clip_func, <void*>self, NULL)
 * 
 *     def set_color_func(self,             # <<<<<<<<<<<<<<
 *                        func: Callable[[
 *                            Color,  # color
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_paint.pxi":642
 *             self._hb_paintfuncs, _paint_color_func, <void*>self, NULL)
 * 
 *     def set_image_func(self,             # <<<<<<<<<<<<<<
 *                        func: Callable[[
 *                            Blob,  # image
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_19set_image_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_18set_image_func, "Sets the paint-image callback on this :class:`PaintFuncs`.\n\n        The callback paints a glyph image. It is called for glyphs with\n        image blobs in the ``CBDT``, ``sbix`` or ``SVG`` tables. The\n        ``format`` argument identifies the kind of data that is contained in\n        ``image``. The image dimensions and glyph extents are provided if\n        available, and should be used to size and position the image. The\n        callback should return whether the operation was successful.\n\n        Wraps `hb_paint_funcs_set_image_func()\n        <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-funcs-set-image-func>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_10PaintFuncs_19set_image_func = {"set_image_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_19set_image_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_18set_image_func};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_19set_image_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_func = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_image_func (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(9, 642, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(9, 642, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_image_func", 0) < (0)) __PYX_ERR(9, 642, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_image_func", 1, 1, 1, i); __PYX_ERR(9, 642, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(9, 642, __pyx_L3_error)
    }
    __pyx_v_func = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_image_func", 1, 1, 1, __pyx_nargs); __PYX_ERR(9, 642, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.PaintFuncs.set_image_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_18set_image_func(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)__pyx_v_self), __pyx_v_func);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_18set_image_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self, PyObject *__pyx_v_func) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_image_func", 0);

  /* "src/uharfbuzz/_paint.pxi":664
 *         <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-funcs-set-image-func>`_.
 *         """
 *         self._image_func = func             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_set_image_func(
 *             self._hb_paintfuncs, _paint_image_func, <void*>self, NULL)
*/
  __Pyx_INCREF(__pyx_v_func);
  __Pyx_GIVEREF(__pyx_v_func);
  __Pyx_GOTREF(__pyx_v_self->_image_func);
  __Pyx_DECREF(__pyx_v_self->_image_func);
  __pyx_v_self->_image_func = __pyx_v_func;

  /* "src/uharfbuzz/_paint.pxi":665
 *         """
 *         self._image_func = func
 *         hb_paint_funcs_set_image_func(             # <<<<<<<<<<<<<<
 *             self._hb_paintfuncs, _paint_image_func, <void*>self, NULL)
 * 
*/
  hb_paint_funcs_set_image_func(__pyx_v_self->_hb_paintfuncs, __pyx_f_9uharfbuzz_9_harfbuzz__paint_image_func, ((void *)__pyx_v_self), NULL);

  /* "src/uharfbuzz/_paint.pxi":642
 *             self._hb_paintfuncs, _paint_color_func, <void*>self, NULL)
 * 
 *     def set_image_func(self,             # <<<<<<<<<<<<<<
 *                        func: Callable[[
 *                            Blob,  # image
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_paint.pxi":668
 *             self._hb_paintfuncs, _paint_image_func, <void*>self, NULL)
 * 
 *     def set_linear_gradient_func(self,             # <<<<<<<<<<<<<<
 *                                  func: Callable[[
 *                                     ColorLine,  # color_line
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_21set_linear_gradient_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_20set_linear_gradient_func, "Sets the linear-gradient callback on this :class:`PaintFuncs`.\n\n        The callback paints a linear gradient everywhere within the current\n        clip. The ``color_line`` object contains information about the\n        colors of the gradient; it is only valid for the duration of the\n        callback, you cannot keep it around. The coordinates of the points\n        are interpreted according to the current transform.\n\n        Wraps `hb_paint_funcs_set_linear_gradient_func()\n        <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-funcs-set-linear-gradient-func>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_10PaintFuncs_21set_linear_gradient_func = {"set_linear_gradient_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_21set_linear_gradient_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_20set_linear_gradient_func};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_21set_linear_gradient_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_func = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_linear_gradient_func (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(9, 668, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(9, 668, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_linear_gradient_func", 0) < (0)) __PYX_ERR(9, 668, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_linear_gradient_func", 1, 1, 1, i); __PYX_ERR(9, 668, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(9, 668, __pyx_L3_error)
    }
    __pyx_v_func = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_linear_gradient_func", 1, 1, 1, __pyx_nargs); __PYX_ERR(9, 668, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.PaintFuncs.set_linear_gradient_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_20set_linear_gradient_func(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)__pyx_v_self), __pyx_v_func);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_20set_linear_gradient_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self, PyObject *__pyx_v_func) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_linear_gradient_func", 0);

  /* "src/uharfbuzz/_paint.pxi":690
 *         <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-funcs-set-linear-gradient-func>`_.
 *         """
 *         self._linear_gradient_func = func             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_set_linear_gradient_func(
 *             self._hb_paintfuncs, _paint_linear_gradient_func, <void*>self, NULL)
*/
  __Pyx_INCREF(__pyx_v_func);
  __Pyx_GIVEREF(__pyx_v_func);
  __Pyx_GOTREF(__pyx_v_self->_linear_gradient_func);
  __Pyx_DECREF(__pyx_v_self->_linear_gradient_func);
  __pyx_v_self->_linear_gradient_func = __pyx_v_func;

  /* "src/uharfbuzz/_paint.pxi":691
 *         """
 *         self._linear_gradient_func = func
 *         hb_paint_funcs_set_linear_gradient_func(             # <<<<<<<<<<<<<<
 *             self._hb_paintfuncs, _paint_linear_gradient_func, <void*>self, NULL)
 * 
*/
  hb_paint_funcs_set_linear_gradient_func(__pyx_v_self->_hb_paintfuncs, __pyx_f_9uharfbuzz_9_harfbuzz__paint_linear_gradient_func, ((void *)__pyx_v_self), NULL);

  /* "src/uharfbuzz/_paint.pxi":668
 *             self._hb_paintfuncs, _paint_image_func, <void*>self, NULL)
 * 
 *     def set_linear_gradient_func(self,             # <<<<<<<<<<<<<<
 *                                  func: Callable[[
 *                                     ColorLine,  # color_line
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_paint.pxi":694
 *             self._hb_paintfuncs, _paint_linear_gradient_func, <void*>self, NULL)
 * 
 *     def set_radial_gradient_func(self,             # <<<<<<<<<<<<<<
 *                                  func: Callable[[
 *                                     ColorLine,  # color_line
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_23set_radial_gradient_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_22set_radial_gradient_func, "Sets the radial-gradient callback on this :class:`PaintFuncs`.\n\n        The callback paints a radial gradient everywhere within the current\n        clip. The ``color_line`` object contains information about the\n        colors of the gradient; it is only valid for the duration of the\n        callback, you cannot keep it around. The coordinates of the points\n        are interpreted according to the current transform.\n\n        Wraps `hb_paint_funcs_set_radial_gradient_func()\n        <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-funcs-set-radial-gradient-func>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_10PaintFuncs_23set_radial_gradient_func = {"set_radial_gradient_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_23set_radial_gradient_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_22set_radial_gradient_func};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_23set_radial_gradient_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_func = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_radial_gradient_func (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(9, 694, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(9, 694, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_radial_gradient_func", 0) < (0)) __PYX_ERR(9, 694, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_radial_gradient_func", 1, 1, 1, i); __PYX_ERR(9, 694, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(9, 694, __pyx_L3_error)
    }
    __pyx_v_func = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_radial_gradient_func", 1, 1, 1, __pyx_nargs); __PYX_ERR(9, 694, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.PaintFuncs.set_radial_gradient_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_22set_radial_gradient_func(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)__pyx_v_self), __pyx_v_func);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_22set_radial_gradient_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self, PyObject *__pyx_v_func) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_radial_gradient_func", 0);

  /* "src/uharfbuzz/_paint.pxi":716
 *         <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-funcs-set-radial-gradient-func>`_.
 *         """
 *         self._radial_gradient_func = func             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_set_radial_gradient_func(
 *             self._hb_paintfuncs, _paint_radial_gradient_func, <void*>self, NULL)
*/
  __Pyx_INCREF(__pyx_v_func);
  __Pyx_GIVEREF(__pyx_v_func);
  __Pyx_GOTREF(__pyx_v_self->_radial_gradient_func);
  __Pyx_DECREF(__pyx_v_self->_radial_gradient_func);
  __pyx_v_self->_radial_gradient_func = __pyx_v_func;

  /* "src/uharfbuzz/_paint.pxi":717
 *         """
 *         self._radial_gradient_func = func
 *         hb_paint_funcs_set_radial_gradient_func(             # <<<<<<<<<<<<<<
 *             self._hb_paintfuncs, _paint_radial_gradient_func, <void*>self, NULL)
 * 
*/
  hb_paint_funcs_set_radial_gradient_func(__pyx_v_self->_hb_paintfuncs, __pyx_f_9uharfbuzz_9_harfbuzz__paint_radial_gradient_func, ((void *)__pyx_v_self), NULL);

  /* "src/uharfbuzz/_paint.pxi":694
 *             self._hb_paintfuncs, _paint_linear_gradient_func, <void*>self, NULL)
 * 
 *     def set_radial_gradient_func(self,             # <<<<<<<<<<<<<<
 *                                  func: Callable[[
 *                                     ColorLine,  # color_line
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_paint.pxi":720
 *             self._hb_paintfuncs, _paint_radial_gradient_func, <void*>self, NULL)
 * 
 *     def set_sweep_gradient_func(self,             # <<<<<<<<<<<<<<
 *                                 func: Callable[[
 *                                     ColorLine,  # color_line
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_25set_sweep_gradient_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_24set_sweep_gradient_func, "Sets the sweep-gradient callback on this :class:`PaintFuncs`.\n\n        The callback paints a sweep gradient everywhere within the current\n        clip. The ``color_line`` object contains information about the\n        colors of the gradient; it is only valid for the duration of the\n        callback, you cannot keep it around. The coordinates of the points\n        are interpreted according to the current transform.\n\n        Wraps `hb_paint_funcs_set_sweep_gradient_func()\n        <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-funcs-set-sweep-gradient-func>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_10PaintFuncs_25set_sweep_gradient_func = {"set_sweep_gradient_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_25set_sweep_gradient_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_24set_sweep_gradient_func};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_25set_sweep_gradient_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_func = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_sweep_gradient_func (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(9, 720, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(9, 720, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_sweep_gradient_func", 0) < (0)) __PYX_ERR(9, 720, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_sweep_gradient_func", 1, 1, 1, i); __PYX_ERR(9, 720, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(9, 720, __pyx_L3_error)
    }
    __pyx_v_func = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_sweep_gradient_func", 1, 1, 1, __pyx_nargs); __PYX_ERR(9, 720, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.PaintFuncs.set_sweep_gradient_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_24set_sweep_gradient_func(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)__pyx_v_self), __pyx_v_func);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_24set_sweep_gradient_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self, PyObject *__pyx_v_func) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_sweep_gradient_func", 0);

  /* "src/uharfbuzz/_paint.pxi":740
 *         <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-funcs-set-sweep-gradient-func>`_.
 *         """
 *         self._sweep_gradient_func = func             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_set_sweep_gradient_func(
 *             self._hb_paintfuncs, _paint_sweep_gradient_func, <void*>self, NULL)
*/
  __Pyx_INCREF(__pyx_v_func);
  __Pyx_GIVEREF(__pyx_v_func);
  __Pyx_GOTREF(__pyx_v_self->_sweep_gradient_func);
  __Pyx_DECREF(__pyx_v_self->_sweep_gradient_func);
  __pyx_v_self->_sweep_gradient_func = __pyx_v_func;

  /* "src/uharfbuzz/_paint.pxi":741
 *         """
 *         self._sweep_gradient_func = func
 *         hb_paint_funcs_set_sweep_gradient_func(             # <<<<<<<<<<<<<<
 *             self._hb_paintfuncs, _paint_sweep_gradient_func, <void*>self, NULL)
 * 
*/
  hb_paint_funcs_set_sweep_gradient_func(__pyx_v_self->_hb_paintfuncs, __pyx_f_9uharfbuzz_9_harfbuzz__paint_sweep_gradient_func, ((void *)__pyx_v_self), NULL);

  /* "src/uharfbuzz/_paint.pxi":720
 *             self._hb_paintfuncs, _paint_radial_gradient_func, <void*>self, NULL)
 * 
 *     def set_sweep_gradient_func(self,             # <<<<<<<<<<<<<<
 *                                 func: Callable[[
 *                                     ColorLine,  # color_line
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_paint.pxi":744
 *             self._hb_paintfuncs, _paint_sweep_gradient_func, <void*>self, NULL)
 * 
 *     def set_push_group_func(self,             # <<<<<<<<<<<<<<
 *                             func: Callable[[
 *                                 object,  # paint_data
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_27set_push_group_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_26set_push_group_func, "Sets the push-group callback on this :class:`PaintFuncs`.\n\n        The callback uses an intermediate surface for subsequent paint\n        calls. The drawing will be redirected to an intermediate surface\n        until a matching call to the pop-group callback.\n\n        Wraps `hb_paint_funcs_set_push_group_func()\n        <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-funcs-set-push-group-func>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_10PaintFuncs_27set_push_group_func = {"set_push_group_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_27set_push_group_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_26set_push_group_func};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_27set_push_group_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_func = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_push_group_func (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(9, 744, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(9, 744, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_push_group_func", 0) < (0)) __PYX_ERR(9, 744, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_push_group_func", 1, 1, 1, i); __PYX_ERR(9, 744, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(9, 744, __pyx_L3_error)
    }
    __pyx_v_func = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_push_group_func", 1, 1, 1, __pyx_nargs); __PYX_ERR(9, 744, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.PaintFuncs.set_push_group_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_26set_push_group_func(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)__pyx_v_self), __pyx_v_func);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_26set_push_group_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self, PyObject *__pyx_v_func) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_push_group_func", 0);

  /* "src/uharfbuzz/_paint.pxi":757
 *         <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-funcs-set-push-group-func>`_.
 *         """
 *         self._push_group_func = func             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_set_push_group_func(
 *             self._hb_paintfuncs, _paint_push_group_func, <void*>self, NULL)
*/
  __Pyx_INCREF(__pyx_v_func);
  __Pyx_GIVEREF(__pyx_v_func);
  __Pyx_GOTREF(__pyx_v_self->_push_group_func);
  __Pyx_DECREF(__pyx_v_self->_push_group_func);
  __pyx_v_self->_push_group_func = __pyx_v_func;

  /* "src/uharfbuzz/_paint.pxi":758
 *         """
 *         self._push_group_func = func
 *         hb_paint_funcs_set_push_group_func(             # <<<<<<<<<<<<<<
 *             self._hb_paintfuncs, _paint_push_group_func, <void*>self, NULL)
 * 
*/
  hb_paint_funcs_set_push_group_func(__pyx_v_self->_hb_paintfuncs, __pyx_f_9uharfbuzz_9_harfbuzz__paint_push_group_func, ((void *)__pyx_v_self), NULL);

  /* "src/uharfbuzz/_paint.pxi":744
 *             self._hb_paintfuncs, _paint_sweep_gradient_func, <void*>self, NULL)
 * 
 *     def set_push_group_func(self,             # <<<<<<<<<<<<<<
 *                             func: Callable[[
 *                                 object,  # paint_data
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_paint.pxi":761
 *             self._hb_paintfuncs, _paint_push_group_func, <void*>self, NULL)
 * 
 *     def set_pop_group_func(self,             # <<<<<<<<<<<<<<
 *                            func: Callable[[
 *                                PaintCompositeMode,  # mode
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_29set_pop_group_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_28set_pop_group_func, "Sets the pop-group callback on this :class:`PaintFuncs`.\n\n        The callback undoes the effect of a prior call to the push-group\n        callback. It stops the redirection to the intermediate surface, and\n        then composites it on the previous surface, using the compositing\n        mode passed to the callback.\n\n        Wraps `hb_paint_funcs_set_pop_group_func()\n        <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-funcs-set-pop-group-func>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_10PaintFuncs_29set_pop_group_func = {"set_pop_group_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_29set_pop_group_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_28set_pop_group_func};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_29set_pop_group_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_func = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_pop_group_func (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(9, 761, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(9, 761, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_pop_group_func", 0) < (0)) __PYX_ERR(9, 761, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_pop_group_func", 1, 1, 1, i); __PYX_ERR(9, 761, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(9, 761, __pyx_L3_error)
    }
    __pyx_v_func = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_pop_group_func", 1, 1, 1, __pyx_nargs); __PYX_ERR(9, 761, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.PaintFuncs.set_pop_group_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_28set_pop_group_func(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)__pyx_v_self), __pyx_v_func);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_28set_pop_group_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self, PyObject *__pyx_v_func) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_pop_group_func", 0);

  /* "src/uharfbuzz/_paint.pxi":776
 *         <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-funcs-set-pop-group-func>`_.
 *         """
 *         self._pop_group_func = func             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_set_pop_group_func(
 *             self._hb_paintfuncs, _paint_pop_group_func, <void*>self, NULL)
*/
  __Pyx_INCREF(__pyx_v_func);
  __Pyx_GIVEREF(__pyx_v_func);
  __Pyx_GOTREF(__pyx_v_self->_pop_group_func);
  __Pyx_DECREF(__pyx_v_self->_pop_group_func);
  __pyx_v_self->_pop_group_func = __pyx_v_func;

  /* "src/uharfbuzz/_paint.pxi":777
 *         """
 *         self._pop_group_func = func
 *         hb_paint_funcs_set_pop_group_func(             # <<<<<<<<<<<<<<
 *             self._hb_paintfuncs, _paint_pop_group_func, <void*>self, NULL)
 * 
*/
  hb_paint_funcs_set_pop_group_func(__pyx_v_self->_hb_paintfuncs, __pyx_f_9uharfbuzz_9_harfbuzz__paint_pop_group_func, ((void *)__pyx_v_self), NULL);

  /* "src/uharfbuzz/_paint.pxi":761
 *             self._hb_paintfuncs, _paint_push_group_func, <void*>self, NULL)
 * 
 *     def set_pop_group_func(self,             # <<<<<<<<<<<<<<
 *                            func: Callable[[
 *                                PaintCompositeMode,  # mode
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_paint.pxi":780
 *             self._hb_paintfuncs, _paint_pop_group_func, <void*>self, NULL)
 * 
 *     def set_custom_palette_color_func(self,             # <<<<<<<<<<<<<<
 *                                       func: Callable[[
 *                                           int,  # color_index
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_31set_custom_palette_color_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_30set_custom_palette_color_func, "Sets the custom-palette-color callback on this :class:`PaintFuncs`.\n\n        The callback fetches a custom palette override color for\n        ``color_index``. Custom palette colors override colors from the\n        font's selected color palette. It is not necessary to override all\n        palette entries; return ``None`` for entries that should be taken\n        from the font palette.\n\n        Wraps `hb_paint_funcs_set_custom_palette_color_func()\n        <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-funcs-set-custom-palette-color-func>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_10PaintFuncs_31set_custom_palette_color_func = {"set_custom_palette_color_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_31set_custom_palette_color_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_30set_custom_palette_color_func};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_31set_custom_palette_color_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_func = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_custom_palette_color_func (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(9, 780, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(9, 780, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_custom_palette_color_func", 0) < (0)) __PYX_ERR(9, 780, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_custom_palette_color_func", 1, 1, 1, i); __PYX_ERR(9, 780, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(9, 780, __pyx_L3_error)
    }
    __pyx_v_func = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_custom_palette_color_func", 1, 1, 1, __pyx_nargs); __PYX_ERR(9, 780, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.PaintFuncs.set_custom_palette_color_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_30set_custom_palette_color_func(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)__pyx_v_self), __pyx_v_func);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_30set_custom_palette_color_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self, PyObject *__pyx_v_func) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_custom_palette_color_func", 0);

  /* "src/uharfbuzz/_paint.pxi":796
 *         <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-funcs-set-custom-palette-color-func>`_.
 *         """
 *         self._custom_palette_color_func = func             # <<<<<<<<<<<<<<
 *         hb_paint_funcs_set_custom_palette_color_func(
 *             self._hb_paintfuncs, _paint_custom_palette_color_func, <void*>self, NULL)
*/
  __Pyx_INCREF(__pyx_v_func);
  __Pyx_GIVEREF(__pyx_v_func);
  __Pyx_GOTREF(__pyx_v_self->_custom_palette_color_func);
  __Pyx_DECREF(__pyx_v_self->_custom_palette_color_func);
  __pyx_v_self->_custom_palette_color_func = __pyx_v_func;

  /* "src/uharfbuzz/_paint.pxi":797
 *         """
 *         self._custom_palette_color_func = func
 *         hb_paint_funcs_set_custom_palette_color_func(             # <<<<<<<<<<<<<<
 *             self._hb_paintfuncs, _paint_custom_palette_color_func, <void*>self, NULL)
*/
  hb_paint_funcs_set_custom_palette_color_func(__pyx_v_self->_hb_paintfuncs, __pyx_f_9uharfbuzz_9_harfbuzz__paint_custom_palette_color_func, ((void *)__pyx_v_self), NULL);

  /* "src/uharfbuzz/_paint.pxi":780
 *             self._hb_paintfuncs, _paint_pop_group_func, <void*>self, NULL)
 * 
 *     def set_custom_palette_color_func(self,             # <<<<<<<<<<<<<<
 *                                       func: Callable[[
 *                                           int,  # color_index
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_33__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_10PaintFuncs_33__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_33__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_33__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_32__reduce_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_32__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.PaintFuncs.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_35__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_10PaintFuncs_35__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_35__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_35__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 3, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < (0)) __PYX_ERR(4, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(4, 3, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(4, 3, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.PaintFuncs.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_34__setstate_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10PaintFuncs_34__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.PaintFuncs.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":305
 *     cdef FontFuncs _ffuncs
 * 
 *     def __cinit__(self, face_or_font: Union[Face, Font] = None):             # <<<<<<<<<<<<<<
 *         if face_or_font is not None:
 *             if isinstance(face_or_font, Font):
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_face_or_font = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face_or_font,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 305, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 305, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__cinit__", 0) < (0)) __PYX_ERR(3, 305, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_None));
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 305, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_face_or_font = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(3, 305, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font___cinit__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_face_or_font);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_4Font___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_face_or_font) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "src/uharfbuzz/_font.pxi":306
 * 
 *     def __cinit__(self, face_or_font: Union[Face, Font] = None):
 *         if face_or_font is not None:             # <<<<<<<<<<<<<<
 *             if isinstance(face_or_font, Font):
 *                 self.__create_sub_font(face_or_font)
*/
  __pyx_t_1 = (__pyx_v_face_or_font != Py_None);
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_font.pxi":307
 *     def __cinit__(self, face_or_font: Union[Face, Font] = None):
 *         if face_or_font is not None:
 *             if isinstance(face_or_font, Font):             # <<<<<<<<<<<<<<
 *                 self.__create_sub_font(face_or_font)
 *                 return
*/
    __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_face_or_font, __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font); 
    if (__pyx_t_1) {

      /* "src/uharfbuzz/_font.pxi":308
 *         if face_or_font is not None:
 *             if isinstance(face_or_font, Font):
 *                 self.__create_sub_font(face_or_font)             # <<<<<<<<<<<<<<
 *                 return
 *             self.__create(face_or_font)
*/
      if (!(likely(((__pyx_v_face_or_font) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_face_or_font, __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font))))) __PYX_ERR(3, 308, __pyx_L1_error)
      __pyx_t_2 = ((struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self->__pyx_vtab)->_Font__create_sub_font(__pyx_v_self, ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_face_or_font)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 308, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "src/uharfbuzz/_font.pxi":309
 *             if isinstance(face_or_font, Font):
 *                 self.__create_sub_font(face_or_font)
 *                 return             # <<<<<<<<<<<<<<
 *             self.__create(face_or_font)
 *         else:
*/
      __pyx_r = 0;
      goto __pyx_L0;

      /* "src/uharfbuzz/_font.pxi":307
 *     def __cinit__(self, face_or_font: Union[Face, Font] = None):
 *         if face_or_font is not None:
 *             if isinstance(face_or_font, Font):             # <<<<<<<<<<<<<<
 *                 self.__create_sub_font(face_or_font)
 *                 return
*/
    }

    /* "src/uharfbuzz/_font.pxi":310
 *                 self.__create_sub_font(face_or_font)
 *                 return
 *             self.__create(face_or_font)             # <<<<<<<<<<<<<<
 *         else:
 *             self._hb_font = hb_font_get_empty()
*/
    if (!(likely(((__pyx_v_face_or_font) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_face_or_font, __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face))))) __PYX_ERR(3, 310, __pyx_L1_error)
    __pyx_t_2 = ((struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self->__pyx_vtab)->_Font__create(__pyx_v_self, ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_v_face_or_font)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 310, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "src/uharfbuzz/_font.pxi":306
 * 
 *     def __cinit__(self, face_or_font: Union[Face, Font] = None):
 *         if face_or_font is not None:             # <<<<<<<<<<<<<<
 *             if isinstance(face_or_font, Font):
 *                 self.__create_sub_font(face_or_font)
*/
    goto __pyx_L3;
  }

  /* "src/uharfbuzz/_font.pxi":312
 *             self.__create(face_or_font)
 *         else:
 *             self._hb_font = hb_font_get_empty()             # <<<<<<<<<<<<<<
 *             self._face = Face()
 * 
*/
  /*else*/ {
    __pyx_v_self->_hb_font = hb_font_get_empty();

    /* "src/uharfbuzz/_font.pxi":313
 *         else:
 *             self._hb_font = hb_font_get_empty()
 *             self._face = Face()             # <<<<<<<<<<<<<<
 * 
 *     cdef __create(self, Face face):
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 313, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __Pyx_GIVEREF((PyObject *)__pyx_t_2);
    __Pyx_GOTREF((PyObject *)__pyx_v_self->_face);
    __Pyx_DECREF((PyObject *)__pyx_v_self->_face);
    __pyx_v_self->_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_t_2);
    __pyx_t_2 = 0;
  }
  __pyx_L3:;

  /* "src/uharfbuzz/_font.pxi":305
 *     cdef FontFuncs _ffuncs
 * 
 *     def __cinit__(self, face_or_font: Union[Face, Font] = None):             # <<<<<<<<<<<<<<
 *         if face_or_font is not None:
 *             if isinstance(face_or_font, Font):
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":315
 *             self._face = Face()
 * 
 *     cdef __create(self, Face face):             # <<<<<<<<<<<<<<
 *         self._hb_font = hb_font_create(face._hb_face)
 *         self._face = face
*/

static PyObject *__pyx_f_9uharfbuzz_9_harfbuzz_4Font__Font__create(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_Font__create", 0);

  /* "src/uharfbuzz/_font.pxi":316
 * 
 *     cdef __create(self, Face face):
 *         self._hb_font = hb_font_create(face._hb_face)             # <<<<<<<<<<<<<<
 *         self._face = face
 * 
*/
  __pyx_v_self->_hb_font = hb_font_create(__pyx_v_face->_hb_face);

  /* "src/uharfbuzz/_font.pxi":317
 *     cdef __create(self, Face face):
 *         self._hb_font = hb_font_create(face._hb_face)
 *         self._face = face             # <<<<<<<<<<<<<<
 * 
 *     cdef __create_sub_font(self, Font font):
*/
  __Pyx_INCREF((PyObject *)__pyx_v_face);
  __Pyx_GIVEREF((PyObject *)__pyx_v_face);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_face);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_face);
  __pyx_v_self->_face = __pyx_v_face;

  /* "src/uharfbuzz/_font.pxi":315
 *             self._face = Face()
 * 
 *     cdef __create(self, Face face):             # <<<<<<<<<<<<<<
 *         self._hb_font = hb_font_create(face._hb_face)
 *         self._face = face
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":319
 *         self._face = face
 * 
 *     cdef __create_sub_font(self, Font font):             # <<<<<<<<<<<<<<
 *         self._hb_font = hb_font_create_sub_font(font._hb_font)
 *         self._face = font._face
*/

static PyObject *__pyx_f_9uharfbuzz_9_harfbuzz_4Font__Font__create_sub_font(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("_Font__create_sub_font", 0);

  /* "src/uharfbuzz/_font.pxi":320
 * 
 *     cdef __create_sub_font(self, Font font):
 *         self._hb_font = hb_font_create_sub_font(font._hb_font)             # <<<<<<<<<<<<<<
 *         self._face = font._face
 * 
*/
  __pyx_v_self->_hb_font = hb_font_create_sub_font(__pyx_v_font->_hb_font);

  /* "src/uharfbuzz/_font.pxi":321
 *     cdef __create_sub_font(self, Font font):
 *         self._hb_font = hb_font_create_sub_font(font._hb_font)
 *         self._face = font._face             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_font->_face);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_face);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_face);
  __pyx_v_self->_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_font.pxi":319
 *         self._face = face
 * 
 *     cdef __create_sub_font(self, Font font):             # <<<<<<<<<<<<<<
 *         self._hb_font = hb_font_create_sub_font(font._hb_font)
 *         self._face = font._face
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":323
 *         self._face = font._face
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         hb_font_destroy(self._hb_font)
 *         self._face = self._ffuncs = None
*/

/* Python wrapper */
static void __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_2__dealloc__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_2__dealloc__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "src/uharfbuzz/_font.pxi":324
 * 
 *     def __dealloc__(self):
 *         hb_font_destroy(self._hb_font)             # <<<<<<<<<<<<<<
 *         self._face = self._ffuncs = None
 * 
*/
  hb_font_destroy(__pyx_v_self->_hb_font);

  /* "src/uharfbuzz/_font.pxi":325
 *     def __dealloc__(self):
 *         hb_font_destroy(self._hb_font)
 *         self._face = self._ffuncs = None             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
*/
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_face);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_face);
  __pyx_v_self->_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)Py_None);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_ffuncs);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_ffuncs);
  __pyx_v_self->_ffuncs = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)Py_None);

  /* "src/uharfbuzz/_font.pxi":323
 *         self._face = font._face
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         hb_font_destroy(self._hb_font)
 *         self._face = self._ffuncs = None
*/

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "src/uharfbuzz/_font.pxi":327
 *         self._face = self._ffuncs = None
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     cdef Font from_ptr(hb_font_t* hb_font):
 *         """Create Font from a pointer, taking ownership of it."""
*/

static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_f_9uharfbuzz_9_harfbuzz_4Font_from_ptr(hb_font_t *__pyx_v_hb_font) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_wrapper = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("from_ptr", 0);

  /* "src/uharfbuzz/_font.pxi":331
 *         """Create Font from a pointer, taking ownership of it."""
 * 
 *         cdef Font wrapper = Font.__new__(Font)             # <<<<<<<<<<<<<<
 *         wrapper._hb_font = hb_font
 *         wrapper._face = Face.from_ptr(hb_face_reference(hb_font_get_face(hb_font)))
*/
  __pyx_t_1 = ((PyObject *)__pyx_tp_new_9uharfbuzz_9_harfbuzz_Font(((PyTypeObject *)__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font), __pyx_mstate_global->__pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 331, __pyx_L1_error)
  __Pyx_GOTREF((PyObject *)__pyx_t_1);
  __pyx_v_wrapper = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_font.pxi":332
 * 
 *         cdef Font wrapper = Font.__new__(Font)
 *         wrapper._hb_font = hb_font             # <<<<<<<<<<<<<<
 *         wrapper._face = Face.from_ptr(hb_face_reference(hb_font_get_face(hb_font)))
 *         return wrapper
*/
  __pyx_v_wrapper->_hb_font = __pyx_v_hb_font;

  /* "src/uharfbuzz/_font.pxi":333
 *         cdef Font wrapper = Font.__new__(Font)
 *         wrapper._hb_font = hb_font
 *         wrapper._face = Face.from_ptr(hb_face_reference(hb_font_get_face(hb_font)))             # <<<<<<<<<<<<<<
 *         return wrapper
 * 
*/
  __pyx_t_1 = ((PyObject *)__pyx_f_9uharfbuzz_9_harfbuzz_4Face_from_ptr(hb_face_reference(hb_font_get_face(__pyx_v_hb_font)))); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 333, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_wrapper->_face);
  __Pyx_DECREF((PyObject *)__pyx_v_wrapper->_face);
  __pyx_v_wrapper->_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_font.pxi":334
 *         wrapper._hb_font = hb_font
 *         wrapper._face = Face.from_ptr(hb_face_reference(hb_font_get_face(hb_font)))
 *         return wrapper             # <<<<<<<<<<<<<<
 * 
 *     @classmethod
*/
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_wrapper);
  __pyx_r = __pyx_v_wrapper;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":327
 *         self._face = self._ffuncs = None
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     cdef Font from_ptr(hb_font_t* hb_font):
 *         """Create Font from a pointer, taking ownership of it."""
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.from_ptr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_wrapper);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":336
 *         return wrapper
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     @deprecated("Font()", since="0.10.0")
 *     def create(cls, face: Face) -> Font:
*/

/* Python wrapper */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_5create(PyObject *__pyx_v_cls, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_5create = {"create", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_5create, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_5create(PyObject *__pyx_v_cls, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("create (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 336, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 336, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "create", 0) < (0)) __PYX_ERR(3, 336, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("create", 1, 1, 1, i); __PYX_ERR(3, 336, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 336, __pyx_L3_error)
    }
    __pyx_v_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("create", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 336, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.create", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, 0, "face", 0))) __PYX_ERR(3, 338, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_4create(((PyTypeObject*)__pyx_v_cls), __pyx_v_face);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_4create(PyTypeObject *__pyx_v_cls, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_inst = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("create", 0);

  /* "src/uharfbuzz/_font.pxi":339
 *     @deprecated("Font()", since="0.10.0")
 *     def create(cls, face: Face) -> Font:
 *         cdef Font inst = cls(face)             # <<<<<<<<<<<<<<
 *         return inst
 * 
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, ((PyObject *)__pyx_v_face)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_v_cls, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 339, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font))))) __PYX_ERR(3, 339, __pyx_L1_error)
  __pyx_v_inst = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_font.pxi":340
 *     def create(cls, face: Face) -> Font:
 *         cdef Font inst = cls(face)
 *         return inst             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_inst);
  __pyx_r = __pyx_v_inst;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":336
 *         return wrapper
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     @deprecated("Font()", since="0.10.0")
 *     def create(cls, face: Face) -> Font:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.create", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_inst);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":342
 *         return inst
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def face(self) -> Face:
 *         """The :class:`Face` associated with this font.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_4face_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_4face_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_4face___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_4face___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_font.pxi":351
 *         <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-get-face>`_.
 *         """
 *         return self._face             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_face);
  __pyx_r = ((PyObject *)__pyx_v_self->_face);
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":342
 *         return inst
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def face(self) -> Face:
 *         """The :class:`Face` associated with this font.
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":353
 *         return self._face
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def funcs(self) -> FontFuncs:
 *         """The font-functions structure attached to this font.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_5funcs_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_5funcs_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_5funcs___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_5funcs___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_font.pxi":365
 *         <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-set-funcs>`_.
 *         """
 *         return self._ffuncs             # <<<<<<<<<<<<<<
 * 
 *     @funcs.setter
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_ffuncs);
  __pyx_r = ((PyObject *)__pyx_v_self->_ffuncs);
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":353
 *         return self._face
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def funcs(self) -> FontFuncs:
 *         """The font-functions structure attached to this font.
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":367
 *         return self._ffuncs
 * 
 *     @funcs.setter             # <<<<<<<<<<<<<<
 *     def funcs(self, ffuncs: FontFuncs):
 *         hb_font_set_funcs(
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_5funcs_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_ffuncs); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_5funcs_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_ffuncs) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ffuncs), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_FontFuncs, 0, "ffuncs", 0))) __PYX_ERR(3, 368, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_5funcs_2__set__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)__pyx_v_ffuncs));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_5funcs_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_v_ffuncs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "src/uharfbuzz/_font.pxi":369
 *     @funcs.setter
 *     def funcs(self, ffuncs: FontFuncs):
 *         hb_font_set_funcs(             # <<<<<<<<<<<<<<
 *             self._hb_font, ffuncs._hb_ffuncs, <void*>self, NULL)
 *         self._ffuncs = ffuncs
*/
  hb_font_set_funcs(__pyx_v_self->_hb_font, __pyx_v_ffuncs->_hb_ffuncs, ((void *)__pyx_v_self), NULL);

  /* "src/uharfbuzz/_font.pxi":371
 *         hb_font_set_funcs(
 *             self._hb_font, ffuncs._hb_ffuncs, <void*>self, NULL)
 *         self._ffuncs = ffuncs             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_INCREF((PyObject *)__pyx_v_ffuncs);
  __Pyx_GIVEREF((PyObject *)__pyx_v_ffuncs);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_ffuncs);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_ffuncs);
  __pyx_v_self->_ffuncs = __pyx_v_ffuncs;

  /* "src/uharfbuzz/_font.pxi":367
 *         return self._ffuncs
 * 
 *     @funcs.setter             # <<<<<<<<<<<<<<
 *     def funcs(self, ffuncs: FontFuncs):
 *         hb_font_set_funcs(
*/

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":373
 *         self._ffuncs = ffuncs
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def scale(self) -> Tuple[int, int]:
 *         """The horizontal and vertical scale of the font, as a
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_5scale_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_5scale_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_5scale___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_5scale___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self) {
  int __pyx_v_x;
  int __pyx_v_y;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_font.pxi":408
 *         """
 *         cdef int x, y
 *         hb_font_get_scale(self._hb_font, &x, &y)             # <<<<<<<<<<<<<<
 *         return (x, y)
 * 
*/
  hb_font_get_scale(__pyx_v_self->_hb_font, (&__pyx_v_x), (&__pyx_v_y));

  /* "src/uharfbuzz/_font.pxi":409
 *         cdef int x, y
 *         hb_font_get_scale(self._hb_font, &x, &y)
 *         return (x, y)             # <<<<<<<<<<<<<<
 * 
 *     @scale.setter
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_v_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 409, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 409, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 409, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1) != (0)) __PYX_ERR(3, 409, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2) != (0)) __PYX_ERR(3, 409, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":373
 *         self._ffuncs = ffuncs
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def scale(self) -> Tuple[int, int]:
 *         """The horizontal and vertical scale of the font, as a
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.scale.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":411
 *         return (x, y)
 * 
 *     @scale.setter             # <<<<<<<<<<<<<<
 *     def scale(self, value: Tuple[int, int]):
 *         x, y = value
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_5scale_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_5scale_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), (&PyTuple_Type), 0, "value", 2))) __PYX_ERR(3, 412, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_5scale_2__set__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), ((PyObject*)__pyx_v_value));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_5scale_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_value) {
  PyObject *__pyx_v_x = NULL;
  PyObject *__pyx_v_y = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "src/uharfbuzz/_font.pxi":413
 *     @scale.setter
 *     def scale(self, value: Tuple[int, int]):
 *         x, y = value             # <<<<<<<<<<<<<<
 *         hb_font_set_scale(self._hb_font, x, y)
 * 
*/
  if (1) {
    PyObject* sequence = __pyx_v_value;
    Py_ssize_t size = __Pyx_PyTuple_GET_SIZE(sequence);
    if (unlikely(size != 2)) {
      if (size > 2) __Pyx_RaiseTooManyValuesError(2);
      else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
      __PYX_ERR(3, 413, __pyx_L1_error)
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_1 = PyTuple_GET_ITEM(sequence, 0);
    __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = PyTuple_GET_ITEM(sequence, 1);
    __Pyx_INCREF(__pyx_t_2);
    #else
    __pyx_t_1 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 413, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 413, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    #endif
  }
  __pyx_v_x = __pyx_t_1;
  __pyx_t_1 = 0;
  __pyx_v_y = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "src/uharfbuzz/_font.pxi":414
 *     def scale(self, value: Tuple[int, int]):
 *         x, y = value
 *         hb_font_set_scale(self._hb_font, x, y)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __pyx_t_3 = __Pyx_PyLong_As_int(__pyx_v_x); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 414, __pyx_L1_error)
  __pyx_t_4 = __Pyx_PyLong_As_int(__pyx_v_y); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 414, __pyx_L1_error)
  hb_font_set_scale(__pyx_v_self->_hb_font, __pyx_t_3, __pyx_t_4);

  /* "src/uharfbuzz/_font.pxi":411
 *         return (x, y)
 * 
 *     @scale.setter             # <<<<<<<<<<<<<<
 *     def scale(self, value: Tuple[int, int]):
 *         x, y = value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.scale.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_x);
  __Pyx_XDECREF(__pyx_v_y);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":416
 *         hb_font_set_scale(self._hb_font, x, y)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def ppem(self) -> Tuple[int, int]:
 *         """The horizontal and vertical pixels-per-em (PPEM) of the font, as
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_4ppem_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_4ppem_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_4ppem___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_4ppem___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self) {
  unsigned int __pyx_v_x;
  unsigned int __pyx_v_y;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_font.pxi":431
 *         """
 *         cdef unsigned int x, y
 *         hb_font_get_ppem(self._hb_font, &x, &y)             # <<<<<<<<<<<<<<
 *         return (x, y)
 * 
*/
  hb_font_get_ppem(__pyx_v_self->_hb_font, (&__pyx_v_x), (&__pyx_v_y));

  /* "src/uharfbuzz/_font.pxi":432
 *         cdef unsigned int x, y
 *         hb_font_get_ppem(self._hb_font, &x, &y)
 *         return (x, y)             # <<<<<<<<<<<<<<
 * 
 *     @ppem.setter
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int(__pyx_v_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 432, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_From_unsigned_int(__pyx_v_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 432, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 432, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1) != (0)) __PYX_ERR(3, 432, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2) != (0)) __PYX_ERR(3, 432, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":416
 *         hb_font_set_scale(self._hb_font, x, y)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def ppem(self) -> Tuple[int, int]:
 *         """The horizontal and vertical pixels-per-em (PPEM) of the font, as
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.ppem.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":434
 *         return (x, y)
 * 
 *     @ppem.setter             # <<<<<<<<<<<<<<
 *     def ppem(self, value: Tuple[int, int]):
 *         x, y = value
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_4ppem_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_4ppem_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), (&PyTuple_Type), 0, "value", 2))) __PYX_ERR(3, 435, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_4ppem_2__set__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), ((PyObject*)__pyx_v_value));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_4ppem_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_value) {
  PyObject *__pyx_v_x = NULL;
  PyObject *__pyx_v_y = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  unsigned int __pyx_t_3;
  unsigned int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "src/uharfbuzz/_font.pxi":436
 *     @ppem.setter
 *     def ppem(self, value: Tuple[int, int]):
 *         x, y = value             # <<<<<<<<<<<<<<
 *         hb_font_set_ppem(self._hb_font, x, y)
 * 
*/
  if (1) {
    PyObject* sequence = __pyx_v_value;
    Py_ssize_t size = __Pyx_PyTuple_GET_SIZE(sequence);
    if (unlikely(size != 2)) {
      if (size > 2) __Pyx_RaiseTooManyValuesError(2);
      else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
      __PYX_ERR(3, 436, __pyx_L1_error)
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_1 = PyTuple_GET_ITEM(sequence, 0);
    __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = PyTuple_GET_ITEM(sequence, 1);
    __Pyx_INCREF(__pyx_t_2);
    #else
    __pyx_t_1 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 436, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 436, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    #endif
  }
  __pyx_v_x = __pyx_t_1;
  __pyx_t_1 = 0;
  __pyx_v_y = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "src/uharfbuzz/_font.pxi":437
 *     def ppem(self, value: Tuple[int, int]):
 *         x, y = value
 *         hb_font_set_ppem(self._hb_font, x, y)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __pyx_t_3 = __Pyx_PyLong_As_unsigned_int(__pyx_v_x); if (unlikely((__pyx_t_3 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 437, __pyx_L1_error)
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_int(__pyx_v_y); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 437, __pyx_L1_error)
  hb_font_set_ppem(__pyx_v_self->_hb_font, __pyx_t_3, __pyx_t_4);

  /* "src/uharfbuzz/_font.pxi":434
 *         return (x, y)
 * 
 *     @ppem.setter             # <<<<<<<<<<<<<<
 *     def ppem(self, value: Tuple[int, int]):
 *         x, y = value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.ppem.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_x);
  __Pyx_XDECREF(__pyx_v_y);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":439
 *         hb_font_set_ppem(self._hb_font, x, y)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def ptem(self) -> float:
 *         """The "point size" of the font. Set to zero to unset. Used in
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_4ptem_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_4ptem_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_4ptem___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_4ptem___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_font.pxi":451
 *         <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-set-ptem>`_.
 *         """
 *         return hb_font_get_ptem(self._hb_font)             # <<<<<<<<<<<<<<
 * 
 *     @ptem.setter
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(hb_font_get_ptem(__pyx_v_self->_hb_font)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 451, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":439
 *         hb_font_set_ppem(self._hb_font, x, y)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def ptem(self) -> float:
 *         """The "point size" of the font. Set to zero to unset. Used in
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.ptem.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":453
 *         return hb_font_get_ptem(self._hb_font)
 * 
 *     @ptem.setter             # <<<<<<<<<<<<<<
 *     def ptem(self, value: float):
 *         hb_font_set_ptem(self._hb_font, value)
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_4ptem_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_4ptem_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) {
  double __pyx_v_value;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_value); {
    __pyx_v_value = __Pyx_PyFloat_AsDouble(__pyx_arg_value); if (unlikely((__pyx_v_value == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 454, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.ptem.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_4ptem_2__set__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), ((double)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_4ptem_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, double __pyx_v_value) {
  int __pyx_r;

  /* "src/uharfbuzz/_font.pxi":455
 *     @ptem.setter
 *     def ptem(self, value: float):
 *         hb_font_set_ptem(self._hb_font, value)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  hb_font_set_ptem(__pyx_v_self->_hb_font, __pyx_v_value);

  /* "src/uharfbuzz/_font.pxi":453
 *         return hb_font_get_ptem(self._hb_font)
 * 
 *     @ptem.setter             # <<<<<<<<<<<<<<
 *     def ptem(self, value: float):
 *         hb_font_set_ptem(self._hb_font, value)
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":457
 *         hb_font_set_ptem(self._hb_font, value)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def synthetic_slant(self) -> float:
 *         """The "synthetic slant" of the font. By default is zero. Synthetic
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_15synthetic_slant_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_15synthetic_slant_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_15synthetic_slant___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_15synthetic_slant___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_font.pxi":473
 *         <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-set-synthetic-slant>`_.
 *         """
 *         return hb_font_get_synthetic_slant(self._hb_font)             # <<<<<<<<<<<<<<
 * 
 *     @synthetic_slant.setter
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(hb_font_get_synthetic_slant(__pyx_v_self->_hb_font)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 473, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":457
 *         hb_font_set_ptem(self._hb_font, value)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def synthetic_slant(self) -> float:
 *         """The "synthetic slant" of the font. By default is zero. Synthetic
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.synthetic_slant.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":475
 *         return hb_font_get_synthetic_slant(self._hb_font)
 * 
 *     @synthetic_slant.setter             # <<<<<<<<<<<<<<
 *     def synthetic_slant(self, value: float):
 *         hb_font_set_synthetic_slant(self._hb_font, value)
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_15synthetic_slant_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_15synthetic_slant_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) {
  double __pyx_v_value;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_value); {
    __pyx_v_value = __Pyx_PyFloat_AsDouble(__pyx_arg_value); if (unlikely((__pyx_v_value == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 476, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.synthetic_slant.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_15synthetic_slant_2__set__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), ((double)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_15synthetic_slant_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, double __pyx_v_value) {
  int __pyx_r;

  /* "src/uharfbuzz/_font.pxi":477
 *     @synthetic_slant.setter
 *     def synthetic_slant(self, value: float):
 *         hb_font_set_synthetic_slant(self._hb_font, value)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  hb_font_set_synthetic_slant(__pyx_v_self->_hb_font, __pyx_v_value);

  /* "src/uharfbuzz/_font.pxi":475
 *         return hb_font_get_synthetic_slant(self._hb_font)
 * 
 *     @synthetic_slant.setter             # <<<<<<<<<<<<<<
 *     def synthetic_slant(self, value: float):
 *         hb_font_set_synthetic_slant(self._hb_font, value)
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":479
 *         hb_font_set_synthetic_slant(self._hb_font, value)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def synthetic_bold(self) -> Tuple[float, float, bool]:
 *         """The "synthetic boldness" of the font, as a tuple ``(x_embolden,
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_14synthetic_bold_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_14synthetic_bold_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_14synthetic_bold___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_14synthetic_bold___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self) {
  float __pyx_v_x_embolden;
  float __pyx_v_y_embolden;
  hb_bool_t __pyx_v_in_place;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_font.pxi":503
 *         cdef float y_embolden
 *         cdef hb_bool_t in_place
 *         hb_font_get_synthetic_bold(self._hb_font, &x_embolden, &y_embolden, &in_place)             # <<<<<<<<<<<<<<
 *         return (x_embolden, y_embolden, bool(in_place))
 * 
*/
  hb_font_get_synthetic_bold(__pyx_v_self->_hb_font, (&__pyx_v_x_embolden), (&__pyx_v_y_embolden), (&__pyx_v_in_place));

  /* "src/uharfbuzz/_font.pxi":504
 *         cdef hb_bool_t in_place
 *         hb_font_get_synthetic_bold(self._hb_font, &x_embolden, &y_embolden, &in_place)
 *         return (x_embolden, y_embolden, bool(in_place))             # <<<<<<<<<<<<<<
 * 
 *     @synthetic_bold.setter
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_x_embolden); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 504, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_y_embolden); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 504, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyBool_FromLong((!(!(__pyx_v_in_place != 0)))); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 504, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 504, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1) != (0)) __PYX_ERR(3, 504, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2) != (0)) __PYX_ERR(3, 504, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3) != (0)) __PYX_ERR(3, 504, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":479
 *         hb_font_set_synthetic_slant(self._hb_font, value)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def synthetic_bold(self) -> Tuple[float, float, bool]:
 *         """The "synthetic boldness" of the font, as a tuple ``(x_embolden,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.synthetic_bold.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":506
 *         return (x_embolden, y_embolden, bool(in_place))
 * 
 *     @synthetic_bold.setter             # <<<<<<<<<<<<<<
 *     def synthetic_bold(self, value: float|tuple[float]|tuple[float,float]|tuple[float,float,bool]):
 *         cdef float x_embolden
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_14synthetic_bold_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_14synthetic_bold_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_14synthetic_bold_2__set__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_14synthetic_bold_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_value) {
  float __pyx_v_x_embolden;
  float __pyx_v_y_embolden;
  hb_bool_t __pyx_v_in_place;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  float __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *(*__pyx_t_7)(PyObject *);
  float __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  hb_bool_t __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "src/uharfbuzz/_font.pxi":510
 *         cdef float x_embolden
 *         cdef float y_embolden
 *         cdef hb_bool_t in_place = False             # <<<<<<<<<<<<<<
 *         if isinstance(value, tuple):
 *             if len(value) == 1:
*/
  __pyx_v_in_place = 0;

  /* "src/uharfbuzz/_font.pxi":511
 *         cdef float y_embolden
 *         cdef hb_bool_t in_place = False
 *         if isinstance(value, tuple):             # <<<<<<<<<<<<<<
 *             if len(value) == 1:
 *                 x_embolden = y_embolden = value[0]
*/
  __pyx_t_1 = PyTuple_Check(__pyx_v_value); 
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_font.pxi":512
 *         cdef hb_bool_t in_place = False
 *         if isinstance(value, tuple):
 *             if len(value) == 1:             # <<<<<<<<<<<<<<
 *                 x_embolden = y_embolden = value[0]
 *             elif len(value) == 2:
*/
    __pyx_t_2 = PyObject_Length(__pyx_v_value); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(3, 512, __pyx_L1_error)
    __pyx_t_1 = (__pyx_t_2 == 1);
    if (__pyx_t_1) {

      /* "src/uharfbuzz/_font.pxi":513
 *         if isinstance(value, tuple):
 *             if len(value) == 1:
 *                 x_embolden = y_embolden = value[0]             # <<<<<<<<<<<<<<
 *             elif len(value) == 2:
 *                 x_embolden, y_embolden = value
*/
      __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_value, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 513, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = __Pyx_PyFloat_AsFloat(__pyx_t_3); if (unlikely((__pyx_t_4 == (float)-1) && PyErr_Occurred())) __PYX_ERR(3, 513, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_v_x_embolden = __pyx_t_4;
      __pyx_v_y_embolden = __pyx_t_4;

      /* "src/uharfbuzz/_font.pxi":512
 *         cdef hb_bool_t in_place = False
 *         if isinstance(value, tuple):
 *             if len(value) == 1:             # <<<<<<<<<<<<<<
 *                 x_embolden = y_embolden = value[0]
 *             elif len(value) == 2:
*/
      goto __pyx_L4;
    }

    /* "src/uharfbuzz/_font.pxi":514
 *             if len(value) == 1:
 *                 x_embolden = y_embolden = value[0]
 *             elif len(value) == 2:             # <<<<<<<<<<<<<<
 *                 x_embolden, y_embolden = value
 *             else:
*/
    __pyx_t_2 = PyObject_Length(__pyx_v_value); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(3, 514, __pyx_L1_error)
    __pyx_t_1 = (__pyx_t_2 == 2);
    if (__pyx_t_1) {

      /* "src/uharfbuzz/_font.pxi":515
 *                 x_embolden = y_embolden = value[0]
 *             elif len(value) == 2:
 *                 x_embolden, y_embolden = value             # <<<<<<<<<<<<<<
 *             else:
 *                 x_embolden, y_embolden, in_place = value
*/
      if ((likely(PyTuple_CheckExact(__pyx_v_value))) || (PyList_CheckExact(__pyx_v_value))) {
        PyObject* sequence = __pyx_v_value;
        Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
        if (unlikely(size != 2)) {
          if (size > 2) __Pyx_RaiseTooManyValuesError(2);
          else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
          __PYX_ERR(3, 515, __pyx_L1_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_3);
          __pyx_t_5 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_5);
        } else {
          __pyx_t_3 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 515, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_3);
          __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 515, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_5);
        }
        #else
        __pyx_t_3 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 515, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_5 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 515, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        #endif
      } else {
        Py_ssize_t index = -1;
        __pyx_t_6 = PyObject_GetIter(__pyx_v_value); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 515, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_7 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_6);
        index = 0; __pyx_t_3 = __pyx_t_7(__pyx_t_6); if (unlikely(!__pyx_t_3)) goto __pyx_L5_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_3);
        index = 1; __pyx_t_5 = __pyx_t_7(__pyx_t_6); if (unlikely(!__pyx_t_5)) goto __pyx_L5_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_5);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_7(__pyx_t_6), 2) < (0)) __PYX_ERR(3, 515, __pyx_L1_error)
        __pyx_t_7 = NULL;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L6_unpacking_done;
        __pyx_L5_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_7 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(3, 515, __pyx_L1_error)
        __pyx_L6_unpacking_done:;
      }
      __pyx_t_4 = __Pyx_PyFloat_AsFloat(__pyx_t_3); if (unlikely((__pyx_t_4 == (float)-1) && PyErr_Occurred())) __PYX_ERR(3, 515, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_8 = __Pyx_PyFloat_AsFloat(__pyx_t_5); if (unlikely((__pyx_t_8 == (float)-1) && PyErr_Occurred())) __PYX_ERR(3, 515, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_v_x_embolden = __pyx_t_4;
      __pyx_v_y_embolden = __pyx_t_8;

      /* "src/uharfbuzz/_font.pxi":514
 *             if len(value) == 1:
 *                 x_embolden = y_embolden = value[0]
 *             elif len(value) == 2:             # <<<<<<<<<<<<<<
 *                 x_embolden, y_embolden = value
 *             else:
*/
      goto __pyx_L4;
    }

    /* "src/uharfbuzz/_font.pxi":517
 *                 x_embolden, y_embolden = value
 *             else:
 *                 x_embolden, y_embolden, in_place = value             # <<<<<<<<<<<<<<
 *         else:
 *             x_embolden = y_embolden = value
*/
    /*else*/ {
      if ((likely(PyTuple_CheckExact(__pyx_v_value))) || (PyList_CheckExact(__pyx_v_value))) {
        PyObject* sequence = __pyx_v_value;
        Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
        if (unlikely(size != 3)) {
          if (size > 3) __Pyx_RaiseTooManyValuesError(3);
          else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
          __PYX_ERR(3, 517, __pyx_L1_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_5 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_5);
          __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_3);
          __pyx_t_6 = PyTuple_GET_ITEM(sequence, 2);
          __Pyx_INCREF(__pyx_t_6);
        } else {
          __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 517, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_5);
          __pyx_t_3 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 517, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_3);
          __pyx_t_6 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 517, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_6);
        }
        #else
        __pyx_t_5 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 517, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_3 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 517, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_6 = __Pyx_PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 517, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        #endif
      } else {
        Py_ssize_t index = -1;
        __pyx_t_9 = PyObject_GetIter(__pyx_v_value); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 517, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        __pyx_t_7 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_9);
        index = 0; __pyx_t_5 = __pyx_t_7(__pyx_t_9); if (unlikely(!__pyx_t_5)) goto __pyx_L7_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_5);
        index = 1; __pyx_t_3 = __pyx_t_7(__pyx_t_9); if (unlikely(!__pyx_t_3)) goto __pyx_L7_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_3);
        index = 2; __pyx_t_6 = __pyx_t_7(__pyx_t_9); if (unlikely(!__pyx_t_6)) goto __pyx_L7_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_6);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_7(__pyx_t_9), 3) < (0)) __PYX_ERR(3, 517, __pyx_L1_error)
        __pyx_t_7 = NULL;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        goto __pyx_L8_unpacking_done;
        __pyx_L7_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __pyx_t_7 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(3, 517, __pyx_L1_error)
        __pyx_L8_unpacking_done:;
      }
      __pyx_t_8 = __Pyx_PyFloat_AsFloat(__pyx_t_5); if (unlikely((__pyx_t_8 == (float)-1) && PyErr_Occurred())) __PYX_ERR(3, 517, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_4 = __Pyx_PyFloat_AsFloat(__pyx_t_3); if (unlikely((__pyx_t_4 == (float)-1) && PyErr_Occurred())) __PYX_ERR(3, 517, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_10 = __Pyx_PyLong_As_hb_bool_t(__pyx_t_6); if (unlikely((__pyx_t_10 == ((hb_bool_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 517, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_v_x_embolden = __pyx_t_8;
      __pyx_v_y_embolden = __pyx_t_4;
      __pyx_v_in_place = __pyx_t_10;
    }
    __pyx_L4:;

    /* "src/uharfbuzz/_font.pxi":511
 *         cdef float y_embolden
 *         cdef hb_bool_t in_place = False
 *         if isinstance(value, tuple):             # <<<<<<<<<<<<<<
 *             if len(value) == 1:
 *                 x_embolden = y_embolden = value[0]
*/
    goto __pyx_L3;
  }

  /* "src/uharfbuzz/_font.pxi":519
 *                 x_embolden, y_embolden, in_place = value
 *         else:
 *             x_embolden = y_embolden = value             # <<<<<<<<<<<<<<
 *         hb_font_set_synthetic_bold(self._hb_font, x_embolden, y_embolden, in_place)
 * 
*/
  /*else*/ {
    __pyx_t_4 = __Pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_4 == (float)-1) && PyErr_Occurred())) __PYX_ERR(3, 519, __pyx_L1_error)
    __pyx_v_x_embolden = __pyx_t_4;
    __pyx_v_y_embolden = __pyx_t_4;
  }
  __pyx_L3:;

  /* "src/uharfbuzz/_font.pxi":520
 *         else:
 *             x_embolden = y_embolden = value
 *         hb_font_set_synthetic_bold(self._hb_font, x_embolden, y_embolden, in_place)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  hb_font_set_synthetic_bold(__pyx_v_self->_hb_font, __pyx_v_x_embolden, __pyx_v_y_embolden, __pyx_v_in_place);

  /* "src/uharfbuzz/_font.pxi":506
 *         return (x_embolden, y_embolden, bool(in_place))
 * 
 *     @synthetic_bold.setter             # <<<<<<<<<<<<<<
 *     def synthetic_bold(self, value: float|tuple[float]|tuple[float,float]|tuple[float,float,bool]):
 *         cdef float x_embolden
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.synthetic_bold.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":522
 *         hb_font_set_synthetic_bold(self._hb_font, x_embolden, y_embolden, in_place)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def var_named_instance(self) -> int:
 *         """The currently-set named-instance index of the font.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_18var_named_instance_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_18var_named_instance_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_18var_named_instance___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_18var_named_instance___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_font.pxi":531
 *         <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-set-var-named-instance>`_.
 *         """
 *         return hb_font_get_var_named_instance(self._hb_font)             # <<<<<<<<<<<<<<
 * 
 *     @var_named_instance.setter
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int(hb_font_get_var_named_instance(__pyx_v_self->_hb_font)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 531, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":522
 *         hb_font_set_synthetic_bold(self._hb_font, x_embolden, y_embolden, in_place)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def var_named_instance(self) -> int:
 *         """The currently-set named-instance index of the font.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.var_named_instance.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":533
 *         return hb_font_get_var_named_instance(self._hb_font)
 * 
 *     @var_named_instance.setter             # <<<<<<<<<<<<<<
 *     def var_named_instance(self, value: int):
 *         hb_font_set_var_named_instance(self._hb_font, value)
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_18var_named_instance_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_18var_named_instance_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), (&PyLong_Type), 0, "value", 2))) __PYX_ERR(3, 534, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_18var_named_instance_2__set__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), ((PyObject*)__pyx_v_value));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_18var_named_instance_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  unsigned int __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "src/uharfbuzz/_font.pxi":535
 *     @var_named_instance.setter
 *     def var_named_instance(self, value: int):
 *         hb_font_set_var_named_instance(self._hb_font, value)             # <<<<<<<<<<<<<<
 * 
 *     def set_variations(self, variations: Dict[str, float]):
*/
  __pyx_t_1 = __Pyx_PyLong_As_unsigned_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 535, __pyx_L1_error)
  hb_font_set_var_named_instance(__pyx_v_self->_hb_font, __pyx_t_1);

  /* "src/uharfbuzz/_font.pxi":533
 *         return hb_font_get_var_named_instance(self._hb_font)
 * 
 *     @var_named_instance.setter             # <<<<<<<<<<<<<<
 *     def var_named_instance(self, value: int):
 *         hb_font_set_var_named_instance(self._hb_font, value)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.var_named_instance.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":537
 *         hb_font_set_var_named_instance(self._hb_font, value)
 * 
 *     def set_variations(self, variations: Dict[str, float]):             # <<<<<<<<<<<<<<
 *         """Applies a list of font-variation settings to the font.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_7set_variations(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_6set_variations, "Applies a list of font-variation settings to the font.\n\n        Note that this overrides all existing variations set on the font.\n        Axes not included in ``variations`` will be effectively set to\n        their default values.\n\n        :param variations: A mapping of axis-tag string to value.\n\n        Wraps `hb_font_set_variations()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-set-variations>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_7set_variations = {"set_variations", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_7set_variations, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_6set_variations};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_7set_variations(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_variations = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_variations (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_variations,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 537, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 537, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_variations", 0) < (0)) __PYX_ERR(3, 537, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_variations", 1, 1, 1, i); __PYX_ERR(3, 537, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 537, __pyx_L3_error)
    }
    __pyx_v_variations = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_variations", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 537, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.set_variations", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_variations), (&PyDict_Type), 0, "variations", 2))) __PYX_ERR(3, 537, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_6set_variations(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_variations);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_6set_variations(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_variations) {
  unsigned int __pyx_v_size;
  hb_variation_t *__pyx_v_hb_variations;
  PyObject *__pyx_v_packed = 0;
  hb_variation_t __pyx_v_variation;
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_name = NULL;
  PyObject *__pyx_v_value = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  size_t __pyx_t_10;
  char const *__pyx_t_11;
  float __pyx_t_12;
  Py_ssize_t __pyx_t_13;
  char const *__pyx_t_14;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  PyObject *__pyx_t_18 = NULL;
  PyObject *__pyx_t_19 = NULL;
  PyObject *__pyx_t_20 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("set_variations", 0);

  /* "src/uharfbuzz/_font.pxi":553
 *         cdef bytes packed
 *         cdef hb_variation_t variation
 *         size = len(variations)             # <<<<<<<<<<<<<<
 *         hb_variations = <hb_variation_t*>malloc(size * sizeof(hb_variation_t))
 *         if not hb_variations:
*/
  __pyx_t_1 = PyDict_Size(__pyx_v_variations); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 553, __pyx_L1_error)
  __pyx_v_size = __pyx_t_1;

  /* "src/uharfbuzz/_font.pxi":554
 *         cdef hb_variation_t variation
 *         size = len(variations)
 *         hb_variations = <hb_variation_t*>malloc(size * sizeof(hb_variation_t))             # <<<<<<<<<<<<<<
 *         if not hb_variations:
 *             raise MemoryError()
*/
  __pyx_v_hb_variations = ((hb_variation_t *)malloc((__pyx_v_size * (sizeof(hb_variation_t)))));

  /* "src/uharfbuzz/_font.pxi":555
 *         size = len(variations)
 *         hb_variations = <hb_variation_t*>malloc(size * sizeof(hb_variation_t))
 *         if not hb_variations:             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  __pyx_t_2 = (!(__pyx_v_hb_variations != 0));
  if (unlikely(__pyx_t_2)) {

    /* "src/uharfbuzz/_font.pxi":556
 *         hb_variations = <hb_variation_t*>malloc(size * sizeof(hb_variation_t))
 *         if not hb_variations:
 *             raise MemoryError()             # <<<<<<<<<<<<<<
 * 
 *         try:
*/
    PyErr_NoMemory(); __PYX_ERR(3, 556, __pyx_L1_error)

    /* "src/uharfbuzz/_font.pxi":555
 *         size = len(variations)
 *         hb_variations = <hb_variation_t*>malloc(size * sizeof(hb_variation_t))
 *         if not hb_variations:             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  }

  /* "src/uharfbuzz/_font.pxi":558
 *             raise MemoryError()
 * 
 *         try:             # <<<<<<<<<<<<<<
 *             for i, (name, value) in enumerate(variations.items()):
 *                 packed = name.encode()
*/
  /*try:*/ {

    /* "src/uharfbuzz/_font.pxi":559
 * 
 *         try:
 *             for i, (name, value) in enumerate(variations.items()):             # <<<<<<<<<<<<<<
 *                 packed = name.encode()
 *                 variation.tag = hb_tag_from_string(packed, -1)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_t_3 = __pyx_mstate_global->__pyx_int_0;
    __pyx_t_1 = 0;
    __pyx_t_7 = __Pyx_dict_iterator(__pyx_v_variations, 1, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_5), (&__pyx_t_6)); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 559, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_XDECREF(__pyx_t_4);
    __pyx_t_4 = __pyx_t_7;
    __pyx_t_7 = 0;
    while (1) {
      __pyx_t_9 = __Pyx_dict_iter_next(__pyx_t_4, __pyx_t_5, &__pyx_t_1, &__pyx_t_7, &__pyx_t_8, NULL, __pyx_t_6);
      if (unlikely(__pyx_t_9 == 0)) break;
      if (unlikely(__pyx_t_9 == -1)) __PYX_ERR(3, 559, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_7);
      __pyx_t_7 = 0;
      __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_8);
      __pyx_t_8 = 0;
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3);
      __pyx_t_8 = __Pyx_PyLong_AddObjC(__pyx_t_3, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 559, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_3);
      __pyx_t_3 = __pyx_t_8;
      __pyx_t_8 = 0;

      /* "src/uharfbuzz/_font.pxi":560
 *         try:
 *             for i, (name, value) in enumerate(variations.items()):
 *                 packed = name.encode()             # <<<<<<<<<<<<<<
 *                 variation.tag = hb_tag_from_string(packed, -1)
 *                 variation.value = value
*/
      __pyx_t_7 = __pyx_v_name;
      __Pyx_INCREF(__pyx_t_7);
      __pyx_t_10 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_7, NULL};
        __pyx_t_8 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_encode, __pyx_callargs+__pyx_t_10, (1-__pyx_t_10) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 560, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_8);
      }
      if (!(likely(PyBytes_CheckExact(__pyx_t_8))||((__pyx_t_8) == Py_None) || __Pyx_RaiseUnexpectedTypeError("bytes", __pyx_t_8))) __PYX_ERR(3, 560, __pyx_L5_error)
      __Pyx_XDECREF_SET(__pyx_v_packed, ((PyObject*)__pyx_t_8));
      __pyx_t_8 = 0;

      /* "src/uharfbuzz/_font.pxi":561
 *             for i, (name, value) in enumerate(variations.items()):
 *                 packed = name.encode()
 *                 variation.tag = hb_tag_from_string(packed, -1)             # <<<<<<<<<<<<<<
 *                 variation.value = value
 *                 hb_variations[i] = variation
*/
      if (unlikely(__pyx_v_packed == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
        __PYX_ERR(3, 561, __pyx_L5_error)
      }
      __pyx_t_11 = __Pyx_PyBytes_AsString(__pyx_v_packed); if (unlikely((!__pyx_t_11) && PyErr_Occurred())) __PYX_ERR(3, 561, __pyx_L5_error)
      __pyx_v_variation.tag = hb_tag_from_string(__pyx_t_11, -1);

      /* "src/uharfbuzz/_font.pxi":562
 *                 packed = name.encode()
 *                 variation.tag = hb_tag_from_string(packed, -1)
 *                 variation.value = value             # <<<<<<<<<<<<<<
 *                 hb_variations[i] = variation
 *             hb_font_set_variations(self._hb_font, hb_variations, size)
*/
      __pyx_t_12 = __Pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_12 == (float)-1) && PyErr_Occurred())) __PYX_ERR(3, 562, __pyx_L5_error)
      __pyx_v_variation.value = __pyx_t_12;

      /* "src/uharfbuzz/_font.pxi":563
 *                 variation.tag = hb_tag_from_string(packed, -1)
 *                 variation.value = value
 *                 hb_variations[i] = variation             # <<<<<<<<<<<<<<
 *             hb_font_set_variations(self._hb_font, hb_variations, size)
 *         finally:
*/
      __pyx_t_13 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_13 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 563, __pyx_L5_error)
      (__pyx_v_hb_variations[__pyx_t_13]) = __pyx_v_variation;
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "src/uharfbuzz/_font.pxi":564
 *                 variation.value = value
 *                 hb_variations[i] = variation
 *             hb_font_set_variations(self._hb_font, hb_variations, size)             # <<<<<<<<<<<<<<
 *         finally:
 *             free(hb_variations)
*/
    hb_font_set_variations(__pyx_v_self->_hb_font, __pyx_v_hb_variations, __pyx_v_size);
  }

  /* "src/uharfbuzz/_font.pxi":566
 *             hb_font_set_variations(self._hb_font, hb_variations, size)
 *         finally:
 *             free(hb_variations)             # <<<<<<<<<<<<<<
 * 
 *     def set_variation(self, name: str, value: float):
*/
  /*finally:*/ {
    /*normal exit:*/{
      free(__pyx_v_hb_variations);
      goto __pyx_L6;
    }
    __pyx_L5_error:;
    /*exception exit:*/{
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
       __Pyx_ExceptionSwap(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20);
      if ( unlikely(__Pyx_GetException(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17) < 0)) __Pyx_ErrFetch(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
      __Pyx_XGOTREF(__pyx_t_15);
      __Pyx_XGOTREF(__pyx_t_16);
      __Pyx_XGOTREF(__pyx_t_17);
      __Pyx_XGOTREF(__pyx_t_18);
      __Pyx_XGOTREF(__pyx_t_19);
      __Pyx_XGOTREF(__pyx_t_20);
      __pyx_t_6 = __pyx_lineno; __pyx_t_9 = __pyx_clineno; __pyx_t_14 = __pyx_filename;
      {
        free(__pyx_v_hb_variations);
      }
      __Pyx_XGIVEREF(__pyx_t_18);
      __Pyx_XGIVEREF(__pyx_t_19);
      __Pyx_XGIVEREF(__pyx_t_20);
      __Pyx_ExceptionReset(__pyx_t_18, __pyx_t_19, __pyx_t_20);
      __Pyx_XGIVEREF(__pyx_t_15);
      __Pyx_XGIVEREF(__pyx_t_16);
      __Pyx_XGIVEREF(__pyx_t_17);
      __Pyx_ErrRestore(__pyx_t_15, __pyx_t_16, __pyx_t_17);
      __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0;
      __pyx_lineno = __pyx_t_6; __pyx_clineno = __pyx_t_9; __pyx_filename = __pyx_t_14;
      goto __pyx_L1_error;
    }
    __pyx_L6:;
  }

  /* "src/uharfbuzz/_font.pxi":537
 *         hb_font_set_var_named_instance(self._hb_font, value)
 * 
 *     def set_variations(self, variations: Dict[str, float]):             # <<<<<<<<<<<<<<
 *         """Applies a list of font-variation settings to the font.
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.set_variations", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":568
 *             free(hb_variations)
 * 
 *     def set_variation(self, name: str, value: float):             # <<<<<<<<<<<<<<
 *         """Change the value of one variation axis on the font.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_9set_variation(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_8set_variation, "Change the value of one variation axis on the font.\n\n        Note: this method is expensive to be called repeatedly. If you want\n        to set multiple variation axes at the same time, use\n        :meth:`set_variations` instead.\n\n        :param name: The axis tag.\n        :param value: The value of the variation axis.\n\n        Wraps `hb_font_set_variation()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-set-variation>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_9set_variation = {"set_variation", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_9set_variation, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_8set_variation};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_9set_variation(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_name = 0;
  double __pyx_v_value;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_variation (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_name_2,&__pyx_mstate_global->__pyx_n_u_value,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 568, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 568, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 568, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_variation", 0) < (0)) __PYX_ERR(3, 568, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_variation", 1, 2, 2, i); __PYX_ERR(3, 568, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 568, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 568, __pyx_L3_error)
    }
    __pyx_v_name = ((PyObject*)values[0]);
    __pyx_v_value = __Pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_value == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 568, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_variation", 1, 2, 2, __pyx_nargs); __PYX_ERR(3, 568, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.set_variation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_name), (&PyUnicode_Type), 0, "name", 2))) __PYX_ERR(3, 568, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_8set_variation(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_name, __pyx_v_value);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_8set_variation(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_name, double __pyx_v_value) {
  PyObject *__pyx_v_packed = NULL;
  hb_tag_t __pyx_v_tag;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  char const *__pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("set_variation", 0);

  /* "src/uharfbuzz/_font.pxi":581
 *         <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-set-variation>`_.
 *         """
 *         packed = name.encode()             # <<<<<<<<<<<<<<
 *         cdef hb_tag_t tag = hb_tag_from_string(packed, -1)
 *         hb_font_set_variation(self._hb_font, tag, value)
*/
  __pyx_t_1 = PyUnicode_AsEncodedString(__pyx_v_name, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 581, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_packed = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_font.pxi":582
 *         """
 *         packed = name.encode()
 *         cdef hb_tag_t tag = hb_tag_from_string(packed, -1)             # <<<<<<<<<<<<<<
 *         hb_font_set_variation(self._hb_font, tag, value)
 * 
*/
  __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_v_packed); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(3, 582, __pyx_L1_error)
  __pyx_v_tag = hb_tag_from_string(__pyx_t_2, -1);

  /* "src/uharfbuzz/_font.pxi":583
 *         packed = name.encode()
 *         cdef hb_tag_t tag = hb_tag_from_string(packed, -1)
 *         hb_font_set_variation(self._hb_font, tag, value)             # <<<<<<<<<<<<<<
 * 
 *     def get_glyph_name(self, gid: int) -> str | None:
*/
  hb_font_set_variation(__pyx_v_self->_hb_font, __pyx_v_tag, __pyx_v_value);

  /* "src/uharfbuzz/_font.pxi":568
 *             free(hb_variations)
 * 
 *     def set_variation(self, name: str, value: float):             # <<<<<<<<<<<<<<
 *         """Change the value of one variation axis on the font.
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.set_variation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":585
 *         hb_font_set_variation(self._hb_font, tag, value)
 * 
 *     def get_glyph_name(self, gid: int) -> str | None:             # <<<<<<<<<<<<<<
 *         """Fetches the glyph-name string for a glyph ID in the font.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_11get_glyph_name(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_10get_glyph_name, "Fetches the glyph-name string for a glyph ID in the font.\n\n        According to the OpenType specification, glyph names are limited to\n        63 characters and can only contain (a subset of) ASCII.\n\n        :param gid: The glyph ID to query.\n\n        :returns: Name string retrieved for the glyph ID, or ``None`` if not\n            found.\n\n        Wraps `hb_font_get_glyph_name()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-get-glyph-name>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_11get_glyph_name = {"get_glyph_name", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_11get_glyph_name, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_10get_glyph_name};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_11get_glyph_name(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_gid = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_glyph_name (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_gid,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 585, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 585, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_glyph_name", 0) < (0)) __PYX_ERR(3, 585, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_glyph_name", 1, 1, 1, i); __PYX_ERR(3, 585, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 585, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "gid", 0) < (0)) __PYX_ERR(3, 585, __pyx_L3_error)
    __pyx_v_gid = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_glyph_name", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 585, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_glyph_name", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gid), (&PyLong_Type), 0, "gid", 2))) __PYX_ERR(3, 585, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_10get_glyph_name(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_gid);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_10get_glyph_name(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_gid) {
  char __pyx_v_name[64];
  PyObject *__pyx_v_packed = 0;
  hb_bool_t __pyx_v_success;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  hb_codepoint_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_glyph_name", 0);

  /* "src/uharfbuzz/_font.pxi":601
 *         cdef char name[64]
 *         cdef bytes packed
 *         success = hb_font_get_glyph_name(self._hb_font, gid, name, 64)             # <<<<<<<<<<<<<<
 *         if success:
 *             packed = name
*/
  __pyx_t_1 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_gid); if (unlikely((__pyx_t_1 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 601, __pyx_L1_error)
  __pyx_v_success = hb_font_get_glyph_name(__pyx_v_self->_hb_font, __pyx_t_1, __pyx_v_name, 64);

  /* "src/uharfbuzz/_font.pxi":602
 *         cdef bytes packed
 *         success = hb_font_get_glyph_name(self._hb_font, gid, name, 64)
 *         if success:             # <<<<<<<<<<<<<<
 *             packed = name
 *             return packed.decode()
*/
  __pyx_t_2 = (__pyx_v_success != 0);
  if (__pyx_t_2) {

    /* "src/uharfbuzz/_font.pxi":603
 *         success = hb_font_get_glyph_name(self._hb_font, gid, name, 64)
 *         if success:
 *             packed = name             # <<<<<<<<<<<<<<
 *             return packed.decode()
 *         else:
*/
    __pyx_t_3 = __Pyx_PyBytes_FromString(__pyx_v_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 603, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_packed = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "src/uharfbuzz/_font.pxi":604
 *         if success:
 *             packed = name
 *             return packed.decode()             # <<<<<<<<<<<<<<
 *         else:
 *             return None
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_packed, 0, PY_SSIZE_T_MAX, NULL, NULL, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 604, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "src/uharfbuzz/_font.pxi":602
 *         cdef bytes packed
 *         success = hb_font_get_glyph_name(self._hb_font, gid, name, 64)
 *         if success:             # <<<<<<<<<<<<<<
 *             packed = name
 *             return packed.decode()
*/
  }

  /* "src/uharfbuzz/_font.pxi":606
 *             return packed.decode()
 *         else:
 *             return None             # <<<<<<<<<<<<<<
 * 
 *     def get_glyph_from_name(self, name: str) -> int | None:
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = ((PyObject*)Py_None); __Pyx_INCREF(Py_None);
    goto __pyx_L0;
  }

  /* "src/uharfbuzz/_font.pxi":585
 *         hb_font_set_variation(self._hb_font, tag, value)
 * 
 *     def get_glyph_name(self, gid: int) -> str | None:             # <<<<<<<<<<<<<<
 *         """Fetches the glyph-name string for a glyph ID in the font.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_glyph_name", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":608
 *             return None
 * 
 *     def get_glyph_from_name(self, name: str) -> int | None:             # <<<<<<<<<<<<<<
 *         """Fetches the glyph ID that corresponds to a name string in the
 *         font.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_13get_glyph_from_name(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_12get_glyph_from_name, "Fetches the glyph ID that corresponds to a name string in the\n        font.\n\n        :param name: The name to query.\n\n        :returns: The glyph ID retrieved, or ``None`` if not found.\n\n        Wraps `hb_font_get_glyph_from_name()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-get-glyph-from-name>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_13get_glyph_from_name = {"get_glyph_from_name", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_13get_glyph_from_name, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_12get_glyph_from_name};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_13get_glyph_from_name(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_name = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_glyph_from_name (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_name_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 608, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 608, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_glyph_from_name", 0) < (0)) __PYX_ERR(3, 608, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_glyph_from_name", 1, 1, 1, i); __PYX_ERR(3, 608, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 608, __pyx_L3_error)
    }
    __pyx_v_name = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_glyph_from_name", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 608, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_glyph_from_name", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_name), (&PyUnicode_Type), 0, "name", 2))) __PYX_ERR(3, 608, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_12get_glyph_from_name(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_name);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_12get_glyph_from_name(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_name) {
  hb_codepoint_t __pyx_v_gid;
  PyObject *__pyx_v_packed = 0;
  hb_bool_t __pyx_v_success;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  char *__pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_glyph_from_name", 0);

  /* "src/uharfbuzz/_font.pxi":621
 *         cdef hb_codepoint_t gid
 *         cdef bytes packed
 *         packed = name.encode()             # <<<<<<<<<<<<<<
 *         success = hb_font_get_glyph_from_name(self._hb_font, <char*>packed, len(packed), &gid)
 *         return gid if success else None
*/
  __pyx_t_1 = PyUnicode_AsEncodedString(__pyx_v_name, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 621, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_packed = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_font.pxi":622
 *         cdef bytes packed
 *         packed = name.encode()
 *         success = hb_font_get_glyph_from_name(self._hb_font, <char*>packed, len(packed), &gid)             # <<<<<<<<<<<<<<
 *         return gid if success else None
 * 
*/
  __pyx_t_2 = __Pyx_PyBytes_AsWritableString(__pyx_v_packed); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(3, 622, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyBytes_GET_SIZE(__pyx_v_packed); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(3, 622, __pyx_L1_error)
  __pyx_v_success = hb_font_get_glyph_from_name(__pyx_v_self->_hb_font, ((char *)__pyx_t_2), __pyx_t_3, (&__pyx_v_gid));

  /* "src/uharfbuzz/_font.pxi":623
 *         packed = name.encode()
 *         success = hb_font_get_glyph_from_name(self._hb_font, <char*>packed, len(packed), &gid)
 *         return gid if success else None             # <<<<<<<<<<<<<<
 * 
 *     def get_glyph_extents(self, gid: int) -> GlyphExtents:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = (__pyx_v_success != 0);
  if (__pyx_t_4) {
    __pyx_t_5 = __Pyx_PyLong_From_hb_codepoint_t(__pyx_v_gid); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 623, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_PyInt_FromNumber(&__pyx_t_5, NULL, 0) < (0)) __PYX_ERR(3, 623, __pyx_L1_error)
    __pyx_t_1 = __pyx_t_5;
    __pyx_t_5 = 0;
  } else {
    __Pyx_INCREF(Py_None);
    __pyx_t_1 = Py_None;
  }
  if (__Pyx_PyInt_FromNumber(&__pyx_t_1, NULL, 1) < (0)) __PYX_ERR(3, 623, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":608
 *             return None
 * 
 *     def get_glyph_from_name(self, name: str) -> int | None:             # <<<<<<<<<<<<<<
 *         """Fetches the glyph ID that corresponds to a name string in the
 *         font.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_glyph_from_name", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":625
 *         return gid if success else None
 * 
 *     def get_glyph_extents(self, gid: int) -> GlyphExtents:             # <<<<<<<<<<<<<<
 *         """Fetches the :class:`GlyphExtents` data for a glyph ID.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_15get_glyph_extents(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_14get_glyph_extents, "Fetches the :class:`GlyphExtents` data for a glyph ID.\n\n        :param gid: The glyph ID to query.\n\n        :returns: The :class:`GlyphExtents` retrieved, or ``None`` if not\n            found.\n\n        Wraps `hb_font_get_glyph_extents()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-get-glyph-extents>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_15get_glyph_extents = {"get_glyph_extents", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_15get_glyph_extents, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_14get_glyph_extents};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_15get_glyph_extents(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_gid = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_glyph_extents (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_gid,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 625, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 625, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_glyph_extents", 0) < (0)) __PYX_ERR(3, 625, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_glyph_extents", 1, 1, 1, i); __PYX_ERR(3, 625, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 625, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "gid", 0) < (0)) __PYX_ERR(3, 625, __pyx_L3_error)
    __pyx_v_gid = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_glyph_extents", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 625, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_glyph_extents", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gid), (&PyLong_Type), 0, "gid", 2))) __PYX_ERR(3, 625, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_14get_glyph_extents(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_gid);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_14get_glyph_extents(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_gid) {
  hb_glyph_extents_t __pyx_v_extents;
  hb_bool_t __pyx_v_success;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  hb_codepoint_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  size_t __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_glyph_extents", 0);

  /* "src/uharfbuzz/_font.pxi":637
 *         """
 *         cdef hb_glyph_extents_t extents
 *         success = hb_font_get_glyph_extents(self._hb_font, gid, &extents)             # <<<<<<<<<<<<<<
 *         if success:
 *             return GlyphExtents(
*/
  __pyx_t_1 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_gid); if (unlikely((__pyx_t_1 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 637, __pyx_L1_error)
  __pyx_v_success = hb_font_get_glyph_extents(__pyx_v_self->_hb_font, __pyx_t_1, (&__pyx_v_extents));

  /* "src/uharfbuzz/_font.pxi":638
 *         cdef hb_glyph_extents_t extents
 *         success = hb_font_get_glyph_extents(self._hb_font, gid, &extents)
 *         if success:             # <<<<<<<<<<<<<<
 *             return GlyphExtents(
 *                 extents.x_bearing,
*/
  __pyx_t_2 = (__pyx_v_success != 0);
  if (__pyx_t_2) {

    /* "src/uharfbuzz/_font.pxi":639
 *         success = hb_font_get_glyph_extents(self._hb_font, gid, &extents)
 *         if success:
 *             return GlyphExtents(             # <<<<<<<<<<<<<<
 *                 extents.x_bearing,
 *                 extents.y_bearing,
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GlyphExtents); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 639, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);

    /* "src/uharfbuzz/_font.pxi":640
 *         if success:
 *             return GlyphExtents(
 *                 extents.x_bearing,             # <<<<<<<<<<<<<<
 *                 extents.y_bearing,
 *                 extents.width,
*/
    __pyx_t_6 = __Pyx_PyLong_From_hb_position_t(__pyx_v_extents.x_bearing); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 640, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);

    /* "src/uharfbuzz/_font.pxi":641
 *             return GlyphExtents(
 *                 extents.x_bearing,
 *                 extents.y_bearing,             # <<<<<<<<<<<<<<
 *                 extents.width,
 *                 extents.height,
*/
    __pyx_t_7 = __Pyx_PyLong_From_hb_position_t(__pyx_v_extents.y_bearing); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 641, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);

    /* "src/uharfbuzz/_font.pxi":642
 *                 extents.x_bearing,
 *                 extents.y_bearing,
 *                 extents.width,             # <<<<<<<<<<<<<<
 *                 extents.height,
 *             )
*/
    __pyx_t_8 = __Pyx_PyLong_From_hb_position_t(__pyx_v_extents.width); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 642, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);

    /* "src/uharfbuzz/_font.pxi":643
 *                 extents.y_bearing,
 *                 extents.width,
 *                 extents.height,             # <<<<<<<<<<<<<<
 *             )
 *         else:
*/
    __pyx_t_9 = __Pyx_PyLong_From_hb_position_t(__pyx_v_extents.height); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 643, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_10 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
      assert(__pyx_t_4);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
      __pyx_t_10 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[5] = {__pyx_t_4, __pyx_t_6, __pyx_t_7, __pyx_t_8, __pyx_t_9};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_10, (5-__pyx_t_10) | (__pyx_t_10*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 639, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "src/uharfbuzz/_font.pxi":638
 *         cdef hb_glyph_extents_t extents
 *         success = hb_font_get_glyph_extents(self._hb_font, gid, &extents)
 *         if success:             # <<<<<<<<<<<<<<
 *             return GlyphExtents(
 *                 extents.x_bearing,
*/
  }

  /* "src/uharfbuzz/_font.pxi":646
 *             )
 *         else:
 *             return None             # <<<<<<<<<<<<<<
 * 
 *     def get_glyph_h_advance(self, gid: int) -> int:
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;
  }

  /* "src/uharfbuzz/_font.pxi":625
 *         return gid if success else None
 * 
 *     def get_glyph_extents(self, gid: int) -> GlyphExtents:             # <<<<<<<<<<<<<<
 *         """Fetches the :class:`GlyphExtents` data for a glyph ID.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_glyph_extents", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":648
 *             return None
 * 
 *     def get_glyph_h_advance(self, gid: int) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches the advance for a glyph ID, for horizontal text segments.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_17get_glyph_h_advance(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_16get_glyph_h_advance, "Fetches the advance for a glyph ID, for horizontal text segments.\n\n        Wraps `hb_font_get_glyph_h_advance()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-get-glyph-h-advance>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_17get_glyph_h_advance = {"get_glyph_h_advance", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_17get_glyph_h_advance, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_16get_glyph_h_advance};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_17get_glyph_h_advance(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_gid = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_glyph_h_advance (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_gid,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 648, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 648, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_glyph_h_advance", 0) < (0)) __PYX_ERR(3, 648, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_glyph_h_advance", 1, 1, 1, i); __PYX_ERR(3, 648, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 648, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "gid", 0) < (0)) __PYX_ERR(3, 648, __pyx_L3_error)
    __pyx_v_gid = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_glyph_h_advance", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 648, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_glyph_h_advance", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gid), (&PyLong_Type), 0, "gid", 2))) __PYX_ERR(3, 648, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_16get_glyph_h_advance(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_gid);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_16get_glyph_h_advance(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_gid) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  hb_codepoint_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_glyph_h_advance", 0);

  /* "src/uharfbuzz/_font.pxi":654
 *         <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-get-glyph-h-advance>`_.
 *         """
 *         return hb_font_get_glyph_h_advance(self._hb_font, gid)             # <<<<<<<<<<<<<<
 * 
 *     def get_glyph_v_advance(self, gid: int) -> int:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_gid); if (unlikely((__pyx_t_1 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 654, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyLong_From_hb_position_t(hb_font_get_glyph_h_advance(__pyx_v_self->_hb_font, __pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 654, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_PyInt_FromNumber(&__pyx_t_2, NULL, 0) < (0)) __PYX_ERR(3, 654, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":648
 *             return None
 * 
 *     def get_glyph_h_advance(self, gid: int) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches the advance for a glyph ID, for horizontal text segments.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_glyph_h_advance", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":656
 *         return hb_font_get_glyph_h_advance(self._hb_font, gid)
 * 
 *     def get_glyph_v_advance(self, gid: int) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches the advance for a glyph ID, for vertical text segments.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_19get_glyph_v_advance(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_18get_glyph_v_advance, "Fetches the advance for a glyph ID, for vertical text segments.\n\n        Wraps `hb_font_get_glyph_v_advance()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-get-glyph-v-advance>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_19get_glyph_v_advance = {"get_glyph_v_advance", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_19get_glyph_v_advance, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_18get_glyph_v_advance};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_19get_glyph_v_advance(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_gid = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_glyph_v_advance (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_gid,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 656, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 656, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_glyph_v_advance", 0) < (0)) __PYX_ERR(3, 656, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_glyph_v_advance", 1, 1, 1, i); __PYX_ERR(3, 656, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 656, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "gid", 0) < (0)) __PYX_ERR(3, 656, __pyx_L3_error)
    __pyx_v_gid = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_glyph_v_advance", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 656, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_glyph_v_advance", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gid), (&PyLong_Type), 0, "gid", 2))) __PYX_ERR(3, 656, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_18get_glyph_v_advance(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_gid);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_18get_glyph_v_advance(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_gid) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  hb_codepoint_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_glyph_v_advance", 0);

  /* "src/uharfbuzz/_font.pxi":662
 *         <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-get-glyph-v-advance>`_.
 *         """
 *         return hb_font_get_glyph_v_advance(self._hb_font, gid)             # <<<<<<<<<<<<<<
 * 
 *     def get_glyph_h_origin(self, gid: int) -> Tuple[int, int] | None:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_gid); if (unlikely((__pyx_t_1 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 662, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyLong_From_hb_position_t(hb_font_get_glyph_v_advance(__pyx_v_self->_hb_font, __pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 662, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_PyInt_FromNumber(&__pyx_t_2, NULL, 0) < (0)) __PYX_ERR(3, 662, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":656
 *         return hb_font_get_glyph_h_advance(self._hb_font, gid)
 * 
 *     def get_glyph_v_advance(self, gid: int) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches the advance for a glyph ID, for vertical text segments.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_glyph_v_advance", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":664
 *         return hb_font_get_glyph_v_advance(self._hb_font, gid)
 * 
 *     def get_glyph_h_origin(self, gid: int) -> Tuple[int, int] | None:             # <<<<<<<<<<<<<<
 *         """Fetches the (X, Y) coordinates of the origin for a glyph ID, for
 *         horizontal text segments.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_21get_glyph_h_origin(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_20get_glyph_h_origin, "Fetches the (X, Y) coordinates of the origin for a glyph ID, for\n        horizontal text segments.\n\n        :returns: The (X, Y) coordinates of the origin, or ``None`` if not\n            found.\n\n        Wraps `hb_font_get_glyph_h_origin()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-get-glyph-h-origin>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_21get_glyph_h_origin = {"get_glyph_h_origin", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_21get_glyph_h_origin, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_20get_glyph_h_origin};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_21get_glyph_h_origin(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_gid = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_glyph_h_origin (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_gid,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 664, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 664, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_glyph_h_origin", 0) < (0)) __PYX_ERR(3, 664, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_glyph_h_origin", 1, 1, 1, i); __PYX_ERR(3, 664, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 664, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "gid", 0) < (0)) __PYX_ERR(3, 664, __pyx_L3_error)
    __pyx_v_gid = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_glyph_h_origin", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 664, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_glyph_h_origin", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gid), (&PyLong_Type), 0, "gid", 2))) __PYX_ERR(3, 664, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_20get_glyph_h_origin(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_gid);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_20get_glyph_h_origin(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_gid) {
  hb_position_t __pyx_v_x;
  hb_position_t __pyx_v_y;
  hb_bool_t __pyx_v_success;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  hb_codepoint_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_glyph_h_origin", 0);

  /* "src/uharfbuzz/_font.pxi":675
 *         """
 *         cdef hb_position_t x, y
 *         success = hb_font_get_glyph_h_origin(self._hb_font, gid, &x, &y)             # <<<<<<<<<<<<<<
 *         return (x, y) if success else None
 * 
*/
  __pyx_t_1 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_gid); if (unlikely((__pyx_t_1 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 675, __pyx_L1_error)
  __pyx_v_success = hb_font_get_glyph_h_origin(__pyx_v_self->_hb_font, __pyx_t_1, (&__pyx_v_x), (&__pyx_v_y));

  /* "src/uharfbuzz/_font.pxi":676
 *         cdef hb_position_t x, y
 *         success = hb_font_get_glyph_h_origin(self._hb_font, gid, &x, &y)
 *         return (x, y) if success else None             # <<<<<<<<<<<<<<
 * 
 *     def get_glyph_v_origin(self, gid: int) -> Tuple[int, int] | None:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = (__pyx_v_success != 0);
  if (__pyx_t_3) {
    __pyx_t_4 = __Pyx_PyLong_From_hb_position_t(__pyx_v_x); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 676, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyLong_From_hb_position_t(__pyx_v_y); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 676, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 676, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_4);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4) != (0)) __PYX_ERR(3, 676, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_5);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_5) != (0)) __PYX_ERR(3, 676, __pyx_L1_error);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_t_2 = __pyx_t_6;
    __pyx_t_6 = 0;
  } else {
    __Pyx_INCREF(Py_None);
    __pyx_t_2 = Py_None;
  }
  if (!(likely(PyTuple_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_2))) __PYX_ERR(3, 676, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":664
 *         return hb_font_get_glyph_v_advance(self._hb_font, gid)
 * 
 *     def get_glyph_h_origin(self, gid: int) -> Tuple[int, int] | None:             # <<<<<<<<<<<<<<
 *         """Fetches the (X, Y) coordinates of the origin for a glyph ID, for
 *         horizontal text segments.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_glyph_h_origin", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":678
 *         return (x, y) if success else None
 * 
 *     def get_glyph_v_origin(self, gid: int) -> Tuple[int, int] | None:             # <<<<<<<<<<<<<<
 *         """Fetches the (X, Y) coordinates of the origin for a glyph ID, for
 *         vertical text segments.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_23get_glyph_v_origin(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_22get_glyph_v_origin, "Fetches the (X, Y) coordinates of the origin for a glyph ID, for\n        vertical text segments.\n\n        :returns: The (X, Y) coordinates of the origin, or ``None`` if not\n            found.\n\n        Wraps `hb_font_get_glyph_v_origin()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-get-glyph-v-origin>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_23get_glyph_v_origin = {"get_glyph_v_origin", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_23get_glyph_v_origin, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_22get_glyph_v_origin};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_23get_glyph_v_origin(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_gid = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_glyph_v_origin (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_gid,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 678, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 678, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_glyph_v_origin", 0) < (0)) __PYX_ERR(3, 678, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_glyph_v_origin", 1, 1, 1, i); __PYX_ERR(3, 678, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 678, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "gid", 0) < (0)) __PYX_ERR(3, 678, __pyx_L3_error)
    __pyx_v_gid = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_glyph_v_origin", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 678, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_glyph_v_origin", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gid), (&PyLong_Type), 0, "gid", 2))) __PYX_ERR(3, 678, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_22get_glyph_v_origin(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_gid);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_22get_glyph_v_origin(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_gid) {
  hb_position_t __pyx_v_x;
  hb_position_t __pyx_v_y;
  hb_bool_t __pyx_v_success;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  hb_codepoint_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_glyph_v_origin", 0);

  /* "src/uharfbuzz/_font.pxi":689
 *         """
 *         cdef hb_position_t x, y
 *         success = hb_font_get_glyph_v_origin(self._hb_font, gid, &x, &y)             # <<<<<<<<<<<<<<
 *         return (x, y) if success else None
 * 
*/
  __pyx_t_1 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_gid); if (unlikely((__pyx_t_1 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 689, __pyx_L1_error)
  __pyx_v_success = hb_font_get_glyph_v_origin(__pyx_v_self->_hb_font, __pyx_t_1, (&__pyx_v_x), (&__pyx_v_y));

  /* "src/uharfbuzz/_font.pxi":690
 *         cdef hb_position_t x, y
 *         success = hb_font_get_glyph_v_origin(self._hb_font, gid, &x, &y)
 *         return (x, y) if success else None             # <<<<<<<<<<<<<<
 * 
 *     def get_font_extents(self, direction: str) -> FontExtents:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = (__pyx_v_success != 0);
  if (__pyx_t_3) {
    __pyx_t_4 = __Pyx_PyLong_From_hb_position_t(__pyx_v_x); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 690, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyLong_From_hb_position_t(__pyx_v_y); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 690, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 690, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_4);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4) != (0)) __PYX_ERR(3, 690, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_5);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_5) != (0)) __PYX_ERR(3, 690, __pyx_L1_error);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_t_2 = __pyx_t_6;
    __pyx_t_6 = 0;
  } else {
    __Pyx_INCREF(Py_None);
    __pyx_t_2 = Py_None;
  }
  if (!(likely(PyTuple_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_2))) __PYX_ERR(3, 690, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":678
 *         return (x, y) if success else None
 * 
 *     def get_glyph_v_origin(self, gid: int) -> Tuple[int, int] | None:             # <<<<<<<<<<<<<<
 *         """Fetches the (X, Y) coordinates of the origin for a glyph ID, for
 *         vertical text segments.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_glyph_v_origin", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":692
 *         return (x, y) if success else None
 * 
 *     def get_font_extents(self, direction: str) -> FontExtents:             # <<<<<<<<<<<<<<
 *         """Fetches the extents for a font in a text segment of the
 *         specified direction.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_25get_font_extents(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_24get_font_extents, "Fetches the extents for a font in a text segment of the\n        specified direction.\n\n        Calls the appropriate direction-specific variant (horizontal or\n        vertical) depending on the value of ``direction``.\n\n        :param direction: The direction of the text segment.\n\n        :returns: The :class:`FontExtents` retrieved.\n\n        Wraps `hb_font_get_extents_for_direction()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-get-extents-for-direction>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_25get_font_extents = {"get_font_extents", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_25get_font_extents, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_24get_font_extents};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_25get_font_extents(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_direction = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_font_extents (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_direction,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 692, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 692, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_font_extents", 0) < (0)) __PYX_ERR(3, 692, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_font_extents", 1, 1, 1, i); __PYX_ERR(3, 692, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 692, __pyx_L3_error)
    }
    __pyx_v_direction = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_font_extents", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 692, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_font_extents", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_direction), (&PyUnicode_Type), 0, "direction", 2))) __PYX_ERR(3, 692, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_24get_font_extents(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_direction);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_24get_font_extents(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_direction) {
  hb_font_extents_t __pyx_v_extents;
  hb_direction_t __pyx_v_hb_direction;
  PyObject *__pyx_v_packed = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  char *__pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_font_extents", 0);

  /* "src/uharfbuzz/_font.pxi":709
 *         cdef hb_direction_t hb_direction
 *         cdef bytes packed
 *         packed = direction.encode()             # <<<<<<<<<<<<<<
 *         hb_direction = hb_direction_from_string(<char*>packed, -1)
 *         hb_font_get_extents_for_direction(
*/
  __pyx_t_1 = PyUnicode_AsEncodedString(__pyx_v_direction, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 709, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_packed = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_font.pxi":710
 *         cdef bytes packed
 *         packed = direction.encode()
 *         hb_direction = hb_direction_from_string(<char*>packed, -1)             # <<<<<<<<<<<<<<
 *         hb_font_get_extents_for_direction(
 *             self._hb_font, hb_direction, &extents
*/
  __pyx_t_2 = __Pyx_PyBytes_AsWritableString(__pyx_v_packed); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(3, 710, __pyx_L1_error)
  __pyx_v_hb_direction = hb_direction_from_string(((char *)__pyx_t_2), -1);

  /* "src/uharfbuzz/_font.pxi":711
 *         packed = direction.encode()
 *         hb_direction = hb_direction_from_string(<char*>packed, -1)
 *         hb_font_get_extents_for_direction(             # <<<<<<<<<<<<<<
 *             self._hb_font, hb_direction, &extents
 *         )
*/
  hb_font_get_extents_for_direction(__pyx_v_self->_hb_font, __pyx_v_hb_direction, (&__pyx_v_extents));

  /* "src/uharfbuzz/_font.pxi":714
 *             self._hb_font, hb_direction, &extents
 *         )
 *         return FontExtents(             # <<<<<<<<<<<<<<
 *             extents.ascender,
 *             extents.descender,
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_FontExtents); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 714, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);

  /* "src/uharfbuzz/_font.pxi":715
 *         )
 *         return FontExtents(
 *             extents.ascender,             # <<<<<<<<<<<<<<
 *             extents.descender,
 *             extents.line_gap
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_position_t(__pyx_v_extents.ascender); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 715, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);

  /* "src/uharfbuzz/_font.pxi":716
 *         return FontExtents(
 *             extents.ascender,
 *             extents.descender,             # <<<<<<<<<<<<<<
 *             extents.line_gap
 *         )
*/
  __pyx_t_6 = __Pyx_PyLong_From_hb_position_t(__pyx_v_extents.descender); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 716, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);

  /* "src/uharfbuzz/_font.pxi":717
 *             extents.ascender,
 *             extents.descender,
 *             extents.line_gap             # <<<<<<<<<<<<<<
 *         )
 * 
*/
  __pyx_t_7 = __Pyx_PyLong_From_hb_position_t(__pyx_v_extents.line_gap); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 717, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_3, __pyx_t_5, __pyx_t_6, __pyx_t_7};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_8, (4-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 714, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":692
 *         return (x, y) if success else None
 * 
 *     def get_font_extents(self, direction: str) -> FontExtents:             # <<<<<<<<<<<<<<
 *         """Fetches the extents for a font in a text segment of the
 *         specified direction.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_font_extents", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":720
 *         )
 * 
 *     def get_variation_glyph(self, unicode: int, variation_selector: int) -> int | None:             # <<<<<<<<<<<<<<
 *         """Fetches the glyph ID for a Unicode code point when followed by
 *         the specified variation-selector code point.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_27get_variation_glyph(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_26get_variation_glyph, "Fetches the glyph ID for a Unicode code point when followed by\n        the specified variation-selector code point.\n\n        :returns: The glyph ID retrieved, or ``None`` if not found.\n\n        Wraps `hb_font_get_variation_glyph()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-get-variation-glyph>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_27get_variation_glyph = {"get_variation_glyph", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_27get_variation_glyph, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_26get_variation_glyph};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_27get_variation_glyph(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_unicode = 0;
  PyObject *__pyx_v_variation_selector = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_variation_glyph (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_unicode,&__pyx_mstate_global->__pyx_n_u_variation_selector,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 720, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 720, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 720, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_variation_glyph", 0) < (0)) __PYX_ERR(3, 720, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_variation_glyph", 1, 2, 2, i); __PYX_ERR(3, 720, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 720, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 720, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "unicode", 0) < (0)) __PYX_ERR(3, 720, __pyx_L3_error)
    __pyx_v_unicode = ((PyObject*)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "variation_selector", 0) < (0)) __PYX_ERR(3, 720, __pyx_L3_error)
    __pyx_v_variation_selector = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_variation_glyph", 1, 2, 2, __pyx_nargs); __PYX_ERR(3, 720, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_variation_glyph", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_unicode), (&PyLong_Type), 0, "unicode", 2))) __PYX_ERR(3, 720, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_variation_selector), (&PyLong_Type), 0, "variation_selector", 2))) __PYX_ERR(3, 720, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_26get_variation_glyph(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_unicode, __pyx_v_variation_selector);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_26get_variation_glyph(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_unicode, PyObject *__pyx_v_variation_selector) {
  hb_codepoint_t __pyx_v_gid;
  hb_bool_t __pyx_v_success;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  hb_codepoint_t __pyx_t_1;
  hb_codepoint_t __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_variation_glyph", 0);

  /* "src/uharfbuzz/_font.pxi":730
 *         """
 *         cdef hb_codepoint_t gid
 *         success = hb_font_get_variation_glyph(self._hb_font, unicode, variation_selector, &gid)             # <<<<<<<<<<<<<<
 *         return gid if success else None
 * 
*/
  __pyx_t_1 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_unicode); if (unlikely((__pyx_t_1 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 730, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_variation_selector); if (unlikely((__pyx_t_2 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 730, __pyx_L1_error)
  __pyx_v_success = hb_font_get_variation_glyph(__pyx_v_self->_hb_font, __pyx_t_1, __pyx_t_2, (&__pyx_v_gid));

  /* "src/uharfbuzz/_font.pxi":731
 *         cdef hb_codepoint_t gid
 *         success = hb_font_get_variation_glyph(self._hb_font, unicode, variation_selector, &gid)
 *         return gid if success else None             # <<<<<<<<<<<<<<
 * 
 *     def get_nominal_glyph(self, unicode: int) -> int | None:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = (__pyx_v_success != 0);
  if (__pyx_t_4) {
    __pyx_t_5 = __Pyx_PyLong_From_hb_codepoint_t(__pyx_v_gid); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 731, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_PyInt_FromNumber(&__pyx_t_5, NULL, 0) < (0)) __PYX_ERR(3, 731, __pyx_L1_error)
    __pyx_t_3 = __pyx_t_5;
    __pyx_t_5 = 0;
  } else {
    __Pyx_INCREF(Py_None);
    __pyx_t_3 = Py_None;
  }
  if (__Pyx_PyInt_FromNumber(&__pyx_t_3, NULL, 1) < (0)) __PYX_ERR(3, 731, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":720
 *         )
 * 
 *     def get_variation_glyph(self, unicode: int, variation_selector: int) -> int | None:             # <<<<<<<<<<<<<<
 *         """Fetches the glyph ID for a Unicode code point when followed by
 *         the specified variation-selector code point.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_variation_glyph", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":733
 *         return gid if success else None
 * 
 *     def get_nominal_glyph(self, unicode: int) -> int | None:             # <<<<<<<<<<<<<<
 *         """Fetches the nominal glyph ID for a Unicode code point.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_29get_nominal_glyph(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_28get_nominal_glyph, "Fetches the nominal glyph ID for a Unicode code point.\n\n        :returns: The glyph ID retrieved, or ``None`` if not found.\n\n        Wraps `hb_font_get_nominal_glyph()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-get-nominal-glyph>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_29get_nominal_glyph = {"get_nominal_glyph", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_29get_nominal_glyph, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_28get_nominal_glyph};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_29get_nominal_glyph(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_unicode = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_nominal_glyph (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_unicode,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 733, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 733, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_nominal_glyph", 0) < (0)) __PYX_ERR(3, 733, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_nominal_glyph", 1, 1, 1, i); __PYX_ERR(3, 733, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 733, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "unicode", 0) < (0)) __PYX_ERR(3, 733, __pyx_L3_error)
    __pyx_v_unicode = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_nominal_glyph", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 733, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_nominal_glyph", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_unicode), (&PyLong_Type), 0, "unicode", 2))) __PYX_ERR(3, 733, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_28get_nominal_glyph(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_unicode);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_28get_nominal_glyph(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_unicode) {
  hb_codepoint_t __pyx_v_gid;
  hb_bool_t __pyx_v_success;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  hb_codepoint_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_nominal_glyph", 0);

  /* "src/uharfbuzz/_font.pxi":742
 *         """
 *         cdef hb_codepoint_t gid
 *         success = hb_font_get_nominal_glyph(self._hb_font, unicode, &gid)             # <<<<<<<<<<<<<<
 *         return gid if success else None
 * 
*/
  __pyx_t_1 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_unicode); if (unlikely((__pyx_t_1 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 742, __pyx_L1_error)
  __pyx_v_success = hb_font_get_nominal_glyph(__pyx_v_self->_hb_font, __pyx_t_1, (&__pyx_v_gid));

  /* "src/uharfbuzz/_font.pxi":743
 *         cdef hb_codepoint_t gid
 *         success = hb_font_get_nominal_glyph(self._hb_font, unicode, &gid)
 *         return gid if success else None             # <<<<<<<<<<<<<<
 * 
 *     def get_var_coords_normalized(self) -> List[float]:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = (__pyx_v_success != 0);
  if (__pyx_t_3) {
    __pyx_t_4 = __Pyx_PyLong_From_hb_codepoint_t(__pyx_v_gid); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 743, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    if (__Pyx_PyInt_FromNumber(&__pyx_t_4, NULL, 0) < (0)) __PYX_ERR(3, 743, __pyx_L1_error)
    __pyx_t_2 = __pyx_t_4;
    __pyx_t_4 = 0;
  } else {
    __Pyx_INCREF(Py_None);
    __pyx_t_2 = Py_None;
  }
  if (__Pyx_PyInt_FromNumber(&__pyx_t_2, NULL, 1) < (0)) __PYX_ERR(3, 743, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":733
 *         return gid if success else None
 * 
 *     def get_nominal_glyph(self, unicode: int) -> int | None:             # <<<<<<<<<<<<<<
 *         """Fetches the nominal glyph ID for a Unicode code point.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_nominal_glyph", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":745
 *         return gid if success else None
 * 
 *     def get_var_coords_normalized(self) -> List[float]:             # <<<<<<<<<<<<<<
 *         """Fetches the list of normalized variation coordinates currently
 *         set on the font.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_31get_var_coords_normalized(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_30get_var_coords_normalized, "Fetches the list of normalized variation coordinates currently\n        set on the font.\n\n        :returns: The coordinates array.\n\n        Wraps `hb_font_get_var_coords_normalized()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-get-var-coords-normalized>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_31get_var_coords_normalized = {"get_var_coords_normalized", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_31get_var_coords_normalized, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_30get_var_coords_normalized};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_31get_var_coords_normalized(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_var_coords_normalized (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("get_var_coords_normalized", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("get_var_coords_normalized", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_30get_var_coords_normalized(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_30get_var_coords_normalized(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self) {
  unsigned int __pyx_v_length;
  int const *__pyx_v_coords;
  unsigned int __pyx_8genexpr5__pyx_v_i;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  unsigned int __pyx_t_2;
  unsigned int __pyx_t_3;
  unsigned int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_var_coords_normalized", 0);

  /* "src/uharfbuzz/_font.pxi":756
 *         cdef unsigned int length
 *         cdef const int *coords
 *         coords = hb_font_get_var_coords_normalized(self._hb_font, &length)             # <<<<<<<<<<<<<<
 *         # Convert from 2.14 fixed to float: divide by 1 << 14
 *         return [coords[i] / 0x4000 for i in range(length)]
*/
  __pyx_v_coords = hb_font_get_var_coords_normalized(__pyx_v_self->_hb_font, (&__pyx_v_length));

  /* "src/uharfbuzz/_font.pxi":758
 *         coords = hb_font_get_var_coords_normalized(self._hb_font, &length)
 *         # Convert from 2.14 fixed to float: divide by 1 << 14
 *         return [coords[i] / 0x4000 for i in range(length)]             # <<<<<<<<<<<<<<
 * 
 *     def set_var_coords_normalized(self, coords: List[float]):
*/
  __Pyx_XDECREF(__pyx_r);
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 758, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __pyx_v_length;
    __pyx_t_3 = __pyx_t_2;
    for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
      __pyx_8genexpr5__pyx_v_i = __pyx_t_4;
      __pyx_t_5 = PyFloat_FromDouble((((double)(__pyx_v_coords[__pyx_8genexpr5__pyx_v_i])) / 16384.0)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 758, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(3, 758, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  } /* exit inner scope */
  __pyx_r = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":745
 *         return gid if success else None
 * 
 *     def get_var_coords_normalized(self) -> List[float]:             # <<<<<<<<<<<<<<
 *         """Fetches the list of normalized variation coordinates currently
 *         set on the font.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_var_coords_normalized", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":760
 *         return [coords[i] / 0x4000 for i in range(length)]
 * 
 *     def set_var_coords_normalized(self, coords: List[float]):             # <<<<<<<<<<<<<<
 *         """Applies a list of variation coordinates (in normalized units) to
 *         the font.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_33set_var_coords_normalized(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_32set_var_coords_normalized, "Applies a list of variation coordinates (in normalized units) to\n        the font.\n\n        Note that this overrides all existing variations set on the font.\n        Axes not included in ``coords`` will be effectively set to their\n        default values.\n\n        Wraps `hb_font_set_var_coords_normalized()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-set-var-coords-normalized>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_33set_var_coords_normalized = {"set_var_coords_normalized", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_33set_var_coords_normalized, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_32set_var_coords_normalized};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_33set_var_coords_normalized(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_coords = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_var_coords_normalized (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_coords,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 760, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 760, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_var_coords_normalized", 0) < (0)) __PYX_ERR(3, 760, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_var_coords_normalized", 1, 1, 1, i); __PYX_ERR(3, 760, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 760, __pyx_L3_error)
    }
    __pyx_v_coords = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_var_coords_normalized", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 760, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.set_var_coords_normalized", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_coords), (&PyList_Type), 0, "coords", 2))) __PYX_ERR(3, 760, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_32set_var_coords_normalized(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_coords);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_32set_var_coords_normalized(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_coords) {
  unsigned int __pyx_v_length;
  int *__pyx_v_coords_2dot14;
  unsigned int __pyx_v_i;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  unsigned int __pyx_t_3;
  unsigned int __pyx_t_4;
  unsigned int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  size_t __pyx_t_10;
  int __pyx_t_11;
  int __pyx_t_12;
  char const *__pyx_t_13;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  PyObject *__pyx_t_18 = NULL;
  PyObject *__pyx_t_19 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("set_var_coords_normalized", 0);

  /* "src/uharfbuzz/_font.pxi":773
 *         cdef unsigned int length
 *         cdef int *coords_2dot14
 *         length = len(coords)             # <<<<<<<<<<<<<<
 *         coords_2dot14 = <int *>malloc(length * sizeof(int))
 *         if coords_2dot14 is NULL:
*/
  __pyx_t_1 = __Pyx_PyList_GET_SIZE(__pyx_v_coords); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 773, __pyx_L1_error)
  __pyx_v_length = __pyx_t_1;

  /* "src/uharfbuzz/_font.pxi":774
 *         cdef int *coords_2dot14
 *         length = len(coords)
 *         coords_2dot14 = <int *>malloc(length * sizeof(int))             # <<<<<<<<<<<<<<
 *         if coords_2dot14 is NULL:
 *             raise MemoryError()
*/
  __pyx_v_coords_2dot14 = ((int *)malloc((__pyx_v_length * (sizeof(int)))));

  /* "src/uharfbuzz/_font.pxi":775
 *         length = len(coords)
 *         coords_2dot14 = <int *>malloc(length * sizeof(int))
 *         if coords_2dot14 is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 *         try:
*/
  __pyx_t_2 = (__pyx_v_coords_2dot14 == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "src/uharfbuzz/_font.pxi":776
 *         coords_2dot14 = <int *>malloc(length * sizeof(int))
 *         if coords_2dot14 is NULL:
 *             raise MemoryError()             # <<<<<<<<<<<<<<
 *         try:
 *             for i in range(length):
*/
    PyErr_NoMemory(); __PYX_ERR(3, 776, __pyx_L1_error)

    /* "src/uharfbuzz/_font.pxi":775
 *         length = len(coords)
 *         coords_2dot14 = <int *>malloc(length * sizeof(int))
 *         if coords_2dot14 is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 *         try:
*/
  }

  /* "src/uharfbuzz/_font.pxi":777
 *         if coords_2dot14 is NULL:
 *             raise MemoryError()
 *         try:             # <<<<<<<<<<<<<<
 *             for i in range(length):
 *                 # Convert from float to 2.14 fixed: multiply by 1 << 14
*/
  /*try:*/ {

    /* "src/uharfbuzz/_font.pxi":778
 *             raise MemoryError()
 *         try:
 *             for i in range(length):             # <<<<<<<<<<<<<<
 *                 # Convert from float to 2.14 fixed: multiply by 1 << 14
 *                 coords_2dot14[i] = round(coords[i] * 0x4000)
*/
    __pyx_t_3 = __pyx_v_length;
    __pyx_t_4 = __pyx_t_3;
    for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) {
      __pyx_v_i = __pyx_t_5;

      /* "src/uharfbuzz/_font.pxi":780
 *             for i in range(length):
 *                 # Convert from float to 2.14 fixed: multiply by 1 << 14
 *                 coords_2dot14[i] = round(coords[i] * 0x4000)             # <<<<<<<<<<<<<<
 *             hb_font_set_var_coords_normalized(self._hb_font, coords_2dot14, length)
 *         finally:
*/
      __pyx_t_7 = NULL;
      __pyx_t_8 = __Pyx_GetItemInt_List(__pyx_v_coords, __pyx_v_i, unsigned int, 0, __Pyx_PyLong_From_unsigned_int, 1, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 780, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = __Pyx_PyLong_MultiplyObjC(__pyx_t_8, __pyx_mstate_global->__pyx_int_16384, 0x4000, 0, 0); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 780, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_10 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_9};
        __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_round, __pyx_callargs+__pyx_t_10, (2-__pyx_t_10) | (__pyx_t_10*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 780, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_6);
      }
      __pyx_t_11 = __Pyx_PyLong_As_int(__pyx_t_6); if (unlikely((__pyx_t_11 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 780, __pyx_L5_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      (__pyx_v_coords_2dot14[__pyx_v_i]) = __pyx_t_11;
    }

    /* "src/uharfbuzz/_font.pxi":781
 *                 # Convert from float to 2.14 fixed: multiply by 1 << 14
 *                 coords_2dot14[i] = round(coords[i] * 0x4000)
 *             hb_font_set_var_coords_normalized(self._hb_font, coords_2dot14, length)             # <<<<<<<<<<<<<<
 *         finally:
 *             free(coords_2dot14)
*/
    hb_font_set_var_coords_normalized(__pyx_v_self->_hb_font, __pyx_v_coords_2dot14, __pyx_v_length);
  }

  /* "src/uharfbuzz/_font.pxi":783
 *             hb_font_set_var_coords_normalized(self._hb_font, coords_2dot14, length)
 *         finally:
 *             free(coords_2dot14)             # <<<<<<<<<<<<<<
 * 
 *     def get_var_coords_design(self):
*/
  /*finally:*/ {
    /*normal exit:*/{
      free(__pyx_v_coords_2dot14);
      goto __pyx_L6;
    }
    __pyx_L5_error:;
    /*exception exit:*/{
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
       __Pyx_ExceptionSwap(&__pyx_t_17, &__pyx_t_18, &__pyx_t_19);
      if ( unlikely(__Pyx_GetException(&__pyx_t_14, &__pyx_t_15, &__pyx_t_16) < 0)) __Pyx_ErrFetch(&__pyx_t_14, &__pyx_t_15, &__pyx_t_16);
      __Pyx_XGOTREF(__pyx_t_14);
      __Pyx_XGOTREF(__pyx_t_15);
      __Pyx_XGOTREF(__pyx_t_16);
      __Pyx_XGOTREF(__pyx_t_17);
      __Pyx_XGOTREF(__pyx_t_18);
      __Pyx_XGOTREF(__pyx_t_19);
      __pyx_t_11 = __pyx_lineno; __pyx_t_12 = __pyx_clineno; __pyx_t_13 = __pyx_filename;
      {
        free(__pyx_v_coords_2dot14);
      }
      __Pyx_XGIVEREF(__pyx_t_17);
      __Pyx_XGIVEREF(__pyx_t_18);
      __Pyx_XGIVEREF(__pyx_t_19);
      __Pyx_ExceptionReset(__pyx_t_17, __pyx_t_18, __pyx_t_19);
      __Pyx_XGIVEREF(__pyx_t_14);
      __Pyx_XGIVEREF(__pyx_t_15);
      __Pyx_XGIVEREF(__pyx_t_16);
      __Pyx_ErrRestore(__pyx_t_14, __pyx_t_15, __pyx_t_16);
      __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0;
      __pyx_lineno = __pyx_t_11; __pyx_clineno = __pyx_t_12; __pyx_filename = __pyx_t_13;
      goto __pyx_L1_error;
    }
    __pyx_L6:;
  }

  /* "src/uharfbuzz/_font.pxi":760
 *         return [coords[i] / 0x4000 for i in range(length)]
 * 
 *     def set_var_coords_normalized(self, coords: List[float]):             # <<<<<<<<<<<<<<
 *         """Applies a list of variation coordinates (in normalized units) to
 *         the font.
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.set_var_coords_normalized", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":785
 *             free(coords_2dot14)
 * 
 *     def get_var_coords_design(self):             # <<<<<<<<<<<<<<
 *         """Fetches the list of variation coordinates (in design-space
 *         units) currently set on the font.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_35get_var_coords_design(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_34get_var_coords_design, "Fetches the list of variation coordinates (in design-space\n        units) currently set on the font.\n\n        Wraps `hb_font_get_var_coords_design()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-get-var-coords-design>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_35get_var_coords_design = {"get_var_coords_design", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_35get_var_coords_design, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_34get_var_coords_design};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_35get_var_coords_design(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_var_coords_design (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("get_var_coords_design", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("get_var_coords_design", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_34get_var_coords_design(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_34get_var_coords_design(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self) {
  unsigned int __pyx_v_length;
  float const *__pyx_v_coords;
  unsigned int __pyx_8genexpr6__pyx_v_i;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  unsigned int __pyx_t_2;
  unsigned int __pyx_t_3;
  unsigned int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_var_coords_design", 0);

  /* "src/uharfbuzz/_font.pxi":794
 *         cdef unsigned int length
 *         cdef const float *coords
 *         coords = hb_font_get_var_coords_design(self._hb_font, &length)             # <<<<<<<<<<<<<<
 *         return [coords[i] for i in range(length)]
 * 
*/
  __pyx_v_coords = hb_font_get_var_coords_design(__pyx_v_self->_hb_font, (&__pyx_v_length));

  /* "src/uharfbuzz/_font.pxi":795
 *         cdef const float *coords
 *         coords = hb_font_get_var_coords_design(self._hb_font, &length)
 *         return [coords[i] for i in range(length)]             # <<<<<<<<<<<<<<
 * 
 *     def set_var_coords_design(self, coords: List[float]):
*/
  __Pyx_XDECREF(__pyx_r);
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 795, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __pyx_v_length;
    __pyx_t_3 = __pyx_t_2;
    for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
      __pyx_8genexpr6__pyx_v_i = __pyx_t_4;
      __pyx_t_5 = PyFloat_FromDouble((__pyx_v_coords[__pyx_8genexpr6__pyx_v_i])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 795, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(3, 795, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  } /* exit inner scope */
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":785
 *             free(coords_2dot14)
 * 
 *     def get_var_coords_design(self):             # <<<<<<<<<<<<<<
 *         """Fetches the list of variation coordinates (in design-space
 *         units) currently set on the font.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_var_coords_design", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":797
 *         return [coords[i] for i in range(length)]
 * 
 *     def set_var_coords_design(self, coords: List[float]):             # <<<<<<<<<<<<<<
 *         """Applies a list of variation coordinates (in design-space units)
 *         to the font.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_37set_var_coords_design(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_36set_var_coords_design, "Applies a list of variation coordinates (in design-space units)\n        to the font.\n\n        Note that this overrides all existing variations set on the font.\n        Axes not included in ``coords`` will be effectively set to their\n        default values.\n\n        Wraps `hb_font_set_var_coords_design()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-set-var-coords-design>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_37set_var_coords_design = {"set_var_coords_design", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_37set_var_coords_design, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_36set_var_coords_design};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_37set_var_coords_design(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_coords = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_var_coords_design (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_coords,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 797, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 797, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_var_coords_design", 0) < (0)) __PYX_ERR(3, 797, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_var_coords_design", 1, 1, 1, i); __PYX_ERR(3, 797, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 797, __pyx_L3_error)
    }
    __pyx_v_coords = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_var_coords_design", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 797, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.set_var_coords_design", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_coords), (&PyList_Type), 0, "coords", 2))) __PYX_ERR(3, 797, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_36set_var_coords_design(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_coords);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_36set_var_coords_design(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_coords) {
  unsigned int __pyx_v_length;
  float *__pyx_v_c_coords;
  unsigned int __pyx_v_i;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  unsigned int __pyx_t_3;
  unsigned int __pyx_t_4;
  unsigned int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  float __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  char const *__pyx_t_10;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("set_var_coords_design", 0);

  /* "src/uharfbuzz/_font.pxi":810
 *         cdef unsigned int length
 *         cdef cython.float *c_coords
 *         length = len(coords)             # <<<<<<<<<<<<<<
 *         c_coords = <cython.float*>malloc(length * sizeof(cython.float))
 *         if c_coords is NULL:
*/
  __pyx_t_1 = __Pyx_PyList_GET_SIZE(__pyx_v_coords); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 810, __pyx_L1_error)
  __pyx_v_length = __pyx_t_1;

  /* "src/uharfbuzz/_font.pxi":811
 *         cdef cython.float *c_coords
 *         length = len(coords)
 *         c_coords = <cython.float*>malloc(length * sizeof(cython.float))             # <<<<<<<<<<<<<<
 *         if c_coords is NULL:
 *             raise MemoryError()
*/
  __pyx_v_c_coords = ((float *)malloc((__pyx_v_length * (sizeof(float)))));

  /* "src/uharfbuzz/_font.pxi":812
 *         length = len(coords)
 *         c_coords = <cython.float*>malloc(length * sizeof(cython.float))
 *         if c_coords is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 *         try:
*/
  __pyx_t_2 = (__pyx_v_c_coords == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "src/uharfbuzz/_font.pxi":813
 *         c_coords = <cython.float*>malloc(length * sizeof(cython.float))
 *         if c_coords is NULL:
 *             raise MemoryError()             # <<<<<<<<<<<<<<
 *         try:
 *             for i in range(length):
*/
    PyErr_NoMemory(); __PYX_ERR(3, 813, __pyx_L1_error)

    /* "src/uharfbuzz/_font.pxi":812
 *         length = len(coords)
 *         c_coords = <cython.float*>malloc(length * sizeof(cython.float))
 *         if c_coords is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 *         try:
*/
  }

  /* "src/uharfbuzz/_font.pxi":814
 *         if c_coords is NULL:
 *             raise MemoryError()
 *         try:             # <<<<<<<<<<<<<<
 *             for i in range(length):
 *                 c_coords[i] = coords[i]
*/
  /*try:*/ {

    /* "src/uharfbuzz/_font.pxi":815
 *             raise MemoryError()
 *         try:
 *             for i in range(length):             # <<<<<<<<<<<<<<
 *                 c_coords[i] = coords[i]
 *             hb_font_set_var_coords_design(self._hb_font, c_coords, length)
*/
    __pyx_t_3 = __pyx_v_length;
    __pyx_t_4 = __pyx_t_3;
    for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) {
      __pyx_v_i = __pyx_t_5;

      /* "src/uharfbuzz/_font.pxi":816
 *         try:
 *             for i in range(length):
 *                 c_coords[i] = coords[i]             # <<<<<<<<<<<<<<
 *             hb_font_set_var_coords_design(self._hb_font, c_coords, length)
 *         finally:
*/
      __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_coords, __pyx_v_i, unsigned int, 0, __Pyx_PyLong_From_unsigned_int, 1, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 816, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_7 = __Pyx_PyFloat_AsFloat(__pyx_t_6); if (unlikely((__pyx_t_7 == (float)-1) && PyErr_Occurred())) __PYX_ERR(3, 816, __pyx_L5_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      (__pyx_v_c_coords[__pyx_v_i]) = __pyx_t_7;
    }

    /* "src/uharfbuzz/_font.pxi":817
 *             for i in range(length):
 *                 c_coords[i] = coords[i]
 *             hb_font_set_var_coords_design(self._hb_font, c_coords, length)             # <<<<<<<<<<<<<<
 *         finally:
 *             free(c_coords)
*/
    hb_font_set_var_coords_design(__pyx_v_self->_hb_font, __pyx_v_c_coords, __pyx_v_length);
  }

  /* "src/uharfbuzz/_font.pxi":819
 *             hb_font_set_var_coords_design(self._hb_font, c_coords, length)
 *         finally:
 *             free(c_coords)             # <<<<<<<<<<<<<<
 * 
 *     def glyph_to_string(self, gid: int) -> str:
*/
  /*finally:*/ {
    /*normal exit:*/{
      free(__pyx_v_c_coords);
      goto __pyx_L6;
    }
    __pyx_L5_error:;
    /*exception exit:*/{
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __pyx_t_11 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
       __Pyx_ExceptionSwap(&__pyx_t_14, &__pyx_t_15, &__pyx_t_16);
      if ( unlikely(__Pyx_GetException(&__pyx_t_11, &__pyx_t_12, &__pyx_t_13) < 0)) __Pyx_ErrFetch(&__pyx_t_11, &__pyx_t_12, &__pyx_t_13);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_13);
      __Pyx_XGOTREF(__pyx_t_14);
      __Pyx_XGOTREF(__pyx_t_15);
      __Pyx_XGOTREF(__pyx_t_16);
      __pyx_t_8 = __pyx_lineno; __pyx_t_9 = __pyx_clineno; __pyx_t_10 = __pyx_filename;
      {
        free(__pyx_v_c_coords);
      }
      __Pyx_XGIVEREF(__pyx_t_14);
      __Pyx_XGIVEREF(__pyx_t_15);
      __Pyx_XGIVEREF(__pyx_t_16);
      __Pyx_ExceptionReset(__pyx_t_14, __pyx_t_15, __pyx_t_16);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_13);
      __Pyx_ErrRestore(__pyx_t_11, __pyx_t_12, __pyx_t_13);
      __pyx_t_11 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0;
      __pyx_lineno = __pyx_t_8; __pyx_clineno = __pyx_t_9; __pyx_filename = __pyx_t_10;
      goto __pyx_L1_error;
    }
    __pyx_L6:;
  }

  /* "src/uharfbuzz/_font.pxi":797
 *         return [coords[i] for i in range(length)]
 * 
 *     def set_var_coords_design(self, coords: List[float]):             # <<<<<<<<<<<<<<
 *         """Applies a list of variation coordinates (in design-space units)
 *         to the font.
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.set_var_coords_design", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":821
 *             free(c_coords)
 * 
 *     def glyph_to_string(self, gid: int) -> str:             # <<<<<<<<<<<<<<
 *         """Fetches the name of the specified glyph ID.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_39glyph_to_string(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_38glyph_to_string, "Fetches the name of the specified glyph ID.\n\n        If the glyph ID has no name, a string of the form ``gidDDD`` is\n        generated, with ``DDD`` being the glyph ID.\n\n        Wraps `hb_font_glyph_to_string()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-glyph-to-string>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_39glyph_to_string = {"glyph_to_string", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_39glyph_to_string, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_38glyph_to_string};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_39glyph_to_string(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_gid = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glyph_to_string (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_gid,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 821, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 821, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glyph_to_string", 0) < (0)) __PYX_ERR(3, 821, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glyph_to_string", 1, 1, 1, i); __PYX_ERR(3, 821, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 821, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "gid", 0) < (0)) __PYX_ERR(3, 821, __pyx_L3_error)
    __pyx_v_gid = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glyph_to_string", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 821, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.glyph_to_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gid), (&PyLong_Type), 0, "gid", 2))) __PYX_ERR(3, 821, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_38glyph_to_string(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_gid);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_38glyph_to_string(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_gid) {
  char __pyx_v_name[64];
  PyObject *__pyx_v_packed = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  hb_codepoint_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glyph_to_string", 0);

  /* "src/uharfbuzz/_font.pxi":832
 *         cdef char name[64]
 *         cdef bytes packed
 *         hb_font_glyph_to_string(self._hb_font, gid, name, 64)             # <<<<<<<<<<<<<<
 *         packed = name
 *         return packed.decode()
*/
  __pyx_t_1 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_gid); if (unlikely((__pyx_t_1 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 832, __pyx_L1_error)
  hb_font_glyph_to_string(__pyx_v_self->_hb_font, __pyx_t_1, __pyx_v_name, 64);

  /* "src/uharfbuzz/_font.pxi":833
 *         cdef bytes packed
 *         hb_font_glyph_to_string(self._hb_font, gid, name, 64)
 *         packed = name             # <<<<<<<<<<<<<<
 *         return packed.decode()
 * 
*/
  __pyx_t_2 = __Pyx_PyBytes_FromString(__pyx_v_name); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 833, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_packed = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "src/uharfbuzz/_font.pxi":834
 *         hb_font_glyph_to_string(self._hb_font, gid, name, 64)
 *         packed = name
 *         return packed.decode()             # <<<<<<<<<<<<<<
 * 
 *     def glyph_from_string(self, string: str) -> int:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_decode_bytes(__pyx_v_packed, 0, PY_SSIZE_T_MAX, NULL, NULL, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 834, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":821
 *             free(c_coords)
 * 
 *     def glyph_to_string(self, gid: int) -> str:             # <<<<<<<<<<<<<<
 *         """Fetches the name of the specified glyph ID.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.glyph_to_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":836
 *         return packed.decode()
 * 
 *     def glyph_from_string(self, string: str) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches the glyph ID that matches the specified string.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_41glyph_from_string(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_40glyph_from_string, "Fetches the glyph ID that matches the specified string.\n\n        Strings of the format ``gidDDD`` or ``uniUUUU`` are parsed\n        automatically.\n\n        :returns: The glyph ID corresponding to the string requested, or\n            ``None`` if not found.\n\n        Wraps `hb_font_glyph_from_string()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-glyph-from-string>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_41glyph_from_string = {"glyph_from_string", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_41glyph_from_string, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_40glyph_from_string};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_41glyph_from_string(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_string = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glyph_from_string (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_string,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 836, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 836, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glyph_from_string", 0) < (0)) __PYX_ERR(3, 836, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glyph_from_string", 1, 1, 1, i); __PYX_ERR(3, 836, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 836, __pyx_L3_error)
    }
    __pyx_v_string = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glyph_from_string", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 836, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.glyph_from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_string), (&PyUnicode_Type), 0, "string", 2))) __PYX_ERR(3, 836, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_40glyph_from_string(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_string);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_40glyph_from_string(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_string) {
  hb_codepoint_t __pyx_v_gid;
  PyObject *__pyx_v_packed = 0;
  hb_bool_t __pyx_v_success;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  char *__pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glyph_from_string", 0);

  /* "src/uharfbuzz/_font.pxi":850
 *         cdef hb_codepoint_t gid
 *         cdef bytes packed
 *         packed = string.encode()             # <<<<<<<<<<<<<<
 *         success = hb_font_glyph_from_string(self._hb_font, <char*>packed, len(packed), &gid)
 *         return gid if success else None
*/
  __pyx_t_1 = PyUnicode_AsEncodedString(__pyx_v_string, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 850, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_packed = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_font.pxi":851
 *         cdef bytes packed
 *         packed = string.encode()
 *         success = hb_font_glyph_from_string(self._hb_font, <char*>packed, len(packed), &gid)             # <<<<<<<<<<<<<<
 *         return gid if success else None
 * 
*/
  __pyx_t_2 = __Pyx_PyBytes_AsWritableString(__pyx_v_packed); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(3, 851, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyBytes_GET_SIZE(__pyx_v_packed); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(3, 851, __pyx_L1_error)
  __pyx_v_success = hb_font_glyph_from_string(__pyx_v_self->_hb_font, ((char *)__pyx_t_2), __pyx_t_3, (&__pyx_v_gid));

  /* "src/uharfbuzz/_font.pxi":852
 *         packed = string.encode()
 *         success = hb_font_glyph_from_string(self._hb_font, <char*>packed, len(packed), &gid)
 *         return gid if success else None             # <<<<<<<<<<<<<<
 * 
 *     def draw_glyph(self, gid: int, draw_funcs: DrawFuncs, draw_state: object = None):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = (__pyx_v_success != 0);
  if (__pyx_t_4) {
    __pyx_t_5 = __Pyx_PyLong_From_hb_codepoint_t(__pyx_v_gid); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 852, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_PyInt_FromNumber(&__pyx_t_5, NULL, 0) < (0)) __PYX_ERR(3, 852, __pyx_L1_error)
    __pyx_t_1 = __pyx_t_5;
    __pyx_t_5 = 0;
  } else {
    __Pyx_INCREF(Py_None);
    __pyx_t_1 = Py_None;
  }
  if (__Pyx_PyInt_FromNumber(&__pyx_t_1, NULL, 1) < (0)) __PYX_ERR(3, 852, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":836
 *         return packed.decode()
 * 
 *     def glyph_from_string(self, string: str) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches the glyph ID that matches the specified string.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.glyph_from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":854
 *         return gid if success else None
 * 
 *     def draw_glyph(self, gid: int, draw_funcs: DrawFuncs, draw_state: object = None):             # <<<<<<<<<<<<<<
 *         """Draws the outline that corresponds to a glyph in the font.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_43draw_glyph(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_42draw_glyph, "Draws the outline that corresponds to a glyph in the font.\n\n        The outline is returned by way of calls to the callbacks of the\n        ``draw_funcs`` object, with ``draw_state`` passed to them.\n\n        :param gid: The glyph ID.\n        :param draw_funcs: The :class:`DrawFuncs` to draw to.\n        :param draw_state: User data to pass to the draw callbacks.\n\n        Wraps `hb_font_draw_glyph()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-draw-glyph>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_43draw_glyph = {"draw_glyph", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_43draw_glyph, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_42draw_glyph};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_43draw_glyph(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_gid = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *__pyx_v_draw_funcs = 0;
  PyObject *__pyx_v_draw_state = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("draw_glyph (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_gid,&__pyx_mstate_global->__pyx_n_u_draw_funcs,&__pyx_mstate_global->__pyx_n_u_draw_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 854, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(3, 854, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 854, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 854, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "draw_glyph", 0) < (0)) __PYX_ERR(3, 854, __pyx_L3_error)
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("draw_glyph", 0, 2, 3, i); __PYX_ERR(3, 854, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(3, 854, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 854, __pyx_L3_error)
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 854, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "gid", 0) < (0)) __PYX_ERR(3, 854, __pyx_L3_error)
    __pyx_v_gid = ((PyObject*)values[0]);
    __pyx_v_draw_funcs = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *)values[1]);
    __pyx_v_draw_state = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("draw_glyph", 0, 2, 3, __pyx_nargs); __PYX_ERR(3, 854, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.draw_glyph", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gid), (&PyLong_Type), 0, "gid", 2))) __PYX_ERR(3, 854, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_draw_funcs), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_DrawFuncs, 0, "draw_funcs", 0))) __PYX_ERR(3, 854, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_42draw_glyph(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_gid, __pyx_v_draw_funcs, __pyx_v_draw_state);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_42draw_glyph(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_gid, struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *__pyx_v_draw_funcs, PyObject *__pyx_v_draw_state) {
  void *__pyx_v_draw_state_p;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  void *__pyx_t_2;
  hb_codepoint_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("draw_glyph", 0);

  /* "src/uharfbuzz/_font.pxi":867
 *         <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-draw-glyph>`_.
 *         """
 *         cdef void *draw_state_p = <void *>draw_state             # <<<<<<<<<<<<<<
 *         if PyCapsule_IsValid(draw_state, NULL):
 *             draw_state_p = <void *>PyCapsule_GetPointer(draw_state, NULL)
*/
  __pyx_v_draw_state_p = ((void *)__pyx_v_draw_state);

  /* "src/uharfbuzz/_font.pxi":868
 *         """
 *         cdef void *draw_state_p = <void *>draw_state
 *         if PyCapsule_IsValid(draw_state, NULL):             # <<<<<<<<<<<<<<
 *             draw_state_p = <void *>PyCapsule_GetPointer(draw_state, NULL)
 *         hb_font_draw_glyph(self._hb_font, gid, draw_funcs._hb_drawfuncs, draw_state_p);
*/
  __pyx_t_1 = PyCapsule_IsValid(__pyx_v_draw_state, NULL);
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_font.pxi":869
 *         cdef void *draw_state_p = <void *>draw_state
 *         if PyCapsule_IsValid(draw_state, NULL):
 *             draw_state_p = <void *>PyCapsule_GetPointer(draw_state, NULL)             # <<<<<<<<<<<<<<
 *         hb_font_draw_glyph(self._hb_font, gid, draw_funcs._hb_drawfuncs, draw_state_p);
 * 
*/
    __pyx_t_2 = PyCapsule_GetPointer(__pyx_v_draw_state, NULL); if (unlikely(__pyx_t_2 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(3, 869, __pyx_L1_error)
    __pyx_v_draw_state_p = ((void *)__pyx_t_2);

    /* "src/uharfbuzz/_font.pxi":868
 *         """
 *         cdef void *draw_state_p = <void *>draw_state
 *         if PyCapsule_IsValid(draw_state, NULL):             # <<<<<<<<<<<<<<
 *             draw_state_p = <void *>PyCapsule_GetPointer(draw_state, NULL)
 *         hb_font_draw_glyph(self._hb_font, gid, draw_funcs._hb_drawfuncs, draw_state_p);
*/
  }

  /* "src/uharfbuzz/_font.pxi":870
 *         if PyCapsule_IsValid(draw_state, NULL):
 *             draw_state_p = <void *>PyCapsule_GetPointer(draw_state, NULL)
 *         hb_font_draw_glyph(self._hb_font, gid, draw_funcs._hb_drawfuncs, draw_state_p);             # <<<<<<<<<<<<<<
 * 
 *     def paint_glyph(self, gid: int,
*/
  __pyx_t_3 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_gid); if (unlikely((__pyx_t_3 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 870, __pyx_L1_error)
  hb_font_draw_glyph(__pyx_v_self->_hb_font, __pyx_t_3, __pyx_v_draw_funcs->_hb_drawfuncs, __pyx_v_draw_state_p);

  /* "src/uharfbuzz/_font.pxi":854
 *         return gid if success else None
 * 
 *     def draw_glyph(self, gid: int, draw_funcs: DrawFuncs, draw_state: object = None):             # <<<<<<<<<<<<<<
 *         """Draws the outline that corresponds to a glyph in the font.
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.draw_glyph", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":872
 *         hb_font_draw_glyph(self._hb_font, gid, draw_funcs._hb_drawfuncs, draw_state_p);
 * 
 *     def paint_glyph(self, gid: int,             # <<<<<<<<<<<<<<
 *                     paint_funcs: PaintFuncs,
 *                     paint_state: object = None,
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_45paint_glyph(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_44paint_glyph, "Paints the glyph. If painting a color glyph failed, it will fall\n        back to painting an outline monochrome glyph.\n\n        The painting instructions are returned by way of calls to the\n        callbacks of the ``paint_funcs`` object, with ``paint_state`` passed\n        to them.\n\n        :param gid: The glyph ID.\n        :param paint_funcs: The :class:`PaintFuncs` to paint with.\n        :param paint_state: User data to pass to the paint callbacks.\n        :param palette_index: The index of the font's color palette to use.\n        :param foreground: The foreground color, unpremultiplied.\n\n        Wraps `hb_font_paint_glyph()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-paint-glyph>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_45paint_glyph = {"paint_glyph", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_45paint_glyph, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_44paint_glyph};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_45paint_glyph(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_gid = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_paint_funcs = 0;
  PyObject *__pyx_v_paint_state = 0;
  PyObject *__pyx_v_palette_index = 0;
  PyObject *__pyx_v_foreground = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("paint_glyph (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_gid,&__pyx_mstate_global->__pyx_n_u_paint_funcs,&__pyx_mstate_global->__pyx_n_u_paint_state,&__pyx_mstate_global->__pyx_n_u_palette_index,&__pyx_mstate_global->__pyx_n_u_foreground,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 872, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(3, 872, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(3, 872, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(3, 872, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 872, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 872, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "paint_glyph", 0) < (0)) __PYX_ERR(3, 872, __pyx_L3_error)

      /* "src/uharfbuzz/_font.pxi":874
 *     def paint_glyph(self, gid: int,
 *                     paint_funcs: PaintFuncs,
 *                     paint_state: object = None,             # <<<<<<<<<<<<<<
 *                     palette_index: int = 0,
 *                     foreground: Color | None = None):
*/
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject*)__pyx_mstate_global->__pyx_int_0));

      /* "src/uharfbuzz/_font.pxi":876
 *                     paint_state: object = None,
 *                     palette_index: int = 0,
 *                     foreground: Color | None = None):             # <<<<<<<<<<<<<<
 *         """Paints the glyph. If painting a color glyph failed, it will fall
 *         back to painting an outline monochrome glyph.
*/
      if (!values[4]) values[4] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("paint_glyph", 0, 2, 5, i); __PYX_ERR(3, 872, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(3, 872, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(3, 872, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(3, 872, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 872, __pyx_L3_error)
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 872, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }

      /* "src/uharfbuzz/_font.pxi":874
 *     def paint_glyph(self, gid: int,
 *                     paint_funcs: PaintFuncs,
 *                     paint_state: object = None,             # <<<<<<<<<<<<<<
 *                     palette_index: int = 0,
 *                     foreground: Color | None = None):
*/
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject*)__pyx_mstate_global->__pyx_int_0));

      /* "src/uharfbuzz/_font.pxi":876
 *                     paint_state: object = None,
 *                     palette_index: int = 0,
 *                     foreground: Color | None = None):             # <<<<<<<<<<<<<<
 *         """Paints the glyph. If painting a color glyph failed, it will fall
 *         back to painting an outline monochrome glyph.
*/
      if (!values[4]) values[4] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "gid", 0) < (0)) __PYX_ERR(3, 872, __pyx_L3_error)
    __pyx_v_gid = ((PyObject*)values[0]);
    __pyx_v_paint_funcs = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)values[1]);
    __pyx_v_paint_state = values[2];
    if (__Pyx_PyInt_FromNumber(&values[3], "palette_index", 0) < (0)) __PYX_ERR(3, 875, __pyx_L3_error)
    __pyx_v_palette_index = ((PyObject*)values[3]);
    __pyx_v_foreground = values[4];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("paint_glyph", 0, 2, 5, __pyx_nargs); __PYX_ERR(3, 872, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.paint_glyph", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gid), (&PyLong_Type), 0, "gid", 2))) __PYX_ERR(3, 872, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_paint_funcs), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_PaintFuncs, 0, "paint_funcs", 0))) __PYX_ERR(3, 873, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_palette_index), (&PyLong_Type), 0, "palette_index", 2))) __PYX_ERR(3, 875, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_44paint_glyph(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_gid, __pyx_v_paint_funcs, __pyx_v_paint_state, __pyx_v_palette_index, __pyx_v_foreground);

  /* "src/uharfbuzz/_font.pxi":872
 *         hb_font_draw_glyph(self._hb_font, gid, draw_funcs._hb_drawfuncs, draw_state_p);
 * 
 *     def paint_glyph(self, gid: int,             # <<<<<<<<<<<<<<
 *                     paint_funcs: PaintFuncs,
 *                     paint_state: object = None,
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_44paint_glyph(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_gid, struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *__pyx_v_paint_funcs, PyObject *__pyx_v_paint_state, PyObject *__pyx_v_palette_index, PyObject *__pyx_v_foreground) {
  void *__pyx_v_paint_state_p;
  hb_color_t __pyx_v_c_foreground;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  hb_color_t __pyx_t_5;
  hb_codepoint_t __pyx_t_6;
  unsigned int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("paint_glyph", 0);

  /* "src/uharfbuzz/_font.pxi":893
 *         <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-paint-glyph>`_.
 *         """
 *         cdef void *paint_state_p = <void *>paint_state             # <<<<<<<<<<<<<<
 *         cdef hb_color_t c_foreground = 0x000000FF
 *         if foreground is not None:
*/
  __pyx_v_paint_state_p = ((void *)__pyx_v_paint_state);

  /* "src/uharfbuzz/_font.pxi":894
 *         """
 *         cdef void *paint_state_p = <void *>paint_state
 *         cdef hb_color_t c_foreground = 0x000000FF             # <<<<<<<<<<<<<<
 *         if foreground is not None:
 *             c_foreground = foreground.to_int()
*/
  __pyx_v_c_foreground = 0x000000FF;

  /* "src/uharfbuzz/_font.pxi":895
 *         cdef void *paint_state_p = <void *>paint_state
 *         cdef hb_color_t c_foreground = 0x000000FF
 *         if foreground is not None:             # <<<<<<<<<<<<<<
 *             c_foreground = foreground.to_int()
 *         hb_font_paint_glyph(self._hb_font,
*/
  __pyx_t_1 = (__pyx_v_foreground != Py_None);
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_font.pxi":896
 *         cdef hb_color_t c_foreground = 0x000000FF
 *         if foreground is not None:
 *             c_foreground = foreground.to_int()             # <<<<<<<<<<<<<<
 *         hb_font_paint_glyph(self._hb_font,
 *                             gid,
*/
    __pyx_t_3 = __pyx_v_foreground;
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_to_int, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 896, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_t_5 = __Pyx_PyLong_As_uint32_t(__pyx_t_2); if (unlikely((__pyx_t_5 == ((hb_color_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 896, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_c_foreground = __pyx_t_5;

    /* "src/uharfbuzz/_font.pxi":895
 *         cdef void *paint_state_p = <void *>paint_state
 *         cdef hb_color_t c_foreground = 0x000000FF
 *         if foreground is not None:             # <<<<<<<<<<<<<<
 *             c_foreground = foreground.to_int()
 *         hb_font_paint_glyph(self._hb_font,
*/
  }

  /* "src/uharfbuzz/_font.pxi":898
 *             c_foreground = foreground.to_int()
 *         hb_font_paint_glyph(self._hb_font,
 *                             gid,             # <<<<<<<<<<<<<<
 *                             paint_funcs._hb_paintfuncs,
 *                             paint_state_p,
*/
  __pyx_t_6 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_gid); if (unlikely((__pyx_t_6 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 898, __pyx_L1_error)

  /* "src/uharfbuzz/_font.pxi":901
 *                             paint_funcs._hb_paintfuncs,
 *                             paint_state_p,
 *                             palette_index,             # <<<<<<<<<<<<<<
 *                             c_foreground)
 * 
*/
  __pyx_t_7 = __Pyx_PyLong_As_unsigned_int(__pyx_v_palette_index); if (unlikely((__pyx_t_7 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 901, __pyx_L1_error)

  /* "src/uharfbuzz/_font.pxi":897
 *         if foreground is not None:
 *             c_foreground = foreground.to_int()
 *         hb_font_paint_glyph(self._hb_font,             # <<<<<<<<<<<<<<
 *                             gid,
 *                             paint_funcs._hb_paintfuncs,
*/
  hb_font_paint_glyph(__pyx_v_self->_hb_font, __pyx_t_6, __pyx_v_paint_funcs->_hb_paintfuncs, __pyx_v_paint_state_p, __pyx_t_7, __pyx_v_c_foreground);

  /* "src/uharfbuzz/_font.pxi":872
 *         hb_font_draw_glyph(self._hb_font, gid, draw_funcs._hb_drawfuncs, draw_state_p);
 * 
 *     def paint_glyph(self, gid: int,             # <<<<<<<<<<<<<<
 *                     paint_funcs: PaintFuncs,
 *                     paint_state: object = None,
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.paint_glyph", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":904
 *                             c_foreground)
 * 
 *     def draw_glyph_with_pen(self, gid: int, pen):             # <<<<<<<<<<<<<<
 *         """Draws the outline of a glyph using a fontTools-style pen.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_47draw_glyph_with_pen(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_46draw_glyph_with_pen, "Draws the outline of a glyph using a fontTools-style pen.\n\n        :param gid: The glyph ID.\n        :param pen: An object with ``moveTo``, ``lineTo``, ``curveTo``,\n            ``qCurveTo``, and ``closePath`` methods.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_47draw_glyph_with_pen = {"draw_glyph_with_pen", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_47draw_glyph_with_pen, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_46draw_glyph_with_pen};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_47draw_glyph_with_pen(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_gid = 0;
  PyObject *__pyx_v_pen = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("draw_glyph_with_pen (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_gid,&__pyx_mstate_global->__pyx_n_u_pen,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 904, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 904, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 904, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "draw_glyph_with_pen", 0) < (0)) __PYX_ERR(3, 904, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("draw_glyph_with_pen", 1, 2, 2, i); __PYX_ERR(3, 904, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 904, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 904, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "gid", 0) < (0)) __PYX_ERR(3, 904, __pyx_L3_error)
    __pyx_v_gid = ((PyObject*)values[0]);
    __pyx_v_pen = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("draw_glyph_with_pen", 1, 2, 2, __pyx_nargs); __PYX_ERR(3, 904, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.draw_glyph_with_pen", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gid), (&PyLong_Type), 0, "gid", 2))) __PYX_ERR(3, 904, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_46draw_glyph_with_pen(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_gid, __pyx_v_pen);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_46draw_glyph_with_pen(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_gid, PyObject *__pyx_v_pen) {
  PyObject *__pyx_v_moveTo = NULL;
  PyObject *__pyx_v_lineTo = NULL;
  PyObject *__pyx_v_curveTo = NULL;
  PyObject *__pyx_v_qCurveTo = NULL;
  PyObject *__pyx_v_closePath = NULL;
  struct __pyx_t_9uharfbuzz_9_harfbuzz__pen_methods __pyx_v_methods;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  hb_codepoint_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("draw_glyph_with_pen", 0);

  /* "src/uharfbuzz/_font.pxi":912
 *         """
 *         global drawfuncs
 *         if drawfuncs == NULL:             # <<<<<<<<<<<<<<
 *             drawfuncs = hb_draw_funcs_create()
 *             hb_draw_funcs_set_move_to_func(drawfuncs, _pen_move_to_func, NULL, NULL)
*/
  __pyx_t_1 = (__pyx_v_9uharfbuzz_9_harfbuzz_drawfuncs == NULL);
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_font.pxi":913
 *         global drawfuncs
 *         if drawfuncs == NULL:
 *             drawfuncs = hb_draw_funcs_create()             # <<<<<<<<<<<<<<
 *             hb_draw_funcs_set_move_to_func(drawfuncs, _pen_move_to_func, NULL, NULL)
 *             hb_draw_funcs_set_line_to_func(drawfuncs, _pen_line_to_func, NULL, NULL)
*/
    __pyx_v_9uharfbuzz_9_harfbuzz_drawfuncs = hb_draw_funcs_create();

    /* "src/uharfbuzz/_font.pxi":914
 *         if drawfuncs == NULL:
 *             drawfuncs = hb_draw_funcs_create()
 *             hb_draw_funcs_set_move_to_func(drawfuncs, _pen_move_to_func, NULL, NULL)             # <<<<<<<<<<<<<<
 *             hb_draw_funcs_set_line_to_func(drawfuncs, _pen_line_to_func, NULL, NULL)
 *             hb_draw_funcs_set_cubic_to_func(drawfuncs, _pen_cubic_to_func, NULL, NULL)
*/
    hb_draw_funcs_set_move_to_func(__pyx_v_9uharfbuzz_9_harfbuzz_drawfuncs, __pyx_f_9uharfbuzz_9_harfbuzz__pen_move_to_func, NULL, NULL);

    /* "src/uharfbuzz/_font.pxi":915
 *             drawfuncs = hb_draw_funcs_create()
 *             hb_draw_funcs_set_move_to_func(drawfuncs, _pen_move_to_func, NULL, NULL)
 *             hb_draw_funcs_set_line_to_func(drawfuncs, _pen_line_to_func, NULL, NULL)             # <<<<<<<<<<<<<<
 *             hb_draw_funcs_set_cubic_to_func(drawfuncs, _pen_cubic_to_func, NULL, NULL)
 *             hb_draw_funcs_set_quadratic_to_func(drawfuncs, _pen_quadratic_to_func, NULL, NULL)
*/
    hb_draw_funcs_set_line_to_func(__pyx_v_9uharfbuzz_9_harfbuzz_drawfuncs, __pyx_f_9uharfbuzz_9_harfbuzz__pen_line_to_func, NULL, NULL);

    /* "src/uharfbuzz/_font.pxi":916
 *             hb_draw_funcs_set_move_to_func(drawfuncs, _pen_move_to_func, NULL, NULL)
 *             hb_draw_funcs_set_line_to_func(drawfuncs, _pen_line_to_func, NULL, NULL)
 *             hb_draw_funcs_set_cubic_to_func(drawfuncs, _pen_cubic_to_func, NULL, NULL)             # <<<<<<<<<<<<<<
 *             hb_draw_funcs_set_quadratic_to_func(drawfuncs, _pen_quadratic_to_func, NULL, NULL)
 *             hb_draw_funcs_set_close_path_func(drawfuncs, _pen_close_path_func, NULL, NULL)
*/
    hb_draw_funcs_set_cubic_to_func(__pyx_v_9uharfbuzz_9_harfbuzz_drawfuncs, __pyx_f_9uharfbuzz_9_harfbuzz__pen_cubic_to_func, NULL, NULL);

    /* "src/uharfbuzz/_font.pxi":917
 *             hb_draw_funcs_set_line_to_func(drawfuncs, _pen_line_to_func, NULL, NULL)
 *             hb_draw_funcs_set_cubic_to_func(drawfuncs, _pen_cubic_to_func, NULL, NULL)
 *             hb_draw_funcs_set_quadratic_to_func(drawfuncs, _pen_quadratic_to_func, NULL, NULL)             # <<<<<<<<<<<<<<
 *             hb_draw_funcs_set_close_path_func(drawfuncs, _pen_close_path_func, NULL, NULL)
 * 
*/
    hb_draw_funcs_set_quadratic_to_func(__pyx_v_9uharfbuzz_9_harfbuzz_drawfuncs, __pyx_f_9uharfbuzz_9_harfbuzz__pen_quadratic_to_func, NULL, NULL);

    /* "src/uharfbuzz/_font.pxi":918
 *             hb_draw_funcs_set_cubic_to_func(drawfuncs, _pen_cubic_to_func, NULL, NULL)
 *             hb_draw_funcs_set_quadratic_to_func(drawfuncs, _pen_quadratic_to_func, NULL, NULL)
 *             hb_draw_funcs_set_close_path_func(drawfuncs, _pen_close_path_func, NULL, NULL)             # <<<<<<<<<<<<<<
 * 
 *         # Keep local copy so they are not GC'ed before the call completes
*/
    hb_draw_funcs_set_close_path_func(__pyx_v_9uharfbuzz_9_harfbuzz_drawfuncs, __pyx_f_9uharfbuzz_9_harfbuzz__pen_close_path_func, NULL, NULL);

    /* "src/uharfbuzz/_font.pxi":912
 *         """
 *         global drawfuncs
 *         if drawfuncs == NULL:             # <<<<<<<<<<<<<<
 *             drawfuncs = hb_draw_funcs_create()
 *             hb_draw_funcs_set_move_to_func(drawfuncs, _pen_move_to_func, NULL, NULL)
*/
  }

  /* "src/uharfbuzz/_font.pxi":921
 * 
 *         # Keep local copy so they are not GC'ed before the call completes
 *         moveTo = pen.moveTo             # <<<<<<<<<<<<<<
 *         lineTo = pen.lineTo
 *         curveTo = pen.curveTo
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_pen, __pyx_mstate_global->__pyx_n_u_moveTo); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 921, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_moveTo = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "src/uharfbuzz/_font.pxi":922
 *         # Keep local copy so they are not GC'ed before the call completes
 *         moveTo = pen.moveTo
 *         lineTo = pen.lineTo             # <<<<<<<<<<<<<<
 *         curveTo = pen.curveTo
 *         qCurveTo = pen.qCurveTo
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_pen, __pyx_mstate_global->__pyx_n_u_lineTo); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 922, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_lineTo = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "src/uharfbuzz/_font.pxi":923
 *         moveTo = pen.moveTo
 *         lineTo = pen.lineTo
 *         curveTo = pen.curveTo             # <<<<<<<<<<<<<<
 *         qCurveTo = pen.qCurveTo
 *         closePath = pen.closePath
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_pen, __pyx_mstate_global->__pyx_n_u_curveTo); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 923, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_curveTo = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "src/uharfbuzz/_font.pxi":924
 *         lineTo = pen.lineTo
 *         curveTo = pen.curveTo
 *         qCurveTo = pen.qCurveTo             # <<<<<<<<<<<<<<
 *         closePath = pen.closePath
 * 
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_pen, __pyx_mstate_global->__pyx_n_u_qCurveTo); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 924, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_qCurveTo = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "src/uharfbuzz/_font.pxi":925
 *         curveTo = pen.curveTo
 *         qCurveTo = pen.qCurveTo
 *         closePath = pen.closePath             # <<<<<<<<<<<<<<
 * 
 *         cdef _pen_methods methods
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_pen, __pyx_mstate_global->__pyx_n_u_closePath); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 925, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_closePath = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "src/uharfbuzz/_font.pxi":928
 * 
 *         cdef _pen_methods methods
 *         methods.moveTo = <void*>moveTo             # <<<<<<<<<<<<<<
 *         methods.lineTo = <void*>lineTo
 *         methods.curveTo = <void*>curveTo
*/
  __pyx_v_methods.moveTo = ((void *)__pyx_v_moveTo);

  /* "src/uharfbuzz/_font.pxi":929
 *         cdef _pen_methods methods
 *         methods.moveTo = <void*>moveTo
 *         methods.lineTo = <void*>lineTo             # <<<<<<<<<<<<<<
 *         methods.curveTo = <void*>curveTo
 *         methods.qCurveTo = <void*>qCurveTo
*/
  __pyx_v_methods.lineTo = ((void *)__pyx_v_lineTo);

  /* "src/uharfbuzz/_font.pxi":930
 *         methods.moveTo = <void*>moveTo
 *         methods.lineTo = <void*>lineTo
 *         methods.curveTo = <void*>curveTo             # <<<<<<<<<<<<<<
 *         methods.qCurveTo = <void*>qCurveTo
 *         methods.closePath = <void*>closePath
*/
  __pyx_v_methods.curveTo = ((void *)__pyx_v_curveTo);

  /* "src/uharfbuzz/_font.pxi":931
 *         methods.lineTo = <void*>lineTo
 *         methods.curveTo = <void*>curveTo
 *         methods.qCurveTo = <void*>qCurveTo             # <<<<<<<<<<<<<<
 *         methods.closePath = <void*>closePath
 * 
*/
  __pyx_v_methods.qCurveTo = ((void *)__pyx_v_qCurveTo);

  /* "src/uharfbuzz/_font.pxi":932
 *         methods.curveTo = <void*>curveTo
 *         methods.qCurveTo = <void*>qCurveTo
 *         methods.closePath = <void*>closePath             # <<<<<<<<<<<<<<
 * 
 *         hb_font_draw_glyph(self._hb_font, gid, drawfuncs, <void*>&methods)
*/
  __pyx_v_methods.closePath = ((void *)__pyx_v_closePath);

  /* "src/uharfbuzz/_font.pxi":934
 *         methods.closePath = <void*>closePath
 * 
 *         hb_font_draw_glyph(self._hb_font, gid, drawfuncs, <void*>&methods)             # <<<<<<<<<<<<<<
 * 
 *     # math
*/
  __pyx_t_3 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_gid); if (unlikely((__pyx_t_3 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 934, __pyx_L1_error)
  hb_font_draw_glyph(__pyx_v_self->_hb_font, __pyx_t_3, __pyx_v_9uharfbuzz_9_harfbuzz_drawfuncs, ((void *)(&__pyx_v_methods)));

  /* "src/uharfbuzz/_font.pxi":904
 *                             c_foreground)
 * 
 *     def draw_glyph_with_pen(self, gid: int, pen):             # <<<<<<<<<<<<<<
 *         """Draws the outline of a glyph using a fontTools-style pen.
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.draw_glyph_with_pen", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_moveTo);
  __Pyx_XDECREF(__pyx_v_lineTo);
  __Pyx_XDECREF(__pyx_v_curveTo);
  __Pyx_XDECREF(__pyx_v_qCurveTo);
  __Pyx_XDECREF(__pyx_v_closePath);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":937
 * 
 *     # math
 *     def get_math_constant(self, constant: OTMathConstant) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches the specified math constant.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_49get_math_constant(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_48get_math_constant, "Fetches the specified math constant.\n\n        For most constants, the value returned is a position. However, if\n        the requested constant is\n        :attr:`OTMathConstant.SCRIPT_PERCENT_SCALE_DOWN`,\n        :attr:`OTMathConstant.SCRIPT_SCRIPT_PERCENT_SCALE_DOWN` or\n        :attr:`OTMathConstant.RADICAL_DEGREE_BOTTOM_RAISE_PERCENT`, then\n        the return value is an integer between 0 and 100 representing that\n        percentage.\n\n        :raises ValueError: If ``constant`` is not a valid\n            :class:`OTMathConstant`.\n\n        Wraps `hb_ot_math_get_constant()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-math.html#hb-ot-math-get-constant>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_49get_math_constant = {"get_math_constant", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_49get_math_constant, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_48get_math_constant};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_49get_math_constant(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_constant = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_math_constant (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_constant,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 937, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 937, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_math_constant", 0) < (0)) __PYX_ERR(3, 937, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_math_constant", 1, 1, 1, i); __PYX_ERR(3, 937, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 937, __pyx_L3_error)
    }
    __pyx_v_constant = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_math_constant", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 937, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_math_constant", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_48get_math_constant(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_constant);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_48get_math_constant(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_constant) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  size_t __pyx_t_5;
  hb_ot_math_constant_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_math_constant", 0);

  /* "src/uharfbuzz/_font.pxi":954
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-math.html#hb-ot-math-get-constant>`_.
 *         """
 *         if constant >= len(OTMathConstant):             # <<<<<<<<<<<<<<
 *             raise ValueError("invalid constant")
 *         return hb_ot_math_get_constant(self._hb_font, constant)
*/
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_OTMathConstant); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 954, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(3, 954, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyLong_FromSsize_t(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 954, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = PyObject_RichCompare(__pyx_v_constant, __pyx_t_1, Py_GE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 954, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(3, 954, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(__pyx_t_4)) {

    /* "src/uharfbuzz/_font.pxi":955
 *         """
 *         if constant >= len(OTMathConstant):
 *             raise ValueError("invalid constant")             # <<<<<<<<<<<<<<
 *         return hb_ot_math_get_constant(self._hb_font, constant)
 * 
*/
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_invalid_constant};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 955, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(3, 955, __pyx_L1_error)

    /* "src/uharfbuzz/_font.pxi":954
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-math.html#hb-ot-math-get-constant>`_.
 *         """
 *         if constant >= len(OTMathConstant):             # <<<<<<<<<<<<<<
 *             raise ValueError("invalid constant")
 *         return hb_ot_math_get_constant(self._hb_font, constant)
*/
  }

  /* "src/uharfbuzz/_font.pxi":956
 *         if constant >= len(OTMathConstant):
 *             raise ValueError("invalid constant")
 *         return hb_ot_math_get_constant(self._hb_font, constant)             # <<<<<<<<<<<<<<
 * 
 *     def get_math_glyph_italics_correction(self, glyph: int) -> int:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_6 = ((hb_ot_math_constant_t)__Pyx_PyLong_As_hb_ot_math_constant_t(__pyx_v_constant)); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 956, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyLong_From_hb_position_t(hb_ot_math_get_constant(__pyx_v_self->_hb_font, __pyx_t_6)); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 956, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (__Pyx_PyInt_FromNumber(&__pyx_t_3, NULL, 0) < (0)) __PYX_ERR(3, 956, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":937
 * 
 *     # math
 *     def get_math_constant(self, constant: OTMathConstant) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches the specified math constant.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_math_constant", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":958
 *         return hb_ot_math_get_constant(self._hb_font, constant)
 * 
 *     def get_math_glyph_italics_correction(self, glyph: int) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches an italics-correction value (if one exists) for the
 *         specified glyph index.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_51get_math_glyph_italics_correction(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_50get_math_glyph_italics_correction, "Fetches an italics-correction value (if one exists) for the\n        specified glyph index.\n\n        Wraps `hb_ot_math_get_glyph_italics_correction()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-math.html#hb-ot-math-get-glyph-italics-correction>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_51get_math_glyph_italics_correction = {"get_math_glyph_italics_correction", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_51get_math_glyph_italics_correction, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_50get_math_glyph_italics_correction};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_51get_math_glyph_italics_correction(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_glyph = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_math_glyph_italics_correction (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_glyph,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 958, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 958, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_math_glyph_italics_correction", 0) < (0)) __PYX_ERR(3, 958, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_math_glyph_italics_correction", 1, 1, 1, i); __PYX_ERR(3, 958, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 958, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "glyph", 0) < (0)) __PYX_ERR(3, 958, __pyx_L3_error)
    __pyx_v_glyph = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_math_glyph_italics_correction", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 958, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_math_glyph_italics_correction", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_glyph), (&PyLong_Type), 0, "glyph", 2))) __PYX_ERR(3, 958, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_50get_math_glyph_italics_correction(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_glyph);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_50get_math_glyph_italics_correction(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_glyph) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  hb_codepoint_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_math_glyph_italics_correction", 0);

  /* "src/uharfbuzz/_font.pxi":965
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-math.html#hb-ot-math-get-glyph-italics-correction>`_.
 *         """
 *         return hb_ot_math_get_glyph_italics_correction(self._hb_font, glyph)             # <<<<<<<<<<<<<<
 * 
 *     def get_math_glyph_top_accent_attachment(self, glyph: int) -> int:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_glyph); if (unlikely((__pyx_t_1 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 965, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyLong_From_hb_position_t(hb_ot_math_get_glyph_italics_correction(__pyx_v_self->_hb_font, __pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 965, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_PyInt_FromNumber(&__pyx_t_2, NULL, 0) < (0)) __PYX_ERR(3, 965, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":958
 *         return hb_ot_math_get_constant(self._hb_font, constant)
 * 
 *     def get_math_glyph_italics_correction(self, glyph: int) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches an italics-correction value (if one exists) for the
 *         specified glyph index.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_math_glyph_italics_correction", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":967
 *         return hb_ot_math_get_glyph_italics_correction(self._hb_font, glyph)
 * 
 *     def get_math_glyph_top_accent_attachment(self, glyph: int) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches a top-accent-attachment value (if one exists) for the
 *         specified glyph index.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_53get_math_glyph_top_accent_attachment(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_52get_math_glyph_top_accent_attachment, "Fetches a top-accent-attachment value (if one exists) for the\n        specified glyph index.\n\n        Wraps `hb_ot_math_get_glyph_top_accent_attachment()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-math.html#hb-ot-math-get-glyph-top-accent-attachment>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_53get_math_glyph_top_accent_attachment = {"get_math_glyph_top_accent_attachment", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_53get_math_glyph_top_accent_attachment, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_52get_math_glyph_top_accent_attachment};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_53get_math_glyph_top_accent_attachment(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_glyph = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_math_glyph_top_accent_attachment (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_glyph,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 967, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 967, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_math_glyph_top_accent_attachment", 0) < (0)) __PYX_ERR(3, 967, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_math_glyph_top_accent_attachment", 1, 1, 1, i); __PYX_ERR(3, 967, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 967, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "glyph", 0) < (0)) __PYX_ERR(3, 967, __pyx_L3_error)
    __pyx_v_glyph = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_math_glyph_top_accent_attachment", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 967, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_math_glyph_top_accent_attachment", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_glyph), (&PyLong_Type), 0, "glyph", 2))) __PYX_ERR(3, 967, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_52get_math_glyph_top_accent_attachment(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_glyph);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_52get_math_glyph_top_accent_attachment(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_glyph) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  hb_codepoint_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_math_glyph_top_accent_attachment", 0);

  /* "src/uharfbuzz/_font.pxi":974
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-math.html#hb-ot-math-get-glyph-top-accent-attachment>`_.
 *         """
 *         return hb_ot_math_get_glyph_top_accent_attachment(self._hb_font, glyph)             # <<<<<<<<<<<<<<
 * 
 *     def get_math_min_connector_overlap(self, direction: str) -> int:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_glyph); if (unlikely((__pyx_t_1 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 974, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyLong_From_hb_position_t(hb_ot_math_get_glyph_top_accent_attachment(__pyx_v_self->_hb_font, __pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 974, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_PyInt_FromNumber(&__pyx_t_2, NULL, 0) < (0)) __PYX_ERR(3, 974, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":967
 *         return hb_ot_math_get_glyph_italics_correction(self._hb_font, glyph)
 * 
 *     def get_math_glyph_top_accent_attachment(self, glyph: int) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches a top-accent-attachment value (if one exists) for the
 *         specified glyph index.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_math_glyph_top_accent_attachment", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":976
 *         return hb_ot_math_get_glyph_top_accent_attachment(self._hb_font, glyph)
 * 
 *     def get_math_min_connector_overlap(self, direction: str) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches the MathVariants table for the font and returns the
 *         minimum overlap of connecting glyphs that are required to draw a
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_55get_math_min_connector_overlap(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_54get_math_min_connector_overlap, "Fetches the MathVariants table for the font and returns the\n        minimum overlap of connecting glyphs that are required to draw a\n        glyph assembly in the specified direction.\n\n        Wraps `hb_ot_math_get_min_connector_overlap()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-math.html#hb-ot-math-get-min-connector-overlap>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_55get_math_min_connector_overlap = {"get_math_min_connector_overlap", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_55get_math_min_connector_overlap, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_54get_math_min_connector_overlap};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_55get_math_min_connector_overlap(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_direction = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_math_min_connector_overlap (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_direction,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 976, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 976, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_math_min_connector_overlap", 0) < (0)) __PYX_ERR(3, 976, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_math_min_connector_overlap", 1, 1, 1, i); __PYX_ERR(3, 976, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 976, __pyx_L3_error)
    }
    __pyx_v_direction = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_math_min_connector_overlap", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 976, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_math_min_connector_overlap", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_direction), (&PyUnicode_Type), 0, "direction", 2))) __PYX_ERR(3, 976, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_54get_math_min_connector_overlap(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_direction);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_54get_math_min_connector_overlap(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_direction) {
  PyObject *__pyx_v_packed = 0;
  char *__pyx_v_cstr;
  hb_direction_t __pyx_v_hb_direction;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  char *__pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_math_min_connector_overlap", 0);

  /* "src/uharfbuzz/_font.pxi":984
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-math.html#hb-ot-math-get-min-connector-overlap>`_.
 *         """
 *         cdef bytes packed = direction.encode()             # <<<<<<<<<<<<<<
 *         cdef char* cstr = packed
 *         cdef hb_direction_t hb_direction = hb_direction_from_string(cstr, -1)
*/
  __pyx_t_1 = PyUnicode_AsEncodedString(__pyx_v_direction, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 984, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_packed = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_font.pxi":985
 *         """
 *         cdef bytes packed = direction.encode()
 *         cdef char* cstr = packed             # <<<<<<<<<<<<<<
 *         cdef hb_direction_t hb_direction = hb_direction_from_string(cstr, -1)
 *         return hb_ot_math_get_min_connector_overlap(self._hb_font, hb_direction)
*/
  __pyx_t_2 = __Pyx_PyBytes_AsWritableString(__pyx_v_packed); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(3, 985, __pyx_L1_error)
  __pyx_v_cstr = __pyx_t_2;

  /* "src/uharfbuzz/_font.pxi":986
 *         cdef bytes packed = direction.encode()
 *         cdef char* cstr = packed
 *         cdef hb_direction_t hb_direction = hb_direction_from_string(cstr, -1)             # <<<<<<<<<<<<<<
 *         return hb_ot_math_get_min_connector_overlap(self._hb_font, hb_direction)
 * 
*/
  __pyx_v_hb_direction = hb_direction_from_string(__pyx_v_cstr, -1);

  /* "src/uharfbuzz/_font.pxi":987
 *         cdef char* cstr = packed
 *         cdef hb_direction_t hb_direction = hb_direction_from_string(cstr, -1)
 *         return hb_ot_math_get_min_connector_overlap(self._hb_font, hb_direction)             # <<<<<<<<<<<<<<
 * 
 *     def get_math_glyph_kerning(self, glyph: int, kern: OTMathKern, correction_height: int) -> int:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_hb_position_t(hb_ot_math_get_min_connector_overlap(__pyx_v_self->_hb_font, __pyx_v_hb_direction)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 987, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (__Pyx_PyInt_FromNumber(&__pyx_t_1, NULL, 0) < (0)) __PYX_ERR(3, 987, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":976
 *         return hb_ot_math_get_glyph_top_accent_attachment(self._hb_font, glyph)
 * 
 *     def get_math_min_connector_overlap(self, direction: str) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches the MathVariants table for the font and returns the
 *         minimum overlap of connecting glyphs that are required to draw a
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_math_min_connector_overlap", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":989
 *         return hb_ot_math_get_min_connector_overlap(self._hb_font, hb_direction)
 * 
 *     def get_math_glyph_kerning(self, glyph: int, kern: OTMathKern, correction_height: int) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches the math kerning (cut-ins) value for the specified font,
 *         glyph index, and ``kern``.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_57get_math_glyph_kerning(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_56get_math_glyph_kerning, "Fetches the math kerning (cut-ins) value for the specified font,\n        glyph index, and ``kern``.\n\n        :raises ValueError: If ``kern`` is not a valid :class:`OTMathKern`.\n\n        Wraps `hb_ot_math_get_glyph_kerning()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-math.html#hb-ot-math-get-glyph-kerning>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_57get_math_glyph_kerning = {"get_math_glyph_kerning", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_57get_math_glyph_kerning, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_56get_math_glyph_kerning};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_57get_math_glyph_kerning(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_glyph = 0;
  PyObject *__pyx_v_kern = 0;
  PyObject *__pyx_v_correction_height = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_math_glyph_kerning (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_glyph,&__pyx_mstate_global->__pyx_n_u_kern,&__pyx_mstate_global->__pyx_n_u_correction_height,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 989, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(3, 989, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 989, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 989, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_math_glyph_kerning", 0) < (0)) __PYX_ERR(3, 989, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_math_glyph_kerning", 1, 3, 3, i); __PYX_ERR(3, 989, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 989, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 989, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(3, 989, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "glyph", 0) < (0)) __PYX_ERR(3, 989, __pyx_L3_error)
    __pyx_v_glyph = ((PyObject*)values[0]);
    __pyx_v_kern = values[1];
    if (__Pyx_PyInt_FromNumber(&values[2], "correction_height", 0) < (0)) __PYX_ERR(3, 989, __pyx_L3_error)
    __pyx_v_correction_height = ((PyObject*)values[2]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_math_glyph_kerning", 1, 3, 3, __pyx_nargs); __PYX_ERR(3, 989, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_math_glyph_kerning", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_glyph), (&PyLong_Type), 0, "glyph", 2))) __PYX_ERR(3, 989, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_correction_height), (&PyLong_Type), 0, "correction_height", 2))) __PYX_ERR(3, 989, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_56get_math_glyph_kerning(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_glyph, __pyx_v_kern, __pyx_v_correction_height);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_56get_math_glyph_kerning(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_glyph, PyObject *__pyx_v_kern, PyObject *__pyx_v_correction_height) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  size_t __pyx_t_5;
  hb_codepoint_t __pyx_t_6;
  hb_ot_math_kern_t __pyx_t_7;
  hb_position_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_math_glyph_kerning", 0);

  /* "src/uharfbuzz/_font.pxi":998
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-math.html#hb-ot-math-get-glyph-kerning>`_.
 *         """
 *         if kern >= len(OTMathKern):             # <<<<<<<<<<<<<<
 *             raise ValueError("invalid kern")
 *         return hb_ot_math_get_glyph_kerning(self._hb_font, glyph, kern, correction_height)
*/
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_OTMathKern); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 998, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(3, 998, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyLong_FromSsize_t(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 998, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = PyObject_RichCompare(__pyx_v_kern, __pyx_t_1, Py_GE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 998, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(3, 998, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(__pyx_t_4)) {

    /* "src/uharfbuzz/_font.pxi":999
 *         """
 *         if kern >= len(OTMathKern):
 *             raise ValueError("invalid kern")             # <<<<<<<<<<<<<<
 *         return hb_ot_math_get_glyph_kerning(self._hb_font, glyph, kern, correction_height)
 * 
*/
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_invalid_kern};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 999, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(3, 999, __pyx_L1_error)

    /* "src/uharfbuzz/_font.pxi":998
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-math.html#hb-ot-math-get-glyph-kerning>`_.
 *         """
 *         if kern >= len(OTMathKern):             # <<<<<<<<<<<<<<
 *             raise ValueError("invalid kern")
 *         return hb_ot_math_get_glyph_kerning(self._hb_font, glyph, kern, correction_height)
*/
  }

  /* "src/uharfbuzz/_font.pxi":1000
 *         if kern >= len(OTMathKern):
 *             raise ValueError("invalid kern")
 *         return hb_ot_math_get_glyph_kerning(self._hb_font, glyph, kern, correction_height)             # <<<<<<<<<<<<<<
 * 
 *     def get_math_glyph_kernings(self, glyph: int, kern: OTMathKern) -> List[OTMathKernEntry]:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_6 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_glyph); if (unlikely((__pyx_t_6 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 1000, __pyx_L1_error)
  __pyx_t_7 = ((hb_ot_math_kern_t)__Pyx_PyLong_As_hb_ot_math_kern_t(__pyx_v_kern)); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1000, __pyx_L1_error)
  __pyx_t_8 = __Pyx_PyLong_As_hb_position_t(__pyx_v_correction_height); if (unlikely((__pyx_t_8 == ((hb_position_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 1000, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyLong_From_hb_position_t(hb_ot_math_get_glyph_kerning(__pyx_v_self->_hb_font, __pyx_t_6, __pyx_t_7, __pyx_t_8)); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1000, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (__Pyx_PyInt_FromNumber(&__pyx_t_3, NULL, 0) < (0)) __PYX_ERR(3, 1000, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":989
 *         return hb_ot_math_get_min_connector_overlap(self._hb_font, hb_direction)
 * 
 *     def get_math_glyph_kerning(self, glyph: int, kern: OTMathKern, correction_height: int) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches the math kerning (cut-ins) value for the specified font,
 *         glyph index, and ``kern``.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_math_glyph_kerning", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":1002
 *         return hb_ot_math_get_glyph_kerning(self._hb_font, glyph, kern, correction_height)
 * 
 *     def get_math_glyph_kernings(self, glyph: int, kern: OTMathKern) -> List[OTMathKernEntry]:             # <<<<<<<<<<<<<<
 *         """Fetches the raw MathKern (cut-in) data for the specified font,
 *         glyph index, and ``kern``.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_59get_math_glyph_kernings(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_58get_math_glyph_kernings, "Fetches the raw MathKern (cut-in) data for the specified font,\n        glyph index, and ``kern``.\n\n        :raises ValueError: If ``kern`` is not a valid :class:`OTMathKern`.\n\n        Wraps `hb_ot_math_get_glyph_kernings()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-math.html#hb-ot-math-get-glyph-kernings>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_59get_math_glyph_kernings = {"get_math_glyph_kernings", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_59get_math_glyph_kernings, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_58get_math_glyph_kernings};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_59get_math_glyph_kernings(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_glyph = 0;
  PyObject *__pyx_v_kern = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_math_glyph_kernings (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_glyph,&__pyx_mstate_global->__pyx_n_u_kern,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 1002, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 1002, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1002, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_math_glyph_kernings", 0) < (0)) __PYX_ERR(3, 1002, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_math_glyph_kernings", 1, 2, 2, i); __PYX_ERR(3, 1002, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1002, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 1002, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "glyph", 0) < (0)) __PYX_ERR(3, 1002, __pyx_L3_error)
    __pyx_v_glyph = ((PyObject*)values[0]);
    __pyx_v_kern = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_math_glyph_kernings", 1, 2, 2, __pyx_nargs); __PYX_ERR(3, 1002, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_math_glyph_kernings", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_glyph), (&PyLong_Type), 0, "glyph", 2))) __PYX_ERR(3, 1002, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_58get_math_glyph_kernings(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_glyph, __pyx_v_kern);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_58get_math_glyph_kernings(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_glyph, PyObject *__pyx_v_kern) {
  unsigned int __pyx_v_count;
  hb_ot_math_kern_entry_t __pyx_v_kerns_array[128];
  PyObject *__pyx_v_kerns = 0;
  unsigned int __pyx_v_i;
  unsigned int __pyx_v_start_offset;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  size_t __pyx_t_5;
  hb_codepoint_t __pyx_t_6;
  hb_ot_math_kern_t __pyx_t_7;
  unsigned int __pyx_t_8;
  unsigned int __pyx_t_9;
  unsigned int __pyx_t_10;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  int __pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_math_glyph_kernings", 0);

  /* "src/uharfbuzz/_font.pxi":1011
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-math.html#hb-ot-math-get-glyph-kernings>`_.
 *         """
 *         if kern >= len(OTMathKern):             # <<<<<<<<<<<<<<
 *             raise ValueError("invalid kern")
 *         cdef unsigned int count = STATIC_ARRAY_SIZE
*/
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_OTMathKern); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1011, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(3, 1011, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyLong_FromSsize_t(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1011, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = PyObject_RichCompare(__pyx_v_kern, __pyx_t_1, Py_GE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1011, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(3, 1011, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(__pyx_t_4)) {

    /* "src/uharfbuzz/_font.pxi":1012
 *         """
 *         if kern >= len(OTMathKern):
 *             raise ValueError("invalid kern")             # <<<<<<<<<<<<<<
 *         cdef unsigned int count = STATIC_ARRAY_SIZE
 *         cdef hb_ot_math_kern_entry_t kerns_array[STATIC_ARRAY_SIZE]
*/
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_invalid_kern};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1012, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(3, 1012, __pyx_L1_error)

    /* "src/uharfbuzz/_font.pxi":1011
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-math.html#hb-ot-math-get-glyph-kernings>`_.
 *         """
 *         if kern >= len(OTMathKern):             # <<<<<<<<<<<<<<
 *             raise ValueError("invalid kern")
 *         cdef unsigned int count = STATIC_ARRAY_SIZE
*/
  }

  /* "src/uharfbuzz/_font.pxi":1013
 *         if kern >= len(OTMathKern):
 *             raise ValueError("invalid kern")
 *         cdef unsigned int count = STATIC_ARRAY_SIZE             # <<<<<<<<<<<<<<
 *         cdef hb_ot_math_kern_entry_t kerns_array[STATIC_ARRAY_SIZE]
 *         cdef list kerns = []
*/
  __pyx_v_count = 0x80;

  /* "src/uharfbuzz/_font.pxi":1015
 *         cdef unsigned int count = STATIC_ARRAY_SIZE
 *         cdef hb_ot_math_kern_entry_t kerns_array[STATIC_ARRAY_SIZE]
 *         cdef list kerns = []             # <<<<<<<<<<<<<<
 *         cdef unsigned int i
 *         cdef unsigned int start_offset = 0
*/
  __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1015, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_v_kerns = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "src/uharfbuzz/_font.pxi":1017
 *         cdef list kerns = []
 *         cdef unsigned int i
 *         cdef unsigned int start_offset = 0             # <<<<<<<<<<<<<<
 *         while count == STATIC_ARRAY_SIZE:
 *             hb_ot_math_get_glyph_kernings(self._hb_font, glyph, kern, start_offset,
*/
  __pyx_v_start_offset = 0;

  /* "src/uharfbuzz/_font.pxi":1018
 *         cdef unsigned int i
 *         cdef unsigned int start_offset = 0
 *         while count == STATIC_ARRAY_SIZE:             # <<<<<<<<<<<<<<
 *             hb_ot_math_get_glyph_kernings(self._hb_font, glyph, kern, start_offset,
 *                 &count, kerns_array)
*/
  while (1) {
    __pyx_t_4 = (__pyx_v_count == 0x80);
    if (!__pyx_t_4) break;

    /* "src/uharfbuzz/_font.pxi":1019
 *         cdef unsigned int start_offset = 0
 *         while count == STATIC_ARRAY_SIZE:
 *             hb_ot_math_get_glyph_kernings(self._hb_font, glyph, kern, start_offset,             # <<<<<<<<<<<<<<
 *                 &count, kerns_array)
 *             for i in range(count):
*/
    __pyx_t_6 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_glyph); if (unlikely((__pyx_t_6 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 1019, __pyx_L1_error)
    __pyx_t_7 = ((hb_ot_math_kern_t)__Pyx_PyLong_As_hb_ot_math_kern_t(__pyx_v_kern)); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1019, __pyx_L1_error)

    /* "src/uharfbuzz/_font.pxi":1020
 *         while count == STATIC_ARRAY_SIZE:
 *             hb_ot_math_get_glyph_kernings(self._hb_font, glyph, kern, start_offset,
 *                 &count, kerns_array)             # <<<<<<<<<<<<<<
 *             for i in range(count):
 *                 kerns.append(OTMathKernEntry(kerns_array[i].max_correction_height, kerns_array[i].kern_value))
*/
    (void)(hb_ot_math_get_glyph_kernings(__pyx_v_self->_hb_font, __pyx_t_6, __pyx_t_7, __pyx_v_start_offset, (&__pyx_v_count), __pyx_v_kerns_array));

    /* "src/uharfbuzz/_font.pxi":1021
 *             hb_ot_math_get_glyph_kernings(self._hb_font, glyph, kern, start_offset,
 *                 &count, kerns_array)
 *             for i in range(count):             # <<<<<<<<<<<<<<
 *                 kerns.append(OTMathKernEntry(kerns_array[i].max_correction_height, kerns_array[i].kern_value))
 *             start_offset += count
*/
    __pyx_t_8 = __pyx_v_count;
    __pyx_t_9 = __pyx_t_8;
    for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_9; __pyx_t_10+=1) {
      __pyx_v_i = __pyx_t_10;

      /* "src/uharfbuzz/_font.pxi":1022
 *                 &count, kerns_array)
 *             for i in range(count):
 *                 kerns.append(OTMathKernEntry(kerns_array[i].max_correction_height, kerns_array[i].kern_value))             # <<<<<<<<<<<<<<
 *             start_offset += count
 *         return kerns
*/
      __pyx_t_1 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_OTMathKernEntry); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 1022, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      __pyx_t_12 = __Pyx_PyLong_From_hb_position_t((__pyx_v_kerns_array[__pyx_v_i]).max_correction_height); if (unlikely(!__pyx_t_12)) __PYX_ERR(3, 1022, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __pyx_t_13 = __Pyx_PyLong_From_hb_position_t((__pyx_v_kerns_array[__pyx_v_i]).kern_value); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 1022, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __pyx_t_5 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_11))) {
        __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_11);
        assert(__pyx_t_1);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_11);
        __Pyx_INCREF(__pyx_t_1);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_11, __pyx__function);
        __pyx_t_5 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[3] = {__pyx_t_1, __pyx_t_12, __pyx_t_13};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_11, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1022, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_kerns, __pyx_t_3); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 1022, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }

    /* "src/uharfbuzz/_font.pxi":1023
 *             for i in range(count):
 *                 kerns.append(OTMathKernEntry(kerns_array[i].max_correction_height, kerns_array[i].kern_value))
 *             start_offset += count             # <<<<<<<<<<<<<<
 *         return kerns
 * 
*/
    __pyx_v_start_offset = (__pyx_v_start_offset + __pyx_v_count);
  }

  /* "src/uharfbuzz/_font.pxi":1024
 *                 kerns.append(OTMathKernEntry(kerns_array[i].max_correction_height, kerns_array[i].kern_value))
 *             start_offset += count
 *         return kerns             # <<<<<<<<<<<<<<
 * 
 *     def get_math_glyph_variants(self, glyph: int, direction: str) -> List[OTMathGlyphVariant]:
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_kerns);
  __pyx_r = __pyx_v_kerns;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":1002
 *         return hb_ot_math_get_glyph_kerning(self._hb_font, glyph, kern, correction_height)
 * 
 *     def get_math_glyph_kernings(self, glyph: int, kern: OTMathKern) -> List[OTMathKernEntry]:             # <<<<<<<<<<<<<<
 *         """Fetches the raw MathKern (cut-in) data for the specified font,
 *         glyph index, and ``kern``.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_math_glyph_kernings", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_kerns);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":1026
 *         return kerns
 * 
 *     def get_math_glyph_variants(self, glyph: int, direction: str) -> List[OTMathGlyphVariant]:             # <<<<<<<<<<<<<<
 *         """Fetches the MathGlyphConstruction for the specified font, glyph
 *         index, and direction.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_61get_math_glyph_variants(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_60get_math_glyph_variants, "Fetches the MathGlyphConstruction for the specified font, glyph\n        index, and direction.\n\n        Wraps `hb_ot_math_get_glyph_variants()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-math.html#hb-ot-math-get-glyph-variants>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_61get_math_glyph_variants = {"get_math_glyph_variants", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_61get_math_glyph_variants, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_60get_math_glyph_variants};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_61get_math_glyph_variants(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_glyph = 0;
  PyObject *__pyx_v_direction = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_math_glyph_variants (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_glyph,&__pyx_mstate_global->__pyx_n_u_direction,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 1026, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 1026, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1026, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_math_glyph_variants", 0) < (0)) __PYX_ERR(3, 1026, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_math_glyph_variants", 1, 2, 2, i); __PYX_ERR(3, 1026, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1026, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 1026, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "glyph", 0) < (0)) __PYX_ERR(3, 1026, __pyx_L3_error)
    __pyx_v_glyph = ((PyObject*)values[0]);
    __pyx_v_direction = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_math_glyph_variants", 1, 2, 2, __pyx_nargs); __PYX_ERR(3, 1026, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_math_glyph_variants", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_glyph), (&PyLong_Type), 0, "glyph", 2))) __PYX_ERR(3, 1026, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_direction), (&PyUnicode_Type), 0, "direction", 2))) __PYX_ERR(3, 1026, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_60get_math_glyph_variants(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_glyph, __pyx_v_direction);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_60get_math_glyph_variants(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_glyph, PyObject *__pyx_v_direction) {
  PyObject *__pyx_v_packed = 0;
  char *__pyx_v_cstr;
  hb_direction_t __pyx_v_hb_direction;
  unsigned int __pyx_v_count;
  hb_ot_math_glyph_variant_t __pyx_v_variants_array[128];
  PyObject *__pyx_v_variants = 0;
  unsigned int __pyx_v_i;
  unsigned int __pyx_v_start_offset;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  char *__pyx_t_2;
  int __pyx_t_3;
  hb_codepoint_t __pyx_t_4;
  unsigned int __pyx_t_5;
  unsigned int __pyx_t_6;
  unsigned int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  size_t __pyx_t_12;
  int __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_math_glyph_variants", 0);

  /* "src/uharfbuzz/_font.pxi":1033
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-math.html#hb-ot-math-get-glyph-variants>`_.
 *         """
 *         cdef bytes packed = direction.encode()             # <<<<<<<<<<<<<<
 *         cdef char* cstr = packed
 *         cdef hb_direction_t hb_direction = hb_direction_from_string(cstr, -1)
*/
  __pyx_t_1 = PyUnicode_AsEncodedString(__pyx_v_direction, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1033, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_packed = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_font.pxi":1034
 *         """
 *         cdef bytes packed = direction.encode()
 *         cdef char* cstr = packed             # <<<<<<<<<<<<<<
 *         cdef hb_direction_t hb_direction = hb_direction_from_string(cstr, -1)
 *         cdef unsigned int count = STATIC_ARRAY_SIZE
*/
  __pyx_t_2 = __Pyx_PyBytes_AsWritableString(__pyx_v_packed); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(3, 1034, __pyx_L1_error)
  __pyx_v_cstr = __pyx_t_2;

  /* "src/uharfbuzz/_font.pxi":1035
 *         cdef bytes packed = direction.encode()
 *         cdef char* cstr = packed
 *         cdef hb_direction_t hb_direction = hb_direction_from_string(cstr, -1)             # <<<<<<<<<<<<<<
 *         cdef unsigned int count = STATIC_ARRAY_SIZE
 *         cdef hb_ot_math_glyph_variant_t variants_array[STATIC_ARRAY_SIZE]
*/
  __pyx_v_hb_direction = hb_direction_from_string(__pyx_v_cstr, -1);

  /* "src/uharfbuzz/_font.pxi":1036
 *         cdef char* cstr = packed
 *         cdef hb_direction_t hb_direction = hb_direction_from_string(cstr, -1)
 *         cdef unsigned int count = STATIC_ARRAY_SIZE             # <<<<<<<<<<<<<<
 *         cdef hb_ot_math_glyph_variant_t variants_array[STATIC_ARRAY_SIZE]
 *         cdef list variants = []
*/
  __pyx_v_count = 0x80;

  /* "src/uharfbuzz/_font.pxi":1038
 *         cdef unsigned int count = STATIC_ARRAY_SIZE
 *         cdef hb_ot_math_glyph_variant_t variants_array[STATIC_ARRAY_SIZE]
 *         cdef list variants = []             # <<<<<<<<<<<<<<
 *         cdef unsigned int i
 *         cdef unsigned int start_offset = 0
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1038, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_variants = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_font.pxi":1040
 *         cdef list variants = []
 *         cdef unsigned int i
 *         cdef unsigned int start_offset = 0             # <<<<<<<<<<<<<<
 *         while count == STATIC_ARRAY_SIZE:
 *             hb_ot_math_get_glyph_variants(self._hb_font, glyph, hb_direction, start_offset,
*/
  __pyx_v_start_offset = 0;

  /* "src/uharfbuzz/_font.pxi":1041
 *         cdef unsigned int i
 *         cdef unsigned int start_offset = 0
 *         while count == STATIC_ARRAY_SIZE:             # <<<<<<<<<<<<<<
 *             hb_ot_math_get_glyph_variants(self._hb_font, glyph, hb_direction, start_offset,
 *                 &count, variants_array)
*/
  while (1) {
    __pyx_t_3 = (__pyx_v_count == 0x80);
    if (!__pyx_t_3) break;

    /* "src/uharfbuzz/_font.pxi":1042
 *         cdef unsigned int start_offset = 0
 *         while count == STATIC_ARRAY_SIZE:
 *             hb_ot_math_get_glyph_variants(self._hb_font, glyph, hb_direction, start_offset,             # <<<<<<<<<<<<<<
 *                 &count, variants_array)
 *             for i in range(count):
*/
    __pyx_t_4 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_glyph); if (unlikely((__pyx_t_4 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 1042, __pyx_L1_error)

    /* "src/uharfbuzz/_font.pxi":1043
 *         while count == STATIC_ARRAY_SIZE:
 *             hb_ot_math_get_glyph_variants(self._hb_font, glyph, hb_direction, start_offset,
 *                 &count, variants_array)             # <<<<<<<<<<<<<<
 *             for i in range(count):
 *                 variants.append(OTMathGlyphVariant(variants_array[i].glyph, variants_array[i].advance))
*/
    (void)(hb_ot_math_get_glyph_variants(__pyx_v_self->_hb_font, __pyx_t_4, __pyx_v_hb_direction, __pyx_v_start_offset, (&__pyx_v_count), __pyx_v_variants_array));

    /* "src/uharfbuzz/_font.pxi":1044
 *             hb_ot_math_get_glyph_variants(self._hb_font, glyph, hb_direction, start_offset,
 *                 &count, variants_array)
 *             for i in range(count):             # <<<<<<<<<<<<<<
 *                 variants.append(OTMathGlyphVariant(variants_array[i].glyph, variants_array[i].advance))
 *             start_offset += count
*/
    __pyx_t_5 = __pyx_v_count;
    __pyx_t_6 = __pyx_t_5;
    for (__pyx_t_7 = 0; __pyx_t_7 < __pyx_t_6; __pyx_t_7+=1) {
      __pyx_v_i = __pyx_t_7;

      /* "src/uharfbuzz/_font.pxi":1045
 *                 &count, variants_array)
 *             for i in range(count):
 *                 variants.append(OTMathGlyphVariant(variants_array[i].glyph, variants_array[i].advance))             # <<<<<<<<<<<<<<
 *             start_offset += count
 *         return variants
*/
      __pyx_t_8 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_OTMathGlyphVariant); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1045, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_10 = __Pyx_PyLong_From_hb_codepoint_t((__pyx_v_variants_array[__pyx_v_i]).glyph); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 1045, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __pyx_t_11 = __Pyx_PyLong_From_hb_position_t((__pyx_v_variants_array[__pyx_v_i]).advance); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 1045, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      __pyx_t_12 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_9))) {
        __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_9);
        assert(__pyx_t_8);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_9);
        __Pyx_INCREF(__pyx_t_8);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_9, __pyx__function);
        __pyx_t_12 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[3] = {__pyx_t_8, __pyx_t_10, __pyx_t_11};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_9, __pyx_callargs+__pyx_t_12, (3-__pyx_t_12) | (__pyx_t_12*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1045, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __pyx_t_13 = __Pyx_PyList_Append(__pyx_v_variants, __pyx_t_1); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(3, 1045, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    }

    /* "src/uharfbuzz/_font.pxi":1046
 *             for i in range(count):
 *                 variants.append(OTMathGlyphVariant(variants_array[i].glyph, variants_array[i].advance))
 *             start_offset += count             # <<<<<<<<<<<<<<
 *         return variants
 * 
*/
    __pyx_v_start_offset = (__pyx_v_start_offset + __pyx_v_count);
  }

  /* "src/uharfbuzz/_font.pxi":1047
 *                 variants.append(OTMathGlyphVariant(variants_array[i].glyph, variants_array[i].advance))
 *             start_offset += count
 *         return variants             # <<<<<<<<<<<<<<
 * 
 *     def get_math_glyph_assembly(self, glyph: int, direction: str) -> Tuple[List[OTMathGlyphPart], int]:
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_variants);
  __pyx_r = __pyx_v_variants;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":1026
 *         return kerns
 * 
 *     def get_math_glyph_variants(self, glyph: int, direction: str) -> List[OTMathGlyphVariant]:             # <<<<<<<<<<<<<<
 *         """Fetches the MathGlyphConstruction for the specified font, glyph
 *         index, and direction.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_math_glyph_variants", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_XDECREF(__pyx_v_variants);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":1049
 *         return variants
 * 
 *     def get_math_glyph_assembly(self, glyph: int, direction: str) -> Tuple[List[OTMathGlyphPart], int]:             # <<<<<<<<<<<<<<
 *         """Fetches the GlyphAssembly for the specified font, glyph index,
 *         and direction.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_63get_math_glyph_assembly(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_62get_math_glyph_assembly, "Fetches the GlyphAssembly for the specified font, glyph index,\n        and direction.\n\n        :returns: A tuple ``(parts, italics_correction)`` of the glyph\n            parts returned and the italics correction of the glyph\n            assembly.\n\n        Wraps `hb_ot_math_get_glyph_assembly()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-math.html#hb-ot-math-get-glyph-assembly>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_63get_math_glyph_assembly = {"get_math_glyph_assembly", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_63get_math_glyph_assembly, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_62get_math_glyph_assembly};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_63get_math_glyph_assembly(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_glyph = 0;
  PyObject *__pyx_v_direction = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_math_glyph_assembly (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_glyph,&__pyx_mstate_global->__pyx_n_u_direction,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 1049, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 1049, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1049, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_math_glyph_assembly", 0) < (0)) __PYX_ERR(3, 1049, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_math_glyph_assembly", 1, 2, 2, i); __PYX_ERR(3, 1049, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1049, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 1049, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "glyph", 0) < (0)) __PYX_ERR(3, 1049, __pyx_L3_error)
    __pyx_v_glyph = ((PyObject*)values[0]);
    __pyx_v_direction = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_math_glyph_assembly", 1, 2, 2, __pyx_nargs); __PYX_ERR(3, 1049, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_math_glyph_assembly", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_glyph), (&PyLong_Type), 0, "glyph", 2))) __PYX_ERR(3, 1049, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_direction), (&PyUnicode_Type), 0, "direction", 2))) __PYX_ERR(3, 1049, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_62get_math_glyph_assembly(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_glyph, __pyx_v_direction);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_62get_math_glyph_assembly(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_glyph, PyObject *__pyx_v_direction) {
  PyObject *__pyx_v_packed = 0;
  char *__pyx_v_cstr;
  hb_direction_t __pyx_v_hb_direction;
  unsigned int __pyx_v_count;
  hb_ot_math_glyph_part_t __pyx_v_assembly_array[128];
  PyObject *__pyx_v_assembly = 0;
  unsigned int __pyx_v_i;
  unsigned int __pyx_v_start_offset;
  hb_position_t __pyx_v_italics_correction;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  char *__pyx_t_2;
  int __pyx_t_3;
  hb_codepoint_t __pyx_t_4;
  unsigned int __pyx_t_5;
  unsigned int __pyx_t_6;
  unsigned int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  size_t __pyx_t_18;
  int __pyx_t_19;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_math_glyph_assembly", 0);

  /* "src/uharfbuzz/_font.pxi":1060
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-math.html#hb-ot-math-get-glyph-assembly>`_.
 *         """
 *         cdef bytes packed = direction.encode()             # <<<<<<<<<<<<<<
 *         cdef char* cstr = packed
 *         cdef hb_direction_t hb_direction = hb_direction_from_string(cstr, -1)
*/
  __pyx_t_1 = PyUnicode_AsEncodedString(__pyx_v_direction, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1060, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_packed = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_font.pxi":1061
 *         """
 *         cdef bytes packed = direction.encode()
 *         cdef char* cstr = packed             # <<<<<<<<<<<<<<
 *         cdef hb_direction_t hb_direction = hb_direction_from_string(cstr, -1)
 *         cdef unsigned int count = STATIC_ARRAY_SIZE
*/
  __pyx_t_2 = __Pyx_PyBytes_AsWritableString(__pyx_v_packed); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(3, 1061, __pyx_L1_error)
  __pyx_v_cstr = __pyx_t_2;

  /* "src/uharfbuzz/_font.pxi":1062
 *         cdef bytes packed = direction.encode()
 *         cdef char* cstr = packed
 *         cdef hb_direction_t hb_direction = hb_direction_from_string(cstr, -1)             # <<<<<<<<<<<<<<
 *         cdef unsigned int count = STATIC_ARRAY_SIZE
 *         cdef hb_ot_math_glyph_part_t assembly_array[STATIC_ARRAY_SIZE]
*/
  __pyx_v_hb_direction = hb_direction_from_string(__pyx_v_cstr, -1);

  /* "src/uharfbuzz/_font.pxi":1063
 *         cdef char* cstr = packed
 *         cdef hb_direction_t hb_direction = hb_direction_from_string(cstr, -1)
 *         cdef unsigned int count = STATIC_ARRAY_SIZE             # <<<<<<<<<<<<<<
 *         cdef hb_ot_math_glyph_part_t assembly_array[STATIC_ARRAY_SIZE]
 *         cdef list assembly = []
*/
  __pyx_v_count = 0x80;

  /* "src/uharfbuzz/_font.pxi":1065
 *         cdef unsigned int count = STATIC_ARRAY_SIZE
 *         cdef hb_ot_math_glyph_part_t assembly_array[STATIC_ARRAY_SIZE]
 *         cdef list assembly = []             # <<<<<<<<<<<<<<
 *         cdef unsigned int i
 *         cdef unsigned int start_offset = 0
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1065, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_assembly = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_font.pxi":1067
 *         cdef list assembly = []
 *         cdef unsigned int i
 *         cdef unsigned int start_offset = 0             # <<<<<<<<<<<<<<
 *         cdef hb_position_t italics_correction = 0
 *         while count == STATIC_ARRAY_SIZE:
*/
  __pyx_v_start_offset = 0;

  /* "src/uharfbuzz/_font.pxi":1068
 *         cdef unsigned int i
 *         cdef unsigned int start_offset = 0
 *         cdef hb_position_t italics_correction = 0             # <<<<<<<<<<<<<<
 *         while count == STATIC_ARRAY_SIZE:
 *             hb_ot_math_get_glyph_assembly(self._hb_font,
*/
  __pyx_v_italics_correction = 0;

  /* "src/uharfbuzz/_font.pxi":1069
 *         cdef unsigned int start_offset = 0
 *         cdef hb_position_t italics_correction = 0
 *         while count == STATIC_ARRAY_SIZE:             # <<<<<<<<<<<<<<
 *             hb_ot_math_get_glyph_assembly(self._hb_font,
 *                 glyph, hb_direction, start_offset,
*/
  while (1) {
    __pyx_t_3 = (__pyx_v_count == 0x80);
    if (!__pyx_t_3) break;

    /* "src/uharfbuzz/_font.pxi":1071
 *         while count == STATIC_ARRAY_SIZE:
 *             hb_ot_math_get_glyph_assembly(self._hb_font,
 *                 glyph, hb_direction, start_offset,             # <<<<<<<<<<<<<<
 *                 &count, assembly_array, &italics_correction)
 *             for i in range(count):
*/
    __pyx_t_4 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_glyph); if (unlikely((__pyx_t_4 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 1071, __pyx_L1_error)

    /* "src/uharfbuzz/_font.pxi":1070
 *         cdef hb_position_t italics_correction = 0
 *         while count == STATIC_ARRAY_SIZE:
 *             hb_ot_math_get_glyph_assembly(self._hb_font,             # <<<<<<<<<<<<<<
 *                 glyph, hb_direction, start_offset,
 *                 &count, assembly_array, &italics_correction)
*/
    (void)(hb_ot_math_get_glyph_assembly(__pyx_v_self->_hb_font, __pyx_t_4, __pyx_v_hb_direction, __pyx_v_start_offset, (&__pyx_v_count), __pyx_v_assembly_array, (&__pyx_v_italics_correction)));

    /* "src/uharfbuzz/_font.pxi":1073
 *                 glyph, hb_direction, start_offset,
 *                 &count, assembly_array, &italics_correction)
 *             for i in range(count):             # <<<<<<<<<<<<<<
 *                 assembly.append(
 *                     OTMathGlyphPart(assembly_array[i].glyph, assembly_array[i].start_connector_length,
*/
    __pyx_t_5 = __pyx_v_count;
    __pyx_t_6 = __pyx_t_5;
    for (__pyx_t_7 = 0; __pyx_t_7 < __pyx_t_6; __pyx_t_7+=1) {
      __pyx_v_i = __pyx_t_7;

      /* "src/uharfbuzz/_font.pxi":1075
 *             for i in range(count):
 *                 assembly.append(
 *                     OTMathGlyphPart(assembly_array[i].glyph, assembly_array[i].start_connector_length,             # <<<<<<<<<<<<<<
 *                         assembly_array[i].end_connector_length, assembly_array[i].full_advance,
 *                         OTMathGlyphPartFlags(assembly_array[i].flags)))
*/
      __pyx_t_8 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_OTMathGlyphPart); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1075, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_10 = __Pyx_PyLong_From_hb_codepoint_t((__pyx_v_assembly_array[__pyx_v_i]).glyph); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 1075, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __pyx_t_11 = __Pyx_PyLong_From_hb_position_t((__pyx_v_assembly_array[__pyx_v_i]).start_connector_length); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 1075, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);

      /* "src/uharfbuzz/_font.pxi":1076
 *                 assembly.append(
 *                     OTMathGlyphPart(assembly_array[i].glyph, assembly_array[i].start_connector_length,
 *                         assembly_array[i].end_connector_length, assembly_array[i].full_advance,             # <<<<<<<<<<<<<<
 *                         OTMathGlyphPartFlags(assembly_array[i].flags)))
 *             start_offset += count
*/
      __pyx_t_12 = __Pyx_PyLong_From_hb_position_t((__pyx_v_assembly_array[__pyx_v_i]).end_connector_length); if (unlikely(!__pyx_t_12)) __PYX_ERR(3, 1076, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __pyx_t_13 = __Pyx_PyLong_From_hb_position_t((__pyx_v_assembly_array[__pyx_v_i]).full_advance); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 1076, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);

      /* "src/uharfbuzz/_font.pxi":1077
 *                     OTMathGlyphPart(assembly_array[i].glyph, assembly_array[i].start_connector_length,
 *                         assembly_array[i].end_connector_length, assembly_array[i].full_advance,
 *                         OTMathGlyphPartFlags(assembly_array[i].flags)))             # <<<<<<<<<<<<<<
 *             start_offset += count
 *         return assembly, italics_correction
*/
      __pyx_t_15 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_OTMathGlyphPartFlags); if (unlikely(!__pyx_t_16)) __PYX_ERR(3, 1077, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_16);
      __pyx_t_17 = __Pyx_PyLong_From_hb_ot_math_glyph_part_flags_t((__pyx_v_assembly_array[__pyx_v_i]).flags); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 1077, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_17);
      __pyx_t_18 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_16))) {
        __pyx_t_15 = PyMethod_GET_SELF(__pyx_t_16);
        assert(__pyx_t_15);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_16);
        __Pyx_INCREF(__pyx_t_15);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_16, __pyx__function);
        __pyx_t_18 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_15, __pyx_t_17};
        __pyx_t_14 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_16, __pyx_callargs+__pyx_t_18, (2-__pyx_t_18) | (__pyx_t_18*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
        __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;
        __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
        if (unlikely(!__pyx_t_14)) __PYX_ERR(3, 1077, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
      }
      __pyx_t_18 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_9))) {
        __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_9);
        assert(__pyx_t_8);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_9);
        __Pyx_INCREF(__pyx_t_8);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_9, __pyx__function);
        __pyx_t_18 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[6] = {__pyx_t_8, __pyx_t_10, __pyx_t_11, __pyx_t_12, __pyx_t_13, __pyx_t_14};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_9, __pyx_callargs+__pyx_t_18, (6-__pyx_t_18) | (__pyx_t_18*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1075, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }

      /* "src/uharfbuzz/_font.pxi":1074
 *                 &count, assembly_array, &italics_correction)
 *             for i in range(count):
 *                 assembly.append(             # <<<<<<<<<<<<<<
 *                     OTMathGlyphPart(assembly_array[i].glyph, assembly_array[i].start_connector_length,
 *                         assembly_array[i].end_connector_length, assembly_array[i].full_advance,
*/
      __pyx_t_19 = __Pyx_PyList_Append(__pyx_v_assembly, __pyx_t_1); if (unlikely(__pyx_t_19 == ((int)-1))) __PYX_ERR(3, 1074, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    }

    /* "src/uharfbuzz/_font.pxi":1078
 *                         assembly_array[i].end_connector_length, assembly_array[i].full_advance,
 *                         OTMathGlyphPartFlags(assembly_array[i].flags)))
 *             start_offset += count             # <<<<<<<<<<<<<<
 *         return assembly, italics_correction
 * 
*/
    __pyx_v_start_offset = (__pyx_v_start_offset + __pyx_v_count);
  }

  /* "src/uharfbuzz/_font.pxi":1079
 *                         OTMathGlyphPartFlags(assembly_array[i].flags)))
 *             start_offset += count
 *         return assembly, italics_correction             # <<<<<<<<<<<<<<
 * 
 *     # metrics
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_hb_position_t(__pyx_v_italics_correction); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1079, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1079, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_INCREF(__pyx_v_assembly);
  __Pyx_GIVEREF(__pyx_v_assembly);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_v_assembly) != (0)) __PYX_ERR(3, 1079, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_1) != (0)) __PYX_ERR(3, 1079, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = ((PyObject*)__pyx_t_9);
  __pyx_t_9 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":1049
 *         return variants
 * 
 *     def get_math_glyph_assembly(self, glyph: int, direction: str) -> Tuple[List[OTMathGlyphPart], int]:             # <<<<<<<<<<<<<<
 *         """Fetches the GlyphAssembly for the specified font, glyph index,
 *         and direction.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_XDECREF(__pyx_t_15);
  __Pyx_XDECREF(__pyx_t_16);
  __Pyx_XDECREF(__pyx_t_17);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_math_glyph_assembly", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_XDECREF(__pyx_v_assembly);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":1082
 * 
 *     # metrics
 *     def get_metric_position(self, tag: OTMetricsTag) -> int | None:             # <<<<<<<<<<<<<<
 *         """Fetches metrics value corresponding to ``tag`` from the font.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_65get_metric_position(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_64get_metric_position, "Fetches metrics value corresponding to ``tag`` from the font.\n\n        :returns: The metrics value from the font, or ``None`` if not\n            found.\n\n        Wraps `hb_ot_metrics_get_position()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-metrics.html#hb-ot-metrics-get-position>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_65get_metric_position = {"get_metric_position", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_65get_metric_position, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_64get_metric_position};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_65get_metric_position(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_tag = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_metric_position (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_tag,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 1082, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1082, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_metric_position", 0) < (0)) __PYX_ERR(3, 1082, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_metric_position", 1, 1, 1, i); __PYX_ERR(3, 1082, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1082, __pyx_L3_error)
    }
    __pyx_v_tag = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_metric_position", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 1082, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_metric_position", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_64get_metric_position(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_tag);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_64get_metric_position(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_tag) {
  hb_position_t __pyx_v_position;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  hb_ot_metrics_tag_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_metric_position", 0);

  /* "src/uharfbuzz/_font.pxi":1092
 *         """
 *         cdef hb_position_t position
 *         if hb_ot_metrics_get_position(self._hb_font, tag, &position):             # <<<<<<<<<<<<<<
 *             return position
 *         return None
*/
  __pyx_t_1 = ((hb_ot_metrics_tag_t)__Pyx_PyLong_As_hb_ot_metrics_tag_t(__pyx_v_tag)); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1092, __pyx_L1_error)
  __pyx_t_2 = (hb_ot_metrics_get_position(__pyx_v_self->_hb_font, __pyx_t_1, (&__pyx_v_position)) != 0);
  if (__pyx_t_2) {

    /* "src/uharfbuzz/_font.pxi":1093
 *         cdef hb_position_t position
 *         if hb_ot_metrics_get_position(self._hb_font, tag, &position):
 *             return position             # <<<<<<<<<<<<<<
 *         return None
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = __Pyx_PyLong_From_hb_position_t(__pyx_v_position); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1093, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (__Pyx_PyInt_FromNumber(&__pyx_t_3, NULL, 0) < (0)) __PYX_ERR(3, 1093, __pyx_L1_error)
    __pyx_r = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "src/uharfbuzz/_font.pxi":1092
 *         """
 *         cdef hb_position_t position
 *         if hb_ot_metrics_get_position(self._hb_font, tag, &position):             # <<<<<<<<<<<<<<
 *             return position
 *         return None
*/
  }

  /* "src/uharfbuzz/_font.pxi":1094
 *         if hb_ot_metrics_get_position(self._hb_font, tag, &position):
 *             return position
 *         return None             # <<<<<<<<<<<<<<
 * 
 *     def get_metric_position_with_fallback(self, tag: OTMetricsTag) -> int:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_r = ((PyObject*)Py_None); __Pyx_INCREF(Py_None);
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":1082
 * 
 *     # metrics
 *     def get_metric_position(self, tag: OTMetricsTag) -> int | None:             # <<<<<<<<<<<<<<
 *         """Fetches metrics value corresponding to ``tag`` from the font.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_metric_position", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":1096
 *         return None
 * 
 *     def get_metric_position_with_fallback(self, tag: OTMetricsTag) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches metrics value corresponding to ``tag`` from the font, and
 *         synthesizes a value if the value is missing in the font.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_67get_metric_position_with_fallback(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_66get_metric_position_with_fallback, "Fetches metrics value corresponding to ``tag`` from the font, and\n        synthesizes a value if the value is missing in the font.\n\n        Wraps `hb_ot_metrics_get_position_with_fallback()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-metrics.html#hb-ot-metrics-get-position-with-fallback>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_67get_metric_position_with_fallback = {"get_metric_position_with_fallback", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_67get_metric_position_with_fallback, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_66get_metric_position_with_fallback};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_67get_metric_position_with_fallback(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_tag = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_metric_position_with_fallback (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_tag,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 1096, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1096, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_metric_position_with_fallback", 0) < (0)) __PYX_ERR(3, 1096, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_metric_position_with_fallback", 1, 1, 1, i); __PYX_ERR(3, 1096, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1096, __pyx_L3_error)
    }
    __pyx_v_tag = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_metric_position_with_fallback", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 1096, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_metric_position_with_fallback", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_66get_metric_position_with_fallback(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_tag);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_66get_metric_position_with_fallback(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_tag) {
  hb_position_t __pyx_v_position;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  hb_ot_metrics_tag_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_metric_position_with_fallback", 0);

  /* "src/uharfbuzz/_font.pxi":1104
 *         """
 *         cdef hb_position_t position
 *         hb_ot_metrics_get_position_with_fallback(self._hb_font, tag, &position)             # <<<<<<<<<<<<<<
 *         return position
 * 
*/
  __pyx_t_1 = ((hb_ot_metrics_tag_t)__Pyx_PyLong_As_hb_ot_metrics_tag_t(__pyx_v_tag)); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1104, __pyx_L1_error)
  hb_ot_metrics_get_position_with_fallback(__pyx_v_self->_hb_font, __pyx_t_1, (&__pyx_v_position));

  /* "src/uharfbuzz/_font.pxi":1105
 *         cdef hb_position_t position
 *         hb_ot_metrics_get_position_with_fallback(self._hb_font, tag, &position)
 *         return position             # <<<<<<<<<<<<<<
 * 
 *     def get_metric_variation(self, tag: OTMetricsTag) -> float:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyLong_From_hb_position_t(__pyx_v_position); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1105, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_PyInt_FromNumber(&__pyx_t_2, NULL, 0) < (0)) __PYX_ERR(3, 1105, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":1096
 *         return None
 * 
 *     def get_metric_position_with_fallback(self, tag: OTMetricsTag) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches metrics value corresponding to ``tag`` from the font, and
 *         synthesizes a value if the value is missing in the font.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_metric_position_with_fallback", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":1107
 *         return position
 * 
 *     def get_metric_variation(self, tag: OTMetricsTag) -> float:             # <<<<<<<<<<<<<<
 *         """Fetches metrics value corresponding to ``tag`` from the font with
 *         the current font variation settings applied.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_69get_metric_variation(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_68get_metric_variation, "Fetches metrics value corresponding to ``tag`` from the font with\n        the current font variation settings applied.\n\n        Wraps `hb_ot_metrics_get_variation()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-metrics.html#hb-ot-metrics-get-variation>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_69get_metric_variation = {"get_metric_variation", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_69get_metric_variation, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_68get_metric_variation};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_69get_metric_variation(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_tag = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_metric_variation (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_tag,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 1107, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1107, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_metric_variation", 0) < (0)) __PYX_ERR(3, 1107, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_metric_variation", 1, 1, 1, i); __PYX_ERR(3, 1107, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1107, __pyx_L3_error)
    }
    __pyx_v_tag = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_metric_variation", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 1107, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_metric_variation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_68get_metric_variation(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_tag);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_68get_metric_variation(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_tag) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  hb_ot_metrics_tag_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_metric_variation", 0);

  /* "src/uharfbuzz/_font.pxi":1114
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-metrics.html#hb-ot-metrics-get-variation>`_.
 *         """
 *         return hb_ot_metrics_get_variation(self._hb_font, tag)             # <<<<<<<<<<<<<<
 * 
 *     def get_metric_x_variation(self, tag: OTMetricsTag) -> int:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((hb_ot_metrics_tag_t)__Pyx_PyLong_As_hb_ot_metrics_tag_t(__pyx_v_tag)); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1114, __pyx_L1_error)
  __pyx_t_2 = PyFloat_FromDouble(hb_ot_metrics_get_variation(__pyx_v_self->_hb_font, __pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1114, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":1107
 *         return position
 * 
 *     def get_metric_variation(self, tag: OTMetricsTag) -> float:             # <<<<<<<<<<<<<<
 *         """Fetches metrics value corresponding to ``tag`` from the font with
 *         the current font variation settings applied.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_metric_variation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":1116
 *         return hb_ot_metrics_get_variation(self._hb_font, tag)
 * 
 *     def get_metric_x_variation(self, tag: OTMetricsTag) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches horizontal metrics value corresponding to ``tag`` from
 *         the font with the current font variation settings applied.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_71get_metric_x_variation(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_70get_metric_x_variation, "Fetches horizontal metrics value corresponding to ``tag`` from\n        the font with the current font variation settings applied.\n\n        Wraps `hb_ot_metrics_get_x_variation()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-metrics.html#hb-ot-metrics-get-x-variation>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_71get_metric_x_variation = {"get_metric_x_variation", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_71get_metric_x_variation, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_70get_metric_x_variation};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_71get_metric_x_variation(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_tag = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_metric_x_variation (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_tag,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 1116, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1116, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_metric_x_variation", 0) < (0)) __PYX_ERR(3, 1116, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_metric_x_variation", 1, 1, 1, i); __PYX_ERR(3, 1116, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1116, __pyx_L3_error)
    }
    __pyx_v_tag = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_metric_x_variation", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 1116, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_metric_x_variation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_70get_metric_x_variation(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_tag);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_70get_metric_x_variation(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_tag) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  hb_ot_metrics_tag_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_metric_x_variation", 0);

  /* "src/uharfbuzz/_font.pxi":1123
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-metrics.html#hb-ot-metrics-get-x-variation>`_.
 *         """
 *         return hb_ot_metrics_get_x_variation(self._hb_font, tag)             # <<<<<<<<<<<<<<
 * 
 *     def get_metric_y_variation(self, tag: OTMetricsTag) -> int:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((hb_ot_metrics_tag_t)__Pyx_PyLong_As_hb_ot_metrics_tag_t(__pyx_v_tag)); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1123, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyLong_From_hb_position_t(hb_ot_metrics_get_x_variation(__pyx_v_self->_hb_font, __pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1123, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_PyInt_FromNumber(&__pyx_t_2, NULL, 0) < (0)) __PYX_ERR(3, 1123, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":1116
 *         return hb_ot_metrics_get_variation(self._hb_font, tag)
 * 
 *     def get_metric_x_variation(self, tag: OTMetricsTag) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches horizontal metrics value corresponding to ``tag`` from
 *         the font with the current font variation settings applied.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_metric_x_variation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":1125
 *         return hb_ot_metrics_get_x_variation(self._hb_font, tag)
 * 
 *     def get_metric_y_variation(self, tag: OTMetricsTag) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches vertical metrics value corresponding to ``tag`` from the
 *         font with the current font variation settings applied.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_73get_metric_y_variation(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_72get_metric_y_variation, "Fetches vertical metrics value corresponding to ``tag`` from the\n        font with the current font variation settings applied.\n\n        Wraps `hb_ot_metrics_get_y_variation()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-metrics.html#hb-ot-metrics-get-y-variation>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_73get_metric_y_variation = {"get_metric_y_variation", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_73get_metric_y_variation, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_72get_metric_y_variation};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_73get_metric_y_variation(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_tag = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_metric_y_variation (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_tag,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 1125, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1125, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_metric_y_variation", 0) < (0)) __PYX_ERR(3, 1125, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_metric_y_variation", 1, 1, 1, i); __PYX_ERR(3, 1125, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1125, __pyx_L3_error)
    }
    __pyx_v_tag = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_metric_y_variation", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 1125, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_metric_y_variation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_72get_metric_y_variation(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_tag);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_72get_metric_y_variation(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_tag) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  hb_ot_metrics_tag_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_metric_y_variation", 0);

  /* "src/uharfbuzz/_font.pxi":1132
 *         <https://harfbuzz.github.io/harfbuzz-hb-ot-metrics.html#hb-ot-metrics-get-y-variation>`_.
 *         """
 *         return hb_ot_metrics_get_y_variation(self._hb_font, tag)             # <<<<<<<<<<<<<<
 * 
 *     # color
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((hb_ot_metrics_tag_t)__Pyx_PyLong_As_hb_ot_metrics_tag_t(__pyx_v_tag)); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1132, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyLong_From_hb_position_t(hb_ot_metrics_get_y_variation(__pyx_v_self->_hb_font, __pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1132, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_PyInt_FromNumber(&__pyx_t_2, NULL, 0) < (0)) __PYX_ERR(3, 1132, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":1125
 *         return hb_ot_metrics_get_x_variation(self._hb_font, tag)
 * 
 *     def get_metric_y_variation(self, tag: OTMetricsTag) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches vertical metrics value corresponding to ``tag`` from the
 *         font with the current font variation settings applied.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_metric_y_variation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":1135
 * 
 *     # color
 *     def get_glyph_color_png(self, glyph: int) -> Blob:             # <<<<<<<<<<<<<<
 *         """Fetches the PNG image for a glyph. This function takes a font
 *         object, not a face object, as input. To get an optimally sized PNG
*/

/* Python wrapper */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_75get_glyph_color_png(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_74get_glyph_color_png, "Fetches the PNG image for a glyph. This function takes a font\n        object, not a face object, as input. To get an optimally sized PNG\n        blob, the PPEM values must be set on the font object. If PPEM is\n        unset, the blob returned will be the largest PNG available.\n\n        If the glyph has no PNG image, the singleton empty blob is returned.\n\n        Wraps `hb_ot_color_glyph_reference_png()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-color.html#hb-ot-color-glyph-reference-png>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_75get_glyph_color_png = {"get_glyph_color_png", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_75get_glyph_color_png, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_74get_glyph_color_png};
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_75get_glyph_color_png(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_glyph = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_glyph_color_png (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_glyph,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 1135, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1135, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_glyph_color_png", 0) < (0)) __PYX_ERR(3, 1135, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_glyph_color_png", 1, 1, 1, i); __PYX_ERR(3, 1135, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1135, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "glyph", 0) < (0)) __PYX_ERR(3, 1135, __pyx_L3_error)
    __pyx_v_glyph = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_glyph_color_png", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 1135, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_glyph_color_png", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_glyph), (&PyLong_Type), 0, "glyph", 2))) __PYX_ERR(3, 1135, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_74get_glyph_color_png(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_glyph);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_74get_glyph_color_png(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_glyph) {
  hb_blob_t *__pyx_v_blob;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  hb_codepoint_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_glyph_color_png", 0);

  /* "src/uharfbuzz/_font.pxi":1147
 *         """
 *         cdef hb_blob_t* blob
 *         blob = hb_ot_color_glyph_reference_png(self._hb_font, glyph)             # <<<<<<<<<<<<<<
 *         return Blob.from_ptr(blob)
 * 
*/
  __pyx_t_1 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_glyph); if (unlikely((__pyx_t_1 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 1147, __pyx_L1_error)
  __pyx_v_blob = hb_ot_color_glyph_reference_png(__pyx_v_self->_hb_font, __pyx_t_1);

  /* "src/uharfbuzz/_font.pxi":1148
 *         cdef hb_blob_t* blob
 *         blob = hb_ot_color_glyph_reference_png(self._hb_font, glyph)
 *         return Blob.from_ptr(blob)             # <<<<<<<<<<<<<<
 * 
 *     #layout
*/
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_f_9uharfbuzz_9_harfbuzz_4Blob_from_ptr(__pyx_v_blob)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1148, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":1135
 * 
 *     # color
 *     def get_glyph_color_png(self, glyph: int) -> Blob:             # <<<<<<<<<<<<<<
 *         """Fetches the PNG image for a glyph. This function takes a font
 *         object, not a face object, as input. To get an optimally sized PNG
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_glyph_color_png", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":1151
 * 
 *     #layout
 *     def get_layout_baseline(self,             # <<<<<<<<<<<<<<
 *                            baseline_tag: str,
 *                            direction: str,
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_77get_layout_baseline(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_76get_layout_baseline, "Fetches a baseline value from the font.\n\n        :param baseline_tag: A baseline tag.\n        :param direction: Text direction.\n        :param script_tag: Script tag.\n        :param language_tag: Language tag, currently unused.\n\n        :returns: The baseline value if found, or ``None`` otherwise.\n\n        :raises ValueError: If ``baseline_tag`` is not recognized.\n\n        Wraps `hb_ot_layout_get_baseline()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-layout.html#hb-ot-layout-get-baseline>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_77get_layout_baseline = {"get_layout_baseline", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_77get_layout_baseline, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_76get_layout_baseline};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_77get_layout_baseline(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_baseline_tag = 0;
  PyObject *__pyx_v_direction = 0;
  PyObject *__pyx_v_script_tag = 0;
  PyObject *__pyx_v_language_tag = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_layout_baseline (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_baseline_tag,&__pyx_mstate_global->__pyx_n_u_direction,&__pyx_mstate_global->__pyx_n_u_script_tag,&__pyx_mstate_global->__pyx_n_u_language_tag,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 1151, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(3, 1151, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(3, 1151, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 1151, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1151, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_layout_baseline", 0) < (0)) __PYX_ERR(3, 1151, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_layout_baseline", 1, 4, 4, i); __PYX_ERR(3, 1151, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1151, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 1151, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(3, 1151, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(3, 1151, __pyx_L3_error)
    }
    __pyx_v_baseline_tag = ((PyObject*)values[0]);
    __pyx_v_direction = ((PyObject*)values[1]);
    __pyx_v_script_tag = ((PyObject*)values[2]);
    __pyx_v_language_tag = ((PyObject*)values[3]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_layout_baseline", 1, 4, 4, __pyx_nargs); __PYX_ERR(3, 1151, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_layout_baseline", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_baseline_tag), (&PyUnicode_Type), 0, "baseline_tag", 2))) __PYX_ERR(3, 1152, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_direction), (&PyUnicode_Type), 0, "direction", 2))) __PYX_ERR(3, 1153, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_script_tag), (&PyUnicode_Type), 0, "script_tag", 2))) __PYX_ERR(3, 1154, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_language_tag), (&PyUnicode_Type), 0, "language_tag", 2))) __PYX_ERR(3, 1155, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_76get_layout_baseline(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_baseline_tag, __pyx_v_direction, __pyx_v_script_tag, __pyx_v_language_tag);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_76get_layout_baseline(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_baseline_tag, PyObject *__pyx_v_direction, PyObject *__pyx_v_script_tag, PyObject *__pyx_v_language_tag) {
  hb_ot_layout_baseline_tag_t __pyx_v_hb_baseline_tag;
  hb_direction_t __pyx_v_hb_direction;
  hb_tag_t __pyx_v_hb_script_tag;
  hb_tag_t __pyx_v_hb_language_tag;
  hb_position_t __pyx_v_hb_position;
  hb_bool_t __pyx_v_success;
  PyObject *__pyx_v_packed = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4[3];
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  char *__pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_layout_baseline", 0);

  /* "src/uharfbuzz/_font.pxi":1178
 *         cdef bytes packed
 * 
 *         if baseline_tag == "romn":             # <<<<<<<<<<<<<<
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_ROMAN
 *         elif baseline_tag == "hang":
*/
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_baseline_tag, __pyx_mstate_global->__pyx_n_u_romn, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(3, 1178, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_font.pxi":1179
 * 
 *         if baseline_tag == "romn":
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_ROMAN             # <<<<<<<<<<<<<<
 *         elif baseline_tag == "hang":
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_HANGING
*/
    __pyx_v_hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_ROMAN;

    /* "src/uharfbuzz/_font.pxi":1178
 *         cdef bytes packed
 * 
 *         if baseline_tag == "romn":             # <<<<<<<<<<<<<<
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_ROMAN
 *         elif baseline_tag == "hang":
*/
    goto __pyx_L3;
  }

  /* "src/uharfbuzz/_font.pxi":1180
 *         if baseline_tag == "romn":
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_ROMAN
 *         elif baseline_tag == "hang":             # <<<<<<<<<<<<<<
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_HANGING
 *         elif baseline_tag == "icfb":
*/
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_baseline_tag, __pyx_mstate_global->__pyx_n_u_hang, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(3, 1180, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_font.pxi":1181
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_ROMAN
 *         elif baseline_tag == "hang":
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_HANGING             # <<<<<<<<<<<<<<
 *         elif baseline_tag == "icfb":
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_IDEO_FACE_BOTTOM_OR_LEFT
*/
    __pyx_v_hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_HANGING;

    /* "src/uharfbuzz/_font.pxi":1180
 *         if baseline_tag == "romn":
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_ROMAN
 *         elif baseline_tag == "hang":             # <<<<<<<<<<<<<<
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_HANGING
 *         elif baseline_tag == "icfb":
*/
    goto __pyx_L3;
  }

  /* "src/uharfbuzz/_font.pxi":1182
 *         elif baseline_tag == "hang":
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_HANGING
 *         elif baseline_tag == "icfb":             # <<<<<<<<<<<<<<
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_IDEO_FACE_BOTTOM_OR_LEFT
 *         elif baseline_tag == "icft":
*/
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_baseline_tag, __pyx_mstate_global->__pyx_n_u_icfb, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(3, 1182, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_font.pxi":1183
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_HANGING
 *         elif baseline_tag == "icfb":
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_IDEO_FACE_BOTTOM_OR_LEFT             # <<<<<<<<<<<<<<
 *         elif baseline_tag == "icft":
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_IDEO_FACE_TOP_OR_RIGHT
*/
    __pyx_v_hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_IDEO_FACE_BOTTOM_OR_LEFT;

    /* "src/uharfbuzz/_font.pxi":1182
 *         elif baseline_tag == "hang":
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_HANGING
 *         elif baseline_tag == "icfb":             # <<<<<<<<<<<<<<
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_IDEO_FACE_BOTTOM_OR_LEFT
 *         elif baseline_tag == "icft":
*/
    goto __pyx_L3;
  }

  /* "src/uharfbuzz/_font.pxi":1184
 *         elif baseline_tag == "icfb":
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_IDEO_FACE_BOTTOM_OR_LEFT
 *         elif baseline_tag == "icft":             # <<<<<<<<<<<<<<
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_IDEO_FACE_TOP_OR_RIGHT
 *         elif baseline_tag == "ideo":
*/
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_baseline_tag, __pyx_mstate_global->__pyx_n_u_icft, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(3, 1184, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_font.pxi":1185
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_IDEO_FACE_BOTTOM_OR_LEFT
 *         elif baseline_tag == "icft":
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_IDEO_FACE_TOP_OR_RIGHT             # <<<<<<<<<<<<<<
 *         elif baseline_tag == "ideo":
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_IDEO_EMBOX_BOTTOM_OR_LEFT
*/
    __pyx_v_hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_IDEO_FACE_TOP_OR_RIGHT;

    /* "src/uharfbuzz/_font.pxi":1184
 *         elif baseline_tag == "icfb":
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_IDEO_FACE_BOTTOM_OR_LEFT
 *         elif baseline_tag == "icft":             # <<<<<<<<<<<<<<
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_IDEO_FACE_TOP_OR_RIGHT
 *         elif baseline_tag == "ideo":
*/
    goto __pyx_L3;
  }

  /* "src/uharfbuzz/_font.pxi":1186
 *         elif baseline_tag == "icft":
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_IDEO_FACE_TOP_OR_RIGHT
 *         elif baseline_tag == "ideo":             # <<<<<<<<<<<<<<
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_IDEO_EMBOX_BOTTOM_OR_LEFT
 *         elif baseline_tag == "idtp":
*/
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_baseline_tag, __pyx_mstate_global->__pyx_n_u_ideo, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(3, 1186, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_font.pxi":1187
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_IDEO_FACE_TOP_OR_RIGHT
 *         elif baseline_tag == "ideo":
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_IDEO_EMBOX_BOTTOM_OR_LEFT             # <<<<<<<<<<<<<<
 *         elif baseline_tag == "idtp":
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_IDEO_EMBOX_TOP_OR_RIGHT
*/
    __pyx_v_hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_IDEO_EMBOX_BOTTOM_OR_LEFT;

    /* "src/uharfbuzz/_font.pxi":1186
 *         elif baseline_tag == "icft":
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_IDEO_FACE_TOP_OR_RIGHT
 *         elif baseline_tag == "ideo":             # <<<<<<<<<<<<<<
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_IDEO_EMBOX_BOTTOM_OR_LEFT
 *         elif baseline_tag == "idtp":
*/
    goto __pyx_L3;
  }

  /* "src/uharfbuzz/_font.pxi":1188
 *         elif baseline_tag == "ideo":
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_IDEO_EMBOX_BOTTOM_OR_LEFT
 *         elif baseline_tag == "idtp":             # <<<<<<<<<<<<<<
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_IDEO_EMBOX_TOP_OR_RIGHT
 *         elif baseline_tag == "math":
*/
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_baseline_tag, __pyx_mstate_global->__pyx_n_u_idtp, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(3, 1188, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_font.pxi":1189
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_IDEO_EMBOX_BOTTOM_OR_LEFT
 *         elif baseline_tag == "idtp":
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_IDEO_EMBOX_TOP_OR_RIGHT             # <<<<<<<<<<<<<<
 *         elif baseline_tag == "math":
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_MATH
*/
    __pyx_v_hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_IDEO_EMBOX_TOP_OR_RIGHT;

    /* "src/uharfbuzz/_font.pxi":1188
 *         elif baseline_tag == "ideo":
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_IDEO_EMBOX_BOTTOM_OR_LEFT
 *         elif baseline_tag == "idtp":             # <<<<<<<<<<<<<<
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_IDEO_EMBOX_TOP_OR_RIGHT
 *         elif baseline_tag == "math":
*/
    goto __pyx_L3;
  }

  /* "src/uharfbuzz/_font.pxi":1190
 *         elif baseline_tag == "idtp":
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_IDEO_EMBOX_TOP_OR_RIGHT
 *         elif baseline_tag == "math":             # <<<<<<<<<<<<<<
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_MATH
 *         else:
*/
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_baseline_tag, __pyx_mstate_global->__pyx_n_u_math, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(3, 1190, __pyx_L1_error)
  if (likely(__pyx_t_1)) {

    /* "src/uharfbuzz/_font.pxi":1191
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_IDEO_EMBOX_TOP_OR_RIGHT
 *         elif baseline_tag == "math":
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_MATH             # <<<<<<<<<<<<<<
 *         else:
 *             raise ValueError(f"invalid baseline tag '{baseline_tag}'")
*/
    __pyx_v_hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_MATH;

    /* "src/uharfbuzz/_font.pxi":1190
 *         elif baseline_tag == "idtp":
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_IDEO_EMBOX_TOP_OR_RIGHT
 *         elif baseline_tag == "math":             # <<<<<<<<<<<<<<
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_MATH
 *         else:
*/
    goto __pyx_L3;
  }

  /* "src/uharfbuzz/_font.pxi":1193
 *             hb_baseline_tag = HB_OT_LAYOUT_BASELINE_TAG_MATH
 *         else:
 *             raise ValueError(f"invalid baseline tag '{baseline_tag}'")             # <<<<<<<<<<<<<<
 *         packed = direction.encode()
 *         hb_direction = hb_direction_from_string(<char*>packed, -1)
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4[0] = __pyx_mstate_global->__pyx_kp_u_invalid_baseline_tag;
    __pyx_t_4[1] = __pyx_v_baseline_tag;
    __pyx_t_4[2] = __pyx_mstate_global->__pyx_kp_u__9;
    __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_4, 3, 22 + __Pyx_PyUnicode_GET_LENGTH(__pyx_v_baseline_tag) + 1, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_v_baseline_tag));
    if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1193, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_5};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1193, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(3, 1193, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "src/uharfbuzz/_font.pxi":1194
 *         else:
 *             raise ValueError(f"invalid baseline tag '{baseline_tag}'")
 *         packed = direction.encode()             # <<<<<<<<<<<<<<
 *         hb_direction = hb_direction_from_string(<char*>packed, -1)
 *         packed = script_tag.encode()
*/
  __pyx_t_2 = PyUnicode_AsEncodedString(__pyx_v_direction, NULL, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1194, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_packed = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "src/uharfbuzz/_font.pxi":1195
 *             raise ValueError(f"invalid baseline tag '{baseline_tag}'")
 *         packed = direction.encode()
 *         hb_direction = hb_direction_from_string(<char*>packed, -1)             # <<<<<<<<<<<<<<
 *         packed = script_tag.encode()
 *         hb_script_tag = hb_tag_from_string(<char*>packed, -1)
*/
  __pyx_t_7 = __Pyx_PyBytes_AsWritableString(__pyx_v_packed); if (unlikely((!__pyx_t_7) && PyErr_Occurred())) __PYX_ERR(3, 1195, __pyx_L1_error)
  __pyx_v_hb_direction = hb_direction_from_string(((char *)__pyx_t_7), -1);

  /* "src/uharfbuzz/_font.pxi":1196
 *         packed = direction.encode()
 *         hb_direction = hb_direction_from_string(<char*>packed, -1)
 *         packed = script_tag.encode()             # <<<<<<<<<<<<<<
 *         hb_script_tag = hb_tag_from_string(<char*>packed, -1)
 *         packed = language_tag.encode()
*/
  __pyx_t_2 = PyUnicode_AsEncodedString(__pyx_v_script_tag, NULL, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1196, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF_SET(__pyx_v_packed, ((PyObject*)__pyx_t_2));
  __pyx_t_2 = 0;

  /* "src/uharfbuzz/_font.pxi":1197
 *         hb_direction = hb_direction_from_string(<char*>packed, -1)
 *         packed = script_tag.encode()
 *         hb_script_tag = hb_tag_from_string(<char*>packed, -1)             # <<<<<<<<<<<<<<
 *         packed = language_tag.encode()
 *         hb_language_tag = hb_tag_from_string(<char*>packed, -1)
*/
  __pyx_t_7 = __Pyx_PyBytes_AsWritableString(__pyx_v_packed); if (unlikely((!__pyx_t_7) && PyErr_Occurred())) __PYX_ERR(3, 1197, __pyx_L1_error)
  __pyx_v_hb_script_tag = hb_tag_from_string(((char *)__pyx_t_7), -1);

  /* "src/uharfbuzz/_font.pxi":1198
 *         packed = script_tag.encode()
 *         hb_script_tag = hb_tag_from_string(<char*>packed, -1)
 *         packed = language_tag.encode()             # <<<<<<<<<<<<<<
 *         hb_language_tag = hb_tag_from_string(<char*>packed, -1)
 *         success = hb_ot_layout_get_baseline(self._hb_font,
*/
  __pyx_t_2 = PyUnicode_AsEncodedString(__pyx_v_language_tag, NULL, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1198, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF_SET(__pyx_v_packed, ((PyObject*)__pyx_t_2));
  __pyx_t_2 = 0;

  /* "src/uharfbuzz/_font.pxi":1199
 *         hb_script_tag = hb_tag_from_string(<char*>packed, -1)
 *         packed = language_tag.encode()
 *         hb_language_tag = hb_tag_from_string(<char*>packed, -1)             # <<<<<<<<<<<<<<
 *         success = hb_ot_layout_get_baseline(self._hb_font,
 *                                             hb_baseline_tag,
*/
  __pyx_t_7 = __Pyx_PyBytes_AsWritableString(__pyx_v_packed); if (unlikely((!__pyx_t_7) && PyErr_Occurred())) __PYX_ERR(3, 1199, __pyx_L1_error)
  __pyx_v_hb_language_tag = hb_tag_from_string(((char *)__pyx_t_7), -1);

  /* "src/uharfbuzz/_font.pxi":1200
 *         packed = language_tag.encode()
 *         hb_language_tag = hb_tag_from_string(<char*>packed, -1)
 *         success = hb_ot_layout_get_baseline(self._hb_font,             # <<<<<<<<<<<<<<
 *                                             hb_baseline_tag,
 *                                             hb_direction,
*/
  __pyx_v_success = hb_ot_layout_get_baseline(__pyx_v_self->_hb_font, __pyx_v_hb_baseline_tag, __pyx_v_hb_direction, __pyx_v_hb_script_tag, __pyx_v_hb_language_tag, (&__pyx_v_hb_position));

  /* "src/uharfbuzz/_font.pxi":1206
 *                                             hb_language_tag,
 *                                             &hb_position)
 *         if success:             # <<<<<<<<<<<<<<
 *             return hb_position
 *         else:
*/
  __pyx_t_1 = (__pyx_v_success != 0);
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_font.pxi":1207
 *                                             &hb_position)
 *         if success:
 *             return hb_position             # <<<<<<<<<<<<<<
 *         else:
 *             return None
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyLong_From_hb_position_t(__pyx_v_hb_position); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1207, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_PyInt_FromNumber(&__pyx_t_2, NULL, 0) < (0)) __PYX_ERR(3, 1207, __pyx_L1_error)
    __pyx_r = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "src/uharfbuzz/_font.pxi":1206
 *                                             hb_language_tag,
 *                                             &hb_position)
 *         if success:             # <<<<<<<<<<<<<<
 *             return hb_position
 *         else:
*/
  }

  /* "src/uharfbuzz/_font.pxi":1209
 *             return hb_position
 *         else:
 *             return None             # <<<<<<<<<<<<<<
 * 
 *     # style
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = ((PyObject*)Py_None); __Pyx_INCREF(Py_None);
    goto __pyx_L0;
  }

  /* "src/uharfbuzz/_font.pxi":1151
 * 
 *     #layout
 *     def get_layout_baseline(self,             # <<<<<<<<<<<<<<
 *                            baseline_tag: str,
 *                            direction: str,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_layout_baseline", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":1212
 * 
 *     # style
 *     def get_style_value(self, tag: StyleTag) -> float:             # <<<<<<<<<<<<<<
 *         """Searches variation axes of the font for a specific axis first; if
 *         not set, first tries to get default style values in the ``STAT``
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_79get_style_value(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_4Font_78get_style_value, "Searches variation axes of the font for a specific axis first; if\n        not set, first tries to get default style values in the ``STAT``\n        table, then tries to polyfill from different tables of the font.\n\n        :returns: Corresponding axis or default value to a style tag.\n\n        Wraps `hb_style_get_value()\n        <https://harfbuzz.github.io/harfbuzz-hb-style.html#hb-style-get-value>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_79get_style_value = {"get_style_value", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_79get_style_value, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_78get_style_value};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_79get_style_value(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_tag = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_style_value (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_tag,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 1212, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1212, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_style_value", 0) < (0)) __PYX_ERR(3, 1212, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_style_value", 1, 1, 1, i); __PYX_ERR(3, 1212, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1212, __pyx_L3_error)
    }
    __pyx_v_tag = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_style_value", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 1212, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_style_value", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_78get_style_value(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v_tag);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_78get_style_value(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, PyObject *__pyx_v_tag) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  hb_style_tag_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_style_value", 0);

  /* "src/uharfbuzz/_font.pxi":1222
 *         <https://harfbuzz.github.io/harfbuzz-hb-style.html#hb-style-get-value>`_.
 *         """
 *         return hb_style_get_value(self._hb_font, tag)             # <<<<<<<<<<<<<<
 * 
 * cdef struct _pen_methods:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((hb_style_tag_t)__Pyx_PyLong_As_hb_style_tag_t(__pyx_v_tag)); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1222, __pyx_L1_error)
  __pyx_t_2 = PyFloat_FromDouble(hb_style_get_value(__pyx_v_self->_hb_font, __pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1222, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":1212
 * 
 *     # style
 *     def get_style_value(self, tag: StyleTag) -> float:             # <<<<<<<<<<<<<<
 *         """Searches variation axes of the font for a specific axis first; if
 *         not set, first tries to get default style values in the ``STAT``
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.get_style_value", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_81__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_81__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_81__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_81__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_80__reduce_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_80__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_83__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_83__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_83__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_83__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 3, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < (0)) __PYX_ERR(4, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(4, 3, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(4, 3, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4Font_82__setstate_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4Font_82__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.Font.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":1233
 * cdef hb_draw_funcs_t* drawfuncs = NULL
 * 
 * cdef void _pen_move_to_func(hb_draw_funcs_t *dfuncs,             # <<<<<<<<<<<<<<
 *                             void *draw_data,
 *                             hb_draw_state_t *st,
*/

static void __pyx_f_9uharfbuzz_9_harfbuzz__pen_move_to_func(CYTHON_UNUSED hb_draw_funcs_t *__pyx_v_dfuncs, void *__pyx_v_draw_data, CYTHON_UNUSED hb_draw_state_t *__pyx_v_st, float __pyx_v_to_x, float __pyx_v_to_y, CYTHON_UNUSED void *__pyx_v_user_data) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_pen_move_to_func", 0);

  /* "src/uharfbuzz/_font.pxi":1239
 *                             float to_y,
 *                             void *user_data) noexcept:
 *     (<object>((<_pen_methods*>draw_data).moveTo))((to_x, to_y))             # <<<<<<<<<<<<<<
 * 
 * cdef void _pen_line_to_func(hb_draw_funcs_t *dfuncs,
*/
  __pyx_t_2 = NULL;
  __Pyx_INCREF(((PyObject *)((struct __pyx_t_9uharfbuzz_9_harfbuzz__pen_methods *)__pyx_v_draw_data)->moveTo));
  __pyx_t_3 = ((PyObject *)((struct __pyx_t_9uharfbuzz_9_harfbuzz__pen_methods *)__pyx_v_draw_data)->moveTo); 
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_to_x); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1239, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_to_y); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1239, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1239, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4) != (0)) __PYX_ERR(3, 1239, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_5) != (0)) __PYX_ERR(3, 1239, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_6};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1239, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/uharfbuzz/_font.pxi":1233
 * cdef hb_draw_funcs_t* drawfuncs = NULL
 * 
 * cdef void _pen_move_to_func(hb_draw_funcs_t *dfuncs,             # <<<<<<<<<<<<<<
 *                             void *draw_data,
 *                             hb_draw_state_t *st,
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._pen_move_to_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
}

/* "src/uharfbuzz/_font.pxi":1241
 *     (<object>((<_pen_methods*>draw_data).moveTo))((to_x, to_y))
 * 
 * cdef void _pen_line_to_func(hb_draw_funcs_t *dfuncs,             # <<<<<<<<<<<<<<
 *                             void *draw_data,
 *                             hb_draw_state_t *st,
*/

static void __pyx_f_9uharfbuzz_9_harfbuzz__pen_line_to_func(CYTHON_UNUSED hb_draw_funcs_t *__pyx_v_dfuncs, void *__pyx_v_draw_data, CYTHON_UNUSED hb_draw_state_t *__pyx_v_st, float __pyx_v_to_x, float __pyx_v_to_y, CYTHON_UNUSED void *__pyx_v_user_data) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_pen_line_to_func", 0);

  /* "src/uharfbuzz/_font.pxi":1247
 *                             float to_y,
 *                             void *user_data) noexcept:
 *     (<object>((<_pen_methods*>draw_data).lineTo))((to_x, to_y))             # <<<<<<<<<<<<<<
 * 
 * cdef void _pen_close_path_func(hb_draw_funcs_t *dfuncs,
*/
  __pyx_t_2 = NULL;
  __Pyx_INCREF(((PyObject *)((struct __pyx_t_9uharfbuzz_9_harfbuzz__pen_methods *)__pyx_v_draw_data)->lineTo));
  __pyx_t_3 = ((PyObject *)((struct __pyx_t_9uharfbuzz_9_harfbuzz__pen_methods *)__pyx_v_draw_data)->lineTo); 
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_to_x); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1247, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_to_y); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1247, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1247, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4) != (0)) __PYX_ERR(3, 1247, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_5) != (0)) __PYX_ERR(3, 1247, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_6};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1247, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/uharfbuzz/_font.pxi":1241
 *     (<object>((<_pen_methods*>draw_data).moveTo))((to_x, to_y))
 * 
 * cdef void _pen_line_to_func(hb_draw_funcs_t *dfuncs,             # <<<<<<<<<<<<<<
 *                             void *draw_data,
 *                             hb_draw_state_t *st,
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._pen_line_to_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
}

/* "src/uharfbuzz/_font.pxi":1249
 *     (<object>((<_pen_methods*>draw_data).lineTo))((to_x, to_y))
 * 
 * cdef void _pen_close_path_func(hb_draw_funcs_t *dfuncs,             # <<<<<<<<<<<<<<
 *                                void *draw_data,
 *                                hb_draw_state_t *st,
*/

static void __pyx_f_9uharfbuzz_9_harfbuzz__pen_close_path_func(CYTHON_UNUSED hb_draw_funcs_t *__pyx_v_dfuncs, void *__pyx_v_draw_data, CYTHON_UNUSED hb_draw_state_t *__pyx_v_st, CYTHON_UNUSED void *__pyx_v_user_data) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_pen_close_path_func", 0);

  /* "src/uharfbuzz/_font.pxi":1253
 *                                hb_draw_state_t *st,
 *                                void *user_data) noexcept:
 *     (<object>((<_pen_methods*>draw_data).closePath))()             # <<<<<<<<<<<<<<
 * 
 * cdef void _pen_quadratic_to_func(hb_draw_funcs_t *dfuncs,
*/
  __pyx_t_2 = NULL;
  __Pyx_INCREF(((PyObject *)((struct __pyx_t_9uharfbuzz_9_harfbuzz__pen_methods *)__pyx_v_draw_data)->closePath));
  __pyx_t_3 = ((PyObject *)((struct __pyx_t_9uharfbuzz_9_harfbuzz__pen_methods *)__pyx_v_draw_data)->closePath); 
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1253, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/uharfbuzz/_font.pxi":1249
 *     (<object>((<_pen_methods*>draw_data).lineTo))((to_x, to_y))
 * 
 * cdef void _pen_close_path_func(hb_draw_funcs_t *dfuncs,             # <<<<<<<<<<<<<<
 *                                void *draw_data,
 *                                hb_draw_state_t *st,
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._pen_close_path_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
}

/* "src/uharfbuzz/_font.pxi":1255
 *     (<object>((<_pen_methods*>draw_data).closePath))()
 * 
 * cdef void _pen_quadratic_to_func(hb_draw_funcs_t *dfuncs,             # <<<<<<<<<<<<<<
 *                                  void *draw_data,
 *                                  hb_draw_state_t *st,
*/

static void __pyx_f_9uharfbuzz_9_harfbuzz__pen_quadratic_to_func(CYTHON_UNUSED hb_draw_funcs_t *__pyx_v_dfuncs, void *__pyx_v_draw_data, CYTHON_UNUSED hb_draw_state_t *__pyx_v_st, float __pyx_v_c1_x, float __pyx_v_c1_y, float __pyx_v_to_x, float __pyx_v_to_y, CYTHON_UNUSED void *__pyx_v_user_data) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_pen_quadratic_to_func", 0);

  /* "src/uharfbuzz/_font.pxi":1263
 *                                  float to_y,
 *                                  void *user_data) noexcept:
 *     (<object>((<_pen_methods*>draw_data).qCurveTo))((c1_x, c1_y), (to_x, to_y))             # <<<<<<<<<<<<<<
 * 
 * cdef void _pen_cubic_to_func(hb_draw_funcs_t *dfuncs,
*/
  __pyx_t_2 = NULL;
  __Pyx_INCREF(((PyObject *)((struct __pyx_t_9uharfbuzz_9_harfbuzz__pen_methods *)__pyx_v_draw_data)->qCurveTo));
  __pyx_t_3 = ((PyObject *)((struct __pyx_t_9uharfbuzz_9_harfbuzz__pen_methods *)__pyx_v_draw_data)->qCurveTo); 
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_c1_x); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_c1_y); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4) != (0)) __PYX_ERR(3, 1263, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_5) != (0)) __PYX_ERR(3, 1263, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_to_x); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_to_y); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5) != (0)) __PYX_ERR(3, 1263, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_4) != (0)) __PYX_ERR(3, 1263, __pyx_L1_error);
  __pyx_t_5 = 0;
  __pyx_t_4 = 0;
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_t_6, __pyx_t_7};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (3-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1263, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/uharfbuzz/_font.pxi":1255
 *     (<object>((<_pen_methods*>draw_data).closePath))()
 * 
 * cdef void _pen_quadratic_to_func(hb_draw_funcs_t *dfuncs,             # <<<<<<<<<<<<<<
 *                                  void *draw_data,
 *                                  hb_draw_state_t *st,
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._pen_quadratic_to_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
}

/* "src/uharfbuzz/_font.pxi":1265
 *     (<object>((<_pen_methods*>draw_data).qCurveTo))((c1_x, c1_y), (to_x, to_y))
 * 
 * cdef void _pen_cubic_to_func(hb_draw_funcs_t *dfuncs,             # <<<<<<<<<<<<<<
 *                              void *draw_data,
 *                              hb_draw_state_t *st,
*/

static void __pyx_f_9uharfbuzz_9_harfbuzz__pen_cubic_to_func(CYTHON_UNUSED hb_draw_funcs_t *__pyx_v_dfuncs, void *__pyx_v_draw_data, CYTHON_UNUSED hb_draw_state_t *__pyx_v_st, float __pyx_v_c1_x, float __pyx_v_c1_y, float __pyx_v_c2_x, float __pyx_v_c2_y, float __pyx_v_to_x, float __pyx_v_to_y, CYTHON_UNUSED void *__pyx_v_user_data) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  size_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_pen_cubic_to_func", 0);

  /* "src/uharfbuzz/_font.pxi":1275
 *                              float to_y,
 *                              void *user_data) noexcept:
 *     (<object>((<_pen_methods*>draw_data).curveTo))((c1_x, c1_y), (c2_x, c2_y), (to_x, to_y))             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_2 = NULL;
  __Pyx_INCREF(((PyObject *)((struct __pyx_t_9uharfbuzz_9_harfbuzz__pen_methods *)__pyx_v_draw_data)->curveTo));
  __pyx_t_3 = ((PyObject *)((struct __pyx_t_9uharfbuzz_9_harfbuzz__pen_methods *)__pyx_v_draw_data)->curveTo); 
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_c1_x); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_c1_y); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4) != (0)) __PYX_ERR(3, 1275, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_5) != (0)) __PYX_ERR(3, 1275, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_c2_x); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_c2_y); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5) != (0)) __PYX_ERR(3, 1275, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_4) != (0)) __PYX_ERR(3, 1275, __pyx_L1_error);
  __pyx_t_5 = 0;
  __pyx_t_4 = 0;
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_to_x); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_to_y); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4) != (0)) __PYX_ERR(3, 1275, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_5) != (0)) __PYX_ERR(3, 1275, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_t_6, __pyx_t_7, __pyx_t_8};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_9, (4-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1275, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/uharfbuzz/_font.pxi":1265
 *     (<object>((<_pen_methods*>draw_data).qCurveTo))((c1_x, c1_y), (to_x, to_y))
 * 
 * cdef void _pen_cubic_to_func(hb_draw_funcs_t *dfuncs,             # <<<<<<<<<<<<<<
 *                              void *draw_data,
 *                              hb_draw_state_t *st,
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._pen_cubic_to_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
}

/* "src/uharfbuzz/_font.pxi":1278
 * 
 * 
 * cdef hb_position_t _glyph_h_advance_func(hb_font_t* font, void* font_data,             # <<<<<<<<<<<<<<
 *                                          hb_codepoint_t glyph,
 *                                          void* user_data) noexcept:
*/

static hb_position_t __pyx_f_9uharfbuzz_9_harfbuzz__glyph_h_advance_func(CYTHON_UNUSED hb_font_t *__pyx_v_font, void *__pyx_v_font_data, hb_codepoint_t __pyx_v_glyph, void *__pyx_v_user_data) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_py_font = 0;
  hb_position_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  hb_position_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_glyph_h_advance_func", 0);

  /* "src/uharfbuzz/_font.pxi":1281
 *                                          hb_codepoint_t glyph,
 *                                          void* user_data) noexcept:
 *     cdef Font py_font = <Font>font_data             # <<<<<<<<<<<<<<
 *     return (<FontFuncs>py_font.funcs)._glyph_h_advance_func(
 *         py_font, glyph, <object>user_data)
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_font_data);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_py_font = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_font.pxi":1282
 *                                          void* user_data) noexcept:
 *     cdef Font py_font = <Font>font_data
 *     return (<FontFuncs>py_font.funcs)._glyph_h_advance_func(             # <<<<<<<<<<<<<<
 *         py_font, glyph, <object>user_data)
 * 
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_py_font), __pyx_mstate_global->__pyx_n_u_funcs); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1282, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)__pyx_t_3)->_glyph_h_advance_func);
  __pyx_t_4 = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)__pyx_t_3)->_glyph_h_advance_func; 
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "src/uharfbuzz/_font.pxi":1283
 *     cdef Font py_font = <Font>font_data
 *     return (<FontFuncs>py_font.funcs)._glyph_h_advance_func(
 *         py_font, glyph, <object>user_data)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_3 = __Pyx_PyLong_From_hb_codepoint_t(__pyx_v_glyph); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1283, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, ((PyObject *)__pyx_v_py_font), __pyx_t_3, ((PyObject *)__pyx_v_user_data)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1282, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }

  /* "src/uharfbuzz/_font.pxi":1282
 *                                          void* user_data) noexcept:
 *     cdef Font py_font = <Font>font_data
 *     return (<FontFuncs>py_font.funcs)._glyph_h_advance_func(             # <<<<<<<<<<<<<<
 *         py_font, glyph, <object>user_data)
 * 
*/
  __pyx_t_6 = __Pyx_PyLong_As_hb_position_t(__pyx_t_1); if (unlikely((__pyx_t_6 == ((hb_position_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 1282, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_6;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":1278
 * 
 * 
 * cdef hb_position_t _glyph_h_advance_func(hb_font_t* font, void* font_data,             # <<<<<<<<<<<<<<
 *                                          hb_codepoint_t glyph,
 *                                          void* user_data) noexcept:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._glyph_h_advance_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_font);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":1286
 * 
 * 
 * cdef hb_position_t _glyph_v_advance_func(hb_font_t* font, void* font_data,             # <<<<<<<<<<<<<<
 *                                          hb_codepoint_t glyph,
 *                                          void* user_data) noexcept:
*/

static hb_position_t __pyx_f_9uharfbuzz_9_harfbuzz__glyph_v_advance_func(CYTHON_UNUSED hb_font_t *__pyx_v_font, void *__pyx_v_font_data, hb_codepoint_t __pyx_v_glyph, void *__pyx_v_user_data) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_py_font = 0;
  hb_position_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  hb_position_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_glyph_v_advance_func", 0);

  /* "src/uharfbuzz/_font.pxi":1289
 *                                          hb_codepoint_t glyph,
 *                                          void* user_data) noexcept:
 *     cdef Font py_font = <Font>font_data             # <<<<<<<<<<<<<<
 *     return (<FontFuncs>py_font.funcs)._glyph_v_advance_func(
 *         py_font, glyph, <object>user_data)
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_font_data);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_py_font = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_font.pxi":1290
 *                                          void* user_data) noexcept:
 *     cdef Font py_font = <Font>font_data
 *     return (<FontFuncs>py_font.funcs)._glyph_v_advance_func(             # <<<<<<<<<<<<<<
 *         py_font, glyph, <object>user_data)
 * 
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_py_font), __pyx_mstate_global->__pyx_n_u_funcs); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1290, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)__pyx_t_3)->_glyph_v_advance_func);
  __pyx_t_4 = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)__pyx_t_3)->_glyph_v_advance_func; 
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "src/uharfbuzz/_font.pxi":1291
 *     cdef Font py_font = <Font>font_data
 *     return (<FontFuncs>py_font.funcs)._glyph_v_advance_func(
 *         py_font, glyph, <object>user_data)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_3 = __Pyx_PyLong_From_hb_codepoint_t(__pyx_v_glyph); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1291, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, ((PyObject *)__pyx_v_py_font), __pyx_t_3, ((PyObject *)__pyx_v_user_data)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1290, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }

  /* "src/uharfbuzz/_font.pxi":1290
 *                                          void* user_data) noexcept:
 *     cdef Font py_font = <Font>font_data
 *     return (<FontFuncs>py_font.funcs)._glyph_v_advance_func(             # <<<<<<<<<<<<<<
 *         py_font, glyph, <object>user_data)
 * 
*/
  __pyx_t_6 = __Pyx_PyLong_As_hb_position_t(__pyx_t_1); if (unlikely((__pyx_t_6 == ((hb_position_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 1290, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_6;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":1286
 * 
 * 
 * cdef hb_position_t _glyph_v_advance_func(hb_font_t* font, void* font_data,             # <<<<<<<<<<<<<<
 *                                          hb_codepoint_t glyph,
 *                                          void* user_data) noexcept:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._glyph_v_advance_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_font);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":1294
 * 
 * 
 * cdef hb_bool_t _glyph_v_origin_func(hb_font_t* font, void* font_data,             # <<<<<<<<<<<<<<
 *                                     hb_codepoint_t glyph,
 *                                     hb_position_t* x, hb_position_t* y,
*/

static hb_bool_t __pyx_f_9uharfbuzz_9_harfbuzz__glyph_v_origin_func(CYTHON_UNUSED hb_font_t *__pyx_v_font, void *__pyx_v_font_data, hb_codepoint_t __pyx_v_glyph, hb_position_t *__pyx_v_x, hb_position_t *__pyx_v_y, void *__pyx_v_user_data) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_py_font = 0;
  hb_bool_t __pyx_v_success;
  hb_position_t __pyx_v_px;
  hb_position_t __pyx_v_py;
  hb_bool_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *(*__pyx_t_7)(PyObject *);
  hb_bool_t __pyx_t_8;
  hb_position_t __pyx_t_9;
  hb_position_t __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_glyph_v_origin_func", 0);

  /* "src/uharfbuzz/_font.pxi":1298
 *                                     hb_position_t* x, hb_position_t* y,
 *                                     void* user_data) noexcept:
 *     cdef Font py_font = <Font>font_data             # <<<<<<<<<<<<<<
 *     cdef hb_bool_t success
 *     cdef hb_position_t px
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_font_data);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_py_font = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_font.pxi":1302
 *     cdef hb_position_t px
 *     cdef hb_position_t py
 *     success, px, py = (<FontFuncs>py_font.funcs)._glyph_v_origin_func(             # <<<<<<<<<<<<<<
 *         py_font, glyph, <object>user_data)
 *     x[0] = px
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_py_font), __pyx_mstate_global->__pyx_n_u_funcs); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1302, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)__pyx_t_3)->_glyph_v_origin_func);
  __pyx_t_4 = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)__pyx_t_3)->_glyph_v_origin_func; 
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "src/uharfbuzz/_font.pxi":1303
 *     cdef hb_position_t py
 *     success, px, py = (<FontFuncs>py_font.funcs)._glyph_v_origin_func(
 *         py_font, glyph, <object>user_data)             # <<<<<<<<<<<<<<
 *     x[0] = px
 *     y[0] = py
*/
  __pyx_t_3 = __Pyx_PyLong_From_hb_codepoint_t(__pyx_v_glyph); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1303, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, ((PyObject *)__pyx_v_py_font), __pyx_t_3, ((PyObject *)__pyx_v_user_data)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1302, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
    PyObject* sequence = __pyx_t_1;
    Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
    if (unlikely(size != 3)) {
      if (size > 3) __Pyx_RaiseTooManyValuesError(3);
      else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
      __PYX_ERR(3, 1302, __pyx_L1_error)
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    if (likely(PyTuple_CheckExact(sequence))) {
      __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0);
      __Pyx_INCREF(__pyx_t_4);
      __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1);
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_2 = PyTuple_GET_ITEM(sequence, 2);
      __Pyx_INCREF(__pyx_t_2);
    } else {
      __pyx_t_4 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1302, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_4);
      __pyx_t_3 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1302, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_3);
      __pyx_t_2 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1302, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_2);
    }
    #else
    __pyx_t_4 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1302, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1302, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1302, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    #endif
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  } else {
    Py_ssize_t index = -1;
    __pyx_t_6 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1302, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_7 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_6);
    index = 0; __pyx_t_4 = __pyx_t_7(__pyx_t_6); if (unlikely(!__pyx_t_4)) goto __pyx_L3_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_4);
    index = 1; __pyx_t_3 = __pyx_t_7(__pyx_t_6); if (unlikely(!__pyx_t_3)) goto __pyx_L3_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_3);
    index = 2; __pyx_t_2 = __pyx_t_7(__pyx_t_6); if (unlikely(!__pyx_t_2)) goto __pyx_L3_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_IternextUnpackEndCheck(__pyx_t_7(__pyx_t_6), 3) < (0)) __PYX_ERR(3, 1302, __pyx_L1_error)
    __pyx_t_7 = NULL;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    goto __pyx_L4_unpacking_done;
    __pyx_L3_unpacking_failed:;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_7 = NULL;
    if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
    __PYX_ERR(3, 1302, __pyx_L1_error)
    __pyx_L4_unpacking_done:;
  }

  /* "src/uharfbuzz/_font.pxi":1302
 *     cdef hb_position_t px
 *     cdef hb_position_t py
 *     success, px, py = (<FontFuncs>py_font.funcs)._glyph_v_origin_func(             # <<<<<<<<<<<<<<
 *         py_font, glyph, <object>user_data)
 *     x[0] = px
*/
  __pyx_t_8 = __Pyx_PyLong_As_hb_bool_t(__pyx_t_4); if (unlikely((__pyx_t_8 == ((hb_bool_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 1302, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_9 = __Pyx_PyLong_As_hb_position_t(__pyx_t_3); if (unlikely((__pyx_t_9 == ((hb_position_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 1302, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_10 = __Pyx_PyLong_As_hb_position_t(__pyx_t_2); if (unlikely((__pyx_t_10 == ((hb_position_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 1302, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_success = __pyx_t_8;
  __pyx_v_px = __pyx_t_9;
  __pyx_v_py = __pyx_t_10;

  /* "src/uharfbuzz/_font.pxi":1304
 *     success, px, py = (<FontFuncs>py_font.funcs)._glyph_v_origin_func(
 *         py_font, glyph, <object>user_data)
 *     x[0] = px             # <<<<<<<<<<<<<<
 *     y[0] = py
 *     return success
*/
  (__pyx_v_x[0]) = __pyx_v_px;

  /* "src/uharfbuzz/_font.pxi":1305
 *         py_font, glyph, <object>user_data)
 *     x[0] = px
 *     y[0] = py             # <<<<<<<<<<<<<<
 *     return success
 * 
*/
  (__pyx_v_y[0]) = __pyx_v_py;

  /* "src/uharfbuzz/_font.pxi":1306
 *     x[0] = px
 *     y[0] = py
 *     return success             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_r = __pyx_v_success;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":1294
 * 
 * 
 * cdef hb_bool_t _glyph_v_origin_func(hb_font_t* font, void* font_data,             # <<<<<<<<<<<<<<
 *                                     hb_codepoint_t glyph,
 *                                     hb_position_t* x, hb_position_t* y,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._glyph_v_origin_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_font);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":1309
 * 
 * 
 * cdef hb_bool_t _glyph_name_func(hb_font_t *font, void *font_data,             # <<<<<<<<<<<<<<
 *                                 hb_codepoint_t glyph,
 *                                 char *name, unsigned int size,
*/

static hb_bool_t __pyx_f_9uharfbuzz_9_harfbuzz__glyph_name_func(CYTHON_UNUSED hb_font_t *__pyx_v_font, void *__pyx_v_font_data, hb_codepoint_t __pyx_v_glyph, char *__pyx_v_name, CYTHON_UNUSED unsigned int __pyx_v_size, void *__pyx_v_user_data) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_py_font = 0;
  PyObject *__pyx_v_ret = 0;
  hb_bool_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  char __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_glyph_name_func", 0);

  /* "src/uharfbuzz/_font.pxi":1313
 *                                 char *name, unsigned int size,
 *                                 void *user_data) noexcept:
 *     cdef Font py_font = <Font>font_data             # <<<<<<<<<<<<<<
 *     cdef bytes ret = (<FontFuncs>py_font.funcs)._glyph_name_func(
 *         py_font, glyph, <object>user_data).encode()
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_font_data);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_py_font = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_font.pxi":1314
 *                                 void *user_data) noexcept:
 *     cdef Font py_font = <Font>font_data
 *     cdef bytes ret = (<FontFuncs>py_font.funcs)._glyph_name_func(             # <<<<<<<<<<<<<<
 *         py_font, glyph, <object>user_data).encode()
 *     name[0] = ret
*/
  __pyx_t_4 = NULL;
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_py_font), __pyx_mstate_global->__pyx_n_u_funcs); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1314, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_INCREF(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)__pyx_t_5)->_glyph_name_func);
  __pyx_t_6 = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)__pyx_t_5)->_glyph_name_func; 
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":1315
 *     cdef Font py_font = <Font>font_data
 *     cdef bytes ret = (<FontFuncs>py_font.funcs)._glyph_name_func(
 *         py_font, glyph, <object>user_data).encode()             # <<<<<<<<<<<<<<
 *     name[0] = ret
 *     return 1
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_codepoint_t(__pyx_v_glyph); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1315, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_4);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_4, ((PyObject *)__pyx_v_py_font), __pyx_t_5, ((PyObject *)__pyx_v_user_data)};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_7, (4-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1314, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_2 = __pyx_t_3;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_7 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_encode, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1315, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (!(likely(PyBytes_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("bytes", __pyx_t_1))) __PYX_ERR(3, 1315, __pyx_L1_error)
  __pyx_v_ret = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_font.pxi":1316
 *     cdef bytes ret = (<FontFuncs>py_font.funcs)._glyph_name_func(
 *         py_font, glyph, <object>user_data).encode()
 *     name[0] = ret             # <<<<<<<<<<<<<<
 *     return 1
 * 
*/
  __pyx_t_8 = __Pyx_PyLong_As_char(__pyx_v_ret); if (unlikely((__pyx_t_8 == (char)-1) && PyErr_Occurred())) __PYX_ERR(3, 1316, __pyx_L1_error)
  (__pyx_v_name[0]) = __pyx_t_8;

  /* "src/uharfbuzz/_font.pxi":1317
 *         py_font, glyph, <object>user_data).encode()
 *     name[0] = ret
 *     return 1             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_r = 1;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":1309
 * 
 * 
 * cdef hb_bool_t _glyph_name_func(hb_font_t *font, void *font_data,             # <<<<<<<<<<<<<<
 *                                 hb_codepoint_t glyph,
 *                                 char *name, unsigned int size,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._glyph_name_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_font);
  __Pyx_XDECREF(__pyx_v_ret);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":1320
 * 
 * 
 * cdef hb_bool_t _nominal_glyph_func(hb_font_t* font, void* font_data,             # <<<<<<<<<<<<<<
 *                                    hb_codepoint_t unicode,
 *                                    hb_codepoint_t* glyph,
*/

static hb_bool_t __pyx_f_9uharfbuzz_9_harfbuzz__nominal_glyph_func(CYTHON_UNUSED hb_font_t *__pyx_v_font, void *__pyx_v_font_data, hb_codepoint_t __pyx_v_unicode, hb_codepoint_t *__pyx_v_glyph, void *__pyx_v_user_data) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_py_font = 0;
  hb_bool_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  hb_codepoint_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_nominal_glyph_func", 0);

  /* "src/uharfbuzz/_font.pxi":1324
 *                                    hb_codepoint_t* glyph,
 *                                    void* user_data) noexcept:
 *     cdef Font py_font = <Font>font_data             # <<<<<<<<<<<<<<
 *     glyph[0] = (<FontFuncs>py_font.funcs)._nominal_glyph_func(
 *         py_font, unicode, <object>user_data)
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_font_data);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_py_font = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_font.pxi":1325
 *                                    void* user_data) noexcept:
 *     cdef Font py_font = <Font>font_data
 *     glyph[0] = (<FontFuncs>py_font.funcs)._nominal_glyph_func(             # <<<<<<<<<<<<<<
 *         py_font, unicode, <object>user_data)
 *     # If the glyph is .notdef, return false, else return true
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_py_font), __pyx_mstate_global->__pyx_n_u_funcs); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1325, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)__pyx_t_3)->_nominal_glyph_func);
  __pyx_t_4 = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)__pyx_t_3)->_nominal_glyph_func; 
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "src/uharfbuzz/_font.pxi":1326
 *     cdef Font py_font = <Font>font_data
 *     glyph[0] = (<FontFuncs>py_font.funcs)._nominal_glyph_func(
 *         py_font, unicode, <object>user_data)             # <<<<<<<<<<<<<<
 *     # If the glyph is .notdef, return false, else return true
 *     return int(glyph[0] != 0)
*/
  __pyx_t_3 = __Pyx_PyLong_From_hb_codepoint_t(__pyx_v_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1326, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, ((PyObject *)__pyx_v_py_font), __pyx_t_3, ((PyObject *)__pyx_v_user_data)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1325, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }

  /* "src/uharfbuzz/_font.pxi":1325
 *                                    void* user_data) noexcept:
 *     cdef Font py_font = <Font>font_data
 *     glyph[0] = (<FontFuncs>py_font.funcs)._nominal_glyph_func(             # <<<<<<<<<<<<<<
 *         py_font, unicode, <object>user_data)
 *     # If the glyph is .notdef, return false, else return true
*/
  __pyx_t_6 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_t_1); if (unlikely((__pyx_t_6 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 1325, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_glyph[0]) = __pyx_t_6;

  /* "src/uharfbuzz/_font.pxi":1328
 *         py_font, unicode, <object>user_data)
 *     # If the glyph is .notdef, return false, else return true
 *     return int(glyph[0] != 0)             # <<<<<<<<<<<<<<
 * 
 * cdef hb_bool_t _variation_glyph_func(hb_font_t* font, void* font_data,
*/
  __pyx_r = ((hb_bool_t)((__pyx_v_glyph[0]) != 0));
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":1320
 * 
 * 
 * cdef hb_bool_t _nominal_glyph_func(hb_font_t* font, void* font_data,             # <<<<<<<<<<<<<<
 *                                    hb_codepoint_t unicode,
 *                                    hb_codepoint_t* glyph,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._nominal_glyph_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_font);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":1330
 *     return int(glyph[0] != 0)
 * 
 * cdef hb_bool_t _variation_glyph_func(hb_font_t* font, void* font_data,             # <<<<<<<<<<<<<<
 *                                    hb_codepoint_t unicode,
 *                                    hb_codepoint_t variation_selector,
*/

static hb_bool_t __pyx_f_9uharfbuzz_9_harfbuzz__variation_glyph_func(CYTHON_UNUSED hb_font_t *__pyx_v_font, void *__pyx_v_font_data, hb_codepoint_t __pyx_v_unicode, hb_codepoint_t __pyx_v_variation_selector, hb_codepoint_t *__pyx_v_glyph, void *__pyx_v_user_data) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_py_font = 0;
  hb_bool_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  hb_codepoint_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_variation_glyph_func", 0);

  /* "src/uharfbuzz/_font.pxi":1335
 *                                    hb_codepoint_t* glyph,
 *                                    void* user_data) noexcept:
 *     cdef Font py_font = <Font>font_data             # <<<<<<<<<<<<<<
 *     glyph[0] = (<FontFuncs>py_font.funcs)._variation_glyph_func(
 *         py_font, unicode, variation_selector, <object>user_data)
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_font_data);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_py_font = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_font.pxi":1336
 *                                    void* user_data) noexcept:
 *     cdef Font py_font = <Font>font_data
 *     glyph[0] = (<FontFuncs>py_font.funcs)._variation_glyph_func(             # <<<<<<<<<<<<<<
 *         py_font, unicode, variation_selector, <object>user_data)
 *     # If the glyph is .notdef, return false, else return true
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_py_font), __pyx_mstate_global->__pyx_n_u_funcs); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1336, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)__pyx_t_3)->_variation_glyph_func);
  __pyx_t_4 = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)__pyx_t_3)->_variation_glyph_func; 
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "src/uharfbuzz/_font.pxi":1337
 *     cdef Font py_font = <Font>font_data
 *     glyph[0] = (<FontFuncs>py_font.funcs)._variation_glyph_func(
 *         py_font, unicode, variation_selector, <object>user_data)             # <<<<<<<<<<<<<<
 *     # If the glyph is .notdef, return false, else return true
 *     return int(glyph[0] != 0)
*/
  __pyx_t_3 = __Pyx_PyLong_From_hb_codepoint_t(__pyx_v_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1337, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = __Pyx_PyLong_From_hb_codepoint_t(__pyx_v_variation_selector); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1337, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[5] = {__pyx_t_2, ((PyObject *)__pyx_v_py_font), __pyx_t_3, __pyx_t_5, ((PyObject *)__pyx_v_user_data)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_6, (5-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1336, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }

  /* "src/uharfbuzz/_font.pxi":1336
 *                                    void* user_data) noexcept:
 *     cdef Font py_font = <Font>font_data
 *     glyph[0] = (<FontFuncs>py_font.funcs)._variation_glyph_func(             # <<<<<<<<<<<<<<
 *         py_font, unicode, variation_selector, <object>user_data)
 *     # If the glyph is .notdef, return false, else return true
*/
  __pyx_t_7 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_t_1); if (unlikely((__pyx_t_7 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 1336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_glyph[0]) = __pyx_t_7;

  /* "src/uharfbuzz/_font.pxi":1339
 *         py_font, unicode, variation_selector, <object>user_data)
 *     # If the glyph is .notdef, return false, else return true
 *     return int(glyph[0] != 0)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_r = ((hb_bool_t)((__pyx_v_glyph[0]) != 0));
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":1330
 *     return int(glyph[0] != 0)
 * 
 * cdef hb_bool_t _variation_glyph_func(hb_font_t* font, void* font_data,             # <<<<<<<<<<<<<<
 *                                    hb_codepoint_t unicode,
 *                                    hb_codepoint_t variation_selector,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._variation_glyph_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_font);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":1342
 * 
 * 
 * cdef hb_bool_t _font_h_extents_func(hb_font_t* font, void* font_data,             # <<<<<<<<<<<<<<
 *                                     hb_font_extents_t *extents,
 *                                     void* user_data) noexcept:
*/

static hb_bool_t __pyx_f_9uharfbuzz_9_harfbuzz__font_h_extents_func(CYTHON_UNUSED hb_font_t *__pyx_v_font, void *__pyx_v_font_data, hb_font_extents_t *__pyx_v_extents, void *__pyx_v_user_data) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_py_font = 0;
  PyObject *__pyx_v_font_extents = NULL;
  hb_bool_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_t_6;
  hb_position_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_font_h_extents_func", 0);

  /* "src/uharfbuzz/_font.pxi":1345
 *                                     hb_font_extents_t *extents,
 *                                     void* user_data) noexcept:
 *     cdef Font py_font = <Font>font_data             # <<<<<<<<<<<<<<
 *     font_extents = (<FontFuncs>py_font.funcs)._font_h_extents_func(
 *         py_font, <object>user_data)
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_font_data);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_py_font = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_font.pxi":1346
 *                                     void* user_data) noexcept:
 *     cdef Font py_font = <Font>font_data
 *     font_extents = (<FontFuncs>py_font.funcs)._font_h_extents_func(             # <<<<<<<<<<<<<<
 *         py_font, <object>user_data)
 *     if font_extents is not None:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_py_font), __pyx_mstate_global->__pyx_n_u_funcs); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1346, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)__pyx_t_3)->_font_h_extents_func);
  __pyx_t_4 = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)__pyx_t_3)->_font_h_extents_func; 
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "src/uharfbuzz/_font.pxi":1347
 *     cdef Font py_font = <Font>font_data
 *     font_extents = (<FontFuncs>py_font.funcs)._font_h_extents_func(
 *         py_font, <object>user_data)             # <<<<<<<<<<<<<<
 *     if font_extents is not None:
 *         if font_extents.ascender is not None:
*/
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, ((PyObject *)__pyx_v_py_font), ((PyObject *)__pyx_v_user_data)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1346, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_font_extents = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_font.pxi":1348
 *     font_extents = (<FontFuncs>py_font.funcs)._font_h_extents_func(
 *         py_font, <object>user_data)
 *     if font_extents is not None:             # <<<<<<<<<<<<<<
 *         if font_extents.ascender is not None:
 *             extents.ascender = font_extents.ascender
*/
  __pyx_t_6 = (__pyx_v_font_extents != Py_None);
  if (__pyx_t_6) {

    /* "src/uharfbuzz/_font.pxi":1349
 *         py_font, <object>user_data)
 *     if font_extents is not None:
 *         if font_extents.ascender is not None:             # <<<<<<<<<<<<<<
 *             extents.ascender = font_extents.ascender
 *         if font_extents.descender is not None:
*/
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_font_extents, __pyx_mstate_global->__pyx_n_u_ascender); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1349, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = (__pyx_t_1 != Py_None);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (__pyx_t_6) {

      /* "src/uharfbuzz/_font.pxi":1350
 *     if font_extents is not None:
 *         if font_extents.ascender is not None:
 *             extents.ascender = font_extents.ascender             # <<<<<<<<<<<<<<
 *         if font_extents.descender is not None:
 *             extents.descender = font_extents.descender
*/
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_font_extents, __pyx_mstate_global->__pyx_n_u_ascender); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1350, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_7 = __Pyx_PyLong_As_hb_position_t(__pyx_t_1); if (unlikely((__pyx_t_7 == ((hb_position_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 1350, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_v_extents->ascender = __pyx_t_7;

      /* "src/uharfbuzz/_font.pxi":1349
 *         py_font, <object>user_data)
 *     if font_extents is not None:
 *         if font_extents.ascender is not None:             # <<<<<<<<<<<<<<
 *             extents.ascender = font_extents.ascender
 *         if font_extents.descender is not None:
*/
    }

    /* "src/uharfbuzz/_font.pxi":1351
 *         if font_extents.ascender is not None:
 *             extents.ascender = font_extents.ascender
 *         if font_extents.descender is not None:             # <<<<<<<<<<<<<<
 *             extents.descender = font_extents.descender
 *         if font_extents.line_gap is not None:
*/
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_font_extents, __pyx_mstate_global->__pyx_n_u_descender); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1351, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = (__pyx_t_1 != Py_None);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (__pyx_t_6) {

      /* "src/uharfbuzz/_font.pxi":1352
 *             extents.ascender = font_extents.ascender
 *         if font_extents.descender is not None:
 *             extents.descender = font_extents.descender             # <<<<<<<<<<<<<<
 *         if font_extents.line_gap is not None:
 *             extents.line_gap = font_extents.line_gap
*/
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_font_extents, __pyx_mstate_global->__pyx_n_u_descender); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1352, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_7 = __Pyx_PyLong_As_hb_position_t(__pyx_t_1); if (unlikely((__pyx_t_7 == ((hb_position_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 1352, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_v_extents->descender = __pyx_t_7;

      /* "src/uharfbuzz/_font.pxi":1351
 *         if font_extents.ascender is not None:
 *             extents.ascender = font_extents.ascender
 *         if font_extents.descender is not None:             # <<<<<<<<<<<<<<
 *             extents.descender = font_extents.descender
 *         if font_extents.line_gap is not None:
*/
    }

    /* "src/uharfbuzz/_font.pxi":1353
 *         if font_extents.descender is not None:
 *             extents.descender = font_extents.descender
 *         if font_extents.line_gap is not None:             # <<<<<<<<<<<<<<
 *             extents.line_gap = font_extents.line_gap
 *         return 1
*/
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_font_extents, __pyx_mstate_global->__pyx_n_u_line_gap); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1353, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = (__pyx_t_1 != Py_None);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (__pyx_t_6) {

      /* "src/uharfbuzz/_font.pxi":1354
 *             extents.descender = font_extents.descender
 *         if font_extents.line_gap is not None:
 *             extents.line_gap = font_extents.line_gap             # <<<<<<<<<<<<<<
 *         return 1
 *     return 0
*/
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_font_extents, __pyx_mstate_global->__pyx_n_u_line_gap); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1354, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_7 = __Pyx_PyLong_As_hb_position_t(__pyx_t_1); if (unlikely((__pyx_t_7 == ((hb_position_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 1354, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_v_extents->line_gap = __pyx_t_7;

      /* "src/uharfbuzz/_font.pxi":1353
 *         if font_extents.descender is not None:
 *             extents.descender = font_extents.descender
 *         if font_extents.line_gap is not None:             # <<<<<<<<<<<<<<
 *             extents.line_gap = font_extents.line_gap
 *         return 1
*/
    }

    /* "src/uharfbuzz/_font.pxi":1355
 *         if font_extents.line_gap is not None:
 *             extents.line_gap = font_extents.line_gap
 *         return 1             # <<<<<<<<<<<<<<
 *     return 0
 * 
*/
    __pyx_r = 1;
    goto __pyx_L0;

    /* "src/uharfbuzz/_font.pxi":1348
 *     font_extents = (<FontFuncs>py_font.funcs)._font_h_extents_func(
 *         py_font, <object>user_data)
 *     if font_extents is not None:             # <<<<<<<<<<<<<<
 *         if font_extents.ascender is not None:
 *             extents.ascender = font_extents.ascender
*/
  }

  /* "src/uharfbuzz/_font.pxi":1356
 *             extents.line_gap = font_extents.line_gap
 *         return 1
 *     return 0             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_r = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":1342
 * 
 * 
 * cdef hb_bool_t _font_h_extents_func(hb_font_t* font, void* font_data,             # <<<<<<<<<<<<<<
 *                                     hb_font_extents_t *extents,
 *                                     void* user_data) noexcept:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._font_h_extents_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_font);
  __Pyx_XDECREF(__pyx_v_font_extents);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":1359
 * 
 * 
 * cdef hb_bool_t _font_v_extents_func(hb_font_t* font, void* font_data,             # <<<<<<<<<<<<<<
 *                                     hb_font_extents_t *extents,
 *                                     void* user_data) noexcept:
*/

static hb_bool_t __pyx_f_9uharfbuzz_9_harfbuzz__font_v_extents_func(CYTHON_UNUSED hb_font_t *__pyx_v_font, void *__pyx_v_font_data, hb_font_extents_t *__pyx_v_extents, void *__pyx_v_user_data) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_py_font = 0;
  PyObject *__pyx_v_font_extents = NULL;
  hb_bool_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_t_6;
  hb_position_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_font_v_extents_func", 0);

  /* "src/uharfbuzz/_font.pxi":1362
 *                                     hb_font_extents_t *extents,
 *                                     void* user_data) noexcept:
 *     cdef Font py_font = <Font>font_data             # <<<<<<<<<<<<<<
 *     font_extents = (<FontFuncs>py_font.funcs)._font_v_extents_func(
 *         py_font, <object>user_data)
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_font_data);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_py_font = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_font.pxi":1363
 *                                     void* user_data) noexcept:
 *     cdef Font py_font = <Font>font_data
 *     font_extents = (<FontFuncs>py_font.funcs)._font_v_extents_func(             # <<<<<<<<<<<<<<
 *         py_font, <object>user_data)
 *     if font_extents is not None:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_py_font), __pyx_mstate_global->__pyx_n_u_funcs); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1363, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)__pyx_t_3)->_font_v_extents_func);
  __pyx_t_4 = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)__pyx_t_3)->_font_v_extents_func; 
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "src/uharfbuzz/_font.pxi":1364
 *     cdef Font py_font = <Font>font_data
 *     font_extents = (<FontFuncs>py_font.funcs)._font_v_extents_func(
 *         py_font, <object>user_data)             # <<<<<<<<<<<<<<
 *     if font_extents is not None:
 *         if font_extents.ascender is not None:
*/
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (likely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, ((PyObject *)__pyx_v_py_font), ((PyObject *)__pyx_v_user_data)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1363, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_font_extents = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_font.pxi":1365
 *     font_extents = (<FontFuncs>py_font.funcs)._font_v_extents_func(
 *         py_font, <object>user_data)
 *     if font_extents is not None:             # <<<<<<<<<<<<<<
 *         if font_extents.ascender is not None:
 *             extents.ascender = font_extents.ascender
*/
  __pyx_t_6 = (__pyx_v_font_extents != Py_None);
  if (__pyx_t_6) {

    /* "src/uharfbuzz/_font.pxi":1366
 *         py_font, <object>user_data)
 *     if font_extents is not None:
 *         if font_extents.ascender is not None:             # <<<<<<<<<<<<<<
 *             extents.ascender = font_extents.ascender
 *         if font_extents.descender is not None:
*/
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_font_extents, __pyx_mstate_global->__pyx_n_u_ascender); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1366, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = (__pyx_t_1 != Py_None);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (__pyx_t_6) {

      /* "src/uharfbuzz/_font.pxi":1367
 *     if font_extents is not None:
 *         if font_extents.ascender is not None:
 *             extents.ascender = font_extents.ascender             # <<<<<<<<<<<<<<
 *         if font_extents.descender is not None:
 *             extents.descender = font_extents.descender
*/
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_font_extents, __pyx_mstate_global->__pyx_n_u_ascender); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1367, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_7 = __Pyx_PyLong_As_hb_position_t(__pyx_t_1); if (unlikely((__pyx_t_7 == ((hb_position_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 1367, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_v_extents->ascender = __pyx_t_7;

      /* "src/uharfbuzz/_font.pxi":1366
 *         py_font, <object>user_data)
 *     if font_extents is not None:
 *         if font_extents.ascender is not None:             # <<<<<<<<<<<<<<
 *             extents.ascender = font_extents.ascender
 *         if font_extents.descender is not None:
*/
    }

    /* "src/uharfbuzz/_font.pxi":1368
 *         if font_extents.ascender is not None:
 *             extents.ascender = font_extents.ascender
 *         if font_extents.descender is not None:             # <<<<<<<<<<<<<<
 *             extents.descender = font_extents.descender
 *         if font_extents.line_gap is not None:
*/
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_font_extents, __pyx_mstate_global->__pyx_n_u_descender); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1368, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = (__pyx_t_1 != Py_None);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (__pyx_t_6) {

      /* "src/uharfbuzz/_font.pxi":1369
 *             extents.ascender = font_extents.ascender
 *         if font_extents.descender is not None:
 *             extents.descender = font_extents.descender             # <<<<<<<<<<<<<<
 *         if font_extents.line_gap is not None:
 *             extents.line_gap = font_extents.line_gap
*/
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_font_extents, __pyx_mstate_global->__pyx_n_u_descender); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1369, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_7 = __Pyx_PyLong_As_hb_position_t(__pyx_t_1); if (unlikely((__pyx_t_7 == ((hb_position_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 1369, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_v_extents->descender = __pyx_t_7;

      /* "src/uharfbuzz/_font.pxi":1368
 *         if font_extents.ascender is not None:
 *             extents.ascender = font_extents.ascender
 *         if font_extents.descender is not None:             # <<<<<<<<<<<<<<
 *             extents.descender = font_extents.descender
 *         if font_extents.line_gap is not None:
*/
    }

    /* "src/uharfbuzz/_font.pxi":1370
 *         if font_extents.descender is not None:
 *             extents.descender = font_extents.descender
 *         if font_extents.line_gap is not None:             # <<<<<<<<<<<<<<
 *             extents.line_gap = font_extents.line_gap
 *         return 1
*/
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_font_extents, __pyx_mstate_global->__pyx_n_u_line_gap); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1370, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = (__pyx_t_1 != Py_None);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (__pyx_t_6) {

      /* "src/uharfbuzz/_font.pxi":1371
 *             extents.descender = font_extents.descender
 *         if font_extents.line_gap is not None:
 *             extents.line_gap = font_extents.line_gap             # <<<<<<<<<<<<<<
 *         return 1
 *     return 0
*/
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_font_extents, __pyx_mstate_global->__pyx_n_u_line_gap); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1371, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_7 = __Pyx_PyLong_As_hb_position_t(__pyx_t_1); if (unlikely((__pyx_t_7 == ((hb_position_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 1371, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_v_extents->line_gap = __pyx_t_7;

      /* "src/uharfbuzz/_font.pxi":1370
 *         if font_extents.descender is not None:
 *             extents.descender = font_extents.descender
 *         if font_extents.line_gap is not None:             # <<<<<<<<<<<<<<
 *             extents.line_gap = font_extents.line_gap
 *         return 1
*/
    }

    /* "src/uharfbuzz/_font.pxi":1372
 *         if font_extents.line_gap is not None:
 *             extents.line_gap = font_extents.line_gap
 *         return 1             # <<<<<<<<<<<<<<
 *     return 0
 * 
*/
    __pyx_r = 1;
    goto __pyx_L0;

    /* "src/uharfbuzz/_font.pxi":1365
 *     font_extents = (<FontFuncs>py_font.funcs)._font_v_extents_func(
 *         py_font, <object>user_data)
 *     if font_extents is not None:             # <<<<<<<<<<<<<<
 *         if font_extents.ascender is not None:
 *             extents.ascender = font_extents.ascender
*/
  }

  /* "src/uharfbuzz/_font.pxi":1373
 *             extents.line_gap = font_extents.line_gap
 *         return 1
 *     return 0             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_r = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":1359
 * 
 * 
 * cdef hb_bool_t _font_v_extents_func(hb_font_t* font, void* font_data,             # <<<<<<<<<<<<<<
 *                                     hb_font_extents_t *extents,
 *                                     void* user_data) noexcept:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("uharfbuzz._harfbuzz._font_v_extents_func", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_font);
  __Pyx_XDECREF(__pyx_v_font_extents);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":1393
 *     cdef object _font_v_extents_func
 * 
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self._hb_ffuncs = hb_font_funcs_create()
 * 
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, __pyx_nargs); return -1; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__cinit__", __pyx_kwds); return -1;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs___cinit__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_v_self) {
  int __pyx_r;

  /* "src/uharfbuzz/_font.pxi":1394
 * 
 *     def __cinit__(self):
 *         self._hb_ffuncs = hb_font_funcs_create()             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
  __pyx_v_self->_hb_ffuncs = hb_font_funcs_create();

  /* "src/uharfbuzz/_font.pxi":1393
 *     cdef object _font_v_extents_func
 * 
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self._hb_ffuncs = hb_font_funcs_create()
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":1396
 *         self._hb_ffuncs = hb_font_funcs_create()
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         hb_font_funcs_destroy(self._hb_ffuncs)
 * 
*/

/* Python wrapper */
static void __pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_2__dealloc__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_2__dealloc__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_v_self) {

  /* "src/uharfbuzz/_font.pxi":1397
 * 
 *     def __dealloc__(self):
 *         hb_font_funcs_destroy(self._hb_ffuncs)             # <<<<<<<<<<<<<<
 * 
 *     @classmethod
*/
  hb_font_funcs_destroy(__pyx_v_self->_hb_ffuncs);

  /* "src/uharfbuzz/_font.pxi":1396
 *         self._hb_ffuncs = hb_font_funcs_create()
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         hb_font_funcs_destroy(self._hb_ffuncs)
 * 
*/

  /* function exit code */
}

/* "src/uharfbuzz/_font.pxi":1399
 *         hb_font_funcs_destroy(self._hb_ffuncs)
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     @deprecated("FontFuncs()", since="0.10.0")
 *     def create(cls) -> FontFuncs:
*/

/* Python wrapper */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_5create(PyObject *__pyx_v_cls, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_9FontFuncs_5create = {"create", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_5create, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_5create(PyObject *__pyx_v_cls, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("create (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("create", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("create", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_4create(((PyTypeObject*)__pyx_v_cls));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_4create(PyTypeObject *__pyx_v_cls) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_v_inst = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("create", 0);

  /* "src/uharfbuzz/_font.pxi":1402
 *     @deprecated("FontFuncs()", since="0.10.0")
 *     def create(cls) -> FontFuncs:
 *         cdef FontFuncs inst = cls()             # <<<<<<<<<<<<<<
 *         return inst
 * 
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_v_cls, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1402, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_FontFuncs))))) __PYX_ERR(3, 1402, __pyx_L1_error)
  __pyx_v_inst = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_font.pxi":1403
 *     def create(cls) -> FontFuncs:
 *         cdef FontFuncs inst = cls()
 *         return inst             # <<<<<<<<<<<<<<
 * 
 *     def set_glyph_h_advance_func(self,
*/
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_inst);
  __pyx_r = __pyx_v_inst;
  goto __pyx_L0;

  /* "src/uharfbuzz/_font.pxi":1399
 *         hb_font_funcs_destroy(self._hb_ffuncs)
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     @deprecated("FontFuncs()", since="0.10.0")
 *     def create(cls) -> FontFuncs:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.FontFuncs.create", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_inst);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":1405
 *         return inst
 * 
 *     def set_glyph_h_advance_func(self,             # <<<<<<<<<<<<<<
 *                                  func: Callable[[
 *                                      Font,
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_7set_glyph_h_advance_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_9FontFuncs_6set_glyph_h_advance_func, "Sets the implementation function for the horizontal-glyph-advance\n        callback.\n\n        Wraps `hb_font_funcs_set_glyph_h_advance_func()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-funcs-set-glyph-h-advance-func>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_9FontFuncs_7set_glyph_h_advance_func = {"set_glyph_h_advance_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_7set_glyph_h_advance_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_9FontFuncs_6set_glyph_h_advance_func};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_7set_glyph_h_advance_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_func = 0;
  PyObject *__pyx_v_user_data = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_glyph_h_advance_func (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func,&__pyx_mstate_global->__pyx_n_u_user_data,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 1405, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 1405, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1405, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_glyph_h_advance_func", 0) < (0)) __PYX_ERR(3, 1405, __pyx_L3_error)

      /* "src/uharfbuzz/_font.pxi":1411
 *                                      object,  # user_data
 *                                  ], int],  # h_advance
 *                                  user_data: object = None):             # <<<<<<<<<<<<<<
 *         """Sets the implementation function for the horizontal-glyph-advance
 *         callback.
*/
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_glyph_h_advance_func", 0, 1, 2, i); __PYX_ERR(3, 1405, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 1405, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1405, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_func = values[0];
    __pyx_v_user_data = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_glyph_h_advance_func", 0, 1, 2, __pyx_nargs); __PYX_ERR(3, 1405, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.FontFuncs.set_glyph_h_advance_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_6set_glyph_h_advance_func(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)__pyx_v_self), __pyx_v_func, __pyx_v_user_data);

  /* "src/uharfbuzz/_font.pxi":1405
 *         return inst
 * 
 *     def set_glyph_h_advance_func(self,             # <<<<<<<<<<<<<<
 *                                  func: Callable[[
 *                                      Font,
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_6set_glyph_h_advance_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_v_self, PyObject *__pyx_v_func, PyObject *__pyx_v_user_data) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_glyph_h_advance_func", 0);

  /* "src/uharfbuzz/_font.pxi":1418
 *         <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-funcs-set-glyph-h-advance-func>`_.
 *         """
 *         hb_font_funcs_set_glyph_h_advance_func(             # <<<<<<<<<<<<<<
 *             self._hb_ffuncs, _glyph_h_advance_func, <void*>user_data, NULL)
 *         self._glyph_h_advance_func = func
*/
  hb_font_funcs_set_glyph_h_advance_func(__pyx_v_self->_hb_ffuncs, __pyx_f_9uharfbuzz_9_harfbuzz__glyph_h_advance_func, ((void *)__pyx_v_user_data), NULL);

  /* "src/uharfbuzz/_font.pxi":1420
 *         hb_font_funcs_set_glyph_h_advance_func(
 *             self._hb_ffuncs, _glyph_h_advance_func, <void*>user_data, NULL)
 *         self._glyph_h_advance_func = func             # <<<<<<<<<<<<<<
 * 
 *     def set_glyph_v_advance_func(self,
*/
  __Pyx_INCREF(__pyx_v_func);
  __Pyx_GIVEREF(__pyx_v_func);
  __Pyx_GOTREF(__pyx_v_self->_glyph_h_advance_func);
  __Pyx_DECREF(__pyx_v_self->_glyph_h_advance_func);
  __pyx_v_self->_glyph_h_advance_func = __pyx_v_func;

  /* "src/uharfbuzz/_font.pxi":1405
 *         return inst
 * 
 *     def set_glyph_h_advance_func(self,             # <<<<<<<<<<<<<<
 *                                  func: Callable[[
 *                                      Font,
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":1422
 *         self._glyph_h_advance_func = func
 * 
 *     def set_glyph_v_advance_func(self,             # <<<<<<<<<<<<<<
 *                                  func: Callable[[
 *                                      Font,
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_9set_glyph_v_advance_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_9FontFuncs_8set_glyph_v_advance_func, "Sets the implementation function for the vertical-glyph-advance\n        callback.\n\n        Wraps `hb_font_funcs_set_glyph_v_advance_func()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-funcs-set-glyph-v-advance-func>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_9FontFuncs_9set_glyph_v_advance_func = {"set_glyph_v_advance_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_9set_glyph_v_advance_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_9FontFuncs_8set_glyph_v_advance_func};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_9set_glyph_v_advance_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_func = 0;
  PyObject *__pyx_v_user_data = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_glyph_v_advance_func (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func,&__pyx_mstate_global->__pyx_n_u_user_data,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 1422, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 1422, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1422, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_glyph_v_advance_func", 0) < (0)) __PYX_ERR(3, 1422, __pyx_L3_error)

      /* "src/uharfbuzz/_font.pxi":1428
 *                                      object,  # user_data
 *                                  ], int],  # v_advance
 *                                  user_data: object = None):             # <<<<<<<<<<<<<<
 *         """Sets the implementation function for the vertical-glyph-advance
 *         callback.
*/
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_glyph_v_advance_func", 0, 1, 2, i); __PYX_ERR(3, 1422, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 1422, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1422, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_func = values[0];
    __pyx_v_user_data = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_glyph_v_advance_func", 0, 1, 2, __pyx_nargs); __PYX_ERR(3, 1422, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.FontFuncs.set_glyph_v_advance_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_8set_glyph_v_advance_func(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)__pyx_v_self), __pyx_v_func, __pyx_v_user_data);

  /* "src/uharfbuzz/_font.pxi":1422
 *         self._glyph_h_advance_func = func
 * 
 *     def set_glyph_v_advance_func(self,             # <<<<<<<<<<<<<<
 *                                  func: Callable[[
 *                                      Font,
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_8set_glyph_v_advance_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_v_self, PyObject *__pyx_v_func, PyObject *__pyx_v_user_data) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_glyph_v_advance_func", 0);

  /* "src/uharfbuzz/_font.pxi":1435
 *         <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-funcs-set-glyph-v-advance-func>`_.
 *         """
 *         hb_font_funcs_set_glyph_v_advance_func(             # <<<<<<<<<<<<<<
 *             self._hb_ffuncs, _glyph_v_advance_func, <void*>user_data, NULL)
 *         self._glyph_v_advance_func = func
*/
  hb_font_funcs_set_glyph_v_advance_func(__pyx_v_self->_hb_ffuncs, __pyx_f_9uharfbuzz_9_harfbuzz__glyph_v_advance_func, ((void *)__pyx_v_user_data), NULL);

  /* "src/uharfbuzz/_font.pxi":1437
 *         hb_font_funcs_set_glyph_v_advance_func(
 *             self._hb_ffuncs, _glyph_v_advance_func, <void*>user_data, NULL)
 *         self._glyph_v_advance_func = func             # <<<<<<<<<<<<<<
 * 
 *     def set_glyph_v_origin_func(self,
*/
  __Pyx_INCREF(__pyx_v_func);
  __Pyx_GIVEREF(__pyx_v_func);
  __Pyx_GOTREF(__pyx_v_self->_glyph_v_advance_func);
  __Pyx_DECREF(__pyx_v_self->_glyph_v_advance_func);
  __pyx_v_self->_glyph_v_advance_func = __pyx_v_func;

  /* "src/uharfbuzz/_font.pxi":1422
 *         self._glyph_h_advance_func = func
 * 
 *     def set_glyph_v_advance_func(self,             # <<<<<<<<<<<<<<
 *                                  func: Callable[[
 *                                      Font,
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":1439
 *         self._glyph_v_advance_func = func
 * 
 *     def set_glyph_v_origin_func(self,             # <<<<<<<<<<<<<<
 *                                 func: Callable[[
 *                                     Font,
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_11set_glyph_v_origin_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_9FontFuncs_10set_glyph_v_origin_func, "Sets the implementation function for the vertical-glyph-origin\n        callback. The callback must return a ``(success, x, y)`` tuple.\n\n        Wraps `hb_font_funcs_set_glyph_v_origin_func()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-funcs-set-glyph-v-origin-func>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_9FontFuncs_11set_glyph_v_origin_func = {"set_glyph_v_origin_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_11set_glyph_v_origin_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_9FontFuncs_10set_glyph_v_origin_func};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_11set_glyph_v_origin_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_func = 0;
  PyObject *__pyx_v_user_data = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_glyph_v_origin_func (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func,&__pyx_mstate_global->__pyx_n_u_user_data,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 1439, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 1439, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1439, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_glyph_v_origin_func", 0) < (0)) __PYX_ERR(3, 1439, __pyx_L3_error)

      /* "src/uharfbuzz/_font.pxi":1445
 *                                     object,  # user_data
 *                                 ], (int, int, int)],  # success, v_origin_x, v_origin_y
 *                                 user_data: object = None):             # <<<<<<<<<<<<<<
 *         """Sets the implementation function for the vertical-glyph-origin
 *         callback. The callback must return a ``(success, x, y)`` tuple.
*/
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_glyph_v_origin_func", 0, 1, 2, i); __PYX_ERR(3, 1439, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 1439, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1439, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_func = values[0];
    __pyx_v_user_data = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_glyph_v_origin_func", 0, 1, 2, __pyx_nargs); __PYX_ERR(3, 1439, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.FontFuncs.set_glyph_v_origin_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_10set_glyph_v_origin_func(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)__pyx_v_self), __pyx_v_func, __pyx_v_user_data);

  /* "src/uharfbuzz/_font.pxi":1439
 *         self._glyph_v_advance_func = func
 * 
 *     def set_glyph_v_origin_func(self,             # <<<<<<<<<<<<<<
 *                                 func: Callable[[
 *                                     Font,
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_10set_glyph_v_origin_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_v_self, PyObject *__pyx_v_func, PyObject *__pyx_v_user_data) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_glyph_v_origin_func", 0);

  /* "src/uharfbuzz/_font.pxi":1452
 *         <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-funcs-set-glyph-v-origin-func>`_.
 *         """
 *         hb_font_funcs_set_glyph_v_origin_func(             # <<<<<<<<<<<<<<
 *             self._hb_ffuncs, _glyph_v_origin_func, <void*>user_data, NULL)
 *         self._glyph_v_origin_func = func
*/
  hb_font_funcs_set_glyph_v_origin_func(__pyx_v_self->_hb_ffuncs, __pyx_f_9uharfbuzz_9_harfbuzz__glyph_v_origin_func, ((void *)__pyx_v_user_data), NULL);

  /* "src/uharfbuzz/_font.pxi":1454
 *         hb_font_funcs_set_glyph_v_origin_func(
 *             self._hb_ffuncs, _glyph_v_origin_func, <void*>user_data, NULL)
 *         self._glyph_v_origin_func = func             # <<<<<<<<<<<<<<
 * 
 *     def set_glyph_name_func(self,
*/
  __Pyx_INCREF(__pyx_v_func);
  __Pyx_GIVEREF(__pyx_v_func);
  __Pyx_GOTREF(__pyx_v_self->_glyph_v_origin_func);
  __Pyx_DECREF(__pyx_v_self->_glyph_v_origin_func);
  __pyx_v_self->_glyph_v_origin_func = __pyx_v_func;

  /* "src/uharfbuzz/_font.pxi":1439
 *         self._glyph_v_advance_func = func
 * 
 *     def set_glyph_v_origin_func(self,             # <<<<<<<<<<<<<<
 *                                 func: Callable[[
 *                                     Font,
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":1456
 *         self._glyph_v_origin_func = func
 * 
 *     def set_glyph_name_func(self,             # <<<<<<<<<<<<<<
 *                             func: Callable[[
 *                                 Font,
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_13set_glyph_name_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_9FontFuncs_12set_glyph_name_func, "Sets the implementation function for the glyph-name callback.\n\n        Wraps `hb_font_funcs_set_glyph_name_func()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-funcs-set-glyph-name-func>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_9FontFuncs_13set_glyph_name_func = {"set_glyph_name_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_13set_glyph_name_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_9FontFuncs_12set_glyph_name_func};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_13set_glyph_name_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_func = 0;
  PyObject *__pyx_v_user_data = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_glyph_name_func (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func,&__pyx_mstate_global->__pyx_n_u_user_data,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 1456, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 1456, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1456, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_glyph_name_func", 0) < (0)) __PYX_ERR(3, 1456, __pyx_L3_error)

      /* "src/uharfbuzz/_font.pxi":1462
 *                                 object,  # user_data
 *                             ], str],  # name
 *                             user_data: object = None):             # <<<<<<<<<<<<<<
 *         """Sets the implementation function for the glyph-name callback.
 * 
*/
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_glyph_name_func", 0, 1, 2, i); __PYX_ERR(3, 1456, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 1456, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1456, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_func = values[0];
    __pyx_v_user_data = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_glyph_name_func", 0, 1, 2, __pyx_nargs); __PYX_ERR(3, 1456, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.FontFuncs.set_glyph_name_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_12set_glyph_name_func(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)__pyx_v_self), __pyx_v_func, __pyx_v_user_data);

  /* "src/uharfbuzz/_font.pxi":1456
 *         self._glyph_v_origin_func = func
 * 
 *     def set_glyph_name_func(self,             # <<<<<<<<<<<<<<
 *                             func: Callable[[
 *                                 Font,
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_12set_glyph_name_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_v_self, PyObject *__pyx_v_func, PyObject *__pyx_v_user_data) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_glyph_name_func", 0);

  /* "src/uharfbuzz/_font.pxi":1468
 *         <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-funcs-set-glyph-name-func>`_.
 *         """
 *         hb_font_funcs_set_glyph_name_func(             # <<<<<<<<<<<<<<
 *             self._hb_ffuncs, _glyph_name_func, <void*>user_data, NULL)
 *         self._glyph_name_func = func
*/
  hb_font_funcs_set_glyph_name_func(__pyx_v_self->_hb_ffuncs, __pyx_f_9uharfbuzz_9_harfbuzz__glyph_name_func, ((void *)__pyx_v_user_data), NULL);

  /* "src/uharfbuzz/_font.pxi":1470
 *         hb_font_funcs_set_glyph_name_func(
 *             self._hb_ffuncs, _glyph_name_func, <void*>user_data, NULL)
 *         self._glyph_name_func = func             # <<<<<<<<<<<<<<
 * 
 *     def set_nominal_glyph_func(self,
*/
  __Pyx_INCREF(__pyx_v_func);
  __Pyx_GIVEREF(__pyx_v_func);
  __Pyx_GOTREF(__pyx_v_self->_glyph_name_func);
  __Pyx_DECREF(__pyx_v_self->_glyph_name_func);
  __pyx_v_self->_glyph_name_func = __pyx_v_func;

  /* "src/uharfbuzz/_font.pxi":1456
 *         self._glyph_v_origin_func = func
 * 
 *     def set_glyph_name_func(self,             # <<<<<<<<<<<<<<
 *                             func: Callable[[
 *                                 Font,
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":1472
 *         self._glyph_name_func = func
 * 
 *     def set_nominal_glyph_func(self,             # <<<<<<<<<<<<<<
 *                                func: Callable[[
 *                                    Font,
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_15set_nominal_glyph_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_9FontFuncs_14set_nominal_glyph_func, "Sets the implementation function for the nominal-glyph callback.\n\n        Wraps `hb_font_funcs_set_nominal_glyph_func()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-funcs-set-nominal-glyph-func>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_9FontFuncs_15set_nominal_glyph_func = {"set_nominal_glyph_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_15set_nominal_glyph_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_9FontFuncs_14set_nominal_glyph_func};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_15set_nominal_glyph_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_func = 0;
  PyObject *__pyx_v_user_data = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_nominal_glyph_func (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func,&__pyx_mstate_global->__pyx_n_u_user_data,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 1472, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 1472, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1472, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_nominal_glyph_func", 0) < (0)) __PYX_ERR(3, 1472, __pyx_L3_error)

      /* "src/uharfbuzz/_font.pxi":1478
 *                                    object,  # user_data
 *                                ], int],  # gid
 *                                user_data: object = None):             # <<<<<<<<<<<<<<
 *         """Sets the implementation function for the nominal-glyph callback.
 * 
*/
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_nominal_glyph_func", 0, 1, 2, i); __PYX_ERR(3, 1472, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 1472, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1472, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_func = values[0];
    __pyx_v_user_data = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_nominal_glyph_func", 0, 1, 2, __pyx_nargs); __PYX_ERR(3, 1472, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.FontFuncs.set_nominal_glyph_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_14set_nominal_glyph_func(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)__pyx_v_self), __pyx_v_func, __pyx_v_user_data);

  /* "src/uharfbuzz/_font.pxi":1472
 *         self._glyph_name_func = func
 * 
 *     def set_nominal_glyph_func(self,             # <<<<<<<<<<<<<<
 *                                func: Callable[[
 *                                    Font,
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_14set_nominal_glyph_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_v_self, PyObject *__pyx_v_func, PyObject *__pyx_v_user_data) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_nominal_glyph_func", 0);

  /* "src/uharfbuzz/_font.pxi":1484
 *         <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-funcs-set-nominal-glyph-func>`_.
 *         """
 *         hb_font_funcs_set_nominal_glyph_func(             # <<<<<<<<<<<<<<
 *             self._hb_ffuncs, _nominal_glyph_func, <void*>user_data, NULL)
 *         self._nominal_glyph_func = func
*/
  hb_font_funcs_set_nominal_glyph_func(__pyx_v_self->_hb_ffuncs, __pyx_f_9uharfbuzz_9_harfbuzz__nominal_glyph_func, ((void *)__pyx_v_user_data), NULL);

  /* "src/uharfbuzz/_font.pxi":1486
 *         hb_font_funcs_set_nominal_glyph_func(
 *             self._hb_ffuncs, _nominal_glyph_func, <void*>user_data, NULL)
 *         self._nominal_glyph_func = func             # <<<<<<<<<<<<<<
 * 
 *     def set_variation_glyph_func(self,
*/
  __Pyx_INCREF(__pyx_v_func);
  __Pyx_GIVEREF(__pyx_v_func);
  __Pyx_GOTREF(__pyx_v_self->_nominal_glyph_func);
  __Pyx_DECREF(__pyx_v_self->_nominal_glyph_func);
  __pyx_v_self->_nominal_glyph_func = __pyx_v_func;

  /* "src/uharfbuzz/_font.pxi":1472
 *         self._glyph_name_func = func
 * 
 *     def set_nominal_glyph_func(self,             # <<<<<<<<<<<<<<
 *                                func: Callable[[
 *                                    Font,
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":1488
 *         self._nominal_glyph_func = func
 * 
 *     def set_variation_glyph_func(self,             # <<<<<<<<<<<<<<
 *                                func: Callable[[
 *                                    Font,
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_17set_variation_glyph_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_9FontFuncs_16set_variation_glyph_func, "Sets the implementation function for the variation-glyph\n        callback.\n\n        Wraps `hb_font_funcs_set_variation_glyph_func()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-funcs-set-variation-glyph-func>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_9FontFuncs_17set_variation_glyph_func = {"set_variation_glyph_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_17set_variation_glyph_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_9FontFuncs_16set_variation_glyph_func};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_17set_variation_glyph_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_func = 0;
  PyObject *__pyx_v_user_data = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_variation_glyph_func (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func,&__pyx_mstate_global->__pyx_n_u_user_data,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 1488, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 1488, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1488, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_variation_glyph_func", 0) < (0)) __PYX_ERR(3, 1488, __pyx_L3_error)

      /* "src/uharfbuzz/_font.pxi":1495
 *                                    object,  # user_data
 *                                ], int],  # gid
 *                                user_data: object = None):             # <<<<<<<<<<<<<<
 *         """Sets the implementation function for the variation-glyph
 *         callback.
*/
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_variation_glyph_func", 0, 1, 2, i); __PYX_ERR(3, 1488, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 1488, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1488, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_func = values[0];
    __pyx_v_user_data = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_variation_glyph_func", 0, 1, 2, __pyx_nargs); __PYX_ERR(3, 1488, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.FontFuncs.set_variation_glyph_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_16set_variation_glyph_func(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)__pyx_v_self), __pyx_v_func, __pyx_v_user_data);

  /* "src/uharfbuzz/_font.pxi":1488
 *         self._nominal_glyph_func = func
 * 
 *     def set_variation_glyph_func(self,             # <<<<<<<<<<<<<<
 *                                func: Callable[[
 *                                    Font,
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_16set_variation_glyph_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_v_self, PyObject *__pyx_v_func, PyObject *__pyx_v_user_data) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_variation_glyph_func", 0);

  /* "src/uharfbuzz/_font.pxi":1502
 *         <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-funcs-set-variation-glyph-func>`_.
 *         """
 *         hb_font_funcs_set_variation_glyph_func(             # <<<<<<<<<<<<<<
 *             self._hb_ffuncs, _variation_glyph_func, <void*>user_data, NULL)
 *         self._variation_glyph_func = func
*/
  hb_font_funcs_set_variation_glyph_func(__pyx_v_self->_hb_ffuncs, __pyx_f_9uharfbuzz_9_harfbuzz__variation_glyph_func, ((void *)__pyx_v_user_data), NULL);

  /* "src/uharfbuzz/_font.pxi":1504
 *         hb_font_funcs_set_variation_glyph_func(
 *             self._hb_ffuncs, _variation_glyph_func, <void*>user_data, NULL)
 *         self._variation_glyph_func = func             # <<<<<<<<<<<<<<
 * 
 *     def set_font_h_extents_func(self,
*/
  __Pyx_INCREF(__pyx_v_func);
  __Pyx_GIVEREF(__pyx_v_func);
  __Pyx_GOTREF(__pyx_v_self->_variation_glyph_func);
  __Pyx_DECREF(__pyx_v_self->_variation_glyph_func);
  __pyx_v_self->_variation_glyph_func = __pyx_v_func;

  /* "src/uharfbuzz/_font.pxi":1488
 *         self._nominal_glyph_func = func
 * 
 *     def set_variation_glyph_func(self,             # <<<<<<<<<<<<<<
 *                                func: Callable[[
 *                                    Font,
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":1506
 *         self._variation_glyph_func = func
 * 
 *     def set_font_h_extents_func(self,             # <<<<<<<<<<<<<<
 *                                 func: Callable[[
 *                                     Font,
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_19set_font_h_extents_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_9FontFuncs_18set_font_h_extents_func, "Sets the implementation function for the horizontal-font-extents\n        callback.\n\n        Wraps `hb_font_funcs_set_font_h_extents_func()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-funcs-set-font-h-extents-func>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_9FontFuncs_19set_font_h_extents_func = {"set_font_h_extents_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_19set_font_h_extents_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_9FontFuncs_18set_font_h_extents_func};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_19set_font_h_extents_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_func = 0;
  PyObject *__pyx_v_user_data = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_font_h_extents_func (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func,&__pyx_mstate_global->__pyx_n_u_user_data,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 1506, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 1506, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1506, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_font_h_extents_func", 0) < (0)) __PYX_ERR(3, 1506, __pyx_L3_error)

      /* "src/uharfbuzz/_font.pxi":1511
 *                                     object,  # user_data
 *                                 ], FontExtents],  # extents
 *                                 user_data: object = None):             # <<<<<<<<<<<<<<
 *         """Sets the implementation function for the horizontal-font-extents
 *         callback.
*/
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_font_h_extents_func", 0, 1, 2, i); __PYX_ERR(3, 1506, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 1506, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1506, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_func = values[0];
    __pyx_v_user_data = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_font_h_extents_func", 0, 1, 2, __pyx_nargs); __PYX_ERR(3, 1506, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.FontFuncs.set_font_h_extents_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_18set_font_h_extents_func(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)__pyx_v_self), __pyx_v_func, __pyx_v_user_data);

  /* "src/uharfbuzz/_font.pxi":1506
 *         self._variation_glyph_func = func
 * 
 *     def set_font_h_extents_func(self,             # <<<<<<<<<<<<<<
 *                                 func: Callable[[
 *                                     Font,
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_18set_font_h_extents_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_v_self, PyObject *__pyx_v_func, PyObject *__pyx_v_user_data) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_font_h_extents_func", 0);

  /* "src/uharfbuzz/_font.pxi":1518
 *         <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-funcs-set-font-h-extents-func>`_.
 *         """
 *         hb_font_funcs_set_font_h_extents_func(             # <<<<<<<<<<<<<<
 *             self._hb_ffuncs, _font_h_extents_func, <void*>user_data, NULL)
 *         self._font_h_extents_func = func
*/
  hb_font_funcs_set_font_h_extents_func(__pyx_v_self->_hb_ffuncs, __pyx_f_9uharfbuzz_9_harfbuzz__font_h_extents_func, ((void *)__pyx_v_user_data), NULL);

  /* "src/uharfbuzz/_font.pxi":1520
 *         hb_font_funcs_set_font_h_extents_func(
 *             self._hb_ffuncs, _font_h_extents_func, <void*>user_data, NULL)
 *         self._font_h_extents_func = func             # <<<<<<<<<<<<<<
 * 
 *     def set_font_v_extents_func(self,
*/
  __Pyx_INCREF(__pyx_v_func);
  __Pyx_GIVEREF(__pyx_v_func);
  __Pyx_GOTREF(__pyx_v_self->_font_h_extents_func);
  __Pyx_DECREF(__pyx_v_self->_font_h_extents_func);
  __pyx_v_self->_font_h_extents_func = __pyx_v_func;

  /* "src/uharfbuzz/_font.pxi":1506
 *         self._variation_glyph_func = func
 * 
 *     def set_font_h_extents_func(self,             # <<<<<<<<<<<<<<
 *                                 func: Callable[[
 *                                     Font,
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_font.pxi":1522
 *         self._font_h_extents_func = func
 * 
 *     def set_font_v_extents_func(self,             # <<<<<<<<<<<<<<
 *                                 func: Callable[[
 *                                     Font,
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_21set_font_v_extents_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_9FontFuncs_20set_font_v_extents_func, "Sets the implementation function for the vertical-font-extents\n        callback.\n\n        Wraps `hb_font_funcs_set_font_v_extents_func()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-funcs-set-font-v-extents-func>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_9FontFuncs_21set_font_v_extents_func = {"set_font_v_extents_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_21set_font_v_extents_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_9FontFuncs_20set_font_v_extents_func};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_21set_font_v_extents_func(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_func = 0;
  PyObject *__pyx_v_user_data = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_font_v_extents_func (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func,&__pyx_mstate_global->__pyx_n_u_user_data,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 1522, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 1522, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1522, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_font_v_extents_func", 0) < (0)) __PYX_ERR(3, 1522, __pyx_L3_error)

      /* "src/uharfbuzz/_font.pxi":1527
 *                                     object,  # user_data
 *                                 ], FontExtents],  # extents
 *                                 user_data: object = None):             # <<<<<<<<<<<<<<
 *         """Sets the implementation function for the vertical-font-extents
 *         callback.
*/
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_font_v_extents_func", 0, 1, 2, i); __PYX_ERR(3, 1522, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 1522, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 1522, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_func = values[0];
    __pyx_v_user_data = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_font_v_extents_func", 0, 1, 2, __pyx_nargs); __PYX_ERR(3, 1522, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.FontFuncs.set_font_v_extents_func", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_20set_font_v_extents_func(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)__pyx_v_self), __pyx_v_func, __pyx_v_user_data);

  /* "src/uharfbuzz/_font.pxi":1522
 *         self._font_h_extents_func = func
 * 
 *     def set_font_v_extents_func(self,             # <<<<<<<<<<<<<<
 *                                 func: Callable[[
 *                                     Font,
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_20set_font_v_extents_func(struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_v_self, PyObject *__pyx_v_func, PyObject *__pyx_v_user_data) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_font_v_extents_func", 0);

  /* "src/uharfbuzz/_font.pxi":1534
 *         <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-funcs-set-font-v-extents-func>`_.
 *         """
 *         hb_font_funcs_set_font_v_extents_func(             # <<<<<<<<<<<<<<
 *             self._hb_ffuncs, _font_v_extents_func, <void*>user_data, NULL)
 *         self._font_v_extents_func = func
*/
  hb_font_funcs_set_font_v_extents_func(__pyx_v_self->_hb_ffuncs, __pyx_f_9uharfbuzz_9_harfbuzz__font_v_extents_func, ((void *)__pyx_v_user_data), NULL);

  /* "src/uharfbuzz/_font.pxi":1536
 *         hb_font_funcs_set_font_v_extents_func(
 *             self._hb_ffuncs, _font_v_extents_func, <void*>user_data, NULL)
 *         self._font_v_extents_func = func             # <<<<<<<<<<<<<<
*/
  __Pyx_INCREF(__pyx_v_func);
  __Pyx_GIVEREF(__pyx_v_func);
  __Pyx_GOTREF(__pyx_v_self->_font_v_extents_func);
  __Pyx_DECREF(__pyx_v_self->_font_v_extents_func);
  __pyx_v_self->_font_v_extents_func = __pyx_v_func;

  /* "src/uharfbuzz/_font.pxi":1522
 *         self._font_h_extents_func = func
 * 
 *     def set_font_v_extents_func(self,             # <<<<<<<<<<<<<<
 *                                 func: Callable[[
 *                                     Font,
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_23__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_9FontFuncs_23__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_23__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_23__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_22__reduce_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_22__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.FontFuncs.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_25__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_9FontFuncs_25__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_25__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_25__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 3, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < (0)) __PYX_ERR(4, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(4, 3, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(4, 3, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.FontFuncs.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_24__setstate_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_9FontFuncs_24__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.FontFuncs.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":48
 *     cdef hb_raster_image_t* _hb_raster_image
 * 
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self._hb_raster_image = NULL
 * 
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, __pyx_nargs); return -1; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__cinit__", __pyx_kwds); return -1;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterImage___cinit__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterImage___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_v_self) {
  int __pyx_r;

  /* "src/uharfbuzz/_raster.pxi":49
 * 
 *     def __cinit__(self):
 *         self._hb_raster_image = NULL             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self):
*/
  __pyx_v_self->_hb_raster_image = NULL;

  /* "src/uharfbuzz/_raster.pxi":48
 *     cdef hb_raster_image_t* _hb_raster_image
 * 
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self._hb_raster_image = NULL
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":51
 *         self._hb_raster_image = NULL
 * 
 *     def __init__(self):             # <<<<<<<<<<<<<<
 *         self._hb_raster_image = hb_raster_image_create_or_fail()
 *         if self._hb_raster_image is NULL:
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, __pyx_nargs); return -1; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__init__", __pyx_kwds); return -1;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterImage_2__init__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterImage_2__init__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_v_self) {
  int __pyx_r;
  int __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "src/uharfbuzz/_raster.pxi":52
 * 
 *     def __init__(self):
 *         self._hb_raster_image = hb_raster_image_create_or_fail()             # <<<<<<<<<<<<<<
 *         if self._hb_raster_image is NULL:
 *             raise MemoryError()
*/
  __pyx_v_self->_hb_raster_image = hb_raster_image_create_or_fail();

  /* "src/uharfbuzz/_raster.pxi":53
 *     def __init__(self):
 *         self._hb_raster_image = hb_raster_image_create_or_fail()
 *         if self._hb_raster_image is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  __pyx_t_1 = (__pyx_v_self->_hb_raster_image == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "src/uharfbuzz/_raster.pxi":54
 *         self._hb_raster_image = hb_raster_image_create_or_fail()
 *         if self._hb_raster_image is NULL:
 *             raise MemoryError()             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
    PyErr_NoMemory(); __PYX_ERR(10, 54, __pyx_L1_error)

    /* "src/uharfbuzz/_raster.pxi":53
 *     def __init__(self):
 *         self._hb_raster_image = hb_raster_image_create_or_fail()
 *         if self._hb_raster_image is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  }

  /* "src/uharfbuzz/_raster.pxi":51
 *         self._hb_raster_image = NULL
 * 
 *     def __init__(self):             # <<<<<<<<<<<<<<
 *         self._hb_raster_image = hb_raster_image_create_or_fail()
 *         if self._hb_raster_image is NULL:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterImage.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":56
 *             raise MemoryError()
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         hb_raster_image_destroy(self._hb_raster_image)
 * 
*/

/* Python wrapper */
static void __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterImage_4__dealloc__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterImage_4__dealloc__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_v_self) {

  /* "src/uharfbuzz/_raster.pxi":57
 * 
 *     def __dealloc__(self):
 *         hb_raster_image_destroy(self._hb_raster_image)             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
*/
  hb_raster_image_destroy(__pyx_v_self->_hb_raster_image);

  /* "src/uharfbuzz/_raster.pxi":56
 *             raise MemoryError()
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         hb_raster_image_destroy(self._hb_raster_image)
 * 
*/

  /* function exit code */
}

/* "src/uharfbuzz/_raster.pxi":59
 *         hb_raster_image_destroy(self._hb_raster_image)
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     cdef RasterImage from_ptr(hb_raster_image_t* hb_img):
 *         """Create RasterImage from a pointer, taking ownership of it."""
*/

static struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_f_9uharfbuzz_9_harfbuzz_11RasterImage_from_ptr(hb_raster_image_t *__pyx_v_hb_img) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_v_wrapper = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("from_ptr", 0);

  /* "src/uharfbuzz/_raster.pxi":62
 *     cdef RasterImage from_ptr(hb_raster_image_t* hb_img):
 *         """Create RasterImage from a pointer, taking ownership of it."""
 *         cdef RasterImage wrapper = RasterImage.__new__(RasterImage)             # <<<<<<<<<<<<<<
 *         wrapper._hb_raster_image = hb_img
 *         return wrapper
*/
  __pyx_t_1 = ((PyObject *)__pyx_tp_new_9uharfbuzz_9_harfbuzz_RasterImage(((PyTypeObject *)__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterImage), __pyx_mstate_global->__pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 62, __pyx_L1_error)
  __Pyx_GOTREF((PyObject *)__pyx_t_1);
  __pyx_v_wrapper = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_raster.pxi":63
 *         """Create RasterImage from a pointer, taking ownership of it."""
 *         cdef RasterImage wrapper = RasterImage.__new__(RasterImage)
 *         wrapper._hb_raster_image = hb_img             # <<<<<<<<<<<<<<
 *         return wrapper
 * 
*/
  __pyx_v_wrapper->_hb_raster_image = __pyx_v_hb_img;

  /* "src/uharfbuzz/_raster.pxi":64
 *         cdef RasterImage wrapper = RasterImage.__new__(RasterImage)
 *         wrapper._hb_raster_image = hb_img
 *         return wrapper             # <<<<<<<<<<<<<<
 * 
 *     def configure(self, format: RasterFormat,
*/
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_wrapper);
  __pyx_r = __pyx_v_wrapper;
  goto __pyx_L0;

  /* "src/uharfbuzz/_raster.pxi":59
 *         hb_raster_image_destroy(self._hb_raster_image)
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     cdef RasterImage from_ptr(hb_raster_image_t* hb_img):
 *         """Create RasterImage from a pointer, taking ownership of it."""
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterImage.from_ptr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_wrapper);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":66
 *         return wrapper
 * 
 *     def configure(self, format: RasterFormat,             # <<<<<<<<<<<<<<
 *                   extents: RasterExtents | None = None) -> bool:
 *         """Configures this image's format and extents together, resizing
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_7configure(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_11RasterImage_6configure, "Configures this image's format and extents together, resizing\n        backing storage at most once. This function does not clear pixel\n        contents.\n\n        Passing ``None`` for ``extents`` clears extents and releases the\n        backing allocation.\n\n        :returns: ``True`` if configuration succeeds, ``False`` on\n            allocation failure.\n\n        Wraps `hb_raster_image_configure()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-image-configure>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_11RasterImage_7configure = {"configure", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_7configure, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11RasterImage_6configure};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_7configure(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_format = 0;
  PyObject *__pyx_v_extents = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("configure (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_format,&__pyx_mstate_global->__pyx_n_u_extents,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(10, 66, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(10, 66, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(10, 66, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "configure", 0) < (0)) __PYX_ERR(10, 66, __pyx_L3_error)

      /* "src/uharfbuzz/_raster.pxi":67
 * 
 *     def configure(self, format: RasterFormat,
 *                   extents: RasterExtents | None = None) -> bool:             # <<<<<<<<<<<<<<
 *         """Configures this image's format and extents together, resizing
 *         backing storage at most once. This function does not clear pixel
*/
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("configure", 0, 1, 2, i); __PYX_ERR(10, 66, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(10, 66, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(10, 66, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_format = values[0];
    __pyx_v_extents = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("configure", 0, 1, 2, __pyx_nargs); __PYX_ERR(10, 66, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterImage.configure", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterImage_6configure(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *)__pyx_v_self), __pyx_v_format, __pyx_v_extents);

  /* "src/uharfbuzz/_raster.pxi":66
 *         return wrapper
 * 
 *     def configure(self, format: RasterFormat,             # <<<<<<<<<<<<<<
 *                   extents: RasterExtents | None = None) -> bool:
 *         """Configures this image's format and extents together, resizing
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterImage_6configure(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_v_self, PyObject *__pyx_v_format, PyObject *__pyx_v_extents) {
  hb_raster_extents_t __pyx_v_c_extents;
  hb_raster_extents_t *__pyx_v_c_extents_ptr;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  unsigned int __pyx_t_4;
  hb_raster_format_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("configure", 0);

  /* "src/uharfbuzz/_raster.pxi":82
 *         """
 *         cdef hb_raster_extents_t c_extents
 *         cdef hb_raster_extents_t* c_extents_ptr = NULL             # <<<<<<<<<<<<<<
 *         if extents is not None:
 *             c_extents.x_origin = extents.x_origin
*/
  __pyx_v_c_extents_ptr = NULL;

  /* "src/uharfbuzz/_raster.pxi":83
 *         cdef hb_raster_extents_t c_extents
 *         cdef hb_raster_extents_t* c_extents_ptr = NULL
 *         if extents is not None:             # <<<<<<<<<<<<<<
 *             c_extents.x_origin = extents.x_origin
 *             c_extents.y_origin = extents.y_origin
*/
  __pyx_t_1 = (__pyx_v_extents != Py_None);
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_raster.pxi":84
 *         cdef hb_raster_extents_t* c_extents_ptr = NULL
 *         if extents is not None:
 *             c_extents.x_origin = extents.x_origin             # <<<<<<<<<<<<<<
 *             c_extents.y_origin = extents.y_origin
 *             c_extents.width = extents.width
*/
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_extents, __pyx_mstate_global->__pyx_n_u_x_origin); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 84, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyLong_As_int(__pyx_t_2); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(10, 84, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_c_extents.x_origin = __pyx_t_3;

    /* "src/uharfbuzz/_raster.pxi":85
 *         if extents is not None:
 *             c_extents.x_origin = extents.x_origin
 *             c_extents.y_origin = extents.y_origin             # <<<<<<<<<<<<<<
 *             c_extents.width = extents.width
 *             c_extents.height = extents.height
*/
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_extents, __pyx_mstate_global->__pyx_n_u_y_origin); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 85, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyLong_As_int(__pyx_t_2); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(10, 85, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_c_extents.y_origin = __pyx_t_3;

    /* "src/uharfbuzz/_raster.pxi":86
 *             c_extents.x_origin = extents.x_origin
 *             c_extents.y_origin = extents.y_origin
 *             c_extents.width = extents.width             # <<<<<<<<<<<<<<
 *             c_extents.height = extents.height
 *             c_extents.stride = extents.stride
*/
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_extents, __pyx_mstate_global->__pyx_n_u_width); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 86, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyLong_As_unsigned_int(__pyx_t_2); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(10, 86, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_c_extents.width = __pyx_t_4;

    /* "src/uharfbuzz/_raster.pxi":87
 *             c_extents.y_origin = extents.y_origin
 *             c_extents.width = extents.width
 *             c_extents.height = extents.height             # <<<<<<<<<<<<<<
 *             c_extents.stride = extents.stride
 *             c_extents_ptr = &c_extents
*/
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_extents, __pyx_mstate_global->__pyx_n_u_height); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 87, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyLong_As_unsigned_int(__pyx_t_2); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(10, 87, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_c_extents.height = __pyx_t_4;

    /* "src/uharfbuzz/_raster.pxi":88
 *             c_extents.width = extents.width
 *             c_extents.height = extents.height
 *             c_extents.stride = extents.stride             # <<<<<<<<<<<<<<
 *             c_extents_ptr = &c_extents
 *         return hb_raster_image_configure(self._hb_raster_image, format, c_extents_ptr)
*/
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_extents, __pyx_mstate_global->__pyx_n_u_stride); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 88, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyLong_As_unsigned_int(__pyx_t_2); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(10, 88, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_c_extents.stride = __pyx_t_4;

    /* "src/uharfbuzz/_raster.pxi":89
 *             c_extents.height = extents.height
 *             c_extents.stride = extents.stride
 *             c_extents_ptr = &c_extents             # <<<<<<<<<<<<<<
 *         return hb_raster_image_configure(self._hb_raster_image, format, c_extents_ptr)
 * 
*/
    __pyx_v_c_extents_ptr = (&__pyx_v_c_extents);

    /* "src/uharfbuzz/_raster.pxi":83
 *         cdef hb_raster_extents_t c_extents
 *         cdef hb_raster_extents_t* c_extents_ptr = NULL
 *         if extents is not None:             # <<<<<<<<<<<<<<
 *             c_extents.x_origin = extents.x_origin
 *             c_extents.y_origin = extents.y_origin
*/
  }

  /* "src/uharfbuzz/_raster.pxi":90
 *             c_extents.stride = extents.stride
 *             c_extents_ptr = &c_extents
 *         return hb_raster_image_configure(self._hb_raster_image, format, c_extents_ptr)             # <<<<<<<<<<<<<<
 * 
 *     def clear(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_5 = ((hb_raster_format_t)__Pyx_PyLong_As_hb_raster_format_t(__pyx_v_format)); if (unlikely(PyErr_Occurred())) __PYX_ERR(10, 90, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyLong_From_hb_bool_t(hb_raster_image_configure(__pyx_v_self->_hb_raster_image, __pyx_t_5, __pyx_v_c_extents_ptr)); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 90, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_raster.pxi":66
 *         return wrapper
 * 
 *     def configure(self, format: RasterFormat,             # <<<<<<<<<<<<<<
 *                   extents: RasterExtents | None = None) -> bool:
 *         """Configures this image's format and extents together, resizing
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterImage.configure", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":92
 *         return hb_raster_image_configure(self._hb_raster_image, format, c_extents_ptr)
 * 
 *     def clear(self):             # <<<<<<<<<<<<<<
 *         """Clears this image's pixels to zero while keeping current extents
 *         and format.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_9clear(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_11RasterImage_8clear, "Clears this image's pixels to zero while keeping current extents\n        and format.\n\n        Wraps `hb_raster_image_clear()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-image-clear>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_11RasterImage_9clear = {"clear", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_9clear, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11RasterImage_8clear};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_9clear(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("clear (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("clear", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("clear", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterImage_8clear(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterImage_8clear(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("clear", 0);

  /* "src/uharfbuzz/_raster.pxi":99
 *         <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-image-clear>`_.
 *         """
 *         hb_raster_image_clear(self._hb_raster_image)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  hb_raster_image_clear(__pyx_v_self->_hb_raster_image);

  /* "src/uharfbuzz/_raster.pxi":92
 *         return hb_raster_image_configure(self._hb_raster_image, format, c_extents_ptr)
 * 
 *     def clear(self):             # <<<<<<<<<<<<<<
 *         """Clears this image's pixels to zero while keeping current extents
 *         and format.
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":101
 *         hb_raster_image_clear(self._hb_raster_image)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def format(self) -> RasterFormat:
 *         """Fetches the pixel format of this image.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_6format_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_6format_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterImage_6format___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterImage_6format___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_raster.pxi":110
 *         <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-image-get-format>`_.
 *         """
 *         return RasterFormat(hb_raster_image_get_format(self._hb_raster_image))             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_RasterFormat); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_hb_raster_format_t(hb_raster_image_get_format(__pyx_v_self->_hb_raster_image)); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_4};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 110, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_raster.pxi":101
 *         hb_raster_image_clear(self._hb_raster_image)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def format(self) -> RasterFormat:
 *         """Fetches the pixel format of this image.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterImage.format.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":112
 *         return RasterFormat(hb_raster_image_get_format(self._hb_raster_image))
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def extents(self) -> RasterExtents:
 *         """Fetches the pixel-buffer extents of this image.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_7extents_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_7extents_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterImage_7extents___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterImage_7extents___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_v_self) {
  hb_raster_extents_t __pyx_v_c_extents;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  size_t __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_raster.pxi":122
 *         """
 *         cdef hb_raster_extents_t c_extents
 *         hb_raster_image_get_extents(self._hb_raster_image, &c_extents)             # <<<<<<<<<<<<<<
 *         return RasterExtents(
 *             x_origin=c_extents.x_origin,
*/
  hb_raster_image_get_extents(__pyx_v_self->_hb_raster_image, (&__pyx_v_c_extents));

  /* "src/uharfbuzz/_raster.pxi":123
 *         cdef hb_raster_extents_t c_extents
 *         hb_raster_image_get_extents(self._hb_raster_image, &c_extents)
 *         return RasterExtents(             # <<<<<<<<<<<<<<
 *             x_origin=c_extents.x_origin,
 *             y_origin=c_extents.y_origin,
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_RasterExtents); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 123, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);

  /* "src/uharfbuzz/_raster.pxi":124
 *         hb_raster_image_get_extents(self._hb_raster_image, &c_extents)
 *         return RasterExtents(
 *             x_origin=c_extents.x_origin,             # <<<<<<<<<<<<<<
 *             y_origin=c_extents.y_origin,
 *             width=c_extents.width,
*/
  __pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_c_extents.x_origin); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 124, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);

  /* "src/uharfbuzz/_raster.pxi":125
 *         return RasterExtents(
 *             x_origin=c_extents.x_origin,
 *             y_origin=c_extents.y_origin,             # <<<<<<<<<<<<<<
 *             width=c_extents.width,
 *             height=c_extents.height,
*/
  __pyx_t_5 = __Pyx_PyLong_From_int(__pyx_v_c_extents.y_origin); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 125, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);

  /* "src/uharfbuzz/_raster.pxi":126
 *             x_origin=c_extents.x_origin,
 *             y_origin=c_extents.y_origin,
 *             width=c_extents.width,             # <<<<<<<<<<<<<<
 *             height=c_extents.height,
 *             stride=c_extents.stride,
*/
  __pyx_t_6 = __Pyx_PyLong_From_unsigned_int(__pyx_v_c_extents.width); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 126, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);

  /* "src/uharfbuzz/_raster.pxi":127
 *             y_origin=c_extents.y_origin,
 *             width=c_extents.width,
 *             height=c_extents.height,             # <<<<<<<<<<<<<<
 *             stride=c_extents.stride,
 *         )
*/
  __pyx_t_7 = __Pyx_PyLong_From_unsigned_int(__pyx_v_c_extents.height); if (unlikely(!__pyx_t_7)) __PYX_ERR(10, 127, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);

  /* "src/uharfbuzz/_raster.pxi":128
 *             width=c_extents.width,
 *             height=c_extents.height,
 *             stride=c_extents.stride,             # <<<<<<<<<<<<<<
 *         )
 * 
*/
  __pyx_t_8 = __Pyx_PyLong_From_unsigned_int(__pyx_v_c_extents.stride); if (unlikely(!__pyx_t_8)) __PYX_ERR(10, 128, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 5 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_10 = __Pyx_MakeVectorcallBuilderKwds(5); if (unlikely(!__pyx_t_10)) __PYX_ERR(10, 123, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_x_origin, __pyx_t_4, __pyx_t_10, __pyx_callargs+1, 0) < (0)) __PYX_ERR(10, 123, __pyx_L1_error)
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_y_origin, __pyx_t_5, __pyx_t_10, __pyx_callargs+1, 1) < (0)) __PYX_ERR(10, 123, __pyx_L1_error)
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_width, __pyx_t_6, __pyx_t_10, __pyx_callargs+1, 2) < (0)) __PYX_ERR(10, 123, __pyx_L1_error)
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_height, __pyx_t_7, __pyx_t_10, __pyx_callargs+1, 3) < (0)) __PYX_ERR(10, 123, __pyx_L1_error)
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_stride, __pyx_t_8, __pyx_t_10, __pyx_callargs+1, 4) < (0)) __PYX_ERR(10, 123, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_9, (1-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_10);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 123, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_raster.pxi":112
 *         return RasterFormat(hb_raster_image_get_format(self._hb_raster_image))
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def extents(self) -> RasterExtents:
 *         """Fetches the pixel-buffer extents of this image.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterImage.extents.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":131
 *         )
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def buffer(self) -> bytes:
 *         """Fetches the raw pixel buffer of this image. The buffer layout is
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_6buffer_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_6buffer_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterImage_6buffer___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterImage_6buffer___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_v_self) {
  hb_raster_extents_t __pyx_v_c_extents;
  uint8_t const *__pyx_v_buf;
  Py_ssize_t __pyx_v_size;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_raster.pxi":143
 *         """
 *         cdef hb_raster_extents_t c_extents
 *         hb_raster_image_get_extents(self._hb_raster_image, &c_extents)             # <<<<<<<<<<<<<<
 *         cdef const uint8_t* buf = hb_raster_image_get_buffer(self._hb_raster_image)
 *         if buf is NULL:
*/
  hb_raster_image_get_extents(__pyx_v_self->_hb_raster_image, (&__pyx_v_c_extents));

  /* "src/uharfbuzz/_raster.pxi":144
 *         cdef hb_raster_extents_t c_extents
 *         hb_raster_image_get_extents(self._hb_raster_image, &c_extents)
 *         cdef const uint8_t* buf = hb_raster_image_get_buffer(self._hb_raster_image)             # <<<<<<<<<<<<<<
 *         if buf is NULL:
 *             return b""
*/
  __pyx_v_buf = hb_raster_image_get_buffer(__pyx_v_self->_hb_raster_image);

  /* "src/uharfbuzz/_raster.pxi":145
 *         hb_raster_image_get_extents(self._hb_raster_image, &c_extents)
 *         cdef const uint8_t* buf = hb_raster_image_get_buffer(self._hb_raster_image)
 *         if buf is NULL:             # <<<<<<<<<<<<<<
 *             return b""
 *         cdef Py_ssize_t size = c_extents.height * c_extents.stride
*/
  __pyx_t_1 = (__pyx_v_buf == NULL);
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_raster.pxi":146
 *         cdef const uint8_t* buf = hb_raster_image_get_buffer(self._hb_raster_image)
 *         if buf is NULL:
 *             return b""             # <<<<<<<<<<<<<<
 *         cdef Py_ssize_t size = c_extents.height * c_extents.stride
 *         return buf[:size]
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_b_);
    __pyx_r = __pyx_mstate_global->__pyx_kp_b_;
    goto __pyx_L0;

    /* "src/uharfbuzz/_raster.pxi":145
 *         hb_raster_image_get_extents(self._hb_raster_image, &c_extents)
 *         cdef const uint8_t* buf = hb_raster_image_get_buffer(self._hb_raster_image)
 *         if buf is NULL:             # <<<<<<<<<<<<<<
 *             return b""
 *         cdef Py_ssize_t size = c_extents.height * c_extents.stride
*/
  }

  /* "src/uharfbuzz/_raster.pxi":147
 *         if buf is NULL:
 *             return b""
 *         cdef Py_ssize_t size = c_extents.height * c_extents.stride             # <<<<<<<<<<<<<<
 *         return buf[:size]
 * 
*/
  __pyx_v_size = (__pyx_v_c_extents.height * __pyx_v_c_extents.stride);

  /* "src/uharfbuzz/_raster.pxi":148
 *             return b""
 *         cdef Py_ssize_t size = c_extents.height * c_extents.stride
 *         return buf[:size]             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyBytes_FromStringAndSize(((char const *)__pyx_v_buf) + 0, __pyx_v_size - 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 148, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_raster.pxi":131
 *         )
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def buffer(self) -> bytes:
 *         """Fetches the raw pixel buffer of this image. The buffer layout is
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterImage.buffer.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_11__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_11RasterImage_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_11__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterImage_10__reduce_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterImage_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterImage.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_13__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_11RasterImage_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_13__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 3, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < (0)) __PYX_ERR(4, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(4, 3, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(4, 3, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterImage.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterImage_12__setstate_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterImage_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterImage.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":162
 *     cdef hb_raster_draw_t* _hb_raster_draw
 * 
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self._hb_raster_draw = hb_raster_draw_create_or_fail()
 *         if self._hb_raster_draw is NULL:
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, __pyx_nargs); return -1; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__cinit__", __pyx_kwds); return -1;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw___cinit__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *__pyx_v_self) {
  int __pyx_r;
  int __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "src/uharfbuzz/_raster.pxi":163
 * 
 *     def __cinit__(self):
 *         self._hb_raster_draw = hb_raster_draw_create_or_fail()             # <<<<<<<<<<<<<<
 *         if self._hb_raster_draw is NULL:
 *             raise MemoryError()
*/
  __pyx_v_self->_hb_raster_draw = hb_raster_draw_create_or_fail();

  /* "src/uharfbuzz/_raster.pxi":164
 *     def __cinit__(self):
 *         self._hb_raster_draw = hb_raster_draw_create_or_fail()
 *         if self._hb_raster_draw is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  __pyx_t_1 = (__pyx_v_self->_hb_raster_draw == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "src/uharfbuzz/_raster.pxi":165
 *         self._hb_raster_draw = hb_raster_draw_create_or_fail()
 *         if self._hb_raster_draw is NULL:
 *             raise MemoryError()             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
    PyErr_NoMemory(); __PYX_ERR(10, 165, __pyx_L1_error)

    /* "src/uharfbuzz/_raster.pxi":164
 *     def __cinit__(self):
 *         self._hb_raster_draw = hb_raster_draw_create_or_fail()
 *         if self._hb_raster_draw is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  }

  /* "src/uharfbuzz/_raster.pxi":162
 *     cdef hb_raster_draw_t* _hb_raster_draw
 * 
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self._hb_raster_draw = hb_raster_draw_create_or_fail()
 *         if self._hb_raster_draw is NULL:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterDraw.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":167
 *             raise MemoryError()
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         hb_raster_draw_destroy(self._hb_raster_draw)
 * 
*/

/* Python wrapper */
static void __pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_2__dealloc__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_2__dealloc__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *__pyx_v_self) {

  /* "src/uharfbuzz/_raster.pxi":168
 * 
 *     def __dealloc__(self):
 *         hb_raster_draw_destroy(self._hb_raster_draw)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  hb_raster_draw_destroy(__pyx_v_self->_hb_raster_draw);

  /* "src/uharfbuzz/_raster.pxi":167
 *             raise MemoryError()
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         hb_raster_draw_destroy(self._hb_raster_draw)
 * 
*/

  /* function exit code */
}

/* "src/uharfbuzz/_raster.pxi":170
 *         hb_raster_draw_destroy(self._hb_raster_draw)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def transform(self) -> Tuple[float, float, float, float, float, float]:
 *         """A 23 affine transform applied to all incoming draw coordinates
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_9transform_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_9transform_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_9transform___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_9transform___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *__pyx_v_self) {
  float __pyx_v_xx;
  float __pyx_v_yx;
  float __pyx_v_xy;
  float __pyx_v_yy;
  float __pyx_v_dx;
  float __pyx_v_dy;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_raster.pxi":183
 *         """
 *         cdef float xx, yx, xy, yy, dx, dy
 *         hb_raster_draw_get_transform(self._hb_raster_draw, &xx, &yx, &xy, &yy, &dx, &dy)             # <<<<<<<<<<<<<<
 *         return (xx, yx, xy, yy, dx, dy)
 * 
*/
  hb_raster_draw_get_transform(__pyx_v_self->_hb_raster_draw, (&__pyx_v_xx), (&__pyx_v_yx), (&__pyx_v_xy), (&__pyx_v_yy), (&__pyx_v_dx), (&__pyx_v_dy));

  /* "src/uharfbuzz/_raster.pxi":184
 *         cdef float xx, yx, xy, yy, dx, dy
 *         hb_raster_draw_get_transform(self._hb_raster_draw, &xx, &yx, &xy, &yy, &dx, &dy)
 *         return (xx, yx, xy, yy, dx, dy)             # <<<<<<<<<<<<<<
 * 
 *     @transform.setter
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_xx); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 184, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_yx); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 184, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_xy); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 184, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_yy); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 184, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_dx); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 184, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyFloat_FromDouble(__pyx_v_dy); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 184, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = PyTuple_New(6); if (unlikely(!__pyx_t_7)) __PYX_ERR(10, 184, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1) != (0)) __PYX_ERR(10, 184, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_2) != (0)) __PYX_ERR(10, 184, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_t_3) != (0)) __PYX_ERR(10, 184, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 3, __pyx_t_4) != (0)) __PYX_ERR(10, 184, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 4, __pyx_t_5) != (0)) __PYX_ERR(10, 184, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 5, __pyx_t_6) != (0)) __PYX_ERR(10, 184, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_6 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_raster.pxi":170
 *         hb_raster_draw_destroy(self._hb_raster_draw)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def transform(self) -> Tuple[float, float, float, float, float, float]:
 *         """A 23 affine transform applied to all incoming draw coordinates
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterDraw.transform.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":186
 *         return (xx, yx, xy, yy, dx, dy)
 * 
 *     @transform.setter             # <<<<<<<<<<<<<<
 *     def transform(self, value: Tuple[float, float, float, float, float, float]):
 *         xx, yx, xy, yy, dx, dy = value
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_9transform_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_9transform_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) {
  __pyx_ctuple_ee55be__double__and_double__and_double__and_double__an__etc __pyx_v_value;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_value); {
    __pyx_v_value = __pyx_convert__from_py___pyx_ctuple_ee55be__double__and_double__and_double__and_double__an__etc(__pyx_arg_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(10, 187, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterDraw.transform.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_9transform_2__set__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *)__pyx_v_self), __pyx_v_value);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_9transform_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *__pyx_v_self, __pyx_ctuple_ee55be__double__and_double__and_double__and_double__an__etc __pyx_v_value) {
  double __pyx_v_xx;
  double __pyx_v_yx;
  double __pyx_v_xy;
  double __pyx_v_yy;
  double __pyx_v_dx;
  double __pyx_v_dy;
  int __pyx_r;
  __pyx_ctuple_ee55be__double__and_double__and_double__and_double__an__etc __pyx_t_1;
  double __pyx_t_2;
  double __pyx_t_3;
  double __pyx_t_4;
  double __pyx_t_5;
  double __pyx_t_6;
  double __pyx_t_7;

  /* "src/uharfbuzz/_raster.pxi":188
 *     @transform.setter
 *     def transform(self, value: Tuple[float, float, float, float, float, float]):
 *         xx, yx, xy, yy, dx, dy = value             # <<<<<<<<<<<<<<
 *         hb_raster_draw_set_transform(self._hb_raster_draw, xx, yx, xy, yy, dx, dy)
 * 
*/
  __pyx_t_1 = __pyx_v_value;
  __pyx_t_2 = __pyx_t_1.f0;
  __pyx_t_3 = __pyx_t_1.f1;
  __pyx_t_4 = __pyx_t_1.f2;
  __pyx_t_5 = __pyx_t_1.f3;
  __pyx_t_6 = __pyx_t_1.f4;
  __pyx_t_7 = __pyx_t_1.f5;
  __pyx_v_xx = __pyx_t_2;
  __pyx_v_yx = __pyx_t_3;
  __pyx_v_xy = __pyx_t_4;
  __pyx_v_yy = __pyx_t_5;
  __pyx_v_dx = __pyx_t_6;
  __pyx_v_dy = __pyx_t_7;

  /* "src/uharfbuzz/_raster.pxi":189
 *     def transform(self, value: Tuple[float, float, float, float, float, float]):
 *         xx, yx, xy, yy, dx, dy = value
 *         hb_raster_draw_set_transform(self._hb_raster_draw, xx, yx, xy, yy, dx, dy)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  hb_raster_draw_set_transform(__pyx_v_self->_hb_raster_draw, __pyx_v_xx, __pyx_v_yx, __pyx_v_xy, __pyx_v_yy, __pyx_v_dx, __pyx_v_dy);

  /* "src/uharfbuzz/_raster.pxi":186
 *         return (xx, yx, xy, yy, dx, dy)
 * 
 *     @transform.setter             # <<<<<<<<<<<<<<
 *     def transform(self, value: Tuple[float, float, float, float, float, float]):
 *         xx, yx, xy, yy, dx, dy = value
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":191
 *         hb_raster_draw_set_transform(self._hb_raster_draw, xx, yx, xy, yy, dx, dy)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def scale_factor(self) -> Tuple[float, float]:
 *         """Post-transform minification factors applied during rasterization.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_12scale_factor_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_12scale_factor_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_12scale_factor___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_12scale_factor___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *__pyx_v_self) {
  float __pyx_v_x;
  float __pyx_v_y;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_raster.pxi":204
 *         """
 *         cdef float x, y
 *         hb_raster_draw_get_scale_factor(self._hb_raster_draw, &x, &y)             # <<<<<<<<<<<<<<
 *         return (x, y)
 * 
*/
  hb_raster_draw_get_scale_factor(__pyx_v_self->_hb_raster_draw, (&__pyx_v_x), (&__pyx_v_y));

  /* "src/uharfbuzz/_raster.pxi":205
 *         cdef float x, y
 *         hb_raster_draw_get_scale_factor(self._hb_raster_draw, &x, &y)
 *         return (x, y)             # <<<<<<<<<<<<<<
 * 
 *     @scale_factor.setter
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 205, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 205, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 205, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1) != (0)) __PYX_ERR(10, 205, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2) != (0)) __PYX_ERR(10, 205, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_raster.pxi":191
 *         hb_raster_draw_set_transform(self._hb_raster_draw, xx, yx, xy, yy, dx, dy)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def scale_factor(self) -> Tuple[float, float]:
 *         """Post-transform minification factors applied during rasterization.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterDraw.scale_factor.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":207
 *         return (x, y)
 * 
 *     @scale_factor.setter             # <<<<<<<<<<<<<<
 *     def scale_factor(self, value: Tuple[float, float]):
 *         x, y = value
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_12scale_factor_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_12scale_factor_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) {
  __pyx_ctuple_double__and_double __pyx_v_value;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_value); {
    __pyx_v_value = __pyx_convert__from_py___pyx_ctuple_double__and_double(__pyx_arg_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(10, 208, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterDraw.scale_factor.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_12scale_factor_2__set__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *)__pyx_v_self), __pyx_v_value);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_12scale_factor_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *__pyx_v_self, __pyx_ctuple_double__and_double __pyx_v_value) {
  double __pyx_v_x;
  double __pyx_v_y;
  int __pyx_r;
  __pyx_ctuple_double__and_double __pyx_t_1;
  double __pyx_t_2;
  double __pyx_t_3;

  /* "src/uharfbuzz/_raster.pxi":209
 *     @scale_factor.setter
 *     def scale_factor(self, value: Tuple[float, float]):
 *         x, y = value             # <<<<<<<<<<<<<<
 *         hb_raster_draw_set_scale_factor(self._hb_raster_draw, x, y)
 * 
*/
  __pyx_t_1 = __pyx_v_value;
  __pyx_t_2 = __pyx_t_1.f0;
  __pyx_t_3 = __pyx_t_1.f1;
  __pyx_v_x = __pyx_t_2;
  __pyx_v_y = __pyx_t_3;

  /* "src/uharfbuzz/_raster.pxi":210
 *     def scale_factor(self, value: Tuple[float, float]):
 *         x, y = value
 *         hb_raster_draw_set_scale_factor(self._hb_raster_draw, x, y)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  hb_raster_draw_set_scale_factor(__pyx_v_self->_hb_raster_draw, __pyx_v_x, __pyx_v_y);

  /* "src/uharfbuzz/_raster.pxi":207
 *         return (x, y)
 * 
 *     @scale_factor.setter             # <<<<<<<<<<<<<<
 *     def scale_factor(self, value: Tuple[float, float]):
 *         x, y = value
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":212
 *         hb_raster_draw_set_scale_factor(self._hb_raster_draw, x, y)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def extents(self) -> RasterExtents | None:
 *         """The output image extents. When set, :meth:`render` uses the given
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_7extents_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_7extents_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_7extents___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_7extents___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *__pyx_v_self) {
  hb_raster_extents_t __pyx_v_c_extents;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  size_t __pyx_t_10;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_raster.pxi":226
 *         """
 *         cdef hb_raster_extents_t c_extents
 *         if not hb_raster_draw_get_extents(self._hb_raster_draw, &c_extents):             # <<<<<<<<<<<<<<
 *             return None
 *         return RasterExtents(
*/
  __pyx_t_1 = (!(hb_raster_draw_get_extents(__pyx_v_self->_hb_raster_draw, (&__pyx_v_c_extents)) != 0));
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_raster.pxi":227
 *         cdef hb_raster_extents_t c_extents
 *         if not hb_raster_draw_get_extents(self._hb_raster_draw, &c_extents):
 *             return None             # <<<<<<<<<<<<<<
 *         return RasterExtents(
 *             x_origin=c_extents.x_origin,
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "src/uharfbuzz/_raster.pxi":226
 *         """
 *         cdef hb_raster_extents_t c_extents
 *         if not hb_raster_draw_get_extents(self._hb_raster_draw, &c_extents):             # <<<<<<<<<<<<<<
 *             return None
 *         return RasterExtents(
*/
  }

  /* "src/uharfbuzz/_raster.pxi":228
 *         if not hb_raster_draw_get_extents(self._hb_raster_draw, &c_extents):
 *             return None
 *         return RasterExtents(             # <<<<<<<<<<<<<<
 *             x_origin=c_extents.x_origin,
 *             y_origin=c_extents.y_origin,
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_RasterExtents); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);

  /* "src/uharfbuzz/_raster.pxi":229
 *             return None
 *         return RasterExtents(
 *             x_origin=c_extents.x_origin,             # <<<<<<<<<<<<<<
 *             y_origin=c_extents.y_origin,
 *             width=c_extents.width,
*/
  __pyx_t_5 = __Pyx_PyLong_From_int(__pyx_v_c_extents.x_origin); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 229, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);

  /* "src/uharfbuzz/_raster.pxi":230
 *         return RasterExtents(
 *             x_origin=c_extents.x_origin,
 *             y_origin=c_extents.y_origin,             # <<<<<<<<<<<<<<
 *             width=c_extents.width,
 *             height=c_extents.height,
*/
  __pyx_t_6 = __Pyx_PyLong_From_int(__pyx_v_c_extents.y_origin); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 230, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);

  /* "src/uharfbuzz/_raster.pxi":231
 *             x_origin=c_extents.x_origin,
 *             y_origin=c_extents.y_origin,
 *             width=c_extents.width,             # <<<<<<<<<<<<<<
 *             height=c_extents.height,
 *             stride=c_extents.stride,
*/
  __pyx_t_7 = __Pyx_PyLong_From_unsigned_int(__pyx_v_c_extents.width); if (unlikely(!__pyx_t_7)) __PYX_ERR(10, 231, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);

  /* "src/uharfbuzz/_raster.pxi":232
 *             y_origin=c_extents.y_origin,
 *             width=c_extents.width,
 *             height=c_extents.height,             # <<<<<<<<<<<<<<
 *             stride=c_extents.stride,
 *         )
*/
  __pyx_t_8 = __Pyx_PyLong_From_unsigned_int(__pyx_v_c_extents.height); if (unlikely(!__pyx_t_8)) __PYX_ERR(10, 232, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);

  /* "src/uharfbuzz/_raster.pxi":233
 *             width=c_extents.width,
 *             height=c_extents.height,
 *             stride=c_extents.stride,             # <<<<<<<<<<<<<<
 *         )
 * 
*/
  __pyx_t_9 = __Pyx_PyLong_From_unsigned_int(__pyx_v_c_extents.stride); if (unlikely(!__pyx_t_9)) __PYX_ERR(10, 233, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_10 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_10 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 5 : 0)] = {__pyx_t_3, NULL};
    __pyx_t_11 = __Pyx_MakeVectorcallBuilderKwds(5); if (unlikely(!__pyx_t_11)) __PYX_ERR(10, 228, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_x_origin, __pyx_t_5, __pyx_t_11, __pyx_callargs+1, 0) < (0)) __PYX_ERR(10, 228, __pyx_L1_error)
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_y_origin, __pyx_t_6, __pyx_t_11, __pyx_callargs+1, 1) < (0)) __PYX_ERR(10, 228, __pyx_L1_error)
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_width, __pyx_t_7, __pyx_t_11, __pyx_callargs+1, 2) < (0)) __PYX_ERR(10, 228, __pyx_L1_error)
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_height, __pyx_t_8, __pyx_t_11, __pyx_callargs+1, 3) < (0)) __PYX_ERR(10, 228, __pyx_L1_error)
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_stride, __pyx_t_9, __pyx_t_11, __pyx_callargs+1, 4) < (0)) __PYX_ERR(10, 228, __pyx_L1_error)
    __pyx_t_2 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_10, (1-__pyx_t_10) | (__pyx_t_10*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_11);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 228, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_raster.pxi":212
 *         hb_raster_draw_set_scale_factor(self._hb_raster_draw, x, y)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def extents(self) -> RasterExtents | None:
 *         """The output image extents. When set, :meth:`render` uses the given
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterDraw.extents.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":236
 *         )
 * 
 *     @extents.setter             # <<<<<<<<<<<<<<
 *     def extents(self, value: RasterExtents):
 *         cdef hb_raster_extents_t c_extents
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_7extents_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_7extents_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_7extents_2__set__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_7extents_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *__pyx_v_self, PyObject *__pyx_v_value) {
  hb_raster_extents_t __pyx_v_c_extents;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  unsigned int __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "src/uharfbuzz/_raster.pxi":239
 *     def extents(self, value: RasterExtents):
 *         cdef hb_raster_extents_t c_extents
 *         c_extents.x_origin = value.x_origin             # <<<<<<<<<<<<<<
 *         c_extents.y_origin = value.y_origin
 *         c_extents.width = value.width
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_mstate_global->__pyx_n_u_x_origin); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 239, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(10, 239, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_c_extents.x_origin = __pyx_t_2;

  /* "src/uharfbuzz/_raster.pxi":240
 *         cdef hb_raster_extents_t c_extents
 *         c_extents.x_origin = value.x_origin
 *         c_extents.y_origin = value.y_origin             # <<<<<<<<<<<<<<
 *         c_extents.width = value.width
 *         c_extents.height = value.height
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_mstate_global->__pyx_n_u_y_origin); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 240, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(10, 240, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_c_extents.y_origin = __pyx_t_2;

  /* "src/uharfbuzz/_raster.pxi":241
 *         c_extents.x_origin = value.x_origin
 *         c_extents.y_origin = value.y_origin
 *         c_extents.width = value.width             # <<<<<<<<<<<<<<
 *         c_extents.height = value.height
 *         c_extents.stride = value.stride
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_mstate_global->__pyx_n_u_width); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 241, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyLong_As_unsigned_int(__pyx_t_1); if (unlikely((__pyx_t_3 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(10, 241, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_c_extents.width = __pyx_t_3;

  /* "src/uharfbuzz/_raster.pxi":242
 *         c_extents.y_origin = value.y_origin
 *         c_extents.width = value.width
 *         c_extents.height = value.height             # <<<<<<<<<<<<<<
 *         c_extents.stride = value.stride
 *         hb_raster_draw_set_extents(self._hb_raster_draw, &c_extents)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_mstate_global->__pyx_n_u_height); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 242, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyLong_As_unsigned_int(__pyx_t_1); if (unlikely((__pyx_t_3 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(10, 242, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_c_extents.height = __pyx_t_3;

  /* "src/uharfbuzz/_raster.pxi":243
 *         c_extents.width = value.width
 *         c_extents.height = value.height
 *         c_extents.stride = value.stride             # <<<<<<<<<<<<<<
 *         hb_raster_draw_set_extents(self._hb_raster_draw, &c_extents)
 * 
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_mstate_global->__pyx_n_u_stride); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 243, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyLong_As_unsigned_int(__pyx_t_1); if (unlikely((__pyx_t_3 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(10, 243, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_c_extents.stride = __pyx_t_3;

  /* "src/uharfbuzz/_raster.pxi":244
 *         c_extents.height = value.height
 *         c_extents.stride = value.stride
 *         hb_raster_draw_set_extents(self._hb_raster_draw, &c_extents)             # <<<<<<<<<<<<<<
 * 
 *     def set_glyph_extents(self, extents: GlyphExtents) -> bool:
*/
  hb_raster_draw_set_extents(__pyx_v_self->_hb_raster_draw, (&__pyx_v_c_extents));

  /* "src/uharfbuzz/_raster.pxi":236
 *         )
 * 
 *     @extents.setter             # <<<<<<<<<<<<<<
 *     def extents(self, value: RasterExtents):
 *         cdef hb_raster_extents_t c_extents
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterDraw.extents.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":246
 *         hb_raster_draw_set_extents(self._hb_raster_draw, &c_extents)
 * 
 *     def set_glyph_extents(self, extents: GlyphExtents) -> bool:             # <<<<<<<<<<<<<<
 *         """Transforms ``extents`` with the rasterizer's current transform
 *         and sets the resulting pixel extents for the next render.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_5set_glyph_extents(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_10RasterDraw_4set_glyph_extents, "Transforms ``extents`` with the rasterizer's current transform\n        and sets the resulting pixel extents for the next render.\n\n        This is equivalent to computing a transformed bounding box in pixel\n        space and assigning it to :attr:`extents`.\n\n        :returns: ``True`` if transformed extents are non-empty and set;\n            ``False`` otherwise.\n\n        Wraps `hb_raster_draw_set_glyph_extents()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-draw-set-glyph-extents>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_10RasterDraw_5set_glyph_extents = {"set_glyph_extents", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_5set_glyph_extents, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10RasterDraw_4set_glyph_extents};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_5set_glyph_extents(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_extents = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_glyph_extents (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_extents,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(10, 246, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(10, 246, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_glyph_extents", 0) < (0)) __PYX_ERR(10, 246, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_glyph_extents", 1, 1, 1, i); __PYX_ERR(10, 246, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(10, 246, __pyx_L3_error)
    }
    __pyx_v_extents = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_glyph_extents", 1, 1, 1, __pyx_nargs); __PYX_ERR(10, 246, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterDraw.set_glyph_extents", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_4set_glyph_extents(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *)__pyx_v_self), __pyx_v_extents);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_4set_glyph_extents(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *__pyx_v_self, PyObject *__pyx_v_extents) {
  hb_glyph_extents_t __pyx_v_c_extents;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  hb_position_t __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("set_glyph_extents", 0);

  /* "src/uharfbuzz/_raster.pxi":260
 *         """
 *         cdef hb_glyph_extents_t c_extents
 *         c_extents.x_bearing = extents.x_bearing             # <<<<<<<<<<<<<<
 *         c_extents.y_bearing = extents.y_bearing
 *         c_extents.width = extents.width
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_extents, __pyx_mstate_global->__pyx_n_u_x_bearing); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 260, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_As_hb_position_t(__pyx_t_1); if (unlikely((__pyx_t_2 == ((hb_position_t)-1)) && PyErr_Occurred())) __PYX_ERR(10, 260, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_c_extents.x_bearing = __pyx_t_2;

  /* "src/uharfbuzz/_raster.pxi":261
 *         cdef hb_glyph_extents_t c_extents
 *         c_extents.x_bearing = extents.x_bearing
 *         c_extents.y_bearing = extents.y_bearing             # <<<<<<<<<<<<<<
 *         c_extents.width = extents.width
 *         c_extents.height = extents.height
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_extents, __pyx_mstate_global->__pyx_n_u_y_bearing); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 261, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_As_hb_position_t(__pyx_t_1); if (unlikely((__pyx_t_2 == ((hb_position_t)-1)) && PyErr_Occurred())) __PYX_ERR(10, 261, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_c_extents.y_bearing = __pyx_t_2;

  /* "src/uharfbuzz/_raster.pxi":262
 *         c_extents.x_bearing = extents.x_bearing
 *         c_extents.y_bearing = extents.y_bearing
 *         c_extents.width = extents.width             # <<<<<<<<<<<<<<
 *         c_extents.height = extents.height
 *         return hb_raster_draw_set_glyph_extents(self._hb_raster_draw, &c_extents)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_extents, __pyx_mstate_global->__pyx_n_u_width); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 262, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_As_hb_position_t(__pyx_t_1); if (unlikely((__pyx_t_2 == ((hb_position_t)-1)) && PyErr_Occurred())) __PYX_ERR(10, 262, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_c_extents.width = __pyx_t_2;

  /* "src/uharfbuzz/_raster.pxi":263
 *         c_extents.y_bearing = extents.y_bearing
 *         c_extents.width = extents.width
 *         c_extents.height = extents.height             # <<<<<<<<<<<<<<
 *         return hb_raster_draw_set_glyph_extents(self._hb_raster_draw, &c_extents)
 * 
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_extents, __pyx_mstate_global->__pyx_n_u_height); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_As_hb_position_t(__pyx_t_1); if (unlikely((__pyx_t_2 == ((hb_position_t)-1)) && PyErr_Occurred())) __PYX_ERR(10, 263, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_c_extents.height = __pyx_t_2;

  /* "src/uharfbuzz/_raster.pxi":264
 *         c_extents.width = extents.width
 *         c_extents.height = extents.height
 *         return hb_raster_draw_set_glyph_extents(self._hb_raster_draw, &c_extents)             # <<<<<<<<<<<<<<
 * 
 *     def draw_glyph(self, font: Font, glyph: int):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_hb_bool_t(hb_raster_draw_set_glyph_extents(__pyx_v_self->_hb_raster_draw, (&__pyx_v_c_extents))); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 264, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_raster.pxi":246
 *         hb_raster_draw_set_extents(self._hb_raster_draw, &c_extents)
 * 
 *     def set_glyph_extents(self, extents: GlyphExtents) -> bool:             # <<<<<<<<<<<<<<
 *         """Transforms ``extents`` with the rasterizer's current transform
 *         and sets the resulting pixel extents for the next render.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterDraw.set_glyph_extents", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":266
 *         return hb_raster_draw_set_glyph_extents(self._hb_raster_draw, &c_extents)
 * 
 *     def draw_glyph(self, font: Font, glyph: int):             # <<<<<<<<<<<<<<
 *         """Draws one glyph into this rasterizer using the current transform.
 *         Equivalent to :meth:`draw_glyph_or_fail` with the return value
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_7draw_glyph(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_10RasterDraw_6draw_glyph, "Draws one glyph into this rasterizer using the current transform.\n        Equivalent to :meth:`draw_glyph_or_fail` with the return value\n        ignored.\n\n        Wraps `hb_raster_draw_glyph()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-draw-glyph>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_10RasterDraw_7draw_glyph = {"draw_glyph", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_7draw_glyph, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10RasterDraw_6draw_glyph};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_7draw_glyph(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font = 0;
  PyObject *__pyx_v_glyph = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("draw_glyph (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_font,&__pyx_mstate_global->__pyx_n_u_glyph,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(10, 266, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(10, 266, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(10, 266, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "draw_glyph", 0) < (0)) __PYX_ERR(10, 266, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("draw_glyph", 1, 2, 2, i); __PYX_ERR(10, 266, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(10, 266, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(10, 266, __pyx_L3_error)
    }
    __pyx_v_font = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "glyph", 0) < (0)) __PYX_ERR(10, 266, __pyx_L3_error)
    __pyx_v_glyph = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("draw_glyph", 1, 2, 2, __pyx_nargs); __PYX_ERR(10, 266, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterDraw.draw_glyph", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_font), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, 0, "font", 0))) __PYX_ERR(10, 266, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_glyph), (&PyLong_Type), 0, "glyph", 2))) __PYX_ERR(10, 266, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_6draw_glyph(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *)__pyx_v_self), __pyx_v_font, __pyx_v_glyph);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_6draw_glyph(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_glyph) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  hb_codepoint_t __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("draw_glyph", 0);

  /* "src/uharfbuzz/_raster.pxi":274
 *         <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-draw-glyph>`_.
 *         """
 *         hb_raster_draw_glyph(self._hb_raster_draw, font._hb_font, glyph)             # <<<<<<<<<<<<<<
 * 
 *     def draw_glyph_or_fail(self, font: Font, glyph: int) -> bool:
*/
  __pyx_t_1 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_glyph); if (unlikely((__pyx_t_1 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(10, 274, __pyx_L1_error)
  hb_raster_draw_glyph(__pyx_v_self->_hb_raster_draw, __pyx_v_font->_hb_font, __pyx_t_1);

  /* "src/uharfbuzz/_raster.pxi":266
 *         return hb_raster_draw_set_glyph_extents(self._hb_raster_draw, &c_extents)
 * 
 *     def draw_glyph(self, font: Font, glyph: int):             # <<<<<<<<<<<<<<
 *         """Draws one glyph into this rasterizer using the current transform.
 *         Equivalent to :meth:`draw_glyph_or_fail` with the return value
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterDraw.draw_glyph", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":276
 *         hb_raster_draw_glyph(self._hb_raster_draw, font._hb_font, glyph)
 * 
 *     def draw_glyph_or_fail(self, font: Font, glyph: int) -> bool:             # <<<<<<<<<<<<<<
 *         """Convenience to draw one glyph.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_9draw_glyph_or_fail(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_10RasterDraw_8draw_glyph_or_fail, "Convenience to draw one glyph.\n\n        :returns: ``True`` if the glyph was drawn, ``False`` if the font has\n            no outlines for ``glyph``.\n\n        Wraps `hb_raster_draw_glyph_or_fail()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-draw-glyph-or-fail>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_10RasterDraw_9draw_glyph_or_fail = {"draw_glyph_or_fail", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_9draw_glyph_or_fail, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10RasterDraw_8draw_glyph_or_fail};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_9draw_glyph_or_fail(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font = 0;
  PyObject *__pyx_v_glyph = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("draw_glyph_or_fail (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_font,&__pyx_mstate_global->__pyx_n_u_glyph,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(10, 276, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(10, 276, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(10, 276, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "draw_glyph_or_fail", 0) < (0)) __PYX_ERR(10, 276, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("draw_glyph_or_fail", 1, 2, 2, i); __PYX_ERR(10, 276, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(10, 276, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(10, 276, __pyx_L3_error)
    }
    __pyx_v_font = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "glyph", 0) < (0)) __PYX_ERR(10, 276, __pyx_L3_error)
    __pyx_v_glyph = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("draw_glyph_or_fail", 1, 2, 2, __pyx_nargs); __PYX_ERR(10, 276, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterDraw.draw_glyph_or_fail", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_font), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, 0, "font", 0))) __PYX_ERR(10, 276, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_glyph), (&PyLong_Type), 0, "glyph", 2))) __PYX_ERR(10, 276, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_8draw_glyph_or_fail(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *)__pyx_v_self), __pyx_v_font, __pyx_v_glyph);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_8draw_glyph_or_fail(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_glyph) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  hb_codepoint_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("draw_glyph_or_fail", 0);

  /* "src/uharfbuzz/_raster.pxi":285
 *         <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-draw-glyph-or-fail>`_.
 *         """
 *         return hb_raster_draw_glyph_or_fail(self._hb_raster_draw, font._hb_font, glyph)             # <<<<<<<<<<<<<<
 * 
 *     def render(self) -> RasterImage | None:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_glyph); if (unlikely((__pyx_t_1 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(10, 285, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyLong_From_hb_bool_t(hb_raster_draw_glyph_or_fail(__pyx_v_self->_hb_raster_draw, __pyx_v_font->_hb_font, __pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 285, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_raster.pxi":276
 *         hb_raster_draw_glyph(self._hb_raster_draw, font._hb_font, glyph)
 * 
 *     def draw_glyph_or_fail(self, font: Font, glyph: int) -> bool:             # <<<<<<<<<<<<<<
 *         """Convenience to draw one glyph.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterDraw.draw_glyph_or_fail", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":287
 *         return hb_raster_draw_glyph_or_fail(self._hb_raster_draw, font._hb_font, glyph)
 * 
 *     def render(self) -> RasterImage | None:             # <<<<<<<<<<<<<<
 *         """Rasterizes the accumulated outline geometry into a new
 *         :class:`RasterImage`. After rendering, the accumulated edges are
*/

/* Python wrapper */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_11render(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_10RasterDraw_10render, "Rasterizes the accumulated outline geometry into a new\n        :class:`RasterImage`. After rendering, the accumulated edges are\n        cleared so the rasterizer can be reused. Output format is always\n        :attr:`RasterFormat.A8`.\n\n        :returns: A rendered :class:`RasterImage`. Returns ``None`` on\n            allocation/configuration failure. If no geometry was\n            accumulated, returns an empty image.\n\n        Wraps `hb_raster_draw_render()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-draw-render>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_10RasterDraw_11render = {"render", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_11render, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10RasterDraw_10render};
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_11render(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("render (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("render", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("render", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_10render(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_10render(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *__pyx_v_self) {
  hb_raster_image_t *__pyx_v_img;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("render", 0);

  /* "src/uharfbuzz/_raster.pxi":300
 *         <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-draw-render>`_.
 *         """
 *         cdef hb_raster_image_t* img = hb_raster_draw_render(self._hb_raster_draw)             # <<<<<<<<<<<<<<
 *         if img is NULL:
 *             return None
*/
  __pyx_v_img = hb_raster_draw_render(__pyx_v_self->_hb_raster_draw);

  /* "src/uharfbuzz/_raster.pxi":301
 *         """
 *         cdef hb_raster_image_t* img = hb_raster_draw_render(self._hb_raster_draw)
 *         if img is NULL:             # <<<<<<<<<<<<<<
 *             return None
 *         return RasterImage.from_ptr(img)
*/
  __pyx_t_1 = (__pyx_v_img == NULL);
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_raster.pxi":302
 *         cdef hb_raster_image_t* img = hb_raster_draw_render(self._hb_raster_draw)
 *         if img is NULL:
 *             return None             # <<<<<<<<<<<<<<
 *         return RasterImage.from_ptr(img)
 * 
*/
    __Pyx_XDECREF((PyObject *)__pyx_r);
    __pyx_r = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *)Py_None); __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "src/uharfbuzz/_raster.pxi":301
 *         """
 *         cdef hb_raster_image_t* img = hb_raster_draw_render(self._hb_raster_draw)
 *         if img is NULL:             # <<<<<<<<<<<<<<
 *             return None
 *         return RasterImage.from_ptr(img)
*/
  }

  /* "src/uharfbuzz/_raster.pxi":303
 *         if img is NULL:
 *             return None
 *         return RasterImage.from_ptr(img)             # <<<<<<<<<<<<<<
 * 
 *     def clear(self):
*/
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_f_9uharfbuzz_9_harfbuzz_11RasterImage_from_ptr(__pyx_v_img)); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 303, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_raster.pxi":287
 *         return hb_raster_draw_glyph_or_fail(self._hb_raster_draw, font._hb_font, glyph)
 * 
 *     def render(self) -> RasterImage | None:             # <<<<<<<<<<<<<<
 *         """Rasterizes the accumulated outline geometry into a new
 *         :class:`RasterImage`. After rendering, the accumulated edges are
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterDraw.render", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":305
 *         return RasterImage.from_ptr(img)
 * 
 *     def clear(self):             # <<<<<<<<<<<<<<
 *         """Discards accumulated geometry and extents so this rasterizer can
 *         be reused for another render. User configuration (transform, scale
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_13clear(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_10RasterDraw_12clear, "Discards accumulated geometry and extents so this rasterizer can\n        be reused for another render. User configuration (transform, scale\n        factors) is preserved. Call :meth:`reset` to also reset user\n        configuration to defaults.\n\n        Wraps `hb_raster_draw_clear()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-draw-clear>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_10RasterDraw_13clear = {"clear", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_13clear, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10RasterDraw_12clear};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_13clear(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("clear (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("clear", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("clear", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_12clear(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_12clear(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("clear", 0);

  /* "src/uharfbuzz/_raster.pxi":314
 *         <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-draw-clear>`_.
 *         """
 *         hb_raster_draw_clear(self._hb_raster_draw)             # <<<<<<<<<<<<<<
 * 
 *     def reset(self):
*/
  hb_raster_draw_clear(__pyx_v_self->_hb_raster_draw);

  /* "src/uharfbuzz/_raster.pxi":305
 *         return RasterImage.from_ptr(img)
 * 
 *     def clear(self):             # <<<<<<<<<<<<<<
 *         """Discards accumulated geometry and extents so this rasterizer can
 *         be reused for another render. User configuration (transform, scale
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":316
 *         hb_raster_draw_clear(self._hb_raster_draw)
 * 
 *     def reset(self):             # <<<<<<<<<<<<<<
 *         """Resets this rasterizer to its initial state, clearing all
 *         accumulated geometry, the transform, and fixed extents. The object
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_15reset(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_10RasterDraw_14reset, "Resets this rasterizer to its initial state, clearing all\n        accumulated geometry, the transform, and fixed extents. The object\n        can then be reused for a new glyph.\n\n        Wraps `hb_raster_draw_reset()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-draw-reset>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_10RasterDraw_15reset = {"reset", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_15reset, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10RasterDraw_14reset};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_15reset(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("reset (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("reset", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("reset", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_14reset(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_14reset(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("reset", 0);

  /* "src/uharfbuzz/_raster.pxi":324
 *         <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-draw-reset>`_.
 *         """
 *         hb_raster_draw_reset(self._hb_raster_draw)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  hb_raster_draw_reset(__pyx_v_self->_hb_raster_draw);

  /* "src/uharfbuzz/_raster.pxi":316
 *         hb_raster_draw_clear(self._hb_raster_draw)
 * 
 *     def reset(self):             # <<<<<<<<<<<<<<
 *         """Resets this rasterizer to its initial state, clearing all
 *         accumulated geometry, the transform, and fixed extents. The object
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_17__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_10RasterDraw_17__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_17__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_16__reduce_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterDraw.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_19__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_10RasterDraw_19__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_19__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 3, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < (0)) __PYX_ERR(4, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(4, 3, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(4, 3, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterDraw.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_18__setstate_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10RasterDraw_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterDraw.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":338
 *     cdef hb_raster_paint_t* _hb_raster_paint
 * 
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self._hb_raster_paint = hb_raster_paint_create_or_fail()
 *         if self._hb_raster_paint is NULL:
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, __pyx_nargs); return -1; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__cinit__", __pyx_kwds); return -1;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint___cinit__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self) {
  int __pyx_r;
  int __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "src/uharfbuzz/_raster.pxi":339
 * 
 *     def __cinit__(self):
 *         self._hb_raster_paint = hb_raster_paint_create_or_fail()             # <<<<<<<<<<<<<<
 *         if self._hb_raster_paint is NULL:
 *             raise MemoryError()
*/
  __pyx_v_self->_hb_raster_paint = hb_raster_paint_create_or_fail();

  /* "src/uharfbuzz/_raster.pxi":340
 *     def __cinit__(self):
 *         self._hb_raster_paint = hb_raster_paint_create_or_fail()
 *         if self._hb_raster_paint is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  __pyx_t_1 = (__pyx_v_self->_hb_raster_paint == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "src/uharfbuzz/_raster.pxi":341
 *         self._hb_raster_paint = hb_raster_paint_create_or_fail()
 *         if self._hb_raster_paint is NULL:
 *             raise MemoryError()             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
    PyErr_NoMemory(); __PYX_ERR(10, 341, __pyx_L1_error)

    /* "src/uharfbuzz/_raster.pxi":340
 *     def __cinit__(self):
 *         self._hb_raster_paint = hb_raster_paint_create_or_fail()
 *         if self._hb_raster_paint is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  }

  /* "src/uharfbuzz/_raster.pxi":338
 *     cdef hb_raster_paint_t* _hb_raster_paint
 * 
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self._hb_raster_paint = hb_raster_paint_create_or_fail()
 *         if self._hb_raster_paint is NULL:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterPaint.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":343
 *             raise MemoryError()
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         hb_raster_paint_destroy(self._hb_raster_paint)
 * 
*/

/* Python wrapper */
static void __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_2__dealloc__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_2__dealloc__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self) {

  /* "src/uharfbuzz/_raster.pxi":344
 * 
 *     def __dealloc__(self):
 *         hb_raster_paint_destroy(self._hb_raster_paint)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  hb_raster_paint_destroy(__pyx_v_self->_hb_raster_paint);

  /* "src/uharfbuzz/_raster.pxi":343
 *             raise MemoryError()
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         hb_raster_paint_destroy(self._hb_raster_paint)
 * 
*/

  /* function exit code */
}

/* "src/uharfbuzz/_raster.pxi":346
 *         hb_raster_paint_destroy(self._hb_raster_paint)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def transform(self) -> Tuple[float, float, float, float, float, float]:
 *         """The base 23 affine transform that maps from glyph-space
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_9transform_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_9transform_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_9transform___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_9transform___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self) {
  float __pyx_v_xx;
  float __pyx_v_yx;
  float __pyx_v_xy;
  float __pyx_v_yy;
  float __pyx_v_dx;
  float __pyx_v_dy;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_raster.pxi":359
 *         """
 *         cdef float xx, yx, xy, yy, dx, dy
 *         hb_raster_paint_get_transform(self._hb_raster_paint, &xx, &yx, &xy, &yy, &dx, &dy)             # <<<<<<<<<<<<<<
 *         return (xx, yx, xy, yy, dx, dy)
 * 
*/
  hb_raster_paint_get_transform(__pyx_v_self->_hb_raster_paint, (&__pyx_v_xx), (&__pyx_v_yx), (&__pyx_v_xy), (&__pyx_v_yy), (&__pyx_v_dx), (&__pyx_v_dy));

  /* "src/uharfbuzz/_raster.pxi":360
 *         cdef float xx, yx, xy, yy, dx, dy
 *         hb_raster_paint_get_transform(self._hb_raster_paint, &xx, &yx, &xy, &yy, &dx, &dy)
 *         return (xx, yx, xy, yy, dx, dy)             # <<<<<<<<<<<<<<
 * 
 *     @transform.setter
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_xx); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 360, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_yx); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 360, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_xy); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 360, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_yy); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 360, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_dx); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 360, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyFloat_FromDouble(__pyx_v_dy); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 360, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = PyTuple_New(6); if (unlikely(!__pyx_t_7)) __PYX_ERR(10, 360, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1) != (0)) __PYX_ERR(10, 360, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_2) != (0)) __PYX_ERR(10, 360, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_t_3) != (0)) __PYX_ERR(10, 360, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 3, __pyx_t_4) != (0)) __PYX_ERR(10, 360, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 4, __pyx_t_5) != (0)) __PYX_ERR(10, 360, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 5, __pyx_t_6) != (0)) __PYX_ERR(10, 360, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_6 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_raster.pxi":346
 *         hb_raster_paint_destroy(self._hb_raster_paint)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def transform(self) -> Tuple[float, float, float, float, float, float]:
 *         """The base 23 affine transform that maps from glyph-space
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterPaint.transform.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":362
 *         return (xx, yx, xy, yy, dx, dy)
 * 
 *     @transform.setter             # <<<<<<<<<<<<<<
 *     def transform(self, value: Tuple[float, float, float, float, float, float]):
 *         xx, yx, xy, yy, dx, dy = value
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_9transform_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_9transform_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) {
  __pyx_ctuple_ee55be__double__and_double__and_double__and_double__an__etc __pyx_v_value;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_value); {
    __pyx_v_value = __pyx_convert__from_py___pyx_ctuple_ee55be__double__and_double__and_double__and_double__an__etc(__pyx_arg_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(10, 363, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterPaint.transform.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_9transform_2__set__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *)__pyx_v_self), __pyx_v_value);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_9transform_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self, __pyx_ctuple_ee55be__double__and_double__and_double__and_double__an__etc __pyx_v_value) {
  double __pyx_v_xx;
  double __pyx_v_yx;
  double __pyx_v_xy;
  double __pyx_v_yy;
  double __pyx_v_dx;
  double __pyx_v_dy;
  int __pyx_r;
  __pyx_ctuple_ee55be__double__and_double__and_double__and_double__an__etc __pyx_t_1;
  double __pyx_t_2;
  double __pyx_t_3;
  double __pyx_t_4;
  double __pyx_t_5;
  double __pyx_t_6;
  double __pyx_t_7;

  /* "src/uharfbuzz/_raster.pxi":364
 *     @transform.setter
 *     def transform(self, value: Tuple[float, float, float, float, float, float]):
 *         xx, yx, xy, yy, dx, dy = value             # <<<<<<<<<<<<<<
 *         hb_raster_paint_set_transform(self._hb_raster_paint, xx, yx, xy, yy, dx, dy)
 * 
*/
  __pyx_t_1 = __pyx_v_value;
  __pyx_t_2 = __pyx_t_1.f0;
  __pyx_t_3 = __pyx_t_1.f1;
  __pyx_t_4 = __pyx_t_1.f2;
  __pyx_t_5 = __pyx_t_1.f3;
  __pyx_t_6 = __pyx_t_1.f4;
  __pyx_t_7 = __pyx_t_1.f5;
  __pyx_v_xx = __pyx_t_2;
  __pyx_v_yx = __pyx_t_3;
  __pyx_v_xy = __pyx_t_4;
  __pyx_v_yy = __pyx_t_5;
  __pyx_v_dx = __pyx_t_6;
  __pyx_v_dy = __pyx_t_7;

  /* "src/uharfbuzz/_raster.pxi":365
 *     def transform(self, value: Tuple[float, float, float, float, float, float]):
 *         xx, yx, xy, yy, dx, dy = value
 *         hb_raster_paint_set_transform(self._hb_raster_paint, xx, yx, xy, yy, dx, dy)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  hb_raster_paint_set_transform(__pyx_v_self->_hb_raster_paint, __pyx_v_xx, __pyx_v_yx, __pyx_v_xy, __pyx_v_yy, __pyx_v_dx, __pyx_v_dy);

  /* "src/uharfbuzz/_raster.pxi":362
 *         return (xx, yx, xy, yy, dx, dy)
 * 
 *     @transform.setter             # <<<<<<<<<<<<<<
 *     def transform(self, value: Tuple[float, float, float, float, float, float]):
 *         xx, yx, xy, yy, dx, dy = value
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":367
 *         hb_raster_paint_set_transform(self._hb_raster_paint, xx, yx, xy, yy, dx, dy)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def scale_factor(self) -> Tuple[float, float]:
 *         """Post-transform minification factors applied during painting.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_12scale_factor_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_12scale_factor_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_12scale_factor___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_12scale_factor___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self) {
  float __pyx_v_x;
  float __pyx_v_y;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_raster.pxi":380
 *         """
 *         cdef float x, y
 *         hb_raster_paint_get_scale_factor(self._hb_raster_paint, &x, &y)             # <<<<<<<<<<<<<<
 *         return (x, y)
 * 
*/
  hb_raster_paint_get_scale_factor(__pyx_v_self->_hb_raster_paint, (&__pyx_v_x), (&__pyx_v_y));

  /* "src/uharfbuzz/_raster.pxi":381
 *         cdef float x, y
 *         hb_raster_paint_get_scale_factor(self._hb_raster_paint, &x, &y)
 *         return (x, y)             # <<<<<<<<<<<<<<
 * 
 *     @scale_factor.setter
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 381, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 381, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 381, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1) != (0)) __PYX_ERR(10, 381, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2) != (0)) __PYX_ERR(10, 381, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_raster.pxi":367
 *         hb_raster_paint_set_transform(self._hb_raster_paint, xx, yx, xy, yy, dx, dy)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def scale_factor(self) -> Tuple[float, float]:
 *         """Post-transform minification factors applied during painting.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterPaint.scale_factor.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":383
 *         return (x, y)
 * 
 *     @scale_factor.setter             # <<<<<<<<<<<<<<
 *     def scale_factor(self, value: Tuple[float, float]):
 *         x, y = value
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_12scale_factor_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_12scale_factor_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) {
  __pyx_ctuple_double__and_double __pyx_v_value;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_value); {
    __pyx_v_value = __pyx_convert__from_py___pyx_ctuple_double__and_double(__pyx_arg_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(10, 384, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterPaint.scale_factor.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_12scale_factor_2__set__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *)__pyx_v_self), __pyx_v_value);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_12scale_factor_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self, __pyx_ctuple_double__and_double __pyx_v_value) {
  double __pyx_v_x;
  double __pyx_v_y;
  int __pyx_r;
  __pyx_ctuple_double__and_double __pyx_t_1;
  double __pyx_t_2;
  double __pyx_t_3;

  /* "src/uharfbuzz/_raster.pxi":385
 *     @scale_factor.setter
 *     def scale_factor(self, value: Tuple[float, float]):
 *         x, y = value             # <<<<<<<<<<<<<<
 *         hb_raster_paint_set_scale_factor(self._hb_raster_paint, x, y)
 * 
*/
  __pyx_t_1 = __pyx_v_value;
  __pyx_t_2 = __pyx_t_1.f0;
  __pyx_t_3 = __pyx_t_1.f1;
  __pyx_v_x = __pyx_t_2;
  __pyx_v_y = __pyx_t_3;

  /* "src/uharfbuzz/_raster.pxi":386
 *     def scale_factor(self, value: Tuple[float, float]):
 *         x, y = value
 *         hb_raster_paint_set_scale_factor(self._hb_raster_paint, x, y)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  hb_raster_paint_set_scale_factor(__pyx_v_self->_hb_raster_paint, __pyx_v_x, __pyx_v_y);

  /* "src/uharfbuzz/_raster.pxi":383
 *         return (x, y)
 * 
 *     @scale_factor.setter             # <<<<<<<<<<<<<<
 *     def scale_factor(self, value: Tuple[float, float]):
 *         x, y = value
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":388
 *         hb_raster_paint_set_scale_factor(self._hb_raster_paint, x, y)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def extents(self) -> RasterExtents | None:
 *         """The output image extents (pixel rectangle). Must be set before
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_7extents_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_7extents_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_7extents___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_7extents___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self) {
  hb_raster_extents_t __pyx_v_c_extents;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  size_t __pyx_t_10;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_raster.pxi":402
 *         """
 *         cdef hb_raster_extents_t c_extents
 *         if not hb_raster_paint_get_extents(self._hb_raster_paint, &c_extents):             # <<<<<<<<<<<<<<
 *             return None
 *         return RasterExtents(
*/
  __pyx_t_1 = (!(hb_raster_paint_get_extents(__pyx_v_self->_hb_raster_paint, (&__pyx_v_c_extents)) != 0));
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_raster.pxi":403
 *         cdef hb_raster_extents_t c_extents
 *         if not hb_raster_paint_get_extents(self._hb_raster_paint, &c_extents):
 *             return None             # <<<<<<<<<<<<<<
 *         return RasterExtents(
 *             x_origin=c_extents.x_origin,
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "src/uharfbuzz/_raster.pxi":402
 *         """
 *         cdef hb_raster_extents_t c_extents
 *         if not hb_raster_paint_get_extents(self._hb_raster_paint, &c_extents):             # <<<<<<<<<<<<<<
 *             return None
 *         return RasterExtents(
*/
  }

  /* "src/uharfbuzz/_raster.pxi":404
 *         if not hb_raster_paint_get_extents(self._hb_raster_paint, &c_extents):
 *             return None
 *         return RasterExtents(             # <<<<<<<<<<<<<<
 *             x_origin=c_extents.x_origin,
 *             y_origin=c_extents.y_origin,
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_RasterExtents); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 404, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);

  /* "src/uharfbuzz/_raster.pxi":405
 *             return None
 *         return RasterExtents(
 *             x_origin=c_extents.x_origin,             # <<<<<<<<<<<<<<
 *             y_origin=c_extents.y_origin,
 *             width=c_extents.width,
*/
  __pyx_t_5 = __Pyx_PyLong_From_int(__pyx_v_c_extents.x_origin); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 405, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);

  /* "src/uharfbuzz/_raster.pxi":406
 *         return RasterExtents(
 *             x_origin=c_extents.x_origin,
 *             y_origin=c_extents.y_origin,             # <<<<<<<<<<<<<<
 *             width=c_extents.width,
 *             height=c_extents.height,
*/
  __pyx_t_6 = __Pyx_PyLong_From_int(__pyx_v_c_extents.y_origin); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 406, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);

  /* "src/uharfbuzz/_raster.pxi":407
 *             x_origin=c_extents.x_origin,
 *             y_origin=c_extents.y_origin,
 *             width=c_extents.width,             # <<<<<<<<<<<<<<
 *             height=c_extents.height,
 *             stride=c_extents.stride,
*/
  __pyx_t_7 = __Pyx_PyLong_From_unsigned_int(__pyx_v_c_extents.width); if (unlikely(!__pyx_t_7)) __PYX_ERR(10, 407, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);

  /* "src/uharfbuzz/_raster.pxi":408
 *             y_origin=c_extents.y_origin,
 *             width=c_extents.width,
 *             height=c_extents.height,             # <<<<<<<<<<<<<<
 *             stride=c_extents.stride,
 *         )
*/
  __pyx_t_8 = __Pyx_PyLong_From_unsigned_int(__pyx_v_c_extents.height); if (unlikely(!__pyx_t_8)) __PYX_ERR(10, 408, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);

  /* "src/uharfbuzz/_raster.pxi":409
 *             width=c_extents.width,
 *             height=c_extents.height,
 *             stride=c_extents.stride,             # <<<<<<<<<<<<<<
 *         )
 * 
*/
  __pyx_t_9 = __Pyx_PyLong_From_unsigned_int(__pyx_v_c_extents.stride); if (unlikely(!__pyx_t_9)) __PYX_ERR(10, 409, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_10 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_10 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 5 : 0)] = {__pyx_t_3, NULL};
    __pyx_t_11 = __Pyx_MakeVectorcallBuilderKwds(5); if (unlikely(!__pyx_t_11)) __PYX_ERR(10, 404, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_x_origin, __pyx_t_5, __pyx_t_11, __pyx_callargs+1, 0) < (0)) __PYX_ERR(10, 404, __pyx_L1_error)
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_y_origin, __pyx_t_6, __pyx_t_11, __pyx_callargs+1, 1) < (0)) __PYX_ERR(10, 404, __pyx_L1_error)
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_width, __pyx_t_7, __pyx_t_11, __pyx_callargs+1, 2) < (0)) __PYX_ERR(10, 404, __pyx_L1_error)
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_height, __pyx_t_8, __pyx_t_11, __pyx_callargs+1, 3) < (0)) __PYX_ERR(10, 404, __pyx_L1_error)
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_stride, __pyx_t_9, __pyx_t_11, __pyx_callargs+1, 4) < (0)) __PYX_ERR(10, 404, __pyx_L1_error)
    __pyx_t_2 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_10, (1-__pyx_t_10) | (__pyx_t_10*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_11);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 404, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_raster.pxi":388
 *         hb_raster_paint_set_scale_factor(self._hb_raster_paint, x, y)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def extents(self) -> RasterExtents | None:
 *         """The output image extents (pixel rectangle). Must be set before
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterPaint.extents.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":412
 *         )
 * 
 *     @extents.setter             # <<<<<<<<<<<<<<
 *     def extents(self, value: RasterExtents):
 *         cdef hb_raster_extents_t c_extents
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_7extents_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_7extents_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_7extents_2__set__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_7extents_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self, PyObject *__pyx_v_value) {
  hb_raster_extents_t __pyx_v_c_extents;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  unsigned int __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "src/uharfbuzz/_raster.pxi":415
 *     def extents(self, value: RasterExtents):
 *         cdef hb_raster_extents_t c_extents
 *         c_extents.x_origin = value.x_origin             # <<<<<<<<<<<<<<
 *         c_extents.y_origin = value.y_origin
 *         c_extents.width = value.width
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_mstate_global->__pyx_n_u_x_origin); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 415, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(10, 415, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_c_extents.x_origin = __pyx_t_2;

  /* "src/uharfbuzz/_raster.pxi":416
 *         cdef hb_raster_extents_t c_extents
 *         c_extents.x_origin = value.x_origin
 *         c_extents.y_origin = value.y_origin             # <<<<<<<<<<<<<<
 *         c_extents.width = value.width
 *         c_extents.height = value.height
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_mstate_global->__pyx_n_u_y_origin); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 416, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(10, 416, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_c_extents.y_origin = __pyx_t_2;

  /* "src/uharfbuzz/_raster.pxi":417
 *         c_extents.x_origin = value.x_origin
 *         c_extents.y_origin = value.y_origin
 *         c_extents.width = value.width             # <<<<<<<<<<<<<<
 *         c_extents.height = value.height
 *         c_extents.stride = value.stride
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_mstate_global->__pyx_n_u_width); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 417, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyLong_As_unsigned_int(__pyx_t_1); if (unlikely((__pyx_t_3 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(10, 417, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_c_extents.width = __pyx_t_3;

  /* "src/uharfbuzz/_raster.pxi":418
 *         c_extents.y_origin = value.y_origin
 *         c_extents.width = value.width
 *         c_extents.height = value.height             # <<<<<<<<<<<<<<
 *         c_extents.stride = value.stride
 *         hb_raster_paint_set_extents(self._hb_raster_paint, &c_extents)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_mstate_global->__pyx_n_u_height); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 418, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyLong_As_unsigned_int(__pyx_t_1); if (unlikely((__pyx_t_3 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(10, 418, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_c_extents.height = __pyx_t_3;

  /* "src/uharfbuzz/_raster.pxi":419
 *         c_extents.width = value.width
 *         c_extents.height = value.height
 *         c_extents.stride = value.stride             # <<<<<<<<<<<<<<
 *         hb_raster_paint_set_extents(self._hb_raster_paint, &c_extents)
 * 
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_mstate_global->__pyx_n_u_stride); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 419, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyLong_As_unsigned_int(__pyx_t_1); if (unlikely((__pyx_t_3 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(10, 419, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_c_extents.stride = __pyx_t_3;

  /* "src/uharfbuzz/_raster.pxi":420
 *         c_extents.height = value.height
 *         c_extents.stride = value.stride
 *         hb_raster_paint_set_extents(self._hb_raster_paint, &c_extents)             # <<<<<<<<<<<<<<
 * 
 *     def set_glyph_extents(self, extents: GlyphExtents) -> bool:
*/
  hb_raster_paint_set_extents(__pyx_v_self->_hb_raster_paint, (&__pyx_v_c_extents));

  /* "src/uharfbuzz/_raster.pxi":412
 *         )
 * 
 *     @extents.setter             # <<<<<<<<<<<<<<
 *     def extents(self, value: RasterExtents):
 *         cdef hb_raster_extents_t c_extents
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterPaint.extents.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":422
 *         hb_raster_paint_set_extents(self._hb_raster_paint, &c_extents)
 * 
 *     def set_glyph_extents(self, extents: GlyphExtents) -> bool:             # <<<<<<<<<<<<<<
 *         """Transforms ``extents`` with the paint context's base transform
 *         and sets the resulting output image extents.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_5set_glyph_extents(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_11RasterPaint_4set_glyph_extents, "Transforms ``extents`` with the paint context's base transform\n        and sets the resulting output image extents.\n\n        This is equivalent to computing a transformed bounding box in pixel\n        space and assigning it to :attr:`extents`.\n\n        :returns: ``True`` if transformed extents are non-empty and set;\n            ``False`` otherwise.\n\n        Wraps `hb_raster_paint_set_glyph_extents()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-set-glyph-extents>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_11RasterPaint_5set_glyph_extents = {"set_glyph_extents", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_5set_glyph_extents, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11RasterPaint_4set_glyph_extents};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_5set_glyph_extents(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_extents = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_glyph_extents (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_extents,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(10, 422, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(10, 422, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_glyph_extents", 0) < (0)) __PYX_ERR(10, 422, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_glyph_extents", 1, 1, 1, i); __PYX_ERR(10, 422, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(10, 422, __pyx_L3_error)
    }
    __pyx_v_extents = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_glyph_extents", 1, 1, 1, __pyx_nargs); __PYX_ERR(10, 422, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterPaint.set_glyph_extents", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_4set_glyph_extents(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *)__pyx_v_self), __pyx_v_extents);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_4set_glyph_extents(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self, PyObject *__pyx_v_extents) {
  hb_glyph_extents_t __pyx_v_c_extents;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  hb_position_t __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("set_glyph_extents", 0);

  /* "src/uharfbuzz/_raster.pxi":436
 *         """
 *         cdef hb_glyph_extents_t c_extents
 *         c_extents.x_bearing = extents.x_bearing             # <<<<<<<<<<<<<<
 *         c_extents.y_bearing = extents.y_bearing
 *         c_extents.width = extents.width
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_extents, __pyx_mstate_global->__pyx_n_u_x_bearing); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 436, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_As_hb_position_t(__pyx_t_1); if (unlikely((__pyx_t_2 == ((hb_position_t)-1)) && PyErr_Occurred())) __PYX_ERR(10, 436, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_c_extents.x_bearing = __pyx_t_2;

  /* "src/uharfbuzz/_raster.pxi":437
 *         cdef hb_glyph_extents_t c_extents
 *         c_extents.x_bearing = extents.x_bearing
 *         c_extents.y_bearing = extents.y_bearing             # <<<<<<<<<<<<<<
 *         c_extents.width = extents.width
 *         c_extents.height = extents.height
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_extents, __pyx_mstate_global->__pyx_n_u_y_bearing); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 437, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_As_hb_position_t(__pyx_t_1); if (unlikely((__pyx_t_2 == ((hb_position_t)-1)) && PyErr_Occurred())) __PYX_ERR(10, 437, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_c_extents.y_bearing = __pyx_t_2;

  /* "src/uharfbuzz/_raster.pxi":438
 *         c_extents.x_bearing = extents.x_bearing
 *         c_extents.y_bearing = extents.y_bearing
 *         c_extents.width = extents.width             # <<<<<<<<<<<<<<
 *         c_extents.height = extents.height
 *         return hb_raster_paint_set_glyph_extents(self._hb_raster_paint, &c_extents)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_extents, __pyx_mstate_global->__pyx_n_u_width); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 438, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_As_hb_position_t(__pyx_t_1); if (unlikely((__pyx_t_2 == ((hb_position_t)-1)) && PyErr_Occurred())) __PYX_ERR(10, 438, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_c_extents.width = __pyx_t_2;

  /* "src/uharfbuzz/_raster.pxi":439
 *         c_extents.y_bearing = extents.y_bearing
 *         c_extents.width = extents.width
 *         c_extents.height = extents.height             # <<<<<<<<<<<<<<
 *         return hb_raster_paint_set_glyph_extents(self._hb_raster_paint, &c_extents)
 * 
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_extents, __pyx_mstate_global->__pyx_n_u_height); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 439, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_As_hb_position_t(__pyx_t_1); if (unlikely((__pyx_t_2 == ((hb_position_t)-1)) && PyErr_Occurred())) __PYX_ERR(10, 439, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_c_extents.height = __pyx_t_2;

  /* "src/uharfbuzz/_raster.pxi":440
 *         c_extents.width = extents.width
 *         c_extents.height = extents.height
 *         return hb_raster_paint_set_glyph_extents(self._hb_raster_paint, &c_extents)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_hb_bool_t(hb_raster_paint_set_glyph_extents(__pyx_v_self->_hb_raster_paint, (&__pyx_v_c_extents))); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 440, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_raster.pxi":422
 *         hb_raster_paint_set_extents(self._hb_raster_paint, &c_extents)
 * 
 *     def set_glyph_extents(self, extents: GlyphExtents) -> bool:             # <<<<<<<<<<<<<<
 *         """Transforms ``extents`` with the paint context's base transform
 *         and sets the resulting output image extents.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterPaint.set_glyph_extents", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":442
 *         return hb_raster_paint_set_glyph_extents(self._hb_raster_paint, &c_extents)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def foreground(self) -> Color:
 *         """The foreground color used when paint callbacks request it (e.g.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_10foreground_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_10foreground_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_10foreground___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_10foreground___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_raster.pxi":455
 *         <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-set-foreground>`_.
 *         """
 *         return Color.from_int(hb_raster_paint_get_foreground(self._hb_raster_paint))             # <<<<<<<<<<<<<<
 * 
 *     @foreground.setter
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_Color); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 455, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_from_int); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 455, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyLong_From_uint32_t(hb_raster_paint_get_foreground(__pyx_v_self->_hb_raster_paint)); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 455, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 455, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_raster.pxi":442
 *         return hb_raster_paint_set_glyph_extents(self._hb_raster_paint, &c_extents)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def foreground(self) -> Color:
 *         """The foreground color used when paint callbacks request it (e.g.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterPaint.foreground.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":457
 *         return Color.from_int(hb_raster_paint_get_foreground(self._hb_raster_paint))
 * 
 *     @foreground.setter             # <<<<<<<<<<<<<<
 *     def foreground(self, value: Color):
 *         hb_raster_paint_set_foreground(self._hb_raster_paint, value.to_int())
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_10foreground_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_10foreground_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_10foreground_2__set__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_10foreground_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  hb_color_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "src/uharfbuzz/_raster.pxi":459
 *     @foreground.setter
 *     def foreground(self, value: Color):
 *         hb_raster_paint_set_foreground(self._hb_raster_paint, value.to_int())             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __pyx_t_2 = __pyx_v_value;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_to_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 459, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_uint32_t(__pyx_t_1); if (unlikely((__pyx_t_4 == ((hb_color_t)-1)) && PyErr_Occurred())) __PYX_ERR(10, 459, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  hb_raster_paint_set_foreground(__pyx_v_self->_hb_raster_paint, __pyx_t_4);

  /* "src/uharfbuzz/_raster.pxi":457
 *         return Color.from_int(hb_raster_paint_get_foreground(self._hb_raster_paint))
 * 
 *     @foreground.setter             # <<<<<<<<<<<<<<
 *     def foreground(self, value: Color):
 *         hb_raster_paint_set_foreground(self._hb_raster_paint, value.to_int())
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterPaint.foreground.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":461
 *         hb_raster_paint_set_foreground(self._hb_raster_paint, value.to_int())
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def background(self) -> Color:
 *         """The background color. If set to a non-transparent value, the
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_10background_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_10background_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_10background___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_10background___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_raster.pxi":474
 *         <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-set-background>`_.
 *         """
 *         return Color.from_int(hb_raster_paint_get_background(self._hb_raster_paint))             # <<<<<<<<<<<<<<
 * 
 *     @background.setter
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_Color); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 474, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_from_int); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 474, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyLong_From_uint32_t(hb_raster_paint_get_background(__pyx_v_self->_hb_raster_paint)); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 474, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 474, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_raster.pxi":461
 *         hb_raster_paint_set_foreground(self._hb_raster_paint, value.to_int())
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def background(self) -> Color:
 *         """The background color. If set to a non-transparent value, the
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterPaint.background.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":476
 *         return Color.from_int(hb_raster_paint_get_background(self._hb_raster_paint))
 * 
 *     @background.setter             # <<<<<<<<<<<<<<
 *     def background(self, value: Color):
 *         hb_raster_paint_set_background(self._hb_raster_paint, value.to_int())
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_10background_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_10background_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_10background_2__set__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_10background_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  hb_color_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "src/uharfbuzz/_raster.pxi":478
 *     @background.setter
 *     def background(self, value: Color):
 *         hb_raster_paint_set_background(self._hb_raster_paint, value.to_int())             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __pyx_t_2 = __pyx_v_value;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_to_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 478, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_uint32_t(__pyx_t_1); if (unlikely((__pyx_t_4 == ((hb_color_t)-1)) && PyErr_Occurred())) __PYX_ERR(10, 478, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  hb_raster_paint_set_background(__pyx_v_self->_hb_raster_paint, __pyx_t_4);

  /* "src/uharfbuzz/_raster.pxi":476
 *         return Color.from_int(hb_raster_paint_get_background(self._hb_raster_paint))
 * 
 *     @background.setter             # <<<<<<<<<<<<<<
 *     def background(self, value: Color):
 *         hb_raster_paint_set_background(self._hb_raster_paint, value.to_int())
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterPaint.background.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":480
 *         hb_raster_paint_set_background(self._hb_raster_paint, value.to_int())
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def palette(self) -> int:
 *         """Selects which font palette is used when paint callbacks look up
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_7palette_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_7palette_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_7palette___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_7palette___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_raster.pxi":492
 *         <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-set-palette>`_.
 *         """
 *         return hb_raster_paint_get_palette(self._hb_raster_paint)             # <<<<<<<<<<<<<<
 * 
 *     @palette.setter
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int(hb_raster_paint_get_palette(__pyx_v_self->_hb_raster_paint)); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 492, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_raster.pxi":480
 *         hb_raster_paint_set_background(self._hb_raster_paint, value.to_int())
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def palette(self) -> int:
 *         """Selects which font palette is used when paint callbacks look up
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterPaint.palette.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":494
 *         return hb_raster_paint_get_palette(self._hb_raster_paint)
 * 
 *     @palette.setter             # <<<<<<<<<<<<<<
 *     def palette(self, value: int):
 *         hb_raster_paint_set_palette(self._hb_raster_paint, value)
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_7palette_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_7palette_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), (&PyLong_Type), 0, "value", 2))) __PYX_ERR(10, 495, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_7palette_2__set__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *)__pyx_v_self), ((PyObject*)__pyx_v_value));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_7palette_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  unsigned int __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "src/uharfbuzz/_raster.pxi":496
 *     @palette.setter
 *     def palette(self, value: int):
 *         hb_raster_paint_set_palette(self._hb_raster_paint, value)             # <<<<<<<<<<<<<<
 * 
 *     def set_custom_palette_color(self, color_index: int, color: Color) -> bool:
*/
  __pyx_t_1 = __Pyx_PyLong_As_unsigned_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(10, 496, __pyx_L1_error)
  hb_raster_paint_set_palette(__pyx_v_self->_hb_raster_paint, __pyx_t_1);

  /* "src/uharfbuzz/_raster.pxi":494
 *         return hb_raster_paint_get_palette(self._hb_raster_paint)
 * 
 *     @palette.setter             # <<<<<<<<<<<<<<
 *     def palette(self, value: int):
 *         hb_raster_paint_set_palette(self._hb_raster_paint, value)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterPaint.palette.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":498
 *         hb_raster_paint_set_palette(self._hb_raster_paint, value)
 * 
 *     def set_custom_palette_color(self, color_index: int, color: Color) -> bool:             # <<<<<<<<<<<<<<
 *         """Overrides one font palette color entry for subsequent paint
 *         operations. Overrides are keyed by ``color_index`` and persist on
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_7set_custom_palette_color(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_11RasterPaint_6set_custom_palette_color, "Overrides one font palette color entry for subsequent paint\n        operations. Overrides are keyed by ``color_index`` and persist on\n        this paint context until cleared (or replaced for the same index).\n\n        These overrides are consulted by paint operations that resolve\n        ``CPAL`` entries.\n\n        :returns: ``True`` if the override was set; ``False`` on allocation\n            failure.\n\n        Wraps `hb_raster_paint_set_custom_palette_color()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-set-custom-palette-color>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_11RasterPaint_7set_custom_palette_color = {"set_custom_palette_color", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_7set_custom_palette_color, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11RasterPaint_6set_custom_palette_color};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_7set_custom_palette_color(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_color_index = 0;
  PyObject *__pyx_v_color = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_custom_palette_color (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_color_index,&__pyx_mstate_global->__pyx_n_u_color,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(10, 498, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(10, 498, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(10, 498, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_custom_palette_color", 0) < (0)) __PYX_ERR(10, 498, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_custom_palette_color", 1, 2, 2, i); __PYX_ERR(10, 498, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(10, 498, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(10, 498, __pyx_L3_error)
    }
    if (__Pyx_PyInt_FromNumber(&values[0], "color_index", 0) < (0)) __PYX_ERR(10, 498, __pyx_L3_error)
    __pyx_v_color_index = ((PyObject*)values[0]);
    __pyx_v_color = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_custom_palette_color", 1, 2, 2, __pyx_nargs); __PYX_ERR(10, 498, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterPaint.set_custom_palette_color", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_color_index), (&PyLong_Type), 0, "color_index", 2))) __PYX_ERR(10, 498, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_6set_custom_palette_color(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *)__pyx_v_self), __pyx_v_color_index, __pyx_v_color);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_6set_custom_palette_color(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self, PyObject *__pyx_v_color_index, PyObject *__pyx_v_color) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  unsigned int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  hb_color_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("set_custom_palette_color", 0);

  /* "src/uharfbuzz/_raster.pxi":512
 *         <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-set-custom-palette-color>`_.
 *         """
 *         return hb_raster_paint_set_custom_palette_color(             # <<<<<<<<<<<<<<
 *             self._hb_raster_paint, color_index, color.to_int())
 * 
*/
  __Pyx_XDECREF(__pyx_r);

  /* "src/uharfbuzz/_raster.pxi":513
 *         """
 *         return hb_raster_paint_set_custom_palette_color(
 *             self._hb_raster_paint, color_index, color.to_int())             # <<<<<<<<<<<<<<
 * 
 *     def clear_custom_palette_colors(self):
*/
  __pyx_t_1 = __Pyx_PyLong_As_unsigned_int(__pyx_v_color_index); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(10, 513, __pyx_L1_error)
  __pyx_t_3 = __pyx_v_color;
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_to_int, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 513, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_5 = __Pyx_PyLong_As_uint32_t(__pyx_t_2); if (unlikely((__pyx_t_5 == ((hb_color_t)-1)) && PyErr_Occurred())) __PYX_ERR(10, 513, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_raster.pxi":512
 *         <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-set-custom-palette-color>`_.
 *         """
 *         return hb_raster_paint_set_custom_palette_color(             # <<<<<<<<<<<<<<
 *             self._hb_raster_paint, color_index, color.to_int())
 * 
*/
  __pyx_t_2 = __Pyx_PyLong_From_hb_bool_t(hb_raster_paint_set_custom_palette_color(__pyx_v_self->_hb_raster_paint, __pyx_t_1, __pyx_t_5)); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 512, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_raster.pxi":498
 *         hb_raster_paint_set_palette(self._hb_raster_paint, value)
 * 
 *     def set_custom_palette_color(self, color_index: int, color: Color) -> bool:             # <<<<<<<<<<<<<<
 *         """Overrides one font palette color entry for subsequent paint
 *         operations. Overrides are keyed by ``color_index`` and persist on
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterPaint.set_custom_palette_color", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":515
 *             self._hb_raster_paint, color_index, color.to_int())
 * 
 *     def clear_custom_palette_colors(self):             # <<<<<<<<<<<<<<
 *         """Clears all custom palette color overrides previously set on this
 *         paint context.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_9clear_custom_palette_colors(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_11RasterPaint_8clear_custom_palette_colors, "Clears all custom palette color overrides previously set on this\n        paint context.\n\n        After this call, palette lookups use the selected font palette\n        without custom override entries.\n\n        Wraps `hb_raster_paint_clear_custom_palette_colors()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-clear-custom-palette-colors>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_11RasterPaint_9clear_custom_palette_colors = {"clear_custom_palette_colors", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_9clear_custom_palette_colors, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11RasterPaint_8clear_custom_palette_colors};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_9clear_custom_palette_colors(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("clear_custom_palette_colors (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("clear_custom_palette_colors", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("clear_custom_palette_colors", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_8clear_custom_palette_colors(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_8clear_custom_palette_colors(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("clear_custom_palette_colors", 0);

  /* "src/uharfbuzz/_raster.pxi":525
 *         <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-clear-custom-palette-colors>`_.
 *         """
 *         hb_raster_paint_clear_custom_palette_colors(self._hb_raster_paint)             # <<<<<<<<<<<<<<
 * 
 *     def paint_glyph(self, font: Font, glyph: int):
*/
  hb_raster_paint_clear_custom_palette_colors(__pyx_v_self->_hb_raster_paint);

  /* "src/uharfbuzz/_raster.pxi":515
 *             self._hb_raster_paint, color_index, color.to_int())
 * 
 *     def clear_custom_palette_colors(self):             # <<<<<<<<<<<<<<
 *         """Clears all custom palette color overrides previously set on this
 *         paint context.
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":527
 *         hb_raster_paint_clear_custom_palette_colors(self._hb_raster_paint)
 * 
 *     def paint_glyph(self, font: Font, glyph: int):             # <<<<<<<<<<<<<<
 *         """Paints one glyph into this paint context. Unlike
 *         :meth:`paint_glyph_or_fail`, glyphs with no color paint data fall
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_11paint_glyph(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_11RasterPaint_10paint_glyph, "Paints one glyph into this paint context. Unlike\n        :meth:`paint_glyph_or_fail`, glyphs with no color paint data fall\n        back to a synthesized foreground-colored outline, so any glyph with\n        an outline or bitmap image produces output.\n\n        Wraps `hb_raster_paint_glyph()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-glyph>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_11RasterPaint_11paint_glyph = {"paint_glyph", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_11paint_glyph, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11RasterPaint_10paint_glyph};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_11paint_glyph(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font = 0;
  PyObject *__pyx_v_glyph = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("paint_glyph (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_font,&__pyx_mstate_global->__pyx_n_u_glyph,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(10, 527, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(10, 527, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(10, 527, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "paint_glyph", 0) < (0)) __PYX_ERR(10, 527, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("paint_glyph", 1, 2, 2, i); __PYX_ERR(10, 527, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(10, 527, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(10, 527, __pyx_L3_error)
    }
    __pyx_v_font = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "glyph", 0) < (0)) __PYX_ERR(10, 527, __pyx_L3_error)
    __pyx_v_glyph = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("paint_glyph", 1, 2, 2, __pyx_nargs); __PYX_ERR(10, 527, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterPaint.paint_glyph", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_font), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, 0, "font", 0))) __PYX_ERR(10, 527, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_glyph), (&PyLong_Type), 0, "glyph", 2))) __PYX_ERR(10, 527, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_10paint_glyph(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *)__pyx_v_self), __pyx_v_font, __pyx_v_glyph);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_10paint_glyph(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_glyph) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  hb_codepoint_t __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("paint_glyph", 0);

  /* "src/uharfbuzz/_raster.pxi":536
 *         <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-glyph>`_.
 *         """
 *         hb_raster_paint_glyph(self._hb_raster_paint, font._hb_font, glyph)             # <<<<<<<<<<<<<<
 * 
 *     def paint_glyph_or_fail(self, font: Font, glyph: int) -> bool:
*/
  __pyx_t_1 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_glyph); if (unlikely((__pyx_t_1 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(10, 536, __pyx_L1_error)
  hb_raster_paint_glyph(__pyx_v_self->_hb_raster_paint, __pyx_v_font->_hb_font, __pyx_t_1);

  /* "src/uharfbuzz/_raster.pxi":527
 *         hb_raster_paint_clear_custom_palette_colors(self._hb_raster_paint)
 * 
 *     def paint_glyph(self, font: Font, glyph: int):             # <<<<<<<<<<<<<<
 *         """Paints one glyph into this paint context. Unlike
 *         :meth:`paint_glyph_or_fail`, glyphs with no color paint data fall
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterPaint.paint_glyph", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":538
 *         hb_raster_paint_glyph(self._hb_raster_paint, font._hb_font, glyph)
 * 
 *     def paint_glyph_or_fail(self, font: Font, glyph: int) -> bool:             # <<<<<<<<<<<<<<
 *         """Convenience to paint one color glyph.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_13paint_glyph_or_fail(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_11RasterPaint_12paint_glyph_or_fail, "Convenience to paint one color glyph.\n\n        :returns: ``True`` if painting succeeded, ``False`` otherwise.\n\n        Wraps `hb_raster_paint_glyph_or_fail()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-glyph-or-fail>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_11RasterPaint_13paint_glyph_or_fail = {"paint_glyph_or_fail", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_13paint_glyph_or_fail, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11RasterPaint_12paint_glyph_or_fail};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_13paint_glyph_or_fail(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font = 0;
  PyObject *__pyx_v_glyph = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("paint_glyph_or_fail (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_font,&__pyx_mstate_global->__pyx_n_u_glyph,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(10, 538, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(10, 538, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(10, 538, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "paint_glyph_or_fail", 0) < (0)) __PYX_ERR(10, 538, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("paint_glyph_or_fail", 1, 2, 2, i); __PYX_ERR(10, 538, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(10, 538, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(10, 538, __pyx_L3_error)
    }
    __pyx_v_font = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "glyph", 0) < (0)) __PYX_ERR(10, 538, __pyx_L3_error)
    __pyx_v_glyph = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("paint_glyph_or_fail", 1, 2, 2, __pyx_nargs); __PYX_ERR(10, 538, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterPaint.paint_glyph_or_fail", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_font), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, 0, "font", 0))) __PYX_ERR(10, 538, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_glyph), (&PyLong_Type), 0, "glyph", 2))) __PYX_ERR(10, 538, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_12paint_glyph_or_fail(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *)__pyx_v_self), __pyx_v_font, __pyx_v_glyph);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_12paint_glyph_or_fail(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_glyph) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  hb_codepoint_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("paint_glyph_or_fail", 0);

  /* "src/uharfbuzz/_raster.pxi":546
 *         <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-glyph-or-fail>`_.
 *         """
 *         return hb_raster_paint_glyph_or_fail(self._hb_raster_paint, font._hb_font, glyph)             # <<<<<<<<<<<<<<
 * 
 *     def render(self) -> RasterImage | None:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_As_hb_codepoint_t(__pyx_v_glyph); if (unlikely((__pyx_t_1 == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(10, 546, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyLong_From_hb_bool_t(hb_raster_paint_glyph_or_fail(__pyx_v_self->_hb_raster_paint, __pyx_v_font->_hb_font, __pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 546, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_raster.pxi":538
 *         hb_raster_paint_glyph(self._hb_raster_paint, font._hb_font, glyph)
 * 
 *     def paint_glyph_or_fail(self, font: Font, glyph: int) -> bool:             # <<<<<<<<<<<<<<
 *         """Convenience to paint one color glyph.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterPaint.paint_glyph_or_fail", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":548
 *         return hb_raster_paint_glyph_or_fail(self._hb_raster_paint, font._hb_font, glyph)
 * 
 *     def render(self) -> RasterImage | None:             # <<<<<<<<<<<<<<
 *         """Extracts the rendered image after painting has completed. The
 *         paint context's surface stack is consumed and the result returned
*/

/* Python wrapper */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_15render(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_11RasterPaint_14render, "Extracts the rendered image after painting has completed. The\n        paint context's surface stack is consumed and the result returned\n        as a new :class:`RasterImage`. Output format is always\n        :attr:`RasterFormat.BGRA32`.\n\n        :attr:`extents` or :meth:`set_glyph_extents` must be called before\n        painting; otherwise this function returns ``None``. Internal\n        drawing state is cleared here so the same object can be reused\n        without client-side clearing.\n\n        :returns: A rendered :class:`RasterImage`. Returns ``None`` if\n            extents were not set or if allocation/configuration fails. If\n            extents were set but nothing was painted, returns an empty\n            image.\n\n        Wraps `hb_raster_paint_render()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-render>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_11RasterPaint_15render = {"render", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_15render, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11RasterPaint_14render};
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_15render(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("render (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("render", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("render", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_14render(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_14render(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self) {
  hb_raster_image_t *__pyx_v_img;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("render", 0);

  /* "src/uharfbuzz/_raster.pxi":567
 *         <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-render>`_.
 *         """
 *         cdef hb_raster_image_t* img = hb_raster_paint_render(self._hb_raster_paint)             # <<<<<<<<<<<<<<
 *         if img is NULL:
 *             return None
*/
  __pyx_v_img = hb_raster_paint_render(__pyx_v_self->_hb_raster_paint);

  /* "src/uharfbuzz/_raster.pxi":568
 *         """
 *         cdef hb_raster_image_t* img = hb_raster_paint_render(self._hb_raster_paint)
 *         if img is NULL:             # <<<<<<<<<<<<<<
 *             return None
 *         return RasterImage.from_ptr(img)
*/
  __pyx_t_1 = (__pyx_v_img == NULL);
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_raster.pxi":569
 *         cdef hb_raster_image_t* img = hb_raster_paint_render(self._hb_raster_paint)
 *         if img is NULL:
 *             return None             # <<<<<<<<<<<<<<
 *         return RasterImage.from_ptr(img)
 * 
*/
    __Pyx_XDECREF((PyObject *)__pyx_r);
    __pyx_r = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *)Py_None); __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "src/uharfbuzz/_raster.pxi":568
 *         """
 *         cdef hb_raster_image_t* img = hb_raster_paint_render(self._hb_raster_paint)
 *         if img is NULL:             # <<<<<<<<<<<<<<
 *             return None
 *         return RasterImage.from_ptr(img)
*/
  }

  /* "src/uharfbuzz/_raster.pxi":570
 *         if img is NULL:
 *             return None
 *         return RasterImage.from_ptr(img)             # <<<<<<<<<<<<<<
 * 
 *     def clear(self):
*/
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_f_9uharfbuzz_9_harfbuzz_11RasterImage_from_ptr(__pyx_v_img)); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 570, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_raster.pxi":548
 *         return hb_raster_paint_glyph_or_fail(self._hb_raster_paint, font._hb_font, glyph)
 * 
 *     def render(self) -> RasterImage | None:             # <<<<<<<<<<<<<<
 *         """Extracts the rendered image after painting has completed. The
 *         paint context's surface stack is consumed and the result returned
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterPaint.render", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":572
 *         return RasterImage.from_ptr(img)
 * 
 *     def clear(self):             # <<<<<<<<<<<<<<
 *         """Discards accumulated paint output so this paint context can be
 *         reused for another render. User configuration (base transform,
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_17clear(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_11RasterPaint_16clear, "Discards accumulated paint output so this paint context can be\n        reused for another render. User configuration (base transform,\n        scale factors, foreground, custom palette colors) is preserved.\n        Call :meth:`reset` to also reset user configuration to defaults.\n\n        Wraps `hb_raster_paint_clear()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-clear>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_11RasterPaint_17clear = {"clear", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_17clear, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11RasterPaint_16clear};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_17clear(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("clear (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("clear", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("clear", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_16clear(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_16clear(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("clear", 0);

  /* "src/uharfbuzz/_raster.pxi":581
 *         <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-clear>`_.
 *         """
 *         hb_raster_paint_clear(self._hb_raster_paint)             # <<<<<<<<<<<<<<
 * 
 *     def reset(self):
*/
  hb_raster_paint_clear(__pyx_v_self->_hb_raster_paint);

  /* "src/uharfbuzz/_raster.pxi":572
 *         return RasterImage.from_ptr(img)
 * 
 *     def clear(self):             # <<<<<<<<<<<<<<
 *         """Discards accumulated paint output so this paint context can be
 *         reused for another render. User configuration (base transform,
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_raster.pxi":583
 *         hb_raster_paint_clear(self._hb_raster_paint)
 * 
 *     def reset(self):             # <<<<<<<<<<<<<<
 *         """Resets this paint context to its initial state, clearing all
 *         configuration while preserving internal image caches.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_19reset(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_11RasterPaint_18reset, "Resets this paint context to its initial state, clearing all\n        configuration while preserving internal image caches.\n\n        Wraps `hb_raster_paint_reset()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-reset>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_11RasterPaint_19reset = {"reset", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_19reset, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11RasterPaint_18reset};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_19reset(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("reset (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("reset", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("reset", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_18reset(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_18reset(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("reset", 0);

  /* "src/uharfbuzz/_raster.pxi":590
 *         <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-reset>`_.
 *         """
 *         hb_raster_paint_reset(self._hb_raster_paint)             # <<<<<<<<<<<<<<
*/
  hb_raster_paint_reset(__pyx_v_self->_hb_raster_paint);

  /* "src/uharfbuzz/_raster.pxi":583
 *         hb_raster_paint_clear(self._hb_raster_paint)
 * 
 *     def reset(self):             # <<<<<<<<<<<<<<
 *         """Resets this paint context to its initial state, clearing all
 *         configuration while preserving internal image caches.
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_21__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_11RasterPaint_21__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_21__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_21__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_20__reduce_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_20__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterPaint.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_23__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_11RasterPaint_23__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_23__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_23__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 3, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < (0)) __PYX_ERR(4, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(4, 3, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(4, 3, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterPaint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_22__setstate_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11RasterPaint_22__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.RasterPaint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_serialize.pxi":12
 *     cdef unsigned int _num
 * 
 *     def __cinit__(self, num_nodes):             # <<<<<<<<<<<<<<
 *         self._hb_obj_list = <hb_subset_serialize_object_t*>calloc(num_nodes, sizeof(hb_subset_serialize_object_t))
 *         if self._hb_obj_list == NULL:
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_8HBObject_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_8HBObject_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_num_nodes = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_num_nodes,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(11, 12, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 12, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__cinit__", 0) < (0)) __PYX_ERR(11, 12, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(11, 12, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 12, __pyx_L3_error)
    }
    __pyx_v_num_nodes = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(11, 12, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.HBObject.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_8HBObject___cinit__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_HBObject *)__pyx_v_self), __pyx_v_num_nodes);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_8HBObject___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_HBObject *__pyx_v_self, PyObject *__pyx_v_num_nodes) {
  int __pyx_r;
  size_t __pyx_t_1;
  int __pyx_t_2;
  unsigned int __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "src/uharfbuzz/_serialize.pxi":13
 * 
 *     def __cinit__(self, num_nodes):
 *         self._hb_obj_list = <hb_subset_serialize_object_t*>calloc(num_nodes, sizeof(hb_subset_serialize_object_t))             # <<<<<<<<<<<<<<
 *         if self._hb_obj_list == NULL:
 *             raise MemoryError()
*/
  __pyx_t_1 = __Pyx_PyLong_As_size_t(__pyx_v_num_nodes); if (unlikely((__pyx_t_1 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(11, 13, __pyx_L1_error)
  __pyx_v_self->_hb_obj_list = ((hb_subset_serialize_object_t *)calloc(__pyx_t_1, (sizeof(hb_subset_serialize_object_t))));

  /* "src/uharfbuzz/_serialize.pxi":14
 *     def __cinit__(self, num_nodes):
 *         self._hb_obj_list = <hb_subset_serialize_object_t*>calloc(num_nodes, sizeof(hb_subset_serialize_object_t))
 *         if self._hb_obj_list == NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 *         self._num = num_nodes
*/
  __pyx_t_2 = (__pyx_v_self->_hb_obj_list == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "src/uharfbuzz/_serialize.pxi":15
 *         self._hb_obj_list = <hb_subset_serialize_object_t*>calloc(num_nodes, sizeof(hb_subset_serialize_object_t))
 *         if self._hb_obj_list == NULL:
 *             raise MemoryError()             # <<<<<<<<<<<<<<
 *         self._num = num_nodes
 * 
*/
    PyErr_NoMemory(); __PYX_ERR(11, 15, __pyx_L1_error)

    /* "src/uharfbuzz/_serialize.pxi":14
 *     def __cinit__(self, num_nodes):
 *         self._hb_obj_list = <hb_subset_serialize_object_t*>calloc(num_nodes, sizeof(hb_subset_serialize_object_t))
 *         if self._hb_obj_list == NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 *         self._num = num_nodes
*/
  }

  /* "src/uharfbuzz/_serialize.pxi":16
 *         if self._hb_obj_list == NULL:
 *             raise MemoryError()
 *         self._num = num_nodes             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
  __pyx_t_3 = __Pyx_PyLong_As_unsigned_int(__pyx_v_num_nodes); if (unlikely((__pyx_t_3 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(11, 16, __pyx_L1_error)
  __pyx_v_self->_num = __pyx_t_3;

  /* "src/uharfbuzz/_serialize.pxi":12
 *     cdef unsigned int _num
 * 
 *     def __cinit__(self, num_nodes):             # <<<<<<<<<<<<<<
 *         self._hb_obj_list = <hb_subset_serialize_object_t*>calloc(num_nodes, sizeof(hb_subset_serialize_object_t))
 *         if self._hb_obj_list == NULL:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.HBObject.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "src/uharfbuzz/_serialize.pxi":18
 *         self._num = num_nodes
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._hb_obj_list != NULL:
 *             for i in range(self._num):
*/

/* Python wrapper */
static void __pyx_pw_9uharfbuzz_9_harfbuzz_8HBObject_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_9uharfbuzz_9_harfbuzz_8HBObject_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_9uharfbuzz_9_harfbuzz_8HBObject_2__dealloc__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_HBObject *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_9uharfbuzz_9_harfbuzz_8HBObject_2__dealloc__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_HBObject *__pyx_v_self) {
  unsigned int __pyx_v_i;
  int __pyx_t_1;
  unsigned int __pyx_t_2;
  unsigned int __pyx_t_3;
  unsigned int __pyx_t_4;

  /* "src/uharfbuzz/_serialize.pxi":19
 * 
 *     def __dealloc__(self):
 *         if self._hb_obj_list != NULL:             # <<<<<<<<<<<<<<
 *             for i in range(self._num):
 *                 if self._hb_obj_list[i].real_links != NULL:
*/
  __pyx_t_1 = (__pyx_v_self->_hb_obj_list != NULL);
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_serialize.pxi":20
 *     def __dealloc__(self):
 *         if self._hb_obj_list != NULL:
 *             for i in range(self._num):             # <<<<<<<<<<<<<<
 *                 if self._hb_obj_list[i].real_links != NULL:
 *                     free(self._hb_obj_list[i].real_links)
*/
    __pyx_t_2 = __pyx_v_self->_num;
    __pyx_t_3 = __pyx_t_2;
    for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
      __pyx_v_i = __pyx_t_4;

      /* "src/uharfbuzz/_serialize.pxi":21
 *         if self._hb_obj_list != NULL:
 *             for i in range(self._num):
 *                 if self._hb_obj_list[i].real_links != NULL:             # <<<<<<<<<<<<<<
 *                     free(self._hb_obj_list[i].real_links)
 *                 if self._hb_obj_list[i].virtual_links != NULL:
*/
      __pyx_t_1 = ((__pyx_v_self->_hb_obj_list[__pyx_v_i]).real_links != NULL);
      if (__pyx_t_1) {

        /* "src/uharfbuzz/_serialize.pxi":22
 *             for i in range(self._num):
 *                 if self._hb_obj_list[i].real_links != NULL:
 *                     free(self._hb_obj_list[i].real_links)             # <<<<<<<<<<<<<<
 *                 if self._hb_obj_list[i].virtual_links != NULL:
 *                     free(self._hb_obj_list[i].virtual_links)
*/
        free((__pyx_v_self->_hb_obj_list[__pyx_v_i]).real_links);

        /* "src/uharfbuzz/_serialize.pxi":21
 *         if self._hb_obj_list != NULL:
 *             for i in range(self._num):
 *                 if self._hb_obj_list[i].real_links != NULL:             # <<<<<<<<<<<<<<
 *                     free(self._hb_obj_list[i].real_links)
 *                 if self._hb_obj_list[i].virtual_links != NULL:
*/
      }

      /* "src/uharfbuzz/_serialize.pxi":23
 *                 if self._hb_obj_list[i].real_links != NULL:
 *                     free(self._hb_obj_list[i].real_links)
 *                 if self._hb_obj_list[i].virtual_links != NULL:             # <<<<<<<<<<<<<<
 *                     free(self._hb_obj_list[i].virtual_links)
 *             free(self._hb_obj_list)
*/
      __pyx_t_1 = ((__pyx_v_self->_hb_obj_list[__pyx_v_i]).virtual_links != NULL);
      if (__pyx_t_1) {

        /* "src/uharfbuzz/_serialize.pxi":24
 *                     free(self._hb_obj_list[i].real_links)
 *                 if self._hb_obj_list[i].virtual_links != NULL:
 *                     free(self._hb_obj_list[i].virtual_links)             # <<<<<<<<<<<<<<
 *             free(self._hb_obj_list)
 * 
*/
        free((__pyx_v_self->_hb_obj_list[__pyx_v_i]).virtual_links);

        /* "src/uharfbuzz/_serialize.pxi":23
 *                 if self._hb_obj_list[i].real_links != NULL:
 *                     free(self._hb_obj_list[i].real_links)
 *                 if self._hb_obj_list[i].virtual_links != NULL:             # <<<<<<<<<<<<<<
 *                     free(self._hb_obj_list[i].virtual_links)
 *             free(self._hb_obj_list)
*/
      }
    }

    /* "src/uharfbuzz/_serialize.pxi":25
 *                 if self._hb_obj_list[i].virtual_links != NULL:
 *                     free(self._hb_obj_list[i].virtual_links)
 *             free(self._hb_obj_list)             # <<<<<<<<<<<<<<
 * 
 *     cdef update_obj_length(self,
*/
    free(__pyx_v_self->_hb_obj_list);

    /* "src/uharfbuzz/_serialize.pxi":19
 * 
 *     def __dealloc__(self):
 *         if self._hb_obj_list != NULL:             # <<<<<<<<<<<<<<
 *             for i in range(self._num):
 *                 if self._hb_obj_list[i].real_links != NULL:
*/
  }

  /* "src/uharfbuzz/_serialize.pxi":18
 *         self._num = num_nodes
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._hb_obj_list != NULL:
 *             for i in range(self._num):
*/

  /* function exit code */
}

/* "src/uharfbuzz/_serialize.pxi":27
 *             free(self._hb_obj_list)
 * 
 *     cdef update_obj_length(self,             # <<<<<<<<<<<<<<
 *                            unsigned int idx,
 *                            char* head,
*/

static PyObject *__pyx_f_9uharfbuzz_9_harfbuzz_8HBObject_update_obj_length(struct __pyx_obj_9uharfbuzz_9_harfbuzz_HBObject *__pyx_v_self, unsigned int __pyx_v_idx, char *__pyx_v_head, char *__pyx_v_tail) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("update_obj_length", 0);

  /* "src/uharfbuzz/_serialize.pxi":31
 *                            char* head,
 *                            char* tail):
 *         self._hb_obj_list[idx].head = head             # <<<<<<<<<<<<<<
 *         self._hb_obj_list[idx].tail = tail
 * 
*/
  (__pyx_v_self->_hb_obj_list[__pyx_v_idx]).head = __pyx_v_head;

  /* "src/uharfbuzz/_serialize.pxi":32
 *                            char* tail):
 *         self._hb_obj_list[idx].head = head
 *         self._hb_obj_list[idx].tail = tail             # <<<<<<<<<<<<<<
 * 
 *     cdef hb_subset_serialize_link_t* create_links(self, unsigned int idx,
*/
  (__pyx_v_self->_hb_obj_list[__pyx_v_idx]).tail = __pyx_v_tail;

  /* "src/uharfbuzz/_serialize.pxi":27
 *             free(self._hb_obj_list)
 * 
 *     cdef update_obj_length(self,             # <<<<<<<<<<<<<<
 *                            unsigned int idx,
 *                            char* head,
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_serialize.pxi":34
 *         self._hb_obj_list[idx].tail = tail
 * 
 *     cdef hb_subset_serialize_link_t* create_links(self, unsigned int idx,             # <<<<<<<<<<<<<<
 *                                                   unsigned int link_num,
 *                                                   bint is_real_link):
*/

static hb_subset_serialize_link_t *__pyx_f_9uharfbuzz_9_harfbuzz_8HBObject_create_links(struct __pyx_obj_9uharfbuzz_9_harfbuzz_HBObject *__pyx_v_self, unsigned int __pyx_v_idx, unsigned int __pyx_v_link_num, int __pyx_v_is_real_link) {
  hb_subset_serialize_link_t *__pyx_v_p;
  hb_subset_serialize_link_t *__pyx_r;
  int __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "src/uharfbuzz/_serialize.pxi":37
 *                                                   unsigned int link_num,
 *                                                   bint is_real_link):
 *         if link_num == 0:             # <<<<<<<<<<<<<<
 *             return NULL
 * 
*/
  __pyx_t_1 = (__pyx_v_link_num == 0);
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_serialize.pxi":38
 *                                                   bint is_real_link):
 *         if link_num == 0:
 *             return NULL             # <<<<<<<<<<<<<<
 * 
 *         cdef hb_subset_serialize_link_t* p = <hb_subset_serialize_link_t*>calloc(link_num, sizeof(hb_subset_serialize_link_t))
*/
    __pyx_r = NULL;
    goto __pyx_L0;

    /* "src/uharfbuzz/_serialize.pxi":37
 *                                                   unsigned int link_num,
 *                                                   bint is_real_link):
 *         if link_num == 0:             # <<<<<<<<<<<<<<
 *             return NULL
 * 
*/
  }

  /* "src/uharfbuzz/_serialize.pxi":40
 *             return NULL
 * 
 *         cdef hb_subset_serialize_link_t* p = <hb_subset_serialize_link_t*>calloc(link_num, sizeof(hb_subset_serialize_link_t))             # <<<<<<<<<<<<<<
 *         if p == NULL:
 *             raise MemoryError()
*/
  __pyx_v_p = ((hb_subset_serialize_link_t *)calloc(__pyx_v_link_num, (sizeof(hb_subset_serialize_link_t))));

  /* "src/uharfbuzz/_serialize.pxi":41
 * 
 *         cdef hb_subset_serialize_link_t* p = <hb_subset_serialize_link_t*>calloc(link_num, sizeof(hb_subset_serialize_link_t))
 *         if p == NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  __pyx_t_1 = (__pyx_v_p == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "src/uharfbuzz/_serialize.pxi":42
 *         cdef hb_subset_serialize_link_t* p = <hb_subset_serialize_link_t*>calloc(link_num, sizeof(hb_subset_serialize_link_t))
 *         if p == NULL:
 *             raise MemoryError()             # <<<<<<<<<<<<<<
 * 
 *         if is_real_link:
*/
    PyErr_NoMemory(); __PYX_ERR(11, 42, __pyx_L1_error)

    /* "src/uharfbuzz/_serialize.pxi":41
 * 
 *         cdef hb_subset_serialize_link_t* p = <hb_subset_serialize_link_t*>calloc(link_num, sizeof(hb_subset_serialize_link_t))
 *         if p == NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  }

  /* "src/uharfbuzz/_serialize.pxi":44
 *             raise MemoryError()
 * 
 *         if is_real_link:             # <<<<<<<<<<<<<<
 *             self._hb_obj_list[idx].num_real_links = link_num
 *             self._hb_obj_list[idx].real_links = p
*/
  if (__pyx_v_is_real_link) {

    /* "src/uharfbuzz/_serialize.pxi":45
 * 
 *         if is_real_link:
 *             self._hb_obj_list[idx].num_real_links = link_num             # <<<<<<<<<<<<<<
 *             self._hb_obj_list[idx].real_links = p
 *         else:
*/
    (__pyx_v_self->_hb_obj_list[__pyx_v_idx]).num_real_links = __pyx_v_link_num;

    /* "src/uharfbuzz/_serialize.pxi":46
 *         if is_real_link:
 *             self._hb_obj_list[idx].num_real_links = link_num
 *             self._hb_obj_list[idx].real_links = p             # <<<<<<<<<<<<<<
 *         else:
 *             self._hb_obj_list[idx].num_virtual_links = link_num
*/
    (__pyx_v_self->_hb_obj_list[__pyx_v_idx]).real_links = __pyx_v_p;

    /* "src/uharfbuzz/_serialize.pxi":44
 *             raise MemoryError()
 * 
 *         if is_real_link:             # <<<<<<<<<<<<<<
 *             self._hb_obj_list[idx].num_real_links = link_num
 *             self._hb_obj_list[idx].real_links = p
*/
    goto __pyx_L5;
  }

  /* "src/uharfbuzz/_serialize.pxi":48
 *             self._hb_obj_list[idx].real_links = p
 *         else:
 *             self._hb_obj_list[idx].num_virtual_links = link_num             # <<<<<<<<<<<<<<
 *             self._hb_obj_list[idx].virtual_links = p
 *         return p
*/
  /*else*/ {
    (__pyx_v_self->_hb_obj_list[__pyx_v_idx]).num_virtual_links = __pyx_v_link_num;

    /* "src/uharfbuzz/_serialize.pxi":49
 *         else:
 *             self._hb_obj_list[idx].num_virtual_links = link_num
 *             self._hb_obj_list[idx].virtual_links = p             # <<<<<<<<<<<<<<
 *         return p
 * 
*/
    (__pyx_v_self->_hb_obj_list[__pyx_v_idx]).virtual_links = __pyx_v_p;
  }
  __pyx_L5:;

  /* "src/uharfbuzz/_serialize.pxi":50
 *             self._hb_obj_list[idx].num_virtual_links = link_num
 *             self._hb_obj_list[idx].virtual_links = p
 *         return p             # <<<<<<<<<<<<<<
 * 
 *     cdef update_links(self, unsigned int idx, bint is_real_link,
*/
  __pyx_r = __pyx_v_p;
  goto __pyx_L0;

  /* "src/uharfbuzz/_serialize.pxi":34
 *         self._hb_obj_list[idx].tail = tail
 * 
 *     cdef hb_subset_serialize_link_t* create_links(self, unsigned int idx,             # <<<<<<<<<<<<<<
 *                                                   unsigned int link_num,
 *                                                   bint is_real_link):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.HBObject.create_links", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  return __pyx_r;
}

/* "src/uharfbuzz/_serialize.pxi":52
 *         return p
 * 
 *     cdef update_links(self, unsigned int idx, bint is_real_link,             # <<<<<<<<<<<<<<
 *                       links: List[Tuple[int, int, int]]):
 *         cdef unsigned int num_links = len(links)
*/

static PyObject *__pyx_f_9uharfbuzz_9_harfbuzz_8HBObject_update_links(struct __pyx_obj_9uharfbuzz_9_harfbuzz_HBObject *__pyx_v_self, unsigned int __pyx_v_idx, int __pyx_v_is_real_link, PyObject *__pyx_v_links) {
  unsigned int __pyx_v_num_links;
  hb_subset_serialize_link_t *__pyx_v_l;
  unsigned int __pyx_v_i;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  hb_subset_serialize_link_t *__pyx_t_2;
  unsigned int __pyx_t_3;
  unsigned int __pyx_t_4;
  unsigned int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  unsigned int __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("update_links", 0);

  /* "src/uharfbuzz/_serialize.pxi":54
 *     cdef update_links(self, unsigned int idx, bint is_real_link,
 *                       links: List[Tuple[int, int, int]]):
 *         cdef unsigned int num_links = len(links)             # <<<<<<<<<<<<<<
 *         cdef hb_subset_serialize_link_t* l = NULL
 *         if is_real_link:
*/
  __pyx_t_1 = __Pyx_PyList_GET_SIZE(__pyx_v_links); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(11, 54, __pyx_L1_error)
  __pyx_v_num_links = __pyx_t_1;

  /* "src/uharfbuzz/_serialize.pxi":55
 *                       links: List[Tuple[int, int, int]]):
 *         cdef unsigned int num_links = len(links)
 *         cdef hb_subset_serialize_link_t* l = NULL             # <<<<<<<<<<<<<<
 *         if is_real_link:
 *             l = self._hb_obj_list[idx].real_links
*/
  __pyx_v_l = NULL;

  /* "src/uharfbuzz/_serialize.pxi":56
 *         cdef unsigned int num_links = len(links)
 *         cdef hb_subset_serialize_link_t* l = NULL
 *         if is_real_link:             # <<<<<<<<<<<<<<
 *             l = self._hb_obj_list[idx].real_links
 *         else:
*/
  if (__pyx_v_is_real_link) {

    /* "src/uharfbuzz/_serialize.pxi":57
 *         cdef hb_subset_serialize_link_t* l = NULL
 *         if is_real_link:
 *             l = self._hb_obj_list[idx].real_links             # <<<<<<<<<<<<<<
 *         else:
 *             l = self._hb_obj_list[idx].virtual_links
*/
    __pyx_t_2 = (__pyx_v_self->_hb_obj_list[__pyx_v_idx]).real_links;
    __pyx_v_l = __pyx_t_2;

    /* "src/uharfbuzz/_serialize.pxi":56
 *         cdef unsigned int num_links = len(links)
 *         cdef hb_subset_serialize_link_t* l = NULL
 *         if is_real_link:             # <<<<<<<<<<<<<<
 *             l = self._hb_obj_list[idx].real_links
 *         else:
*/
    goto __pyx_L3;
  }

  /* "src/uharfbuzz/_serialize.pxi":59
 *             l = self._hb_obj_list[idx].real_links
 *         else:
 *             l = self._hb_obj_list[idx].virtual_links             # <<<<<<<<<<<<<<
 * 
 *         for i in range(num_links):
*/
  /*else*/ {
    __pyx_t_2 = (__pyx_v_self->_hb_obj_list[__pyx_v_idx]).virtual_links;
    __pyx_v_l = __pyx_t_2;
  }
  __pyx_L3:;

  /* "src/uharfbuzz/_serialize.pxi":61
 *             l = self._hb_obj_list[idx].virtual_links
 * 
 *         for i in range(num_links):             # <<<<<<<<<<<<<<
 *             l[i].position = links[i][0]
 *             l[i].width = links[i][1]
*/
  __pyx_t_3 = __pyx_v_num_links;
  __pyx_t_4 = __pyx_t_3;
  for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) {
    __pyx_v_i = __pyx_t_5;

    /* "src/uharfbuzz/_serialize.pxi":62
 * 
 *         for i in range(num_links):
 *             l[i].position = links[i][0]             # <<<<<<<<<<<<<<
 *             l[i].width = links[i][1]
 *             l[i].objidx = links[i][2]
*/
    __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_links, __pyx_v_i, unsigned int, 0, __Pyx_PyLong_From_unsigned_int, 1, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_6)) __PYX_ERR(11, 62, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_GetItemInt(__pyx_t_6, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_7)) __PYX_ERR(11, 62, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_8 = __Pyx_PyLong_As_unsigned_int(__pyx_t_7); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(11, 62, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    (__pyx_v_l[__pyx_v_i]).position = __pyx_t_8;

    /* "src/uharfbuzz/_serialize.pxi":63
 *         for i in range(num_links):
 *             l[i].position = links[i][0]
 *             l[i].width = links[i][1]             # <<<<<<<<<<<<<<
 *             l[i].objidx = links[i][2]
 * 
*/
    __pyx_t_7 = __Pyx_GetItemInt_List(__pyx_v_links, __pyx_v_i, unsigned int, 0, __Pyx_PyLong_From_unsigned_int, 1, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_7)) __PYX_ERR(11, 63, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_6 = __Pyx_GetItemInt(__pyx_t_7, 1, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_6)) __PYX_ERR(11, 63, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_8 = __Pyx_PyLong_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(11, 63, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    (__pyx_v_l[__pyx_v_i]).width = __pyx_t_8;

    /* "src/uharfbuzz/_serialize.pxi":64
 *             l[i].position = links[i][0]
 *             l[i].width = links[i][1]
 *             l[i].objidx = links[i][2]             # <<<<<<<<<<<<<<
 * 
 * class SerializerError(Exception):
*/
    __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_links, __pyx_v_i, unsigned int, 0, __Pyx_PyLong_From_unsigned_int, 1, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_6)) __PYX_ERR(11, 64, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_GetItemInt(__pyx_t_6, 2, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_7)) __PYX_ERR(11, 64, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_8 = __Pyx_PyLong_As_unsigned_int(__pyx_t_7); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(11, 64, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    (__pyx_v_l[__pyx_v_i]).objidx = __pyx_t_8;
  }

  /* "src/uharfbuzz/_serialize.pxi":52
 *         return p
 * 
 *     cdef update_links(self, unsigned int idx, bint is_real_link,             # <<<<<<<<<<<<<<
 *                       links: List[Tuple[int, int, int]]):
 *         cdef unsigned int num_links = len(links)
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.HBObject.update_links", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_8HBObject_5__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_8HBObject_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_8HBObject_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_8HBObject_5__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_8HBObject_4__reduce_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_HBObject *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_8HBObject_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_HBObject *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.HBObject.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_8HBObject_7__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_8HBObject_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_8HBObject_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_8HBObject_7__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 3, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < (0)) __PYX_ERR(4, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(4, 3, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(4, 3, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.HBObject.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_8HBObject_6__setstate_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_HBObject *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_8HBObject_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_HBObject *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.HBObject.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_serialize.pxi":73
 * 
 * 
 * @deprecated("serialize()", since="0.45.0")             # <<<<<<<<<<<<<<
 * def repack(subtables, graphnodes):
 *     return serialize(subtables, graphnodes)
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_5repack(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_5repack = {"repack", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_5repack, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_5repack(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_subtables = 0;
  PyObject *__pyx_v_graphnodes = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("repack (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_subtables,&__pyx_mstate_global->__pyx_n_u_graphnodes,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(11, 73, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(11, 73, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 73, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "repack", 0) < (0)) __PYX_ERR(11, 73, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("repack", 1, 2, 2, i); __PYX_ERR(11, 73, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 73, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(11, 73, __pyx_L3_error)
    }
    __pyx_v_subtables = values[0];
    __pyx_v_graphnodes = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("repack", 1, 2, 2, __pyx_nargs); __PYX_ERR(11, 73, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.repack", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_4repack(__pyx_self, __pyx_v_subtables, __pyx_v_graphnodes);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_4repack(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_subtables, PyObject *__pyx_v_graphnodes) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("repack", 0);

  /* "src/uharfbuzz/_serialize.pxi":75
 * @deprecated("serialize()", since="0.45.0")
 * def repack(subtables, graphnodes):
 *     return serialize(subtables, graphnodes)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_serialize); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 75, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_v_subtables, __pyx_v_graphnodes};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 75, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_serialize.pxi":73
 * 
 * 
 * @deprecated("serialize()", since="0.45.0")             # <<<<<<<<<<<<<<
 * def repack(subtables, graphnodes):
 *     return serialize(subtables, graphnodes)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.repack", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_serialize.pxi":78
 * 
 * 
 * @deprecated("serialize_with_tag()", since="0.45.0")             # <<<<<<<<<<<<<<
 * def repack_with_tag(tag, subtables, graphnodes):
 *     return serialize_with_tag(tag, subtables, graphnodes)
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_7repack_with_tag(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_7repack_with_tag = {"repack_with_tag", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_7repack_with_tag, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_7repack_with_tag(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_tag = 0;
  PyObject *__pyx_v_subtables = 0;
  PyObject *__pyx_v_graphnodes = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("repack_with_tag (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_tag,&__pyx_mstate_global->__pyx_n_u_subtables,&__pyx_mstate_global->__pyx_n_u_graphnodes,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(11, 78, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(11, 78, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(11, 78, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 78, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "repack_with_tag", 0) < (0)) __PYX_ERR(11, 78, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("repack_with_tag", 1, 3, 3, i); __PYX_ERR(11, 78, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 78, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(11, 78, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(11, 78, __pyx_L3_error)
    }
    __pyx_v_tag = values[0];
    __pyx_v_subtables = values[1];
    __pyx_v_graphnodes = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("repack_with_tag", 1, 3, 3, __pyx_nargs); __PYX_ERR(11, 78, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.repack_with_tag", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_6repack_with_tag(__pyx_self, __pyx_v_tag, __pyx_v_subtables, __pyx_v_graphnodes);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_6repack_with_tag(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_tag, PyObject *__pyx_v_subtables, PyObject *__pyx_v_graphnodes) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("repack_with_tag", 0);

  /* "src/uharfbuzz/_serialize.pxi":80
 * @deprecated("serialize_with_tag()", since="0.45.0")
 * def repack_with_tag(tag, subtables, graphnodes):
 *     return serialize_with_tag(tag, subtables, graphnodes)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_serialize_with_tag); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 80, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_v_tag, __pyx_v_subtables, __pyx_v_graphnodes};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (4-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 80, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_serialize.pxi":78
 * 
 * 
 * @deprecated("serialize_with_tag()", since="0.45.0")             # <<<<<<<<<<<<<<
 * def repack_with_tag(tag, subtables, graphnodes):
 *     return serialize_with_tag(tag, subtables, graphnodes)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.repack_with_tag", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_serialize.pxi":83
 * 
 * 
 * def serialize(subtables: List[bytes],             # <<<<<<<<<<<<<<
 *               graphnodes: List[Tuple[List[Tuple[int, int, int]],
 *                                      List[Tuple[int, int, int]]
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9serialize(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_8serialize, "Same as :func:`serialize_with_tag` with an empty ``tag``, which\n    disables table specific optimizations.\n    ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_9serialize = {"serialize", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9serialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_8serialize};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_9serialize(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_subtables = 0;
  PyObject *__pyx_v_graphnodes = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("serialize (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_subtables,&__pyx_mstate_global->__pyx_n_u_graphnodes,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(11, 83, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(11, 83, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 83, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "serialize", 0) < (0)) __PYX_ERR(11, 83, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("serialize", 1, 2, 2, i); __PYX_ERR(11, 83, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 83, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(11, 83, __pyx_L3_error)
    }
    __pyx_v_subtables = ((PyObject*)values[0]);
    __pyx_v_graphnodes = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("serialize", 1, 2, 2, __pyx_nargs); __PYX_ERR(11, 83, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.serialize", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_subtables), (&PyList_Type), 0, "subtables", 2))) __PYX_ERR(11, 83, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_graphnodes), (&PyList_Type), 0, "graphnodes", 2))) __PYX_ERR(11, 84, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_8serialize(__pyx_self, __pyx_v_subtables, __pyx_v_graphnodes);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_8serialize(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_subtables, PyObject *__pyx_v_graphnodes) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("serialize", 0);

  /* "src/uharfbuzz/_serialize.pxi":90
 *     disables table specific optimizations.
 *     """
 *     return serialize_with_tag("", subtables, graphnodes)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_serialize_with_tag); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 90, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_, __pyx_v_subtables, __pyx_v_graphnodes};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (4-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 90, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (!(likely(PyBytes_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("bytes", __pyx_t_1))) __PYX_ERR(11, 90, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_serialize.pxi":83
 * 
 * 
 * def serialize(subtables: List[bytes],             # <<<<<<<<<<<<<<
 *               graphnodes: List[Tuple[List[Tuple[int, int, int]],
 *                                      List[Tuple[int, int, int]]
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.serialize", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_serialize.pxi":93
 * 
 * 
 * def serialize_with_tag(tag: str,             # <<<<<<<<<<<<<<
 *                        subtables: List[bytes],
 *                        graphnodes: List[Tuple[List[Tuple[int, int, int]],
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11serialize_with_tag(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_10serialize_with_tag, "Given the input object graph info, repack a table to eliminate\n    offset overflows and serialize it into a continuous array of bytes.\n    Table specific optimizations (e.g. extension promotion in ``GSUB`` and\n    ``GPOS``) may be performed. Passing an empty ``tag`` will disable\n    table specific optimizations.\n\n    The whole table is represented as a Graph\n    and the input graphnodes is a flat list of subtables\n    with each node(subtable) represented by a tuple of 2\n    list: real_link list and virtual_link list.\n\n    A link(egde) is an offset link between parent table and\n    child table. It's represented in the format of a tuple:\n    (posiiton: int, width: int, objidx: int):\n\n    - position: means relative position of the offset field\n      in bytes from the beginning of the subtable's C struct.\n      e.g:\n      a GSUB header struct in C looks like below:\n\n      uint16 majorVersion\n      uint16 minorVersion\n      offset16 scriptListOffset\n      offset16 featureListOffset\n      offset16 lookupListOffset\n      And the position for scriptListOffset is 4\n      which is calculated from (16+16)/8\n    - width: size of the offset:\n      e.g 2 for offset16 and 4 for offset32\n    - objidx: objidx is the index of the subtable\n      in graph/tree generated by postorder traversal\n\n    There're 2 types of links:\n\n    - real_link represents an real offset field in the parent table\n    - virtual_link is not real offset link, it specifies an ordering\n      constraint that harfbuzz packing must follow.\n      A virtual link would have 0 width, 0 position, and a real objidx.\n      e.g:\n      if Node A has a virtual link with objidx b(corresponding Node is B),\n      then that means Node B is always packed after Node A in the final\n      serialized order\n\n    :param tag: Tag of the table being packed, needed to allow table\n        specific optimizations.\n    :param subtables: List of subtable byte buffers, one per object in the\n        ""object graph.\n    :param graphnodes: List of ``(real_links, virtual_links)`` tuples, one\n        per object.\n\n    :returns: The serialized table as bytes.\n\n    :raises RepackerError: If serialization fails.\n\n    Wraps `hb_subset_serialize_or_fail()\n    <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-serialize-or-fail>`_.\n    ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_11serialize_with_tag = {"serialize_with_tag", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11serialize_with_tag, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10serialize_with_tag};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11serialize_with_tag(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_tag = 0;
  PyObject *__pyx_v_subtables = 0;
  PyObject *__pyx_v_graphnodes = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("serialize_with_tag (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_tag,&__pyx_mstate_global->__pyx_n_u_subtables,&__pyx_mstate_global->__pyx_n_u_graphnodes,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(11, 93, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(11, 93, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(11, 93, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 93, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "serialize_with_tag", 0) < (0)) __PYX_ERR(11, 93, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("serialize_with_tag", 1, 3, 3, i); __PYX_ERR(11, 93, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 93, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(11, 93, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(11, 93, __pyx_L3_error)
    }
    __pyx_v_tag = ((PyObject*)values[0]);
    __pyx_v_subtables = ((PyObject*)values[1]);
    __pyx_v_graphnodes = ((PyObject*)values[2]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("serialize_with_tag", 1, 3, 3, __pyx_nargs); __PYX_ERR(11, 93, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.serialize_with_tag", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tag), (&PyUnicode_Type), 0, "tag", 2))) __PYX_ERR(11, 93, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_subtables), (&PyList_Type), 0, "subtables", 2))) __PYX_ERR(11, 94, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_graphnodes), (&PyList_Type), 0, "graphnodes", 2))) __PYX_ERR(11, 95, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10serialize_with_tag(__pyx_self, __pyx_v_tag, __pyx_v_subtables, __pyx_v_graphnodes);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10serialize_with_tag(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_tag, PyObject *__pyx_v_subtables, PyObject *__pyx_v_graphnodes) {
  unsigned int __pyx_v_num_nodes;
  PyObject *__pyx_v_table_bytes = 0;
  char *__pyx_v_table_data;
  unsigned int __pyx_v_head;
  unsigned int __pyx_v_tail;
  hb_subset_serialize_link_t *__pyx_v_p;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_HBObject *__pyx_v_obj_list = 0;
  unsigned int __pyx_v_i;
  PyObject *__pyx_v_node = NULL;
  PyObject *__pyx_v_tag_packed = 0;
  char *__pyx_v_cstr;
  hb_blob_t *__pyx_v_packed_blob;
  unsigned int __pyx_v_blob_length;
  const char *__pyx_v_blob_data;
  PyObject *__pyx_v_packed = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8[5];
  PyObject *__pyx_t_9 = NULL;
  size_t __pyx_t_10;
  char *__pyx_t_11;
  unsigned int __pyx_t_12;
  unsigned int __pyx_t_13;
  unsigned int __pyx_t_14;
  hb_subset_serialize_link_t *__pyx_t_15;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("serialize_with_tag", 0);

  /* "src/uharfbuzz/_serialize.pxi":157
 *     """
 * 
 *     if len(subtables) != len(graphnodes):             # <<<<<<<<<<<<<<
 *         raise ValueError(
 *             f"Input num of subtables({len(subtables)}) != num of graph nodes({len(graphnodes)})"
*/
  __pyx_t_1 = __Pyx_PyList_GET_SIZE(__pyx_v_subtables); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(11, 157, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyList_GET_SIZE(__pyx_v_graphnodes); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(11, 157, __pyx_L1_error)
  __pyx_t_3 = (__pyx_t_1 != __pyx_t_2);
  if (unlikely(__pyx_t_3)) {

    /* "src/uharfbuzz/_serialize.pxi":158
 * 
 *     if len(subtables) != len(graphnodes):
 *         raise ValueError(             # <<<<<<<<<<<<<<
 *             f"Input num of subtables({len(subtables)}) != num of graph nodes({len(graphnodes)})"
 *         )
*/
    __pyx_t_5 = NULL;

    /* "src/uharfbuzz/_serialize.pxi":159
 *     if len(subtables) != len(graphnodes):
 *         raise ValueError(
 *             f"Input num of subtables({len(subtables)}) != num of graph nodes({len(graphnodes)})"             # <<<<<<<<<<<<<<
 *         )
 *     cdef:
*/
    __pyx_t_2 = __Pyx_PyList_GET_SIZE(__pyx_v_subtables); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(11, 159, __pyx_L1_error)
    __pyx_t_6 = __Pyx_PyUnicode_From_Py_ssize_t(__pyx_t_2, 0, ' ', 'd'); if (unlikely(!__pyx_t_6)) __PYX_ERR(11, 159, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_2 = __Pyx_PyList_GET_SIZE(__pyx_v_graphnodes); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(11, 159, __pyx_L1_error)
    __pyx_t_7 = __Pyx_PyUnicode_From_Py_ssize_t(__pyx_t_2, 0, ' ', 'd'); if (unlikely(!__pyx_t_7)) __PYX_ERR(11, 159, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8[0] = __pyx_mstate_global->__pyx_kp_u_Input_num_of_subtables;
    __pyx_t_8[1] = __pyx_t_6;
    __pyx_t_8[2] = __pyx_mstate_global->__pyx_kp_u_num_of_graph_nodes;
    __pyx_t_8[3] = __pyx_t_7;
    __pyx_t_8[4] = __pyx_mstate_global->__pyx_kp_u__10;
    __pyx_t_9 = __Pyx_PyUnicode_Join(__pyx_t_8, 5, 23 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6) + 24 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_7) + 1, 127);
    if (unlikely(!__pyx_t_9)) __PYX_ERR(11, 159, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_10 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_9};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_10, (2-__pyx_t_10) | (__pyx_t_10*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 158, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(11, 158, __pyx_L1_error)

    /* "src/uharfbuzz/_serialize.pxi":157
 *     """
 * 
 *     if len(subtables) != len(graphnodes):             # <<<<<<<<<<<<<<
 *         raise ValueError(
 *             f"Input num of subtables({len(subtables)}) != num of graph nodes({len(graphnodes)})"
*/
  }

  /* "src/uharfbuzz/_serialize.pxi":162
 *         )
 *     cdef:
 *         unsigned int num_nodes = len(subtables)             # <<<<<<<<<<<<<<
 *         bytes table_bytes = b''.join(subtables)
 *         char* table_data = table_bytes
*/
  __pyx_t_2 = __Pyx_PyList_GET_SIZE(__pyx_v_subtables); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(11, 162, __pyx_L1_error)
  __pyx_v_num_nodes = __pyx_t_2;

  /* "src/uharfbuzz/_serialize.pxi":163
 *     cdef:
 *         unsigned int num_nodes = len(subtables)
 *         bytes table_bytes = b''.join(subtables)             # <<<<<<<<<<<<<<
 *         char* table_data = table_bytes
 *         unsigned int head = 0, tail = 0
*/
  __pyx_t_4 = __Pyx_PyBytes_Join(__pyx_mstate_global->__pyx_kp_b_, __pyx_v_subtables); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 163, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_v_table_bytes = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "src/uharfbuzz/_serialize.pxi":164
 *         unsigned int num_nodes = len(subtables)
 *         bytes table_bytes = b''.join(subtables)
 *         char* table_data = table_bytes             # <<<<<<<<<<<<<<
 *         unsigned int head = 0, tail = 0
 *         hb_subset_serialize_link_t* p = NULL
*/
  if (unlikely(__pyx_v_table_bytes == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
    __PYX_ERR(11, 164, __pyx_L1_error)
  }
  __pyx_t_11 = __Pyx_PyBytes_AsWritableString(__pyx_v_table_bytes); if (unlikely((!__pyx_t_11) && PyErr_Occurred())) __PYX_ERR(11, 164, __pyx_L1_error)
  __pyx_v_table_data = __pyx_t_11;

  /* "src/uharfbuzz/_serialize.pxi":165
 *         bytes table_bytes = b''.join(subtables)
 *         char* table_data = table_bytes
 *         unsigned int head = 0, tail = 0             # <<<<<<<<<<<<<<
 *         hb_subset_serialize_link_t* p = NULL
 *         HBObject obj_list = HBObject(num_nodes)
*/
  __pyx_v_head = 0;
  __pyx_v_tail = 0;

  /* "src/uharfbuzz/_serialize.pxi":166
 *         char* table_data = table_bytes
 *         unsigned int head = 0, tail = 0
 *         hb_subset_serialize_link_t* p = NULL             # <<<<<<<<<<<<<<
 *         HBObject obj_list = HBObject(num_nodes)
 *     for i in range(num_nodes):
*/
  __pyx_v_p = NULL;

  /* "src/uharfbuzz/_serialize.pxi":167
 *         unsigned int head = 0, tail = 0
 *         hb_subset_serialize_link_t* p = NULL
 *         HBObject obj_list = HBObject(num_nodes)             # <<<<<<<<<<<<<<
 *     for i in range(num_nodes):
 *         tail += len(subtables[i])
*/
  __pyx_t_9 = NULL;
  __pyx_t_5 = __Pyx_PyLong_From_unsigned_int(__pyx_v_num_nodes); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_10 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_5};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_HBObject, __pyx_callargs+__pyx_t_10, (2-__pyx_t_10) | (__pyx_t_10*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 167, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_obj_list = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_HBObject *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "src/uharfbuzz/_serialize.pxi":168
 *         hb_subset_serialize_link_t* p = NULL
 *         HBObject obj_list = HBObject(num_nodes)
 *     for i in range(num_nodes):             # <<<<<<<<<<<<<<
 *         tail += len(subtables[i])
 *         obj_list.update_obj_length(i, table_data + head, table_data + tail)
*/
  __pyx_t_12 = __pyx_v_num_nodes;
  __pyx_t_13 = __pyx_t_12;
  for (__pyx_t_14 = 0; __pyx_t_14 < __pyx_t_13; __pyx_t_14+=1) {
    __pyx_v_i = __pyx_t_14;

    /* "src/uharfbuzz/_serialize.pxi":169
 *         HBObject obj_list = HBObject(num_nodes)
 *     for i in range(num_nodes):
 *         tail += len(subtables[i])             # <<<<<<<<<<<<<<
 *         obj_list.update_obj_length(i, table_data + head, table_data + tail)
 *         head = tail
*/
    __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_subtables, __pyx_v_i, unsigned int, 0, __Pyx_PyLong_From_unsigned_int, 1, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 169, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyObject_Length(__pyx_t_4); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(11, 169, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_tail = (__pyx_v_tail + __pyx_t_2);

    /* "src/uharfbuzz/_serialize.pxi":170
 *     for i in range(num_nodes):
 *         tail += len(subtables[i])
 *         obj_list.update_obj_length(i, table_data + head, table_data + tail)             # <<<<<<<<<<<<<<
 *         head = tail
 * 
*/
    __pyx_t_4 = ((struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_HBObject *)__pyx_v_obj_list->__pyx_vtab)->update_obj_length(__pyx_v_obj_list, __pyx_v_i, (__pyx_v_table_data + __pyx_v_head), (__pyx_v_table_data + __pyx_v_tail)); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 170, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "src/uharfbuzz/_serialize.pxi":171
 *         tail += len(subtables[i])
 *         obj_list.update_obj_length(i, table_data + head, table_data + tail)
 *         head = tail             # <<<<<<<<<<<<<<
 * 
 *         node = graphnodes[i]
*/
    __pyx_v_head = __pyx_v_tail;

    /* "src/uharfbuzz/_serialize.pxi":173
 *         head = tail
 * 
 *         node = graphnodes[i]             # <<<<<<<<<<<<<<
 *         # real_links
 *         p = obj_list.create_links(i, len(node[0]), True)
*/
    __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_graphnodes, __pyx_v_i, unsigned int, 0, __Pyx_PyLong_From_unsigned_int, 1, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 173, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XDECREF_SET(__pyx_v_node, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "src/uharfbuzz/_serialize.pxi":175
 *         node = graphnodes[i]
 *         # real_links
 *         p = obj_list.create_links(i, len(node[0]), True)             # <<<<<<<<<<<<<<
 *         if p != NULL:
 *             obj_list.update_links(i, True, node[0])
*/
    __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_node, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 175, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyObject_Length(__pyx_t_4); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(11, 175, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_15 = ((struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_HBObject *)__pyx_v_obj_list->__pyx_vtab)->create_links(__pyx_v_obj_list, __pyx_v_i, __pyx_t_2, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(11, 175, __pyx_L1_error)
    __pyx_v_p = __pyx_t_15;

    /* "src/uharfbuzz/_serialize.pxi":176
 *         # real_links
 *         p = obj_list.create_links(i, len(node[0]), True)
 *         if p != NULL:             # <<<<<<<<<<<<<<
 *             obj_list.update_links(i, True, node[0])
 *         # virtual_links
*/
    __pyx_t_3 = (__pyx_v_p != NULL);
    if (__pyx_t_3) {

      /* "src/uharfbuzz/_serialize.pxi":177
 *         p = obj_list.create_links(i, len(node[0]), True)
 *         if p != NULL:
 *             obj_list.update_links(i, True, node[0])             # <<<<<<<<<<<<<<
 *         # virtual_links
 *         p = obj_list.create_links(i, len(node[1]), False)
*/
      __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_node, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 177, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      if (!(likely(PyList_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None) || __Pyx_RaiseUnexpectedTypeError("list", __pyx_t_4))) __PYX_ERR(11, 177, __pyx_L1_error)
      if (unlikely(__pyx_t_4 == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "cannot pass None into a C function argument that is declared 'not None'");
        __PYX_ERR(11, 177, __pyx_L1_error)
      }
      __pyx_t_5 = ((struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_HBObject *)__pyx_v_obj_list->__pyx_vtab)->update_links(__pyx_v_obj_list, __pyx_v_i, 1, ((PyObject*)__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 177, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "src/uharfbuzz/_serialize.pxi":176
 *         # real_links
 *         p = obj_list.create_links(i, len(node[0]), True)
 *         if p != NULL:             # <<<<<<<<<<<<<<
 *             obj_list.update_links(i, True, node[0])
 *         # virtual_links
*/
    }

    /* "src/uharfbuzz/_serialize.pxi":179
 *             obj_list.update_links(i, True, node[0])
 *         # virtual_links
 *         p = obj_list.create_links(i, len(node[1]), False)             # <<<<<<<<<<<<<<
 *         if p != NULL:
 *             obj_list.update_links(i, False, node[1])
*/
    __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_node, 1, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 179, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_2 = PyObject_Length(__pyx_t_5); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(11, 179, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_15 = ((struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_HBObject *)__pyx_v_obj_list->__pyx_vtab)->create_links(__pyx_v_obj_list, __pyx_v_i, __pyx_t_2, 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(11, 179, __pyx_L1_error)
    __pyx_v_p = __pyx_t_15;

    /* "src/uharfbuzz/_serialize.pxi":180
 *         # virtual_links
 *         p = obj_list.create_links(i, len(node[1]), False)
 *         if p != NULL:             # <<<<<<<<<<<<<<
 *             obj_list.update_links(i, False, node[1])
 * 
*/
    __pyx_t_3 = (__pyx_v_p != NULL);
    if (__pyx_t_3) {

      /* "src/uharfbuzz/_serialize.pxi":181
 *         p = obj_list.create_links(i, len(node[1]), False)
 *         if p != NULL:
 *             obj_list.update_links(i, False, node[1])             # <<<<<<<<<<<<<<
 * 
 *     cdef bytes tag_packed = tag.encode()
*/
      __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_node, 1, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 181, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (!(likely(PyList_CheckExact(__pyx_t_5))||((__pyx_t_5) == Py_None) || __Pyx_RaiseUnexpectedTypeError("list", __pyx_t_5))) __PYX_ERR(11, 181, __pyx_L1_error)
      if (unlikely(__pyx_t_5 == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "cannot pass None into a C function argument that is declared 'not None'");
        __PYX_ERR(11, 181, __pyx_L1_error)
      }
      __pyx_t_4 = ((struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_HBObject *)__pyx_v_obj_list->__pyx_vtab)->update_links(__pyx_v_obj_list, __pyx_v_i, 0, ((PyObject*)__pyx_t_5)); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 181, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

      /* "src/uharfbuzz/_serialize.pxi":180
 *         # virtual_links
 *         p = obj_list.create_links(i, len(node[1]), False)
 *         if p != NULL:             # <<<<<<<<<<<<<<
 *             obj_list.update_links(i, False, node[1])
 * 
*/
    }
  }

  /* "src/uharfbuzz/_serialize.pxi":183
 *             obj_list.update_links(i, False, node[1])
 * 
 *     cdef bytes tag_packed = tag.encode()             # <<<<<<<<<<<<<<
 *     cdef char* cstr = tag_packed
 *     cdef hb_blob_t* packed_blob = hb_subset_serialize_or_fail(hb_tag_from_string(cstr, -1),
*/
  __pyx_t_4 = PyUnicode_AsEncodedString(__pyx_v_tag, NULL, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 183, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_v_tag_packed = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "src/uharfbuzz/_serialize.pxi":184
 * 
 *     cdef bytes tag_packed = tag.encode()
 *     cdef char* cstr = tag_packed             # <<<<<<<<<<<<<<
 *     cdef hb_blob_t* packed_blob = hb_subset_serialize_or_fail(hb_tag_from_string(cstr, -1),
 * 							   obj_list._hb_obj_list,
*/
  __pyx_t_11 = __Pyx_PyBytes_AsWritableString(__pyx_v_tag_packed); if (unlikely((!__pyx_t_11) && PyErr_Occurred())) __PYX_ERR(11, 184, __pyx_L1_error)
  __pyx_v_cstr = __pyx_t_11;

  /* "src/uharfbuzz/_serialize.pxi":185
 *     cdef bytes tag_packed = tag.encode()
 *     cdef char* cstr = tag_packed
 *     cdef hb_blob_t* packed_blob = hb_subset_serialize_or_fail(hb_tag_from_string(cstr, -1),             # <<<<<<<<<<<<<<
 * 							   obj_list._hb_obj_list,
 * 							   num_nodes)
*/
  __pyx_v_packed_blob = hb_subset_serialize_or_fail(hb_tag_from_string(__pyx_v_cstr, -1), __pyx_v_obj_list->_hb_obj_list, __pyx_v_num_nodes);

  /* "src/uharfbuzz/_serialize.pxi":188
 * 							   obj_list._hb_obj_list,
 * 							   num_nodes)
 *     if packed_blob == NULL:             # <<<<<<<<<<<<<<
 *         raise RepackerError()
 * 
*/
  __pyx_t_3 = (__pyx_v_packed_blob == NULL);
  if (unlikely(__pyx_t_3)) {

    /* "src/uharfbuzz/_serialize.pxi":189
 * 							   num_nodes)
 *     if packed_blob == NULL:
 *         raise RepackerError()             # <<<<<<<<<<<<<<
 * 
 *     cdef unsigned int blob_length
*/
    __pyx_t_5 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_RepackerError); if (unlikely(!__pyx_t_9)) __PYX_ERR(11, 189, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_10 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_9))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_9);
      assert(__pyx_t_5);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_9);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_9, __pyx__function);
      __pyx_t_10 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_9, __pyx_callargs+__pyx_t_10, (1-__pyx_t_10) | (__pyx_t_10*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 189, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(11, 189, __pyx_L1_error)

    /* "src/uharfbuzz/_serialize.pxi":188
 * 							   obj_list._hb_obj_list,
 * 							   num_nodes)
 *     if packed_blob == NULL:             # <<<<<<<<<<<<<<
 *         raise RepackerError()
 * 
*/
  }

  /* "src/uharfbuzz/_serialize.pxi":192
 * 
 *     cdef unsigned int blob_length
 *     cdef const_char* blob_data = hb_blob_get_data(packed_blob, &blob_length)             # <<<<<<<<<<<<<<
 *     cdef bytes packed = blob_data[:blob_length]
 * 
*/
  __pyx_v_blob_data = hb_blob_get_data(__pyx_v_packed_blob, (&__pyx_v_blob_length));

  /* "src/uharfbuzz/_serialize.pxi":193
 *     cdef unsigned int blob_length
 *     cdef const_char* blob_data = hb_blob_get_data(packed_blob, &blob_length)
 *     cdef bytes packed = blob_data[:blob_length]             # <<<<<<<<<<<<<<
 * 
 *     hb_blob_destroy(packed_blob)
*/
  __pyx_t_4 = __Pyx_PyBytes_FromStringAndSize(__pyx_v_blob_data + 0, __pyx_v_blob_length - 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 193, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_v_packed = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "src/uharfbuzz/_serialize.pxi":195
 *     cdef bytes packed = blob_data[:blob_length]
 * 
 *     hb_blob_destroy(packed_blob)             # <<<<<<<<<<<<<<
 *     return packed
*/
  hb_blob_destroy(__pyx_v_packed_blob);

  /* "src/uharfbuzz/_serialize.pxi":196
 * 
 *     hb_blob_destroy(packed_blob)
 *     return packed             # <<<<<<<<<<<<<<
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_packed);
  __pyx_r = __pyx_v_packed;
  goto __pyx_L0;

  /* "src/uharfbuzz/_serialize.pxi":93
 * 
 * 
 * def serialize_with_tag(tag: str,             # <<<<<<<<<<<<<<
 *                        subtables: List[bytes],
 *                        graphnodes: List[Tuple[List[Tuple[int, int, int]],
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.serialize_with_tag", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_table_bytes);
  __Pyx_XDECREF((PyObject *)__pyx_v_obj_list);
  __Pyx_XDECREF(__pyx_v_node);
  __Pyx_XDECREF(__pyx_v_tag_packed);
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_subset.pxi":1
 * def subset_preprocess(face: Face) -> Face:             # <<<<<<<<<<<<<<
 *     """Preprocesses the face and attaches data that will be needed by the
 *     subsetter. Future subsetting operations can then use the precomputed
*/

/* Python wrapper */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_pw_9uharfbuzz_9_harfbuzz_13subset_preprocess(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_12subset_preprocess, "Preprocesses the face and attaches data that will be needed by the\n    subsetter. Future subsetting operations can then use the precomputed\n    data to speed up the subsetting operation.\n\n    See `subset-preprocessing\n    <https://github.com/harfbuzz/harfbuzz/blob/main/docs/subset-preprocessing.md>`_\n    for more information.\n\n    Note: the preprocessed face may contain sub-blobs that reference the\n    memory backing the source :class:`Face`. Therefore in the case that\n    this memory is not owned by the source face you will need to ensure\n    that memory lives as long as the returned :class:`Face`.\n\n    :returns: a new :class:`Face`.\n\n    Wraps `hb_subset_preprocess()\n    <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-preprocess>`_.\n    ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_13subset_preprocess = {"subset_preprocess", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_13subset_preprocess, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_12subset_preprocess};
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_pw_9uharfbuzz_9_harfbuzz_13subset_preprocess(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("subset_preprocess (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(12, 1, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(12, 1, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "subset_preprocess", 0) < (0)) __PYX_ERR(12, 1, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("subset_preprocess", 1, 1, 1, i); __PYX_ERR(12, 1, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(12, 1, __pyx_L3_error)
    }
    __pyx_v_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("subset_preprocess", 1, 1, 1, __pyx_nargs); __PYX_ERR(12, 1, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.subset_preprocess", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, 0, "face", 0))) __PYX_ERR(12, 1, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_12subset_preprocess(__pyx_self, __pyx_v_face);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_pf_9uharfbuzz_9_harfbuzz_12subset_preprocess(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face) {
  hb_face_t *__pyx_v_new_face;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("subset_preprocess", 0);

  /* "src/uharfbuzz/_subset.pxi":20
 *     <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-preprocess>`_.
 *     """
 *     new_face = hb_subset_preprocess(face._hb_face)             # <<<<<<<<<<<<<<
 *     return Face.from_ptr(new_face)
 * 
*/
  __pyx_v_new_face = hb_subset_preprocess(__pyx_v_face->_hb_face);

  /* "src/uharfbuzz/_subset.pxi":21
 *     """
 *     new_face = hb_subset_preprocess(face._hb_face)
 *     return Face.from_ptr(new_face)             # <<<<<<<<<<<<<<
 * 
 * def subset(face: Face, input: SubsetInput) -> Face:
*/
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_9uharfbuzz_9_harfbuzz_4Face_from_ptr(__pyx_v_new_face)); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 21, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_subset.pxi":1
 * def subset_preprocess(face: Face) -> Face:             # <<<<<<<<<<<<<<
 *     """Preprocesses the face and attaches data that will be needed by the
 *     subsetter. Future subsetting operations can then use the precomputed
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.subset_preprocess", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_subset.pxi":23
 *     return Face.from_ptr(new_face)
 * 
 * def subset(face: Face, input: SubsetInput) -> Face:             # <<<<<<<<<<<<<<
 *     """Subsets a font according to provided input.
 * 
*/

/* Python wrapper */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_pw_9uharfbuzz_9_harfbuzz_15subset(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_14subset, "Subsets a font according to provided input.\n\n    :raises RuntimeError: If the subset operation fails or the face has no\n        glyphs.\n\n    Wraps `hb_subset_or_fail()\n    <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-or-fail>`_.\n    ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_15subset = {"subset", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_15subset, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_14subset};
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_pw_9uharfbuzz_9_harfbuzz_15subset(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_input = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("subset (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,&__pyx_mstate_global->__pyx_n_u_input,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(12, 23, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(12, 23, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(12, 23, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "subset", 0) < (0)) __PYX_ERR(12, 23, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("subset", 1, 2, 2, i); __PYX_ERR(12, 23, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(12, 23, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(12, 23, __pyx_L3_error)
    }
    __pyx_v_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)values[0]);
    __pyx_v_input = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("subset", 1, 2, 2, __pyx_nargs); __PYX_ERR(12, 23, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.subset", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, 0, "face", 0))) __PYX_ERR(12, 23, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_input), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetInput, 0, "input", 0))) __PYX_ERR(12, 23, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_14subset(__pyx_self, __pyx_v_face, __pyx_v_input);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_pf_9uharfbuzz_9_harfbuzz_14subset(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_input) {
  hb_face_t *__pyx_v_new_face;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("subset", 0);

  /* "src/uharfbuzz/_subset.pxi":32
 *     <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-or-fail>`_.
 *     """
 *     new_face = hb_subset_or_fail(face._hb_face, input._hb_input)             # <<<<<<<<<<<<<<
 *     if new_face == NULL:
 *         raise RuntimeError("Subsetting failed")
*/
  __pyx_v_new_face = hb_subset_or_fail(__pyx_v_face->_hb_face, __pyx_v_input->_hb_input);

  /* "src/uharfbuzz/_subset.pxi":33
 *     """
 *     new_face = hb_subset_or_fail(face._hb_face, input._hb_input)
 *     if new_face == NULL:             # <<<<<<<<<<<<<<
 *         raise RuntimeError("Subsetting failed")
 *     return Face.from_ptr(new_face)
*/
  __pyx_t_1 = (__pyx_v_new_face == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "src/uharfbuzz/_subset.pxi":34
 *     new_face = hb_subset_or_fail(face._hb_face, input._hb_input)
 *     if new_face == NULL:
 *         raise RuntimeError("Subsetting failed")             # <<<<<<<<<<<<<<
 *     return Face.from_ptr(new_face)
 * 
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Subsetting_failed};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 34, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(12, 34, __pyx_L1_error)

    /* "src/uharfbuzz/_subset.pxi":33
 *     """
 *     new_face = hb_subset_or_fail(face._hb_face, input._hb_input)
 *     if new_face == NULL:             # <<<<<<<<<<<<<<
 *         raise RuntimeError("Subsetting failed")
 *     return Face.from_ptr(new_face)
*/
  }

  /* "src/uharfbuzz/_subset.pxi":35
 *     if new_face == NULL:
 *         raise RuntimeError("Subsetting failed")
 *     return Face.from_ptr(new_face)             # <<<<<<<<<<<<<<
 * 
 * class SubsetInputSets(IntEnum):
*/
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_f_9uharfbuzz_9_harfbuzz_4Face_from_ptr(__pyx_v_new_face)); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 35, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_subset.pxi":23
 *     return Face.from_ptr(new_face)
 * 
 * def subset(face: Face, input: SubsetInput) -> Face:             # <<<<<<<<<<<<<<
 *     """Subsets a font according to provided input.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.subset", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_subset.pxi":168
 *     cdef hb_subset_input_t* _hb_input
 * 
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self._hb_input = hb_subset_input_create_or_fail()
 *         if self._hb_input is NULL:
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, __pyx_nargs); return -1; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__cinit__", __pyx_kwds); return -1;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput___cinit__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self) {
  int __pyx_r;
  int __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "src/uharfbuzz/_subset.pxi":169
 * 
 *     def __cinit__(self):
 *         self._hb_input = hb_subset_input_create_or_fail()             # <<<<<<<<<<<<<<
 *         if self._hb_input is NULL:
 *             raise MemoryError()
*/
  __pyx_v_self->_hb_input = hb_subset_input_create_or_fail();

  /* "src/uharfbuzz/_subset.pxi":170
 *     def __cinit__(self):
 *         self._hb_input = hb_subset_input_create_or_fail()
 *         if self._hb_input is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  __pyx_t_1 = (__pyx_v_self->_hb_input == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "src/uharfbuzz/_subset.pxi":171
 *         self._hb_input = hb_subset_input_create_or_fail()
 *         if self._hb_input is NULL:
 *             raise MemoryError()             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
    PyErr_NoMemory(); __PYX_ERR(12, 171, __pyx_L1_error)

    /* "src/uharfbuzz/_subset.pxi":170
 *     def __cinit__(self):
 *         self._hb_input = hb_subset_input_create_or_fail()
 *         if self._hb_input is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  }

  /* "src/uharfbuzz/_subset.pxi":168
 *     cdef hb_subset_input_t* _hb_input
 * 
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self._hb_input = hb_subset_input_create_or_fail()
 *         if self._hb_input is NULL:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetInput.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "src/uharfbuzz/_subset.pxi":173
 *             raise MemoryError()
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._hb_input is not NULL:
 *             hb_subset_input_destroy(self._hb_input)
*/

/* Python wrapper */
static void __pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_2__dealloc__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_2__dealloc__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self) {
  int __pyx_t_1;

  /* "src/uharfbuzz/_subset.pxi":174
 * 
 *     def __dealloc__(self):
 *         if self._hb_input is not NULL:             # <<<<<<<<<<<<<<
 *             hb_subset_input_destroy(self._hb_input)
 * 
*/
  __pyx_t_1 = (__pyx_v_self->_hb_input != NULL);
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_subset.pxi":175
 *     def __dealloc__(self):
 *         if self._hb_input is not NULL:
 *             hb_subset_input_destroy(self._hb_input)             # <<<<<<<<<<<<<<
 * 
 *     def subset(self, source: Face) -> Face:
*/
    hb_subset_input_destroy(__pyx_v_self->_hb_input);

    /* "src/uharfbuzz/_subset.pxi":174
 * 
 *     def __dealloc__(self):
 *         if self._hb_input is not NULL:             # <<<<<<<<<<<<<<
 *             hb_subset_input_destroy(self._hb_input)
 * 
*/
  }

  /* "src/uharfbuzz/_subset.pxi":173
 *             raise MemoryError()
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._hb_input is not NULL:
 *             hb_subset_input_destroy(self._hb_input)
*/

  /* function exit code */
}

/* "src/uharfbuzz/_subset.pxi":177
 *             hb_subset_input_destroy(self._hb_input)
 * 
 *     def subset(self, source: Face) -> Face:             # <<<<<<<<<<<<<<
 *         """Subsets ``source`` according to this input. Equivalent to calling
 *         :func:`subset` with ``source`` and this input.
*/

/* Python wrapper */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_5subset(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_11SubsetInput_4subset, "Subsets ``source`` according to this input. Equivalent to calling\n        :func:`subset` with ``source`` and this input.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_11SubsetInput_5subset = {"subset", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_5subset, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11SubsetInput_4subset};
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_5subset(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_source = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("subset (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_source,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(12, 177, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(12, 177, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "subset", 0) < (0)) __PYX_ERR(12, 177, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("subset", 1, 1, 1, i); __PYX_ERR(12, 177, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(12, 177, __pyx_L3_error)
    }
    __pyx_v_source = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("subset", 1, 1, 1, __pyx_nargs); __PYX_ERR(12, 177, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetInput.subset", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_source), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, 0, "source", 0))) __PYX_ERR(12, 177, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_4subset(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *)__pyx_v_self), __pyx_v_source);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_4subset(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_source) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("subset", 0);

  /* "src/uharfbuzz/_subset.pxi":181
 *         :func:`subset` with ``source`` and this input.
 *         """
 *         return subset(source, self)             # <<<<<<<<<<<<<<
 * 
 *     def keep_everything(self):
*/
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_subset); if (unlikely(!__pyx_t_3)) __PYX_ERR(12, 181, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, ((PyObject *)__pyx_v_source), ((PyObject *)__pyx_v_self)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 181, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face))))) __PYX_ERR(12, 181, __pyx_L1_error)
  __pyx_r = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_subset.pxi":177
 *             hb_subset_input_destroy(self._hb_input)
 * 
 *     def subset(self, source: Face) -> Face:             # <<<<<<<<<<<<<<
 *         """Subsets ``source`` according to this input. Equivalent to calling
 *         :func:`subset` with ``source`` and this input.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetInput.subset", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_subset.pxi":183
 *         return subset(source, self)
 * 
 *     def keep_everything(self):             # <<<<<<<<<<<<<<
 *         """Configure input object to keep everything in the font face. That
 *         is, all Unicodes, glyphs, names, layout items, glyph names, etc.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_7keep_everything(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_11SubsetInput_6keep_everything, "Configure input object to keep everything in the font face. That\n        is, all Unicodes, glyphs, names, layout items, glyph names, etc.\n\n        The input can be tailored afterwards by the caller.\n\n        Wraps `hb_subset_input_keep_everything()\n        <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-input-keep-everything>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_11SubsetInput_7keep_everything = {"keep_everything", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_7keep_everything, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11SubsetInput_6keep_everything};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_7keep_everything(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("keep_everything (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("keep_everything", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("keep_everything", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_6keep_everything(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_6keep_everything(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("keep_everything", 0);

  /* "src/uharfbuzz/_subset.pxi":192
 *         <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-input-keep-everything>`_.
 *         """
 *         hb_subset_input_keep_everything(self._hb_input)             # <<<<<<<<<<<<<<
 * 
 *     def pin_all_axes_to_default(self, face: Face) -> bool:
*/
  hb_subset_input_keep_everything(__pyx_v_self->_hb_input);

  /* "src/uharfbuzz/_subset.pxi":183
 *         return subset(source, self)
 * 
 *     def keep_everything(self):             # <<<<<<<<<<<<<<
 *         """Configure input object to keep everything in the font face. That
 *         is, all Unicodes, glyphs, names, layout items, glyph names, etc.
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_subset.pxi":194
 *         hb_subset_input_keep_everything(self._hb_input)
 * 
 *     def pin_all_axes_to_default(self, face: Face) -> bool:             # <<<<<<<<<<<<<<
 *         """Pin all axes to default locations in this subset input object.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_9pin_all_axes_to_default(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_11SubsetInput_8pin_all_axes_to_default, "Pin all axes to default locations in this subset input object.\n\n        All axes in a font must be pinned. Additionally, ``CFF2`` table, if\n        present, will be de-subroutinized.\n\n        :returns: ``True`` if success, ``False`` otherwise.\n\n        Wraps `hb_subset_input_pin_all_axes_to_default()\n        <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-input-pin-all-axes-to-default>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_11SubsetInput_9pin_all_axes_to_default = {"pin_all_axes_to_default", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_9pin_all_axes_to_default, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11SubsetInput_8pin_all_axes_to_default};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_9pin_all_axes_to_default(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("pin_all_axes_to_default (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(12, 194, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(12, 194, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "pin_all_axes_to_default", 0) < (0)) __PYX_ERR(12, 194, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("pin_all_axes_to_default", 1, 1, 1, i); __PYX_ERR(12, 194, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(12, 194, __pyx_L3_error)
    }
    __pyx_v_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("pin_all_axes_to_default", 1, 1, 1, __pyx_nargs); __PYX_ERR(12, 194, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetInput.pin_all_axes_to_default", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, 0, "face", 0))) __PYX_ERR(12, 194, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_8pin_all_axes_to_default(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *)__pyx_v_self), __pyx_v_face);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_8pin_all_axes_to_default(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("pin_all_axes_to_default", 0);

  /* "src/uharfbuzz/_subset.pxi":205
 *         <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-input-pin-all-axes-to-default>`_.
 *         """
 *         return hb_subset_input_pin_all_axes_to_default(self._hb_input, face._hb_face)             # <<<<<<<<<<<<<<
 * 
 *     def pin_axis_to_default(self, face: Face, tag: str) -> bool:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_hb_bool_t(hb_subset_input_pin_all_axes_to_default(__pyx_v_self->_hb_input, __pyx_v_face->_hb_face)); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 205, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_subset.pxi":194
 *         hb_subset_input_keep_everything(self._hb_input)
 * 
 *     def pin_all_axes_to_default(self, face: Face) -> bool:             # <<<<<<<<<<<<<<
 *         """Pin all axes to default locations in this subset input object.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetInput.pin_all_axes_to_default", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_subset.pxi":207
 *         return hb_subset_input_pin_all_axes_to_default(self._hb_input, face._hb_face)
 * 
 *     def pin_axis_to_default(self, face: Face, tag: str) -> bool:             # <<<<<<<<<<<<<<
 *         """Pin an axis to its default location in this subset input object.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_11pin_axis_to_default(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_11SubsetInput_10pin_axis_to_default, "Pin an axis to its default location in this subset input object.\n\n        All axes in a font must be pinned. Additionally, ``CFF2`` table, if\n        present, will be de-subroutinized.\n\n        :param tag: Tag of the axis to be pinned.\n\n        :returns: ``True`` if success, ``False`` otherwise.\n\n        Wraps `hb_subset_input_pin_axis_to_default()\n        <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-input-pin-axis-to-default>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_11SubsetInput_11pin_axis_to_default = {"pin_axis_to_default", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_11pin_axis_to_default, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11SubsetInput_10pin_axis_to_default};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_11pin_axis_to_default(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face = 0;
  PyObject *__pyx_v_tag = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("pin_axis_to_default (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,&__pyx_mstate_global->__pyx_n_u_tag,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(12, 207, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(12, 207, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(12, 207, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "pin_axis_to_default", 0) < (0)) __PYX_ERR(12, 207, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("pin_axis_to_default", 1, 2, 2, i); __PYX_ERR(12, 207, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(12, 207, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(12, 207, __pyx_L3_error)
    }
    __pyx_v_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)values[0]);
    __pyx_v_tag = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("pin_axis_to_default", 1, 2, 2, __pyx_nargs); __PYX_ERR(12, 207, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetInput.pin_axis_to_default", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, 0, "face", 0))) __PYX_ERR(12, 207, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tag), (&PyUnicode_Type), 0, "tag", 2))) __PYX_ERR(12, 207, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_10pin_axis_to_default(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *)__pyx_v_self), __pyx_v_face, __pyx_v_tag);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_10pin_axis_to_default(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, PyObject *__pyx_v_tag) {
  hb_tag_t __pyx_v_hb_tag;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  char const *__pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("pin_axis_to_default", 0);

  /* "src/uharfbuzz/_subset.pxi":220
 *         <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-input-pin-axis-to-default>`_.
 *         """
 *         hb_tag = hb_tag_from_string(tag.encode("ascii"), -1)             # <<<<<<<<<<<<<<
 *         return hb_subset_input_pin_axis_to_default(
 *             self._hb_input, face._hb_face, hb_tag
*/
  __pyx_t_1 = PyUnicode_AsASCIIString(__pyx_v_tag); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 220, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(12, 220, __pyx_L1_error)
  __pyx_v_hb_tag = hb_tag_from_string(__pyx_t_2, -1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/uharfbuzz/_subset.pxi":221
 *         """
 *         hb_tag = hb_tag_from_string(tag.encode("ascii"), -1)
 *         return hb_subset_input_pin_axis_to_default(             # <<<<<<<<<<<<<<
 *             self._hb_input, face._hb_face, hb_tag
 *         )
*/
  __Pyx_XDECREF(__pyx_r);

  /* "src/uharfbuzz/_subset.pxi":222
 *         hb_tag = hb_tag_from_string(tag.encode("ascii"), -1)
 *         return hb_subset_input_pin_axis_to_default(
 *             self._hb_input, face._hb_face, hb_tag             # <<<<<<<<<<<<<<
 *         )
 * 
*/
  __pyx_t_1 = __Pyx_PyLong_From_hb_bool_t(hb_subset_input_pin_axis_to_default(__pyx_v_self->_hb_input, __pyx_v_face->_hb_face, __pyx_v_hb_tag)); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 221, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_subset.pxi":207
 *         return hb_subset_input_pin_all_axes_to_default(self._hb_input, face._hb_face)
 * 
 *     def pin_axis_to_default(self, face: Face, tag: str) -> bool:             # <<<<<<<<<<<<<<
 *         """Pin an axis to its default location in this subset input object.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetInput.pin_axis_to_default", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_subset.pxi":225
 *         )
 * 
 *     def pin_axis_location(self, face: Face, tag: str, value: float) -> bool:             # <<<<<<<<<<<<<<
 *         """Pin an axis to a fixed location in this subset input object.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_13pin_axis_location(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_11SubsetInput_12pin_axis_location, "Pin an axis to a fixed location in this subset input object.\n\n        All axes in a font must be pinned. Additionally, ``CFF2`` table, if\n        present, will be de-subroutinized.\n\n        :param tag: Tag of the axis to be pinned.\n        :param value: Location on the axis to be pinned at.\n\n        :returns: ``True`` if success, ``False`` otherwise.\n\n        Wraps `hb_subset_input_pin_axis_location()\n        <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-input-pin-axis-location>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_11SubsetInput_13pin_axis_location = {"pin_axis_location", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_13pin_axis_location, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11SubsetInput_12pin_axis_location};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_13pin_axis_location(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face = 0;
  PyObject *__pyx_v_tag = 0;
  double __pyx_v_value;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("pin_axis_location (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,&__pyx_mstate_global->__pyx_n_u_tag,&__pyx_mstate_global->__pyx_n_u_value,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(12, 225, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(12, 225, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(12, 225, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(12, 225, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "pin_axis_location", 0) < (0)) __PYX_ERR(12, 225, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("pin_axis_location", 1, 3, 3, i); __PYX_ERR(12, 225, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(12, 225, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(12, 225, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(12, 225, __pyx_L3_error)
    }
    __pyx_v_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)values[0]);
    __pyx_v_tag = ((PyObject*)values[1]);
    __pyx_v_value = __Pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_value == (double)-1) && PyErr_Occurred())) __PYX_ERR(12, 225, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("pin_axis_location", 1, 3, 3, __pyx_nargs); __PYX_ERR(12, 225, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetInput.pin_axis_location", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, 0, "face", 0))) __PYX_ERR(12, 225, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tag), (&PyUnicode_Type), 0, "tag", 2))) __PYX_ERR(12, 225, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_12pin_axis_location(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *)__pyx_v_self), __pyx_v_face, __pyx_v_tag, __pyx_v_value);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_12pin_axis_location(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, PyObject *__pyx_v_tag, double __pyx_v_value) {
  hb_tag_t __pyx_v_hb_tag;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  char const *__pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("pin_axis_location", 0);

  /* "src/uharfbuzz/_subset.pxi":239
 *         <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-input-pin-axis-location>`_.
 *         """
 *         hb_tag = hb_tag_from_string(tag.encode("ascii"), -1)             # <<<<<<<<<<<<<<
 *         return hb_subset_input_pin_axis_location(
 *             self._hb_input, face._hb_face, hb_tag, value
*/
  __pyx_t_1 = PyUnicode_AsASCIIString(__pyx_v_tag); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 239, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(12, 239, __pyx_L1_error)
  __pyx_v_hb_tag = hb_tag_from_string(__pyx_t_2, -1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/uharfbuzz/_subset.pxi":240
 *         """
 *         hb_tag = hb_tag_from_string(tag.encode("ascii"), -1)
 *         return hb_subset_input_pin_axis_location(             # <<<<<<<<<<<<<<
 *             self._hb_input, face._hb_face, hb_tag, value
 *         )
*/
  __Pyx_XDECREF(__pyx_r);

  /* "src/uharfbuzz/_subset.pxi":241
 *         hb_tag = hb_tag_from_string(tag.encode("ascii"), -1)
 *         return hb_subset_input_pin_axis_location(
 *             self._hb_input, face._hb_face, hb_tag, value             # <<<<<<<<<<<<<<
 *         )
 * 
*/
  __pyx_t_1 = __Pyx_PyLong_From_hb_bool_t(hb_subset_input_pin_axis_location(__pyx_v_self->_hb_input, __pyx_v_face->_hb_face, __pyx_v_hb_tag, __pyx_v_value)); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 240, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_subset.pxi":225
 *         )
 * 
 *     def pin_axis_location(self, face: Face, tag: str, value: float) -> bool:             # <<<<<<<<<<<<<<
 *         """Pin an axis to a fixed location in this subset input object.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetInput.pin_axis_location", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_subset.pxi":244
 *         )
 * 
 *     def set_axis_range(self,             # <<<<<<<<<<<<<<
 *                        face: Face,
 *                        tag: str,
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_15set_axis_range(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_11SubsetInput_14set_axis_range, "Restricting the range of variation on an axis in this subset input\n        object. New min/default/max values will be clamped if they're not\n        within the ``fvar`` axis range.\n\n        If the ``fvar`` axis default value is not within the new range, the\n        new default value will be changed to the new min or max value,\n        whichever is closer to the ``fvar`` axis default.\n\n        Note: input min value can not be bigger than input max value. If\n        the input default value is not within the new min/max range, it'll\n        be clamped.\n\n        :param tag: Tag of the axis.\n        :param min_value: Minimum value of the axis variation range to set,\n            if ``None`` the existing min will be used.\n        :param max_value: Maximum value of the axis variation range to set,\n            if ``None`` the existing max will be used.\n        :param def_value: Default value of the axis variation range to set,\n            if ``None`` the existing default will be used.\n\n        :returns: ``True`` if success, ``False`` otherwise.\n\n        Wraps `hb_subset_input_set_axis_range()\n        <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-input-set-axis-range>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_11SubsetInput_15set_axis_range = {"set_axis_range", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_15set_axis_range, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11SubsetInput_14set_axis_range};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_15set_axis_range(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face = 0;
  PyObject *__pyx_v_tag = 0;
  PyObject *__pyx_v_min_value = 0;
  PyObject *__pyx_v_max_value = 0;
  PyObject *__pyx_v_def_value = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_axis_range (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,&__pyx_mstate_global->__pyx_n_u_tag,&__pyx_mstate_global->__pyx_n_u_min_value,&__pyx_mstate_global->__pyx_n_u_max_value,&__pyx_mstate_global->__pyx_n_u_def_value,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(12, 244, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(12, 244, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(12, 244, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(12, 244, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(12, 244, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(12, 244, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_axis_range", 0) < (0)) __PYX_ERR(12, 244, __pyx_L3_error)

      /* "src/uharfbuzz/_subset.pxi":247
 *                        face: Face,
 *                        tag: str,
 *                        min_value: float | None = None,             # <<<<<<<<<<<<<<
 *                        max_value: float | None = None,
 *                        def_value: float | None = None) -> bool:
*/
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject*)Py_None));

      /* "src/uharfbuzz/_subset.pxi":248
 *                        tag: str,
 *                        min_value: float | None = None,
 *                        max_value: float | None = None,             # <<<<<<<<<<<<<<
 *                        def_value: float | None = None) -> bool:
 *         """Restricting the range of variation on an axis in this subset input
*/
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject*)Py_None));

      /* "src/uharfbuzz/_subset.pxi":249
 *                        min_value: float | None = None,
 *                        max_value: float | None = None,
 *                        def_value: float | None = None) -> bool:             # <<<<<<<<<<<<<<
 *         """Restricting the range of variation on an axis in this subset input
 *         object. New min/default/max values will be clamped if they're not
*/
      if (!values[4]) values[4] = __Pyx_NewRef(((PyObject*)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_axis_range", 0, 2, 5, i); __PYX_ERR(12, 244, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(12, 244, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(12, 244, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(12, 244, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(12, 244, __pyx_L3_error)
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(12, 244, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }

      /* "src/uharfbuzz/_subset.pxi":247
 *                        face: Face,
 *                        tag: str,
 *                        min_value: float | None = None,             # <<<<<<<<<<<<<<
 *                        max_value: float | None = None,
 *                        def_value: float | None = None) -> bool:
*/
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject*)Py_None));

      /* "src/uharfbuzz/_subset.pxi":248
 *                        tag: str,
 *                        min_value: float | None = None,
 *                        max_value: float | None = None,             # <<<<<<<<<<<<<<
 *                        def_value: float | None = None) -> bool:
 *         """Restricting the range of variation on an axis in this subset input
*/
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject*)Py_None));

      /* "src/uharfbuzz/_subset.pxi":249
 *                        min_value: float | None = None,
 *                        max_value: float | None = None,
 *                        def_value: float | None = None) -> bool:             # <<<<<<<<<<<<<<
 *         """Restricting the range of variation on an axis in this subset input
 *         object. New min/default/max values will be clamped if they're not
*/
      if (!values[4]) values[4] = __Pyx_NewRef(((PyObject*)Py_None));
    }
    __pyx_v_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)values[0]);
    __pyx_v_tag = ((PyObject*)values[1]);
    if (__Pyx_PyFloat_FromNumber(&values[2], "min_value", 1) < (0)) __PYX_ERR(12, 247, __pyx_L3_error)
    __pyx_v_min_value = ((PyObject*)values[2]);
    if (__Pyx_PyFloat_FromNumber(&values[3], "max_value", 1) < (0)) __PYX_ERR(12, 248, __pyx_L3_error)
    __pyx_v_max_value = ((PyObject*)values[3]);
    if (__Pyx_PyFloat_FromNumber(&values[4], "def_value", 1) < (0)) __PYX_ERR(12, 249, __pyx_L3_error)
    __pyx_v_def_value = ((PyObject*)values[4]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_axis_range", 0, 2, 5, __pyx_nargs); __PYX_ERR(12, 244, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetInput.set_axis_range", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, 0, "face", 0))) __PYX_ERR(12, 245, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tag), (&PyUnicode_Type), 0, "tag", 2))) __PYX_ERR(12, 246, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_min_value), (&PyFloat_Type), 1, "min_value", 2))) __PYX_ERR(12, 247, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_max_value), (&PyFloat_Type), 1, "max_value", 2))) __PYX_ERR(12, 248, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_def_value), (&PyFloat_Type), 1, "def_value", 2))) __PYX_ERR(12, 249, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_14set_axis_range(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *)__pyx_v_self), __pyx_v_face, __pyx_v_tag, __pyx_v_min_value, __pyx_v_max_value, __pyx_v_def_value);

  /* "src/uharfbuzz/_subset.pxi":244
 *         )
 * 
 *     def set_axis_range(self,             # <<<<<<<<<<<<<<
 *                        face: Face,
 *                        tag: str,
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_14set_axis_range(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, PyObject *__pyx_v_tag, PyObject *__pyx_v_min_value, PyObject *__pyx_v_max_value, PyObject *__pyx_v_def_value) {
  hb_tag_t __pyx_v_hb_tag;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  char const *__pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  float __pyx_t_5;
  float __pyx_t_6;
  float __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("set_axis_range", 0);
  __Pyx_INCREF(__pyx_v_min_value);
  __Pyx_INCREF(__pyx_v_max_value);
  __Pyx_INCREF(__pyx_v_def_value);

  /* "src/uharfbuzz/_subset.pxi":275
 *         <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-input-set-axis-range>`_.
 *         """
 *         cdef hb_tag_t hb_tag = hb_tag_from_string(tag.encode("ascii"), -1)             # <<<<<<<<<<<<<<
 *         min_value = NAN if min_value is None else min_value
 *         max_value = NAN if max_value is None else max_value
*/
  __pyx_t_1 = PyUnicode_AsASCIIString(__pyx_v_tag); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(12, 275, __pyx_L1_error)
  __pyx_v_hb_tag = hb_tag_from_string(__pyx_t_2, -1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/uharfbuzz/_subset.pxi":276
 *         """
 *         cdef hb_tag_t hb_tag = hb_tag_from_string(tag.encode("ascii"), -1)
 *         min_value = NAN if min_value is None else min_value             # <<<<<<<<<<<<<<
 *         max_value = NAN if max_value is None else max_value
 *         def_value = NAN if def_value is None else def_value
*/
  __pyx_t_3 = (__pyx_v_min_value == ((PyObject*)Py_None));
  if (__pyx_t_3) {
    __pyx_t_4 = PyFloat_FromDouble(NAN); if (unlikely(!__pyx_t_4)) __PYX_ERR(12, 276, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    if (__Pyx_PyFloat_FromNumber(&__pyx_t_4, NULL, 0) < (0)) __PYX_ERR(12, 276, __pyx_L1_error)
    __pyx_t_1 = __pyx_t_4;
    __pyx_t_4 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_min_value);
    __pyx_t_1 = __pyx_v_min_value;
  }
  __Pyx_DECREF_SET(__pyx_v_min_value, ((PyObject*)__pyx_t_1));
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_subset.pxi":277
 *         cdef hb_tag_t hb_tag = hb_tag_from_string(tag.encode("ascii"), -1)
 *         min_value = NAN if min_value is None else min_value
 *         max_value = NAN if max_value is None else max_value             # <<<<<<<<<<<<<<
 *         def_value = NAN if def_value is None else def_value
 *         return hb_subset_input_set_axis_range(
*/
  __pyx_t_3 = (__pyx_v_max_value == ((PyObject*)Py_None));
  if (__pyx_t_3) {
    __pyx_t_4 = PyFloat_FromDouble(NAN); if (unlikely(!__pyx_t_4)) __PYX_ERR(12, 277, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    if (__Pyx_PyFloat_FromNumber(&__pyx_t_4, NULL, 0) < (0)) __PYX_ERR(12, 277, __pyx_L1_error)
    __pyx_t_1 = __pyx_t_4;
    __pyx_t_4 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_max_value);
    __pyx_t_1 = __pyx_v_max_value;
  }
  __Pyx_DECREF_SET(__pyx_v_max_value, ((PyObject*)__pyx_t_1));
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_subset.pxi":278
 *         min_value = NAN if min_value is None else min_value
 *         max_value = NAN if max_value is None else max_value
 *         def_value = NAN if def_value is None else def_value             # <<<<<<<<<<<<<<
 *         return hb_subset_input_set_axis_range(
 *             self._hb_input, face._hb_face, hb_tag, min_value, max_value, def_value
*/
  __pyx_t_3 = (__pyx_v_def_value == ((PyObject*)Py_None));
  if (__pyx_t_3) {
    __pyx_t_4 = PyFloat_FromDouble(NAN); if (unlikely(!__pyx_t_4)) __PYX_ERR(12, 278, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    if (__Pyx_PyFloat_FromNumber(&__pyx_t_4, NULL, 0) < (0)) __PYX_ERR(12, 278, __pyx_L1_error)
    __pyx_t_1 = __pyx_t_4;
    __pyx_t_4 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_def_value);
    __pyx_t_1 = __pyx_v_def_value;
  }
  __Pyx_DECREF_SET(__pyx_v_def_value, ((PyObject*)__pyx_t_1));
  __pyx_t_1 = 0;

  /* "src/uharfbuzz/_subset.pxi":279
 *         max_value = NAN if max_value is None else max_value
 *         def_value = NAN if def_value is None else def_value
 *         return hb_subset_input_set_axis_range(             # <<<<<<<<<<<<<<
 *             self._hb_input, face._hb_face, hb_tag, min_value, max_value, def_value
 *         )
*/
  __Pyx_XDECREF(__pyx_r);

  /* "src/uharfbuzz/_subset.pxi":280
 *         def_value = NAN if def_value is None else def_value
 *         return hb_subset_input_set_axis_range(
 *             self._hb_input, face._hb_face, hb_tag, min_value, max_value, def_value             # <<<<<<<<<<<<<<
 *         )
 * 
*/
  __pyx_t_5 = __Pyx_PyFloat_AsFloat(__pyx_v_min_value); if (unlikely((__pyx_t_5 == (float)-1) && PyErr_Occurred())) __PYX_ERR(12, 280, __pyx_L1_error)
  __pyx_t_6 = __Pyx_PyFloat_AsFloat(__pyx_v_max_value); if (unlikely((__pyx_t_6 == (float)-1) && PyErr_Occurred())) __PYX_ERR(12, 280, __pyx_L1_error)
  __pyx_t_7 = __Pyx_PyFloat_AsFloat(__pyx_v_def_value); if (unlikely((__pyx_t_7 == (float)-1) && PyErr_Occurred())) __PYX_ERR(12, 280, __pyx_L1_error)

  /* "src/uharfbuzz/_subset.pxi":279
 *         max_value = NAN if max_value is None else max_value
 *         def_value = NAN if def_value is None else def_value
 *         return hb_subset_input_set_axis_range(             # <<<<<<<<<<<<<<
 *             self._hb_input, face._hb_face, hb_tag, min_value, max_value, def_value
 *         )
*/
  __pyx_t_1 = __Pyx_PyLong_From_hb_bool_t(hb_subset_input_set_axis_range(__pyx_v_self->_hb_input, __pyx_v_face->_hb_face, __pyx_v_hb_tag, __pyx_t_5, __pyx_t_6, __pyx_t_7)); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 279, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_subset.pxi":244
 *         )
 * 
 *     def set_axis_range(self,             # <<<<<<<<<<<<<<
 *                        face: Face,
 *                        tag: str,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetInput.set_axis_range", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_min_value);
  __Pyx_XDECREF(__pyx_v_max_value);
  __Pyx_XDECREF(__pyx_v_def_value);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_subset.pxi":283
 *         )
 * 
 *     def get_axis_range(self, tag: str) -> Tuple[float | None, float | None, float | None] | None:             # <<<<<<<<<<<<<<
 *         """Gets the axis range assigned by previous calls to
 *         :meth:`set_axis_range`.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_17get_axis_range(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_11SubsetInput_16get_axis_range, "Gets the axis range assigned by previous calls to\n        :meth:`set_axis_range`.\n\n        :param tag: Tag of the axis.\n\n        :returns: ``(min, max, default)`` triple if a range has been set\n            for this axis tag, ``None`` otherwise. Each component is\n            ``None`` only if it was previously set to ``None`` (NaN) via\n            :meth:`set_axis_range`.\n\n        Wraps `hb_subset_input_get_axis_range()\n        <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-input-get-axis-range>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_11SubsetInput_17get_axis_range = {"get_axis_range", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_17get_axis_range, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11SubsetInput_16get_axis_range};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_17get_axis_range(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_tag = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_axis_range (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_tag,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(12, 283, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(12, 283, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_axis_range", 0) < (0)) __PYX_ERR(12, 283, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_axis_range", 1, 1, 1, i); __PYX_ERR(12, 283, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(12, 283, __pyx_L3_error)
    }
    __pyx_v_tag = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_axis_range", 1, 1, 1, __pyx_nargs); __PYX_ERR(12, 283, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetInput.get_axis_range", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tag), (&PyUnicode_Type), 0, "tag", 2))) __PYX_ERR(12, 283, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_16get_axis_range(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *)__pyx_v_self), __pyx_v_tag);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_16get_axis_range(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self, PyObject *__pyx_v_tag) {
  hb_tag_t __pyx_v_hb_tag;
  float __pyx_v_axis_min_value;
  float __pyx_v_axis_max_value;
  float __pyx_v_axis_def_value;
  PyObject *__pyx_v_min_value = NULL;
  PyObject *__pyx_v_max_value = NULL;
  PyObject *__pyx_v_def_value = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  char const *__pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_axis_range", 0);

  /* "src/uharfbuzz/_subset.pxi":297
 *         <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-input-get-axis-range>`_.
 *         """
 *         cdef hb_tag_t hb_tag = hb_tag_from_string(tag.encode("ascii"), -1)             # <<<<<<<<<<<<<<
 *         cdef float axis_min_value, axis_max_value, axis_def_value
 *         if hb_subset_input_get_axis_range(self._hb_input, hb_tag,
*/
  __pyx_t_1 = PyUnicode_AsASCIIString(__pyx_v_tag); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 297, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(12, 297, __pyx_L1_error)
  __pyx_v_hb_tag = hb_tag_from_string(__pyx_t_2, -1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/uharfbuzz/_subset.pxi":299
 *         cdef hb_tag_t hb_tag = hb_tag_from_string(tag.encode("ascii"), -1)
 *         cdef float axis_min_value, axis_max_value, axis_def_value
 *         if hb_subset_input_get_axis_range(self._hb_input, hb_tag,             # <<<<<<<<<<<<<<
 *             &axis_min_value, &axis_max_value, &axis_def_value):
 *             min_value = None if isnan(axis_min_value) else axis_min_value
*/
  __pyx_t_3 = (hb_subset_input_get_axis_range(__pyx_v_self->_hb_input, __pyx_v_hb_tag, (&__pyx_v_axis_min_value), (&__pyx_v_axis_max_value), (&__pyx_v_axis_def_value)) != 0);
  if (__pyx_t_3) {

    /* "src/uharfbuzz/_subset.pxi":301
 *         if hb_subset_input_get_axis_range(self._hb_input, hb_tag,
 *             &axis_min_value, &axis_max_value, &axis_def_value):
 *             min_value = None if isnan(axis_min_value) else axis_min_value             # <<<<<<<<<<<<<<
 *             max_value = None if isnan(axis_max_value) else axis_max_value
 *             def_value = None if isnan(axis_def_value) else axis_def_value
*/
    __pyx_t_3 = isnan(__pyx_v_axis_min_value);
    if (__pyx_t_3) {
      __Pyx_INCREF(Py_None);
      __pyx_t_1 = Py_None;
    } else {
      __pyx_t_4 = PyFloat_FromDouble(__pyx_v_axis_min_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(12, 301, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_1 = __pyx_t_4;
      __pyx_t_4 = 0;
    }
    __pyx_v_min_value = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "src/uharfbuzz/_subset.pxi":302
 *             &axis_min_value, &axis_max_value, &axis_def_value):
 *             min_value = None if isnan(axis_min_value) else axis_min_value
 *             max_value = None if isnan(axis_max_value) else axis_max_value             # <<<<<<<<<<<<<<
 *             def_value = None if isnan(axis_def_value) else axis_def_value
 *             return min_value, max_value, def_value
*/
    __pyx_t_3 = isnan(__pyx_v_axis_max_value);
    if (__pyx_t_3) {
      __Pyx_INCREF(Py_None);
      __pyx_t_1 = Py_None;
    } else {
      __pyx_t_4 = PyFloat_FromDouble(__pyx_v_axis_max_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(12, 302, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_1 = __pyx_t_4;
      __pyx_t_4 = 0;
    }
    __pyx_v_max_value = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "src/uharfbuzz/_subset.pxi":303
 *             min_value = None if isnan(axis_min_value) else axis_min_value
 *             max_value = None if isnan(axis_max_value) else axis_max_value
 *             def_value = None if isnan(axis_def_value) else axis_def_value             # <<<<<<<<<<<<<<
 *             return min_value, max_value, def_value
 *         return None
*/
    __pyx_t_3 = isnan(__pyx_v_axis_def_value);
    if (__pyx_t_3) {
      __Pyx_INCREF(Py_None);
      __pyx_t_1 = Py_None;
    } else {
      __pyx_t_4 = PyFloat_FromDouble(__pyx_v_axis_def_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(12, 303, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_1 = __pyx_t_4;
      __pyx_t_4 = 0;
    }
    __pyx_v_def_value = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "src/uharfbuzz/_subset.pxi":304
 *             max_value = None if isnan(axis_max_value) else axis_max_value
 *             def_value = None if isnan(axis_def_value) else axis_def_value
 *             return min_value, max_value, def_value             # <<<<<<<<<<<<<<
 *         return None
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 304, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(__pyx_v_min_value);
    __Pyx_GIVEREF(__pyx_v_min_value);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_min_value) != (0)) __PYX_ERR(12, 304, __pyx_L1_error);
    __Pyx_INCREF(__pyx_v_max_value);
    __Pyx_GIVEREF(__pyx_v_max_value);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_max_value) != (0)) __PYX_ERR(12, 304, __pyx_L1_error);
    __Pyx_INCREF(__pyx_v_def_value);
    __Pyx_GIVEREF(__pyx_v_def_value);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_def_value) != (0)) __PYX_ERR(12, 304, __pyx_L1_error);
    __pyx_r = ((PyObject*)__pyx_t_1);
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "src/uharfbuzz/_subset.pxi":299
 *         cdef hb_tag_t hb_tag = hb_tag_from_string(tag.encode("ascii"), -1)
 *         cdef float axis_min_value, axis_max_value, axis_def_value
 *         if hb_subset_input_get_axis_range(self._hb_input, hb_tag,             # <<<<<<<<<<<<<<
 *             &axis_min_value, &axis_max_value, &axis_def_value):
 *             min_value = None if isnan(axis_min_value) else axis_min_value
*/
  }

  /* "src/uharfbuzz/_subset.pxi":305
 *             def_value = None if isnan(axis_def_value) else axis_def_value
 *             return min_value, max_value, def_value
 *         return None             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_r = ((PyObject*)Py_None); __Pyx_INCREF(Py_None);
  goto __pyx_L0;

  /* "src/uharfbuzz/_subset.pxi":283
 *         )
 * 
 *     def get_axis_range(self, tag: str) -> Tuple[float | None, float | None, float | None] | None:             # <<<<<<<<<<<<<<
 *         """Gets the axis range assigned by previous calls to
 *         :meth:`set_axis_range`.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetInput.get_axis_range", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_min_value);
  __Pyx_XDECREF(__pyx_v_max_value);
  __Pyx_XDECREF(__pyx_v_def_value);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_subset.pxi":307
 *         return None
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def unicode_set(self) -> Set[int]:
 *         """The set of Unicode code points to retain. The caller should modify
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_11unicode_set_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_11unicode_set_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_11unicode_set___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_11unicode_set___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_subset.pxi":317
 *         <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-input-unicode-set>`_.
 *         """
 *         return Set.from_ptr(hb_set_reference (hb_subset_input_unicode_set(self._hb_input)))             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_9uharfbuzz_9_harfbuzz_3Set_from_ptr(hb_set_reference(hb_subset_input_unicode_set(__pyx_v_self->_hb_input)))); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 317, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_subset.pxi":307
 *         return None
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def unicode_set(self) -> Set[int]:
 *         """The set of Unicode code points to retain. The caller should modify
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetInput.unicode_set.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_subset.pxi":319
 *         return Set.from_ptr(hb_set_reference (hb_subset_input_unicode_set(self._hb_input)))
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def glyph_set(self) -> Set[int]:
 *         """The set of glyph IDs to retain. The caller should modify the set
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_9glyph_set_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_9glyph_set_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_9glyph_set___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_9glyph_set___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_subset.pxi":329
 *         <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-input-glyph-set>`_.
 *         """
 *         return Set.from_ptr(hb_set_reference (hb_subset_input_glyph_set(self._hb_input)))             # <<<<<<<<<<<<<<
 * 
 *     def sets(self, set_type : SubsetInputSets) -> Set:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_9uharfbuzz_9_harfbuzz_3Set_from_ptr(hb_set_reference(hb_subset_input_glyph_set(__pyx_v_self->_hb_input)))); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 329, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_subset.pxi":319
 *         return Set.from_ptr(hb_set_reference (hb_subset_input_unicode_set(self._hb_input)))
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def glyph_set(self) -> Set[int]:
 *         """The set of glyph IDs to retain. The caller should modify the set
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetInput.glyph_set.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_subset.pxi":331
 *         return Set.from_ptr(hb_set_reference (hb_subset_input_glyph_set(self._hb_input)))
 * 
 *     def sets(self, set_type : SubsetInputSets) -> Set:             # <<<<<<<<<<<<<<
 *         """Gets the set of the specified type.
 * 
*/

/* Python wrapper */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_19sets(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_11SubsetInput_18sets, "Gets the set of the specified type.\n\n        Wraps `hb_subset_input_set()\n        <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-input-set>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_11SubsetInput_19sets = {"sets", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_19sets, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11SubsetInput_18sets};
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_19sets(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_set_type = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("sets (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_set_type,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(12, 331, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(12, 331, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "sets", 0) < (0)) __PYX_ERR(12, 331, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("sets", 1, 1, 1, i); __PYX_ERR(12, 331, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(12, 331, __pyx_L3_error)
    }
    __pyx_v_set_type = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("sets", 1, 1, 1, __pyx_nargs); __PYX_ERR(12, 331, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetInput.sets", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_18sets(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *)__pyx_v_self), __pyx_v_set_type);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_18sets(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self, PyObject *__pyx_v_set_type) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  hb_subset_sets_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("sets", 0);

  /* "src/uharfbuzz/_subset.pxi":337
 *         <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-input-set>`_.
 *         """
 *         return Set.from_ptr(hb_set_reference (hb_subset_input_set(self._hb_input, set_type)))             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_1 = ((hb_subset_sets_t)__Pyx_PyLong_As_hb_subset_sets_t(__pyx_v_set_type)); if (unlikely(PyErr_Occurred())) __PYX_ERR(12, 337, __pyx_L1_error)
  __pyx_t_2 = ((PyObject *)__pyx_f_9uharfbuzz_9_harfbuzz_3Set_from_ptr(hb_set_reference(hb_subset_input_set(__pyx_v_self->_hb_input, __pyx_t_1)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 337, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_subset.pxi":331
 *         return Set.from_ptr(hb_set_reference (hb_subset_input_glyph_set(self._hb_input)))
 * 
 *     def sets(self, set_type : SubsetInputSets) -> Set:             # <<<<<<<<<<<<<<
 *         """Gets the set of the specified type.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetInput.sets", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_subset.pxi":339
 *         return Set.from_ptr(hb_set_reference (hb_subset_input_set(self._hb_input, set_type)))
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def no_subset_table_tag_set(self) -> Set:
 *         """Shortcut for ``sets(SubsetInputSets.NO_SUBSET_TABLE_TAG)``.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_23no_subset_table_tag_set_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_23no_subset_table_tag_set_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_23no_subset_table_tag_set___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_23no_subset_table_tag_set___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_subset.pxi":345
 *         :type: Set
 *         """
 *         return self.sets(SubsetInputSets.NO_SUBSET_TABLE_TAG)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_SubsetInputSets); if (unlikely(!__pyx_t_3)) __PYX_ERR(12, 345, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_NO_SUBSET_TABLE_TAG); if (unlikely(!__pyx_t_4)) __PYX_ERR(12, 345, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_4};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_sets, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 345, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_subset.pxi":339
 *         return Set.from_ptr(hb_set_reference (hb_subset_input_set(self._hb_input, set_type)))
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def no_subset_table_tag_set(self) -> Set:
 *         """Shortcut for ``sets(SubsetInputSets.NO_SUBSET_TABLE_TAG)``.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetInput.no_subset_table_tag_set.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_subset.pxi":347
 *         return self.sets(SubsetInputSets.NO_SUBSET_TABLE_TAG)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def drop_table_tag_set(self) -> Set:
 *         """Shortcut for ``sets(SubsetInputSets.DROP_TABLE_TAG)``.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_18drop_table_tag_set_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_18drop_table_tag_set_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_18drop_table_tag_set___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_18drop_table_tag_set___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_subset.pxi":353
 *         :type: Set
 *         """
 *         return self.sets(SubsetInputSets.DROP_TABLE_TAG)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_SubsetInputSets); if (unlikely(!__pyx_t_3)) __PYX_ERR(12, 353, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_DROP_TABLE_TAG); if (unlikely(!__pyx_t_4)) __PYX_ERR(12, 353, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_4};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_sets, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 353, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_subset.pxi":347
 *         return self.sets(SubsetInputSets.NO_SUBSET_TABLE_TAG)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def drop_table_tag_set(self) -> Set:
 *         """Shortcut for ``sets(SubsetInputSets.DROP_TABLE_TAG)``.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetInput.drop_table_tag_set.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_subset.pxi":355
 *         return self.sets(SubsetInputSets.DROP_TABLE_TAG)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def name_id_set(self) -> Set[int]:
 *         """Shortcut for ``sets(SubsetInputSets.NAME_ID)``.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_11name_id_set_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_11name_id_set_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_11name_id_set___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_11name_id_set___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_subset.pxi":361
 *         :type: Set
 *         """
 *         return self.sets(SubsetInputSets.NAME_ID)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_SubsetInputSets); if (unlikely(!__pyx_t_3)) __PYX_ERR(12, 361, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_NAME_ID); if (unlikely(!__pyx_t_4)) __PYX_ERR(12, 361, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_4};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_sets, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 361, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_subset.pxi":355
 *         return self.sets(SubsetInputSets.DROP_TABLE_TAG)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def name_id_set(self) -> Set[int]:
 *         """Shortcut for ``sets(SubsetInputSets.NAME_ID)``.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetInput.name_id_set.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_subset.pxi":363
 *         return self.sets(SubsetInputSets.NAME_ID)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def name_lang_id_set(self) -> Set[int]:
 *         """Shortcut for ``sets(SubsetInputSets.NAME_LANG_ID)``.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_16name_lang_id_set_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_16name_lang_id_set_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_16name_lang_id_set___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_16name_lang_id_set___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_subset.pxi":369
 *         :type: Set
 *         """
 *         return self.sets(SubsetInputSets.NAME_LANG_ID)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_SubsetInputSets); if (unlikely(!__pyx_t_3)) __PYX_ERR(12, 369, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_NAME_LANG_ID); if (unlikely(!__pyx_t_4)) __PYX_ERR(12, 369, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_4};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_sets, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 369, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_subset.pxi":363
 *         return self.sets(SubsetInputSets.NAME_ID)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def name_lang_id_set(self) -> Set[int]:
 *         """Shortcut for ``sets(SubsetInputSets.NAME_LANG_ID)``.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetInput.name_lang_id_set.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_subset.pxi":371
 *         return self.sets(SubsetInputSets.NAME_LANG_ID)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def layout_feature_tag_set(self) -> Set:
 *         """Shortcut for ``sets(SubsetInputSets.LAYOUT_FEATURE_TAG)``.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_22layout_feature_tag_set_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_22layout_feature_tag_set_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_22layout_feature_tag_set___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_22layout_feature_tag_set___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_subset.pxi":377
 *         :type: Set
 *         """
 *         return self.sets(SubsetInputSets.LAYOUT_FEATURE_TAG)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_SubsetInputSets); if (unlikely(!__pyx_t_3)) __PYX_ERR(12, 377, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_LAYOUT_FEATURE_TAG); if (unlikely(!__pyx_t_4)) __PYX_ERR(12, 377, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_4};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_sets, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 377, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_subset.pxi":371
 *         return self.sets(SubsetInputSets.NAME_LANG_ID)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def layout_feature_tag_set(self) -> Set:
 *         """Shortcut for ``sets(SubsetInputSets.LAYOUT_FEATURE_TAG)``.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetInput.layout_feature_tag_set.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_subset.pxi":379
 *         return self.sets(SubsetInputSets.LAYOUT_FEATURE_TAG)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def layout_script_tag_set(self) -> Set:
 *         """Shortcut for ``sets(SubsetInputSets.LAYOUT_SCRIPT_TAG)``.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_21layout_script_tag_set_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_21layout_script_tag_set_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_21layout_script_tag_set___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_21layout_script_tag_set___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_subset.pxi":385
 *         :type: Set
 *         """
 *         return self.sets(SubsetInputSets.LAYOUT_SCRIPT_TAG)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_SubsetInputSets); if (unlikely(!__pyx_t_3)) __PYX_ERR(12, 385, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_LAYOUT_SCRIPT_TAG); if (unlikely(!__pyx_t_4)) __PYX_ERR(12, 385, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_4};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_sets, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 385, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_subset.pxi":379
 *         return self.sets(SubsetInputSets.LAYOUT_FEATURE_TAG)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def layout_script_tag_set(self) -> Set:
 *         """Shortcut for ``sets(SubsetInputSets.LAYOUT_SCRIPT_TAG)``.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetInput.layout_script_tag_set.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_subset.pxi":387
 *         return self.sets(SubsetInputSets.LAYOUT_SCRIPT_TAG)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self) -> SubsetFlags:
 *         """All of the subsetting flags in the input object.
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_5flags_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_5flags___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_5flags___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self) {
  unsigned int __pyx_v_subset_flags;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_subset.pxi":398
 *         <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-input-set-flags>`_.
 *         """
 *         cdef unsigned subset_flags = hb_subset_input_get_flags(self._hb_input)             # <<<<<<<<<<<<<<
 *         return SubsetFlags(subset_flags)
 * 
*/
  __pyx_v_subset_flags = hb_subset_input_get_flags(__pyx_v_self->_hb_input);

  /* "src/uharfbuzz/_subset.pxi":399
 *         """
 *         cdef unsigned subset_flags = hb_subset_input_get_flags(self._hb_input)
 *         return SubsetFlags(subset_flags)             # <<<<<<<<<<<<<<
 * 
 *     @flags.setter
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_SubsetFlags); if (unlikely(!__pyx_t_3)) __PYX_ERR(12, 399, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_unsigned_int(__pyx_v_subset_flags); if (unlikely(!__pyx_t_4)) __PYX_ERR(12, 399, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_4};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 399, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_subset.pxi":387
 *         return self.sets(SubsetInputSets.LAYOUT_SCRIPT_TAG)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self) -> SubsetFlags:
 *         """All of the subsetting flags in the input object.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetInput.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_subset.pxi":401
 *         return SubsetFlags(subset_flags)
 * 
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, flags: SubsetFlags):
 *         hb_subset_input_set_flags(self._hb_input, int(flags))
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_flags); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_flags) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_5flags_2__set__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *)__pyx_v_self), ((PyObject *)__pyx_v_flags));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_5flags_2__set__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self, PyObject *__pyx_v_flags) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  unsigned int __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "src/uharfbuzz/_subset.pxi":403
 *     @flags.setter
 *     def flags(self, flags: SubsetFlags):
 *         hb_subset_input_set_flags(self._hb_input, int(flags))             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_v_flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 403, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_As_unsigned_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(12, 403, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  hb_subset_input_set_flags(__pyx_v_self->_hb_input, __pyx_t_2);

  /* "src/uharfbuzz/_subset.pxi":401
 *         return SubsetFlags(subset_flags)
 * 
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, flags: SubsetFlags):
 *         hb_subset_input_set_flags(self._hb_input, int(flags))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetInput.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_21__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_11SubsetInput_21__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_21__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_21__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_20__reduce_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_20__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetInput.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_23__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_11SubsetInput_23__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_23__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_23__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 3, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < (0)) __PYX_ERR(4, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(4, 3, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(4, 3, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetInput.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_22__setstate_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_11SubsetInput_22__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetInput.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_subset.pxi":421
 *     cdef hb_subset_plan_t* _hb_plan
 * 
 *     def __cinit__(self, face: Face, input: SubsetInput):             # <<<<<<<<<<<<<<
 *         self._hb_plan = hb_subset_plan_create_or_fail(face._hb_face, input._hb_input)
 *         if self._hb_plan is NULL:
*/

/* Python wrapper */
static int __pyx_pw_9uharfbuzz_9_harfbuzz_10SubsetPlan_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_9uharfbuzz_9_harfbuzz_10SubsetPlan_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_input = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,&__pyx_mstate_global->__pyx_n_u_input,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(12, 421, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(12, 421, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(12, 421, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__cinit__", 0) < (0)) __PYX_ERR(12, 421, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, i); __PYX_ERR(12, 421, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(12, 421, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(12, 421, __pyx_L3_error)
    }
    __pyx_v_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)values[0]);
    __pyx_v_input = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, __pyx_nargs); __PYX_ERR(12, 421, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetPlan.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, 0, "face", 0))) __PYX_ERR(12, 421, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_input), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetInput, 0, "input", 0))) __PYX_ERR(12, 421, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10SubsetPlan___cinit__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetPlan *)__pyx_v_self), __pyx_v_face, __pyx_v_input);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_9uharfbuzz_9_harfbuzz_10SubsetPlan___cinit__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetPlan *__pyx_v_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput *__pyx_v_input) {
  int __pyx_r;
  int __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "src/uharfbuzz/_subset.pxi":422
 * 
 *     def __cinit__(self, face: Face, input: SubsetInput):
 *         self._hb_plan = hb_subset_plan_create_or_fail(face._hb_face, input._hb_input)             # <<<<<<<<<<<<<<
 *         if self._hb_plan is NULL:
 *             raise MemoryError()
*/
  __pyx_v_self->_hb_plan = hb_subset_plan_create_or_fail(__pyx_v_face->_hb_face, __pyx_v_input->_hb_input);

  /* "src/uharfbuzz/_subset.pxi":423
 *     def __cinit__(self, face: Face, input: SubsetInput):
 *         self._hb_plan = hb_subset_plan_create_or_fail(face._hb_face, input._hb_input)
 *         if self._hb_plan is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  __pyx_t_1 = (__pyx_v_self->_hb_plan == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "src/uharfbuzz/_subset.pxi":424
 *         self._hb_plan = hb_subset_plan_create_or_fail(face._hb_face, input._hb_input)
 *         if self._hb_plan is NULL:
 *             raise MemoryError()             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
    PyErr_NoMemory(); __PYX_ERR(12, 424, __pyx_L1_error)

    /* "src/uharfbuzz/_subset.pxi":423
 *     def __cinit__(self, face: Face, input: SubsetInput):
 *         self._hb_plan = hb_subset_plan_create_or_fail(face._hb_face, input._hb_input)
 *         if self._hb_plan is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 * 
*/
  }

  /* "src/uharfbuzz/_subset.pxi":421
 *     cdef hb_subset_plan_t* _hb_plan
 * 
 *     def __cinit__(self, face: Face, input: SubsetInput):             # <<<<<<<<<<<<<<
 *         self._hb_plan = hb_subset_plan_create_or_fail(face._hb_face, input._hb_input)
 *         if self._hb_plan is NULL:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetPlan.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "src/uharfbuzz/_subset.pxi":426
 *             raise MemoryError()
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._hb_plan is not NULL:
 *             hb_subset_plan_destroy(self._hb_plan)
*/

/* Python wrapper */
static void __pyx_pw_9uharfbuzz_9_harfbuzz_10SubsetPlan_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_9uharfbuzz_9_harfbuzz_10SubsetPlan_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_9uharfbuzz_9_harfbuzz_10SubsetPlan_2__dealloc__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetPlan *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_9uharfbuzz_9_harfbuzz_10SubsetPlan_2__dealloc__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetPlan *__pyx_v_self) {
  int __pyx_t_1;

  /* "src/uharfbuzz/_subset.pxi":427
 * 
 *     def __dealloc__(self):
 *         if self._hb_plan is not NULL:             # <<<<<<<<<<<<<<
 *             hb_subset_plan_destroy(self._hb_plan)
 * 
*/
  __pyx_t_1 = (__pyx_v_self->_hb_plan != NULL);
  if (__pyx_t_1) {

    /* "src/uharfbuzz/_subset.pxi":428
 *     def __dealloc__(self):
 *         if self._hb_plan is not NULL:
 *             hb_subset_plan_destroy(self._hb_plan)             # <<<<<<<<<<<<<<
 * 
 *     def execute(self) -> Face:
*/
    hb_subset_plan_destroy(__pyx_v_self->_hb_plan);

    /* "src/uharfbuzz/_subset.pxi":427
 * 
 *     def __dealloc__(self):
 *         if self._hb_plan is not NULL:             # <<<<<<<<<<<<<<
 *             hb_subset_plan_destroy(self._hb_plan)
 * 
*/
  }

  /* "src/uharfbuzz/_subset.pxi":426
 *             raise MemoryError()
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._hb_plan is not NULL:
 *             hb_subset_plan_destroy(self._hb_plan)
*/

  /* function exit code */
}

/* "src/uharfbuzz/_subset.pxi":430
 *             hb_subset_plan_destroy(self._hb_plan)
 * 
 *     def execute(self) -> Face:             # <<<<<<<<<<<<<<
 *         """Executes this subsetting plan.
 * 
*/

/* Python wrapper */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_pw_9uharfbuzz_9_harfbuzz_10SubsetPlan_5execute(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_10SubsetPlan_4execute, "Executes this subsetting plan.\n\n        :returns: A new :class:`Face` containing the generated font subset.\n\n        :raises RuntimeError: If the subsetting operation fails.\n\n        Wraps `hb_subset_plan_execute_or_fail()\n        <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-plan-execute-or-fail>`_.\n        ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_10SubsetPlan_5execute = {"execute", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10SubsetPlan_5execute, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10SubsetPlan_4execute};
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_pw_9uharfbuzz_9_harfbuzz_10SubsetPlan_5execute(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("execute (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("execute", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("execute", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10SubsetPlan_4execute(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetPlan *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_pf_9uharfbuzz_9_harfbuzz_10SubsetPlan_4execute(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetPlan *__pyx_v_self) {
  hb_face_t *__pyx_v_new_face;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("execute", 0);

  /* "src/uharfbuzz/_subset.pxi":440
 *         <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-plan-execute-or-fail>`_.
 *         """
 *         new_face = hb_subset_plan_execute_or_fail(self._hb_plan)             # <<<<<<<<<<<<<<
 *         if new_face == NULL:
 *             raise RuntimeError("Subsetting failed")
*/
  __pyx_v_new_face = hb_subset_plan_execute_or_fail(__pyx_v_self->_hb_plan);

  /* "src/uharfbuzz/_subset.pxi":441
 *         """
 *         new_face = hb_subset_plan_execute_or_fail(self._hb_plan)
 *         if new_face == NULL:             # <<<<<<<<<<<<<<
 *             raise RuntimeError("Subsetting failed")
 *         return Face.from_ptr(new_face)
*/
  __pyx_t_1 = (__pyx_v_new_face == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "src/uharfbuzz/_subset.pxi":442
 *         new_face = hb_subset_plan_execute_or_fail(self._hb_plan)
 *         if new_face == NULL:
 *             raise RuntimeError("Subsetting failed")             # <<<<<<<<<<<<<<
 *         return Face.from_ptr(new_face)
 * 
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Subsetting_failed};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 442, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(12, 442, __pyx_L1_error)

    /* "src/uharfbuzz/_subset.pxi":441
 *         """
 *         new_face = hb_subset_plan_execute_or_fail(self._hb_plan)
 *         if new_face == NULL:             # <<<<<<<<<<<<<<
 *             raise RuntimeError("Subsetting failed")
 *         return Face.from_ptr(new_face)
*/
  }

  /* "src/uharfbuzz/_subset.pxi":443
 *         if new_face == NULL:
 *             raise RuntimeError("Subsetting failed")
 *         return Face.from_ptr(new_face)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_f_9uharfbuzz_9_harfbuzz_4Face_from_ptr(__pyx_v_new_face)); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 443, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_subset.pxi":430
 *             hb_subset_plan_destroy(self._hb_plan)
 * 
 *     def execute(self) -> Face:             # <<<<<<<<<<<<<<
 *         """Executes this subsetting plan.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetPlan.execute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_subset.pxi":445
 *         return Face.from_ptr(new_face)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def old_to_new_glyph_mapping(self) -> Map:
 *         """The mapping between glyphs in the original font to glyphs in the
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10SubsetPlan_24old_to_new_glyph_mapping_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10SubsetPlan_24old_to_new_glyph_mapping_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10SubsetPlan_24old_to_new_glyph_mapping___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetPlan *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10SubsetPlan_24old_to_new_glyph_mapping___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetPlan *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_subset.pxi":455
 *         <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-plan-old-to-new-glyph-mapping>`_.
 *         """
 *         return Map.from_ptr(hb_map_reference (<hb_map_t*>hb_subset_plan_old_to_new_glyph_mapping(self._hb_plan)))             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_9uharfbuzz_9_harfbuzz_3Map_from_ptr(hb_map_reference(((hb_map_t *)hb_subset_plan_old_to_new_glyph_mapping(__pyx_v_self->_hb_plan))))); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 455, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_subset.pxi":445
 *         return Face.from_ptr(new_face)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def old_to_new_glyph_mapping(self) -> Map:
 *         """The mapping between glyphs in the original font to glyphs in the
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetPlan.old_to_new_glyph_mapping.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_subset.pxi":457
 *         return Map.from_ptr(hb_map_reference (<hb_map_t*>hb_subset_plan_old_to_new_glyph_mapping(self._hb_plan)))
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def new_to_old_glyph_mapping(self) -> Map:
 *         """The mapping between glyphs in the subset that will be produced by
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10SubsetPlan_24new_to_old_glyph_mapping_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10SubsetPlan_24new_to_old_glyph_mapping_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10SubsetPlan_24new_to_old_glyph_mapping___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetPlan *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10SubsetPlan_24new_to_old_glyph_mapping___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetPlan *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_subset.pxi":467
 *         <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-plan-new-to-old-glyph-mapping>`_.
 *         """
 *         return Map.from_ptr(hb_map_reference (<hb_map_t*>hb_subset_plan_new_to_old_glyph_mapping(self._hb_plan)))             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_9uharfbuzz_9_harfbuzz_3Map_from_ptr(hb_map_reference(((hb_map_t *)hb_subset_plan_new_to_old_glyph_mapping(__pyx_v_self->_hb_plan))))); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 467, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_subset.pxi":457
 *         return Map.from_ptr(hb_map_reference (<hb_map_t*>hb_subset_plan_old_to_new_glyph_mapping(self._hb_plan)))
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def new_to_old_glyph_mapping(self) -> Map:
 *         """The mapping between glyphs in the subset that will be produced by
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetPlan.new_to_old_glyph_mapping.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/uharfbuzz/_subset.pxi":469
 *         return Map.from_ptr(hb_map_reference (<hb_map_t*>hb_subset_plan_new_to_old_glyph_mapping(self._hb_plan)))
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def unicode_to_old_glyph_mapping(self) -> Map:
 *         """The mapping between codepoints in the original font and the
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10SubsetPlan_28unicode_to_old_glyph_mapping_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10SubsetPlan_28unicode_to_old_glyph_mapping_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10SubsetPlan_28unicode_to_old_glyph_mapping___get__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetPlan *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10SubsetPlan_28unicode_to_old_glyph_mapping___get__(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetPlan *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/uharfbuzz/_subset.pxi":479
 *         <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-plan-unicode-to-old-glyph-mapping>`_.
 *         """
 *         return Map.from_ptr(hb_map_reference (<hb_map_t*>hb_subset_plan_unicode_to_old_glyph_mapping(self._hb_plan)))             # <<<<<<<<<<<<<<
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_9uharfbuzz_9_harfbuzz_3Map_from_ptr(hb_map_reference(((hb_map_t *)hb_subset_plan_unicode_to_old_glyph_mapping(__pyx_v_self->_hb_plan))))); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 479, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/uharfbuzz/_subset.pxi":469
 *         return Map.from_ptr(hb_map_reference (<hb_map_t*>hb_subset_plan_new_to_old_glyph_mapping(self._hb_plan)))
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def unicode_to_old_glyph_mapping(self) -> Map:
 *         """The mapping between codepoints in the original font and the
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetPlan.unicode_to_old_glyph_mapping.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10SubsetPlan_7__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_10SubsetPlan_7__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10SubsetPlan_7__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10SubsetPlan_7__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10SubsetPlan_6__reduce_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetPlan *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10SubsetPlan_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetPlan *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetPlan.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10SubsetPlan_9__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_10SubsetPlan_9__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10SubsetPlan_9__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_10SubsetPlan_9__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 3, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < (0)) __PYX_ERR(4, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(4, 3, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(4, 3, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetPlan.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_10SubsetPlan_8__setstate_cython__(((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetPlan *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_10SubsetPlan_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetPlan *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(4, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.SubsetPlan.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":96
 * include "_generated_docs.pxi"
 * 
 * def shape(font: Font, buffer: Buffer,             # <<<<<<<<<<<<<<
 *         features: Dict[str,Union[int,bool,Sequence[Tuple[int,int,Union[int,bool]]]]] | None = None,
 *         shapers: List[str] | None = None):
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_17shape(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_16shape, "Shapes ``buffer`` using ``font`` turning its Unicode characters content\n    to positioned glyphs. If ``features`` is not ``None``, it will be used to\n    control the features applied during shaping. If two features have the\n    same tag but overlapping ranges the value of the feature with the higher\n    index takes precedence.\n\n    If ``shapers`` is not ``None``, the specified shapers will be used in the\n    given order, otherwise the default shapers list will be used.\n\n    :param font: A :class:`Font` to use for shaping.\n    :param buffer: A :class:`Buffer` to shape.\n    :param features: A mapping whose keys are feature tags (or feature\n        strings as accepted by ``hb_feature_from_string`` when the value is\n        an ``int``/``bool``), and whose values are either an ``int``/``bool``\n        applied globally, or a sequence of ``(start, end, value)`` triples\n        applying the feature to a specific cluster range.\n    :param shapers: Ordered list of shaper names to try, or ``None`` for the\n        default list.\n\n    :raises RuntimeError: If all shapers failed (only when ``shapers`` is\n        provided).\n    :raises MemoryError: If memory allocation fails.\n\n    Wraps `hb_shape()\n    <https://harfbuzz.github.io/harfbuzz-hb-shape.html#hb-shape>`_\n    or `hb_shape_full()\n    <https://harfbuzz.github.io/harfbuzz-hb-shape.html#hb-shape-full>`_\n    when ``shapers`` is given.\n    ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_17shape = {"shape", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_17shape, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_16shape};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_17shape(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_buffer = 0;
  PyObject *__pyx_v_features = 0;
  PyObject *__pyx_v_shapers = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("shape (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_font,&__pyx_mstate_global->__pyx_n_u_buffer,&__pyx_mstate_global->__pyx_n_u_features,&__pyx_mstate_global->__pyx_n_u_shapers,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 96, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 96, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 96, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 96, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 96, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "shape", 0) < (0)) __PYX_ERR(0, 96, __pyx_L3_error)

      /* "uharfbuzz/_harfbuzz.pyx":97
 * 
 * def shape(font: Font, buffer: Buffer,
 *         features: Dict[str,Union[int,bool,Sequence[Tuple[int,int,Union[int,bool]]]]] | None = None,             # <<<<<<<<<<<<<<
 *         shapers: List[str] | None = None):
 *     """Shapes ``buffer`` using ``font`` turning its Unicode characters content
*/
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject*)Py_None));

      /* "uharfbuzz/_harfbuzz.pyx":98
 * def shape(font: Font, buffer: Buffer,
 *         features: Dict[str,Union[int,bool,Sequence[Tuple[int,int,Union[int,bool]]]]] | None = None,
 *         shapers: List[str] | None = None):             # <<<<<<<<<<<<<<
 *     """Shapes ``buffer`` using ``font`` turning its Unicode characters content
 *     to positioned glyphs. If ``features`` is not ``None``, it will be used to
*/
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject*)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("shape", 0, 2, 4, i); __PYX_ERR(0, 96, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 96, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 96, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 96, __pyx_L3_error)
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 96, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }

      /* "uharfbuzz/_harfbuzz.pyx":97
 * 
 * def shape(font: Font, buffer: Buffer,
 *         features: Dict[str,Union[int,bool,Sequence[Tuple[int,int,Union[int,bool]]]]] | None = None,             # <<<<<<<<<<<<<<
 *         shapers: List[str] | None = None):
 *     """Shapes ``buffer`` using ``font`` turning its Unicode characters content
*/
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject*)Py_None));

      /* "uharfbuzz/_harfbuzz.pyx":98
 * def shape(font: Font, buffer: Buffer,
 *         features: Dict[str,Union[int,bool,Sequence[Tuple[int,int,Union[int,bool]]]]] | None = None,
 *         shapers: List[str] | None = None):             # <<<<<<<<<<<<<<
 *     """Shapes ``buffer`` using ``font`` turning its Unicode characters content
 *     to positioned glyphs. If ``features`` is not ``None``, it will be used to
*/
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject*)Py_None));
    }
    __pyx_v_font = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)values[0]);
    __pyx_v_buffer = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)values[1]);
    __pyx_v_features = ((PyObject*)values[2]);
    __pyx_v_shapers = ((PyObject*)values[3]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("shape", 0, 2, 4, __pyx_nargs); __PYX_ERR(0, 96, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.shape", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_font), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, 0, "font", 0))) __PYX_ERR(0, 96, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_buffer), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Buffer, 0, "buffer", 0))) __PYX_ERR(0, 96, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_features), (&PyDict_Type), 1, "features", 2))) __PYX_ERR(0, 97, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_shapers), (&PyList_Type), 1, "shapers", 2))) __PYX_ERR(0, 98, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_16shape(__pyx_self, __pyx_v_font, __pyx_v_buffer, __pyx_v_features, __pyx_v_shapers);

  /* "uharfbuzz/_harfbuzz.pyx":96
 * include "_generated_docs.pxi"
 * 
 * def shape(font: Font, buffer: Buffer,             # <<<<<<<<<<<<<<
 *         features: Dict[str,Union[int,bool,Sequence[Tuple[int,int,Union[int,bool]]]]] | None = None,
 *         shapers: List[str] | None = None):
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_16shape(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *__pyx_v_buffer, PyObject *__pyx_v_features, PyObject *__pyx_v_shapers) {
  unsigned int __pyx_v_size;
  hb_feature_t *__pyx_v_hb_features;
  PyObject *__pyx_v_packed = 0;
  hb_feature_t __pyx_v_feat;
  char const *__pyx_v_c_shapers[10];
  PyObject *__pyx_v_value = NULL;
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_name = NULL;
  PyObject *__pyx_v_start = NULL;
  PyObject *__pyx_v_end = NULL;
  PyObject *__pyx_v_shaper = NULL;
  hb_bool_t __pyx_v_ret;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  size_t __pyx_t_10;
  char const *__pyx_t_11;
  unsigned long __pyx_t_12;
  char const *__pyx_t_13;
  PyObject *(*__pyx_t_14)(PyObject *);
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  PyObject *__pyx_t_18 = NULL;
  PyObject *(*__pyx_t_19)(PyObject *);
  unsigned int __pyx_t_20;
  Py_ssize_t __pyx_t_21;
  char const *__pyx_t_22;
  char const *__pyx_t_23;
  PyObject *__pyx_t_24 = NULL;
  PyObject *__pyx_t_25 = NULL;
  PyObject *__pyx_t_26 = NULL;
  PyObject *__pyx_t_27 = NULL;
  PyObject *__pyx_t_28 = NULL;
  PyObject *__pyx_t_29 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("shape", 0);

  /* "uharfbuzz/_harfbuzz.pyx":133
 *     cdef hb_feature_t feat
 *     cdef const char* c_shapers[10]
 *     size = 0             # <<<<<<<<<<<<<<
 *     hb_features = NULL
 *     try:
*/
  __pyx_v_size = 0;

  /* "uharfbuzz/_harfbuzz.pyx":134
 *     cdef const char* c_shapers[10]
 *     size = 0
 *     hb_features = NULL             # <<<<<<<<<<<<<<
 *     try:
 *         if features:
*/
  __pyx_v_hb_features = NULL;

  /* "uharfbuzz/_harfbuzz.pyx":135
 *     size = 0
 *     hb_features = NULL
 *     try:             # <<<<<<<<<<<<<<
 *         if features:
 *             for value in features.values():
*/
  /*try:*/ {

    /* "uharfbuzz/_harfbuzz.pyx":136
 *     hb_features = NULL
 *     try:
 *         if features:             # <<<<<<<<<<<<<<
 *             for value in features.values():
 *                 if isinstance(value, int):
*/
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_features); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 136, __pyx_L4_error)
    if (__pyx_t_1) {

      /* "uharfbuzz/_harfbuzz.pyx":137
 *     try:
 *         if features:
 *             for value in features.values():             # <<<<<<<<<<<<<<
 *                 if isinstance(value, int):
 *                     size += 1
*/
      __pyx_t_3 = 0;
      if (unlikely(__pyx_v_features == Py_None)) {
        PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
        __PYX_ERR(0, 137, __pyx_L4_error)
      }
      __pyx_t_6 = __Pyx_dict_iterator(__pyx_v_features, 1, __pyx_mstate_global->__pyx_n_u_values, (&__pyx_t_4), (&__pyx_t_5)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 137, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_XDECREF(__pyx_t_2);
      __pyx_t_2 = __pyx_t_6;
      __pyx_t_6 = 0;
      while (1) {
        __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_2, __pyx_t_4, &__pyx_t_3, NULL, &__pyx_t_6, NULL, __pyx_t_5);
        if (unlikely(__pyx_t_7 == 0)) break;
        if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 137, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_6);
        __pyx_t_6 = 0;

        /* "uharfbuzz/_harfbuzz.pyx":138
 *         if features:
 *             for value in features.values():
 *                 if isinstance(value, int):             # <<<<<<<<<<<<<<
 *                     size += 1
 *                 else:
*/
        __pyx_t_1 = PyLong_Check(__pyx_v_value); 
        if (__pyx_t_1) {

          /* "uharfbuzz/_harfbuzz.pyx":139
 *             for value in features.values():
 *                 if isinstance(value, int):
 *                     size += 1             # <<<<<<<<<<<<<<
 *                 else:
 *                     size += len(value)
*/
          __pyx_v_size = (__pyx_v_size + 1);

          /* "uharfbuzz/_harfbuzz.pyx":138
 *         if features:
 *             for value in features.values():
 *                 if isinstance(value, int):             # <<<<<<<<<<<<<<
 *                     size += 1
 *                 else:
*/
          goto __pyx_L9;
        }

        /* "uharfbuzz/_harfbuzz.pyx":141
 *                     size += 1
 *                 else:
 *                     size += len(value)             # <<<<<<<<<<<<<<
 *             hb_features = <hb_feature_t*>malloc(size * sizeof(hb_feature_t))
 *             i = 0
*/
        /*else*/ {
          __pyx_t_8 = PyObject_Length(__pyx_v_value); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(0, 141, __pyx_L4_error)
          __pyx_v_size = (__pyx_v_size + __pyx_t_8);
        }
        __pyx_L9:;
      }
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "uharfbuzz/_harfbuzz.pyx":142
 *                 else:
 *                     size += len(value)
 *             hb_features = <hb_feature_t*>malloc(size * sizeof(hb_feature_t))             # <<<<<<<<<<<<<<
 *             i = 0
 *             for name, value in features.items():
*/
      __pyx_v_hb_features = ((hb_feature_t *)malloc((__pyx_v_size * (sizeof(hb_feature_t)))));

      /* "uharfbuzz/_harfbuzz.pyx":143
 *                     size += len(value)
 *             hb_features = <hb_feature_t*>malloc(size * sizeof(hb_feature_t))
 *             i = 0             # <<<<<<<<<<<<<<
 *             for name, value in features.items():
 *                 assert i < size, "index out of range for feature array capacity"
*/
      __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
      __pyx_v_i = __pyx_mstate_global->__pyx_int_0;

      /* "uharfbuzz/_harfbuzz.pyx":144
 *             hb_features = <hb_feature_t*>malloc(size * sizeof(hb_feature_t))
 *             i = 0
 *             for name, value in features.items():             # <<<<<<<<<<<<<<
 *                 assert i < size, "index out of range for feature array capacity"
 *                 packed = name.encode()
*/
      __pyx_t_4 = 0;
      if (unlikely(__pyx_v_features == Py_None)) {
        PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
        __PYX_ERR(0, 144, __pyx_L4_error)
      }
      __pyx_t_6 = __Pyx_dict_iterator(__pyx_v_features, 1, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_5)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 144, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_XDECREF(__pyx_t_2);
      __pyx_t_2 = __pyx_t_6;
      __pyx_t_6 = 0;
      while (1) {
        __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_2, __pyx_t_3, &__pyx_t_4, &__pyx_t_6, &__pyx_t_9, NULL, __pyx_t_5);
        if (unlikely(__pyx_t_7 == 0)) break;
        if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 144, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_6);
        __pyx_t_6 = 0;
        __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_9);
        __pyx_t_9 = 0;

        /* "uharfbuzz/_harfbuzz.pyx":145
 *             i = 0
 *             for name, value in features.items():
 *                 assert i < size, "index out of range for feature array capacity"             # <<<<<<<<<<<<<<
 *                 packed = name.encode()
 *                 if isinstance(value, int):
*/
        #ifndef CYTHON_WITHOUT_ASSERTIONS
        if (unlikely(__pyx_assertions_enabled())) {
          __pyx_t_9 = __Pyx_PyLong_From_unsigned_int(__pyx_v_size); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 145, __pyx_L4_error)
          __Pyx_GOTREF(__pyx_t_9);
          __pyx_t_6 = PyObject_RichCompare(__pyx_v_i, __pyx_t_9, Py_LT); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 145, __pyx_L4_error)
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 145, __pyx_L4_error)
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          if (unlikely(!__pyx_t_1)) {
            __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_AssertionError))), __pyx_mstate_global->__pyx_kp_u_index_out_of_range_for_feature_a, 0, 0);
            __PYX_ERR(0, 145, __pyx_L4_error)
          }
        }
        #else
        if ((1)); else __PYX_ERR(0, 145, __pyx_L4_error)
        #endif

        /* "uharfbuzz/_harfbuzz.pyx":146
 *             for name, value in features.items():
 *                 assert i < size, "index out of range for feature array capacity"
 *                 packed = name.encode()             # <<<<<<<<<<<<<<
 *                 if isinstance(value, int):
 *                     hb_feature_from_string(packed, len(packed), &feat)
*/
        __pyx_t_9 = __pyx_v_name;
        __Pyx_INCREF(__pyx_t_9);
        __pyx_t_10 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_9, NULL};
          __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_encode, __pyx_callargs+__pyx_t_10, (1-__pyx_t_10) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
          if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 146, __pyx_L4_error)
          __Pyx_GOTREF(__pyx_t_6);
        }
        if (!(likely(PyBytes_CheckExact(__pyx_t_6))||((__pyx_t_6) == Py_None) || __Pyx_RaiseUnexpectedTypeError("bytes", __pyx_t_6))) __PYX_ERR(0, 146, __pyx_L4_error)
        __Pyx_XDECREF_SET(__pyx_v_packed, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "uharfbuzz/_harfbuzz.pyx":147
 *                 assert i < size, "index out of range for feature array capacity"
 *                 packed = name.encode()
 *                 if isinstance(value, int):             # <<<<<<<<<<<<<<
 *                     hb_feature_from_string(packed, len(packed), &feat)
 *                     feat.value = value
*/
        __pyx_t_1 = PyLong_Check(__pyx_v_value); 
        if (__pyx_t_1) {

          /* "uharfbuzz/_harfbuzz.pyx":148
 *                 packed = name.encode()
 *                 if isinstance(value, int):
 *                     hb_feature_from_string(packed, len(packed), &feat)             # <<<<<<<<<<<<<<
 *                     feat.value = value
 *                     hb_features[i] = feat
*/
          if (unlikely(__pyx_v_packed == Py_None)) {
            PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
            __PYX_ERR(0, 148, __pyx_L4_error)
          }
          __pyx_t_11 = __Pyx_PyBytes_AsString(__pyx_v_packed); if (unlikely((!__pyx_t_11) && PyErr_Occurred())) __PYX_ERR(0, 148, __pyx_L4_error)
          if (unlikely(__pyx_v_packed == Py_None)) {
            PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
            __PYX_ERR(0, 148, __pyx_L4_error)
          }
          __pyx_t_8 = __Pyx_PyBytes_GET_SIZE(__pyx_v_packed); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(0, 148, __pyx_L4_error)
          (void)(hb_feature_from_string(__pyx_t_11, __pyx_t_8, (&__pyx_v_feat)));

          /* "uharfbuzz/_harfbuzz.pyx":149
 *                 if isinstance(value, int):
 *                     hb_feature_from_string(packed, len(packed), &feat)
 *                     feat.value = value             # <<<<<<<<<<<<<<
 *                     hb_features[i] = feat
 *                     i += 1
*/
          __pyx_t_12 = __Pyx_PyLong_As_unsigned_long(__pyx_v_value); if (unlikely((__pyx_t_12 == (unsigned long)-1) && PyErr_Occurred())) __PYX_ERR(0, 149, __pyx_L4_error)
          __pyx_v_feat.value = __pyx_t_12;

          /* "uharfbuzz/_harfbuzz.pyx":150
 *                     hb_feature_from_string(packed, len(packed), &feat)
 *                     feat.value = value
 *                     hb_features[i] = feat             # <<<<<<<<<<<<<<
 *                     i += 1
 *                 else:
*/
          __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 150, __pyx_L4_error)
          (__pyx_v_hb_features[__pyx_t_8]) = __pyx_v_feat;

          /* "uharfbuzz/_harfbuzz.pyx":151
 *                     feat.value = value
 *                     hb_features[i] = feat
 *                     i += 1             # <<<<<<<<<<<<<<
 *                 else:
 *                     feat.tag = hb_tag_from_string(packed, -1)
*/
          __pyx_t_6 = __Pyx_PyLong_AddObjC(__pyx_v_i, __pyx_mstate_global->__pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 151, __pyx_L4_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF_SET(__pyx_v_i, __pyx_t_6);
          __pyx_t_6 = 0;

          /* "uharfbuzz/_harfbuzz.pyx":147
 *                 assert i < size, "index out of range for feature array capacity"
 *                 packed = name.encode()
 *                 if isinstance(value, int):             # <<<<<<<<<<<<<<
 *                     hb_feature_from_string(packed, len(packed), &feat)
 *                     feat.value = value
*/
          goto __pyx_L12;
        }

        /* "uharfbuzz/_harfbuzz.pyx":153
 *                     i += 1
 *                 else:
 *                     feat.tag = hb_tag_from_string(packed, -1)             # <<<<<<<<<<<<<<
 *                     for start, end, value in value:
 *                         feat.value = value
*/
        /*else*/ {
          if (unlikely(__pyx_v_packed == Py_None)) {
            PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
            __PYX_ERR(0, 153, __pyx_L4_error)
          }
          __pyx_t_13 = __Pyx_PyBytes_AsString(__pyx_v_packed); if (unlikely((!__pyx_t_13) && PyErr_Occurred())) __PYX_ERR(0, 153, __pyx_L4_error)
          __pyx_v_feat.tag = hb_tag_from_string(__pyx_t_13, -1);

          /* "uharfbuzz/_harfbuzz.pyx":154
 *                 else:
 *                     feat.tag = hb_tag_from_string(packed, -1)
 *                     for start, end, value in value:             # <<<<<<<<<<<<<<
 *                         feat.value = value
 *                         feat.start = start
*/
          if (likely(PyList_CheckExact(__pyx_v_value)) || PyTuple_CheckExact(__pyx_v_value)) {
            __pyx_t_6 = __pyx_v_value; __Pyx_INCREF(__pyx_t_6);
            __pyx_t_8 = 0;
            __pyx_t_14 = NULL;
          } else {
            __pyx_t_8 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_v_value); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 154, __pyx_L4_error)
            __Pyx_GOTREF(__pyx_t_6);
            __pyx_t_14 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_6); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 154, __pyx_L4_error)
          }
          for (;;) {
            if (likely(!__pyx_t_14)) {
              if (likely(PyList_CheckExact(__pyx_t_6))) {
                {
                  Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_6);
                  #if !CYTHON_ASSUME_SAFE_SIZE
                  if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 154, __pyx_L4_error)
                  #endif
                  if (__pyx_t_8 >= __pyx_temp) break;
                }
                __pyx_t_9 = __Pyx_PyList_GetItemRefFast(__pyx_t_6, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
                ++__pyx_t_8;
              } else {
                {
                  Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_6);
                  #if !CYTHON_ASSUME_SAFE_SIZE
                  if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 154, __pyx_L4_error)
                  #endif
                  if (__pyx_t_8 >= __pyx_temp) break;
                }
                #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
                __pyx_t_9 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_8));
                #else
                __pyx_t_9 = __Pyx_PySequence_ITEM(__pyx_t_6, __pyx_t_8);
                #endif
                ++__pyx_t_8;
              }
              if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 154, __pyx_L4_error)
            } else {
              __pyx_t_9 = __pyx_t_14(__pyx_t_6);
              if (unlikely(!__pyx_t_9)) {
                PyObject* exc_type = PyErr_Occurred();
                if (exc_type) {
                  if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 154, __pyx_L4_error)
                  PyErr_Clear();
                }
                break;
              }
            }
            __Pyx_GOTREF(__pyx_t_9);
            if ((likely(PyTuple_CheckExact(__pyx_t_9))) || (PyList_CheckExact(__pyx_t_9))) {
              PyObject* sequence = __pyx_t_9;
              Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
              if (unlikely(size != 3)) {
                if (size > 3) __Pyx_RaiseTooManyValuesError(3);
                else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
                __PYX_ERR(0, 154, __pyx_L4_error)
              }
              #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
              if (likely(PyTuple_CheckExact(sequence))) {
                __pyx_t_15 = PyTuple_GET_ITEM(sequence, 0);
                __Pyx_INCREF(__pyx_t_15);
                __pyx_t_16 = PyTuple_GET_ITEM(sequence, 1);
                __Pyx_INCREF(__pyx_t_16);
                __pyx_t_17 = PyTuple_GET_ITEM(sequence, 2);
                __Pyx_INCREF(__pyx_t_17);
              } else {
                __pyx_t_15 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
                if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 154, __pyx_L4_error)
                __Pyx_XGOTREF(__pyx_t_15);
                __pyx_t_16 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
                if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 154, __pyx_L4_error)
                __Pyx_XGOTREF(__pyx_t_16);
                __pyx_t_17 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
                if (unlikely(!__pyx_t_17)) __PYX_ERR(0, 154, __pyx_L4_error)
                __Pyx_XGOTREF(__pyx_t_17);
              }
              #else
              __pyx_t_15 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 154, __pyx_L4_error)
              __Pyx_GOTREF(__pyx_t_15);
              __pyx_t_16 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 154, __pyx_L4_error)
              __Pyx_GOTREF(__pyx_t_16);
              __pyx_t_17 = __Pyx_PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_17)) __PYX_ERR(0, 154, __pyx_L4_error)
              __Pyx_GOTREF(__pyx_t_17);
              #endif
              __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
            } else {
              Py_ssize_t index = -1;
              __pyx_t_18 = PyObject_GetIter(__pyx_t_9); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 154, __pyx_L4_error)
              __Pyx_GOTREF(__pyx_t_18);
              __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
              __pyx_t_19 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_18);
              index = 0; __pyx_t_15 = __pyx_t_19(__pyx_t_18); if (unlikely(!__pyx_t_15)) goto __pyx_L15_unpacking_failed;
              __Pyx_GOTREF(__pyx_t_15);
              index = 1; __pyx_t_16 = __pyx_t_19(__pyx_t_18); if (unlikely(!__pyx_t_16)) goto __pyx_L15_unpacking_failed;
              __Pyx_GOTREF(__pyx_t_16);
              index = 2; __pyx_t_17 = __pyx_t_19(__pyx_t_18); if (unlikely(!__pyx_t_17)) goto __pyx_L15_unpacking_failed;
              __Pyx_GOTREF(__pyx_t_17);
              if (__Pyx_IternextUnpackEndCheck(__pyx_t_19(__pyx_t_18), 3) < (0)) __PYX_ERR(0, 154, __pyx_L4_error)
              __pyx_t_19 = NULL;
              __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
              goto __pyx_L16_unpacking_done;
              __pyx_L15_unpacking_failed:;
              __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
              __pyx_t_19 = NULL;
              if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
              __PYX_ERR(0, 154, __pyx_L4_error)
              __pyx_L16_unpacking_done:;
            }
            __Pyx_XDECREF_SET(__pyx_v_start, __pyx_t_15);
            __pyx_t_15 = 0;
            __Pyx_XDECREF_SET(__pyx_v_end, __pyx_t_16);
            __pyx_t_16 = 0;
            __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_17);
            __pyx_t_17 = 0;

            /* "uharfbuzz/_harfbuzz.pyx":155
 *                     feat.tag = hb_tag_from_string(packed, -1)
 *                     for start, end, value in value:
 *                         feat.value = value             # <<<<<<<<<<<<<<
 *                         feat.start = start
 *                         feat.end = end
*/
            __pyx_t_12 = __Pyx_PyLong_As_unsigned_long(__pyx_v_value); if (unlikely((__pyx_t_12 == (unsigned long)-1) && PyErr_Occurred())) __PYX_ERR(0, 155, __pyx_L4_error)
            __pyx_v_feat.value = __pyx_t_12;

            /* "uharfbuzz/_harfbuzz.pyx":156
 *                     for start, end, value in value:
 *                         feat.value = value
 *                         feat.start = start             # <<<<<<<<<<<<<<
 *                         feat.end = end
 *                         hb_features[i] = feat
*/
            __pyx_t_20 = __Pyx_PyLong_As_unsigned_int(__pyx_v_start); if (unlikely((__pyx_t_20 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 156, __pyx_L4_error)
            __pyx_v_feat.start = __pyx_t_20;

            /* "uharfbuzz/_harfbuzz.pyx":157
 *                         feat.value = value
 *                         feat.start = start
 *                         feat.end = end             # <<<<<<<<<<<<<<
 *                         hb_features[i] = feat
 *                         i += 1
*/
            __pyx_t_20 = __Pyx_PyLong_As_unsigned_int(__pyx_v_end); if (unlikely((__pyx_t_20 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 157, __pyx_L4_error)
            __pyx_v_feat.end = __pyx_t_20;

            /* "uharfbuzz/_harfbuzz.pyx":158
 *                         feat.start = start
 *                         feat.end = end
 *                         hb_features[i] = feat             # <<<<<<<<<<<<<<
 *                         i += 1
 *         if shapers:
*/
            __pyx_t_21 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_21 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 158, __pyx_L4_error)
            (__pyx_v_hb_features[__pyx_t_21]) = __pyx_v_feat;

            /* "uharfbuzz/_harfbuzz.pyx":159
 *                         feat.end = end
 *                         hb_features[i] = feat
 *                         i += 1             # <<<<<<<<<<<<<<
 *         if shapers:
 *             for i, shaper in enumerate(shapers[:9]):
*/
            __pyx_t_9 = __Pyx_PyLong_AddObjC(__pyx_v_i, __pyx_mstate_global->__pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 159, __pyx_L4_error)
            __Pyx_GOTREF(__pyx_t_9);
            __Pyx_DECREF_SET(__pyx_v_i, __pyx_t_9);
            __pyx_t_9 = 0;

            /* "uharfbuzz/_harfbuzz.pyx":154
 *                 else:
 *                     feat.tag = hb_tag_from_string(packed, -1)
 *                     for start, end, value in value:             # <<<<<<<<<<<<<<
 *                         feat.value = value
 *                         feat.start = start
*/
          }
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        }
        __pyx_L12:;
      }
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "uharfbuzz/_harfbuzz.pyx":136
 *     hb_features = NULL
 *     try:
 *         if features:             # <<<<<<<<<<<<<<
 *             for value in features.values():
 *                 if isinstance(value, int):
*/
    }

    /* "uharfbuzz/_harfbuzz.pyx":160
 *                         hb_features[i] = feat
 *                         i += 1
 *         if shapers:             # <<<<<<<<<<<<<<
 *             for i, shaper in enumerate(shapers[:9]):
 *                 packed = shaper.encode()
*/
    if (__pyx_v_shapers == Py_None) __pyx_t_1 = 0;
    else
    {
      Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_v_shapers);
      if (unlikely(((!CYTHON_ASSUME_SAFE_SIZE) && __pyx_temp < 0))) __PYX_ERR(0, 160, __pyx_L4_error)
      __pyx_t_1 = (__pyx_temp != 0);
    }

    if (__pyx_t_1) {

      /* "uharfbuzz/_harfbuzz.pyx":161
 *                         i += 1
 *         if shapers:
 *             for i, shaper in enumerate(shapers[:9]):             # <<<<<<<<<<<<<<
 *                 packed = shaper.encode()
 *                 c_shapers[i] = packed
*/
      __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
      __pyx_t_2 = __pyx_mstate_global->__pyx_int_0;
      if (unlikely(__pyx_v_shapers == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 161, __pyx_L4_error)
      }
      __pyx_t_6 = __Pyx_PyList_GetSlice(__pyx_v_shapers, 0, 9); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 161, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_9 = __pyx_t_6; __Pyx_INCREF(__pyx_t_9);
      __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      for (;;) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_9);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 161, __pyx_L4_error)
          #endif
          if (__pyx_t_3 >= __pyx_temp) break;
        }
        __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_9, __pyx_t_3, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_3;
        if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 161, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_XDECREF_SET(__pyx_v_shaper, __pyx_t_6);
        __pyx_t_6 = 0;
        __Pyx_INCREF(__pyx_t_2);
        __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_2);
        __pyx_t_6 = __Pyx_PyLong_AddObjC(__pyx_t_2, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 161, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2);
        __pyx_t_2 = __pyx_t_6;
        __pyx_t_6 = 0;

        /* "uharfbuzz/_harfbuzz.pyx":162
 *         if shapers:
 *             for i, shaper in enumerate(shapers[:9]):
 *                 packed = shaper.encode()             # <<<<<<<<<<<<<<
 *                 c_shapers[i] = packed
 *             c_shapers[i + 1] = NULL
*/
        __pyx_t_17 = __pyx_v_shaper;
        __Pyx_INCREF(__pyx_t_17);
        __pyx_t_10 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_17, NULL};
          __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_encode, __pyx_callargs+__pyx_t_10, (1-__pyx_t_10) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0;
          if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 162, __pyx_L4_error)
          __Pyx_GOTREF(__pyx_t_6);
        }
        if (!(likely(PyBytes_CheckExact(__pyx_t_6))||((__pyx_t_6) == Py_None) || __Pyx_RaiseUnexpectedTypeError("bytes", __pyx_t_6))) __PYX_ERR(0, 162, __pyx_L4_error)
        __Pyx_XDECREF_SET(__pyx_v_packed, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "uharfbuzz/_harfbuzz.pyx":163
 *             for i, shaper in enumerate(shapers[:9]):
 *                 packed = shaper.encode()
 *                 c_shapers[i] = packed             # <<<<<<<<<<<<<<
 *             c_shapers[i + 1] = NULL
 *             ret = hb_shape_full(font._hb_font, buffer._hb_buffer, hb_features, size, c_shapers)
*/
        if (unlikely(__pyx_v_packed == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
          __PYX_ERR(0, 163, __pyx_L4_error)
        }
        __pyx_t_22 = __Pyx_PyBytes_AsString(__pyx_v_packed); if (unlikely((!__pyx_t_22) && PyErr_Occurred())) __PYX_ERR(0, 163, __pyx_L4_error)
        __pyx_t_4 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_4 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 163, __pyx_L4_error)
        (__pyx_v_c_shapers[__pyx_t_4]) = __pyx_t_22;

        /* "uharfbuzz/_harfbuzz.pyx":161
 *                         i += 1
 *         if shapers:
 *             for i, shaper in enumerate(shapers[:9]):             # <<<<<<<<<<<<<<
 *                 packed = shaper.encode()
 *                 c_shapers[i] = packed
*/
      }
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "uharfbuzz/_harfbuzz.pyx":164
 *                 packed = shaper.encode()
 *                 c_shapers[i] = packed
 *             c_shapers[i + 1] = NULL             # <<<<<<<<<<<<<<
 *             ret = hb_shape_full(font._hb_font, buffer._hb_buffer, hb_features, size, c_shapers)
 *             if not ret:
*/
      if (unlikely(!__pyx_v_i)) { __Pyx_RaiseUnboundLocalError("i"); __PYX_ERR(0, 164, __pyx_L4_error) }
      __pyx_t_2 = __Pyx_PyLong_AddObjC(__pyx_v_i, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 164, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_3 = __Pyx_PyIndex_AsSsize_t(__pyx_t_2); if (unlikely((__pyx_t_3 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 164, __pyx_L4_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      (__pyx_v_c_shapers[__pyx_t_3]) = NULL;

      /* "uharfbuzz/_harfbuzz.pyx":165
 *                 c_shapers[i] = packed
 *             c_shapers[i + 1] = NULL
 *             ret = hb_shape_full(font._hb_font, buffer._hb_buffer, hb_features, size, c_shapers)             # <<<<<<<<<<<<<<
 *             if not ret:
 *                 raise RuntimeError("All shapers failed")
*/
      __pyx_v_ret = hb_shape_full(__pyx_v_font->_hb_font, __pyx_v_buffer->_hb_buffer, __pyx_v_hb_features, __pyx_v_size, __pyx_v_c_shapers);

      /* "uharfbuzz/_harfbuzz.pyx":166
 *             c_shapers[i + 1] = NULL
 *             ret = hb_shape_full(font._hb_font, buffer._hb_buffer, hb_features, size, c_shapers)
 *             if not ret:             # <<<<<<<<<<<<<<
 *                 raise RuntimeError("All shapers failed")
 *         else:
*/
      __pyx_t_1 = (!(__pyx_v_ret != 0));
      if (unlikely(__pyx_t_1)) {

        /* "uharfbuzz/_harfbuzz.pyx":167
 *             ret = hb_shape_full(font._hb_font, buffer._hb_buffer, hb_features, size, c_shapers)
 *             if not ret:
 *                 raise RuntimeError("All shapers failed")             # <<<<<<<<<<<<<<
 *         else:
 *             hb_shape(font._hb_font, buffer._hb_buffer, hb_features, size)
*/
        __pyx_t_9 = NULL;
        __pyx_t_10 = 1;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_mstate_global->__pyx_kp_u_All_shapers_failed};
          __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_10, (2-__pyx_t_10) | (__pyx_t_10*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 167, __pyx_L4_error)
          __Pyx_GOTREF(__pyx_t_2);
        }
        __Pyx_Raise(__pyx_t_2, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __PYX_ERR(0, 167, __pyx_L4_error)

        /* "uharfbuzz/_harfbuzz.pyx":166
 *             c_shapers[i + 1] = NULL
 *             ret = hb_shape_full(font._hb_font, buffer._hb_buffer, hb_features, size, c_shapers)
 *             if not ret:             # <<<<<<<<<<<<<<
 *                 raise RuntimeError("All shapers failed")
 *         else:
*/
      }

      /* "uharfbuzz/_harfbuzz.pyx":160
 *                         hb_features[i] = feat
 *                         i += 1
 *         if shapers:             # <<<<<<<<<<<<<<
 *             for i, shaper in enumerate(shapers[:9]):
 *                 packed = shaper.encode()
*/
      goto __pyx_L18;
    }

    /* "uharfbuzz/_harfbuzz.pyx":169
 *                 raise RuntimeError("All shapers failed")
 *         else:
 *             hb_shape(font._hb_font, buffer._hb_buffer, hb_features, size)             # <<<<<<<<<<<<<<
 *         if not hb_buffer_allocation_successful(buffer._hb_buffer):
 *             raise MemoryError()
*/
    /*else*/ {
      hb_shape(__pyx_v_font->_hb_font, __pyx_v_buffer->_hb_buffer, __pyx_v_hb_features, __pyx_v_size);
    }
    __pyx_L18:;

    /* "uharfbuzz/_harfbuzz.pyx":170
 *         else:
 *             hb_shape(font._hb_font, buffer._hb_buffer, hb_features, size)
 *         if not hb_buffer_allocation_successful(buffer._hb_buffer):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 *     finally:
*/
    __pyx_t_1 = (!(hb_buffer_allocation_successful(__pyx_v_buffer->_hb_buffer) != 0));
    if (unlikely(__pyx_t_1)) {

      /* "uharfbuzz/_harfbuzz.pyx":171
 *             hb_shape(font._hb_font, buffer._hb_buffer, hb_features, size)
 *         if not hb_buffer_allocation_successful(buffer._hb_buffer):
 *             raise MemoryError()             # <<<<<<<<<<<<<<
 *     finally:
 *         if hb_features is not NULL:
*/
      PyErr_NoMemory(); __PYX_ERR(0, 171, __pyx_L4_error)

      /* "uharfbuzz/_harfbuzz.pyx":170
 *         else:
 *             hb_shape(font._hb_font, buffer._hb_buffer, hb_features, size)
 *         if not hb_buffer_allocation_successful(buffer._hb_buffer):             # <<<<<<<<<<<<<<
 *             raise MemoryError()
 *     finally:
*/
    }
  }

  /* "uharfbuzz/_harfbuzz.pyx":173
 *             raise MemoryError()
 *     finally:
 *         if hb_features is not NULL:             # <<<<<<<<<<<<<<
 *             free(hb_features)
 * 
*/
  /*finally:*/ {
    /*normal exit:*/{
      __pyx_t_1 = (__pyx_v_hb_features != NULL);
      if (__pyx_t_1) {

        /* "uharfbuzz/_harfbuzz.pyx":174
 *     finally:
 *         if hb_features is not NULL:
 *             free(hb_features)             # <<<<<<<<<<<<<<
 * 
 * 
*/
        free(__pyx_v_hb_features);

        /* "uharfbuzz/_harfbuzz.pyx":173
 *             raise MemoryError()
 *     finally:
 *         if hb_features is not NULL:             # <<<<<<<<<<<<<<
 *             free(hb_features)
 * 
*/
      }
      goto __pyx_L5;
    }
    __pyx_L4_error:;
    /*exception exit:*/{
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __pyx_t_24 = 0; __pyx_t_25 = 0; __pyx_t_26 = 0; __pyx_t_27 = 0; __pyx_t_28 = 0; __pyx_t_29 = 0;
      __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
      __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0;
      __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0;
      __Pyx_XDECREF(__pyx_t_18); __pyx_t_18 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
       __Pyx_ExceptionSwap(&__pyx_t_27, &__pyx_t_28, &__pyx_t_29);
      if ( unlikely(__Pyx_GetException(&__pyx_t_24, &__pyx_t_25, &__pyx_t_26) < 0)) __Pyx_ErrFetch(&__pyx_t_24, &__pyx_t_25, &__pyx_t_26);
      __Pyx_XGOTREF(__pyx_t_24);
      __Pyx_XGOTREF(__pyx_t_25);
      __Pyx_XGOTREF(__pyx_t_26);
      __Pyx_XGOTREF(__pyx_t_27);
      __Pyx_XGOTREF(__pyx_t_28);
      __Pyx_XGOTREF(__pyx_t_29);
      __pyx_t_5 = __pyx_lineno; __pyx_t_7 = __pyx_clineno; __pyx_t_23 = __pyx_filename;
      {
        __pyx_t_1 = (__pyx_v_hb_features != NULL);
        if (__pyx_t_1) {

          /* "uharfbuzz/_harfbuzz.pyx":174
 *     finally:
 *         if hb_features is not NULL:
 *             free(hb_features)             # <<<<<<<<<<<<<<
 * 
 * 
*/
          free(__pyx_v_hb_features);

          /* "uharfbuzz/_harfbuzz.pyx":173
 *             raise MemoryError()
 *     finally:
 *         if hb_features is not NULL:             # <<<<<<<<<<<<<<
 *             free(hb_features)
 * 
*/
        }
      }
      __Pyx_XGIVEREF(__pyx_t_27);
      __Pyx_XGIVEREF(__pyx_t_28);
      __Pyx_XGIVEREF(__pyx_t_29);
      __Pyx_ExceptionReset(__pyx_t_27, __pyx_t_28, __pyx_t_29);
      __Pyx_XGIVEREF(__pyx_t_24);
      __Pyx_XGIVEREF(__pyx_t_25);
      __Pyx_XGIVEREF(__pyx_t_26);
      __Pyx_ErrRestore(__pyx_t_24, __pyx_t_25, __pyx_t_26);
      __pyx_t_24 = 0; __pyx_t_25 = 0; __pyx_t_26 = 0; __pyx_t_27 = 0; __pyx_t_28 = 0; __pyx_t_29 = 0;
      __pyx_lineno = __pyx_t_5; __pyx_clineno = __pyx_t_7; __pyx_filename = __pyx_t_23;
      goto __pyx_L1_error;
    }
    __pyx_L5:;
  }

  /* "uharfbuzz/_harfbuzz.pyx":96
 * include "_generated_docs.pxi"
 * 
 * def shape(font: Font, buffer: Buffer,             # <<<<<<<<<<<<<<
 *         features: Dict[str,Union[int,bool,Sequence[Tuple[int,int,Union[int,bool]]]]] | None = None,
 *         shapers: List[str] | None = None):
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_15);
  __Pyx_XDECREF(__pyx_t_16);
  __Pyx_XDECREF(__pyx_t_17);
  __Pyx_XDECREF(__pyx_t_18);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.shape", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XDECREF(__pyx_v_start);
  __Pyx_XDECREF(__pyx_v_end);
  __Pyx_XDECREF(__pyx_v_shaper);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":177
 * 
 * 
 * def ot_tag_to_script(tag: str) -> str:             # <<<<<<<<<<<<<<
 *     """Converts a script tag to a script.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_19ot_tag_to_script(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_18ot_tag_to_script, "Converts a script tag to a script.\n\n    :param tag: A script tag.\n\n    :returns: The script corresponding to ``tag``.\n\n    Wraps `hb_ot_tag_to_script()\n    <https://harfbuzz.github.io/harfbuzz-hb-ot-layout.html#hb-ot-tag-to-script>`_.\n    ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_19ot_tag_to_script = {"ot_tag_to_script", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_19ot_tag_to_script, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_18ot_tag_to_script};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_19ot_tag_to_script(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_tag = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_tag_to_script (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_tag,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 177, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 177, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_tag_to_script", 0) < (0)) __PYX_ERR(0, 177, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_tag_to_script", 1, 1, 1, i); __PYX_ERR(0, 177, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 177, __pyx_L3_error)
    }
    __pyx_v_tag = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_tag_to_script", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 177, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_tag_to_script", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tag), (&PyUnicode_Type), 0, "tag", 2))) __PYX_ERR(0, 177, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_18ot_tag_to_script(__pyx_self, __pyx_v_tag);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_18ot_tag_to_script(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_tag) {
  PyObject *__pyx_v_packed = 0;
  hb_tag_t __pyx_v_hb_tag;
  hb_script_t __pyx_v_hb_script;
  char __pyx_v_cstr[5];
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  char *__pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_tag_to_script", 0);

  /* "uharfbuzz/_harfbuzz.pyx":187
 *     <https://harfbuzz.github.io/harfbuzz-hb-ot-layout.html#hb-ot-tag-to-script>`_.
 *     """
 *     cdef bytes packed = tag.encode()             # <<<<<<<<<<<<<<
 *     cdef hb_tag_t hb_tag = hb_tag_from_string(<char*>packed, -1)
 *     cdef hb_script_t hb_script = hb_ot_tag_to_script(hb_tag)
*/
  __pyx_t_1 = PyUnicode_AsEncodedString(__pyx_v_tag, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 187, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_packed = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":188
 *     """
 *     cdef bytes packed = tag.encode()
 *     cdef hb_tag_t hb_tag = hb_tag_from_string(<char*>packed, -1)             # <<<<<<<<<<<<<<
 *     cdef hb_script_t hb_script = hb_ot_tag_to_script(hb_tag)
 *     cdef char cstr[5]
*/
  __pyx_t_2 = __Pyx_PyBytes_AsWritableString(__pyx_v_packed); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 188, __pyx_L1_error)
  __pyx_v_hb_tag = hb_tag_from_string(((char *)__pyx_t_2), -1);

  /* "uharfbuzz/_harfbuzz.pyx":189
 *     cdef bytes packed = tag.encode()
 *     cdef hb_tag_t hb_tag = hb_tag_from_string(<char*>packed, -1)
 *     cdef hb_script_t hb_script = hb_ot_tag_to_script(hb_tag)             # <<<<<<<<<<<<<<
 *     cdef char cstr[5]
 *     hb_tag_to_string(hb_script, cstr)
*/
  __pyx_v_hb_script = hb_ot_tag_to_script(__pyx_v_hb_tag);

  /* "uharfbuzz/_harfbuzz.pyx":191
 *     cdef hb_script_t hb_script = hb_ot_tag_to_script(hb_tag)
 *     cdef char cstr[5]
 *     hb_tag_to_string(hb_script, cstr)             # <<<<<<<<<<<<<<
 *     cstr[4] = b'\0'
 *     packed = cstr
*/
  hb_tag_to_string(__pyx_v_hb_script, __pyx_v_cstr);

  /* "uharfbuzz/_harfbuzz.pyx":192
 *     cdef char cstr[5]
 *     hb_tag_to_string(hb_script, cstr)
 *     cstr[4] = b'\0'             # <<<<<<<<<<<<<<
 *     packed = cstr
 *     return packed.decode()
*/
  (__pyx_v_cstr[4]) = '\x00';

  /* "uharfbuzz/_harfbuzz.pyx":193
 *     hb_tag_to_string(hb_script, cstr)
 *     cstr[4] = b'\0'
 *     packed = cstr             # <<<<<<<<<<<<<<
 *     return packed.decode()
 * 
*/
  __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_cstr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 193, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF_SET(__pyx_v_packed, ((PyObject*)__pyx_t_1));
  __pyx_t_1 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":194
 *     cstr[4] = b'\0'
 *     packed = cstr
 *     return packed.decode()             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_decode_bytes(__pyx_v_packed, 0, PY_SSIZE_T_MAX, NULL, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 194, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":177
 * 
 * 
 * def ot_tag_to_script(tag: str) -> str:             # <<<<<<<<<<<<<<
 *     """Converts a script tag to a script.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_tag_to_script", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":197
 * 
 * 
 * def ot_tag_to_language(tag: str) -> str:             # <<<<<<<<<<<<<<
 *     """Converts a language tag to a language.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_21ot_tag_to_language(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_20ot_tag_to_language, "Converts a language tag to a language.\n\n    :param tag: A language tag.\n\n    :returns: The language corresponding to ``tag``, or ``None``.\n\n    Wraps `hb_ot_tag_to_language()\n    <https://harfbuzz.github.io/harfbuzz-hb-ot-layout.html#hb-ot-tag-to-language>`_.\n    ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_21ot_tag_to_language = {"ot_tag_to_language", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_21ot_tag_to_language, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_20ot_tag_to_language};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_21ot_tag_to_language(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_tag = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_tag_to_language (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_tag,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 197, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 197, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_tag_to_language", 0) < (0)) __PYX_ERR(0, 197, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_tag_to_language", 1, 1, 1, i); __PYX_ERR(0, 197, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 197, __pyx_L3_error)
    }
    __pyx_v_tag = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_tag_to_language", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 197, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_tag_to_language", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tag), (&PyUnicode_Type), 0, "tag", 2))) __PYX_ERR(0, 197, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_20ot_tag_to_language(__pyx_self, __pyx_v_tag);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_20ot_tag_to_language(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_tag) {
  PyObject *__pyx_v_packed = 0;
  hb_tag_t __pyx_v_hb_tag;
  hb_language_t __pyx_v_hb_language;
  const char *__pyx_v_cstr;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  char *__pyx_t_2;
  int __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_tag_to_language", 0);

  /* "uharfbuzz/_harfbuzz.pyx":207
 *     <https://harfbuzz.github.io/harfbuzz-hb-ot-layout.html#hb-ot-tag-to-language>`_.
 *     """
 *     cdef bytes packed = tag.encode()             # <<<<<<<<<<<<<<
 *     cdef hb_tag_t hb_tag = hb_tag_from_string(<char*>packed, -1)
 *     cdef hb_language_t hb_language = hb_ot_tag_to_language(hb_tag)
*/
  __pyx_t_1 = PyUnicode_AsEncodedString(__pyx_v_tag, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 207, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_packed = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":208
 *     """
 *     cdef bytes packed = tag.encode()
 *     cdef hb_tag_t hb_tag = hb_tag_from_string(<char*>packed, -1)             # <<<<<<<<<<<<<<
 *     cdef hb_language_t hb_language = hb_ot_tag_to_language(hb_tag)
 *     cdef const_char* cstr = hb_language_to_string(hb_language)
*/
  __pyx_t_2 = __Pyx_PyBytes_AsWritableString(__pyx_v_packed); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 208, __pyx_L1_error)
  __pyx_v_hb_tag = hb_tag_from_string(((char *)__pyx_t_2), -1);

  /* "uharfbuzz/_harfbuzz.pyx":209
 *     cdef bytes packed = tag.encode()
 *     cdef hb_tag_t hb_tag = hb_tag_from_string(<char*>packed, -1)
 *     cdef hb_language_t hb_language = hb_ot_tag_to_language(hb_tag)             # <<<<<<<<<<<<<<
 *     cdef const_char* cstr = hb_language_to_string(hb_language)
 *     if cstr is NULL:
*/
  __pyx_v_hb_language = hb_ot_tag_to_language(__pyx_v_hb_tag);

  /* "uharfbuzz/_harfbuzz.pyx":210
 *     cdef hb_tag_t hb_tag = hb_tag_from_string(<char*>packed, -1)
 *     cdef hb_language_t hb_language = hb_ot_tag_to_language(hb_tag)
 *     cdef const_char* cstr = hb_language_to_string(hb_language)             # <<<<<<<<<<<<<<
 *     if cstr is NULL:
 *         return None
*/
  __pyx_v_cstr = hb_language_to_string(__pyx_v_hb_language);

  /* "uharfbuzz/_harfbuzz.pyx":211
 *     cdef hb_language_t hb_language = hb_ot_tag_to_language(hb_tag)
 *     cdef const_char* cstr = hb_language_to_string(hb_language)
 *     if cstr is NULL:             # <<<<<<<<<<<<<<
 *         return None
 *     packed = cstr
*/
  __pyx_t_3 = (__pyx_v_cstr == NULL);
  if (__pyx_t_3) {

    /* "uharfbuzz/_harfbuzz.pyx":212
 *     cdef const_char* cstr = hb_language_to_string(hb_language)
 *     if cstr is NULL:
 *         return None             # <<<<<<<<<<<<<<
 *     packed = cstr
 *     return packed.decode()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = ((PyObject*)Py_None); __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "uharfbuzz/_harfbuzz.pyx":211
 *     cdef hb_language_t hb_language = hb_ot_tag_to_language(hb_tag)
 *     cdef const_char* cstr = hb_language_to_string(hb_language)
 *     if cstr is NULL:             # <<<<<<<<<<<<<<
 *         return None
 *     packed = cstr
*/
  }

  /* "uharfbuzz/_harfbuzz.pyx":213
 *     if cstr is NULL:
 *         return None
 *     packed = cstr             # <<<<<<<<<<<<<<
 *     return packed.decode()
 * 
*/
  __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_cstr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 213, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF_SET(__pyx_v_packed, ((PyObject*)__pyx_t_1));
  __pyx_t_1 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":214
 *         return None
 *     packed = cstr
 *     return packed.decode()             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_decode_bytes(__pyx_v_packed, 0, PY_SSIZE_T_MAX, NULL, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 214, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":197
 * 
 * 
 * def ot_tag_to_language(tag: str) -> str:             # <<<<<<<<<<<<<<
 *     """Converts a language tag to a language.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_tag_to_language", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_packed);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":217
 * 
 * 
 * @deprecated("Face.get_lookup_glyph_alternates()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_layout_lookup_get_glyph_alternates(
 *         face: Face, lookup_index : int, glyph : hb_codepoint_t) -> List[int]:
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_23ot_layout_lookup_get_glyph_alternates(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_23ot_layout_lookup_get_glyph_alternates = {"ot_layout_lookup_get_glyph_alternates", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_23ot_layout_lookup_get_glyph_alternates, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_23ot_layout_lookup_get_glyph_alternates(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face = 0;
  PyObject *__pyx_v_lookup_index = 0;
  hb_codepoint_t __pyx_v_glyph;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_layout_lookup_get_glyph_alternates (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,&__pyx_mstate_global->__pyx_n_u_lookup_index,&__pyx_mstate_global->__pyx_n_u_glyph,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 217, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 217, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 217, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 217, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_layout_lookup_get_glyph_alternates", 0) < (0)) __PYX_ERR(0, 217, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_layout_lookup_get_glyph_alternates", 1, 3, 3, i); __PYX_ERR(0, 217, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 217, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 217, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 217, __pyx_L3_error)
    }
    __pyx_v_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "lookup_index", 0) < (0)) __PYX_ERR(0, 219, __pyx_L3_error)
    __pyx_v_lookup_index = ((PyObject*)values[1]);
    __pyx_v_glyph = __Pyx_PyLong_As_hb_codepoint_t(values[2]); if (unlikely((__pyx_v_glyph == ((hb_codepoint_t)-1)) && PyErr_Occurred())) __PYX_ERR(0, 219, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_layout_lookup_get_glyph_alternates", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 217, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_layout_lookup_get_glyph_alternates", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, 0, "face", 0))) __PYX_ERR(0, 219, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_lookup_index), (&PyLong_Type), 0, "lookup_index", 2))) __PYX_ERR(0, 219, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_22ot_layout_lookup_get_glyph_alternates(__pyx_self, __pyx_v_face, __pyx_v_lookup_index, __pyx_v_glyph);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_22ot_layout_lookup_get_glyph_alternates(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, PyObject *__pyx_v_lookup_index, hb_codepoint_t __pyx_v_glyph) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_layout_lookup_get_glyph_alternates", 0);

  /* "uharfbuzz/_harfbuzz.pyx":220
 * def ot_layout_lookup_get_glyph_alternates(
 *         face: Face, lookup_index : int, glyph : hb_codepoint_t) -> List[int]:
 *    return face.get_lookup_glyph_alternates(lookup_index, glyph)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_face);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyLong_From_hb_codepoint_t(__pyx_v_glyph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 220, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_v_lookup_index, __pyx_t_3};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_get_lookup_glyph_alternates, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 220, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (!(likely(PyList_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("list", __pyx_t_1))) __PYX_ERR(0, 220, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":217
 * 
 * 
 * @deprecated("Face.get_lookup_glyph_alternates()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_layout_lookup_get_glyph_alternates(
 *         face: Face, lookup_index : int, glyph : hb_codepoint_t) -> List[int]:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_layout_lookup_get_glyph_alternates", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":223
 * 
 * 
 * @deprecated("Face.get_language_feature_tags()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_layout_language_get_feature_tags(
 *         face: Face, tag: str, script_index: int = 0,
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_25ot_layout_language_get_feature_tags(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_25ot_layout_language_get_feature_tags = {"ot_layout_language_get_feature_tags", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_25ot_layout_language_get_feature_tags, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_25ot_layout_language_get_feature_tags(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face = 0;
  PyObject *__pyx_v_tag = 0;
  PyObject *__pyx_v_script_index = 0;
  PyObject *__pyx_v_language_index = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_layout_language_get_feature_tags (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,&__pyx_mstate_global->__pyx_n_u_tag,&__pyx_mstate_global->__pyx_n_u_script_index,&__pyx_mstate_global->__pyx_n_u_language_index,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 223, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 223, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 223, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 223, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 223, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_layout_language_get_feature_tags", 0) < (0)) __PYX_ERR(0, 223, __pyx_L3_error)
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject*)((PyObject*)__pyx_mstate_global->__pyx_int_0)));
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject*)((PyObject*)__pyx_mstate_global->__pyx_int_65535)));
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_layout_language_get_feature_tags", 0, 2, 4, i); __PYX_ERR(0, 223, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 223, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 223, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 223, __pyx_L3_error)
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 223, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject*)((PyObject*)__pyx_mstate_global->__pyx_int_0)));
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject*)((PyObject*)__pyx_mstate_global->__pyx_int_65535)));
    }
    __pyx_v_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)values[0]);
    __pyx_v_tag = ((PyObject*)values[1]);
    if (__Pyx_PyInt_FromNumber(&values[2], "script_index", 0) < (0)) __PYX_ERR(0, 225, __pyx_L3_error)
    __pyx_v_script_index = ((PyObject*)values[2]);
    if (__Pyx_PyInt_FromNumber(&values[3], "language_index", 0) < (0)) __PYX_ERR(0, 226, __pyx_L3_error)
    __pyx_v_language_index = ((PyObject*)values[3]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_layout_language_get_feature_tags", 0, 2, 4, __pyx_nargs); __PYX_ERR(0, 223, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_layout_language_get_feature_tags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, 0, "face", 0))) __PYX_ERR(0, 225, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tag), (&PyUnicode_Type), 0, "tag", 2))) __PYX_ERR(0, 225, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_script_index), (&PyLong_Type), 0, "script_index", 2))) __PYX_ERR(0, 225, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_language_index), (&PyLong_Type), 0, "language_index", 2))) __PYX_ERR(0, 226, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_24ot_layout_language_get_feature_tags(__pyx_self, __pyx_v_face, __pyx_v_tag, __pyx_v_script_index, __pyx_v_language_index);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_24ot_layout_language_get_feature_tags(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, PyObject *__pyx_v_tag, PyObject *__pyx_v_script_index, PyObject *__pyx_v_language_index) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_layout_language_get_feature_tags", 0);

  /* "uharfbuzz/_harfbuzz.pyx":227
 *         face: Face, tag: str, script_index: int = 0,
 *         language_index: int = 0xFFFF) -> List[str]:
 *     return face.get_language_feature_tags(tag, script_index, language_index)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_face);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_v_tag, __pyx_v_script_index, __pyx_v_language_index};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_get_language_feature_tags, __pyx_callargs+__pyx_t_3, (4-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 227, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (!(likely(PyList_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("list", __pyx_t_1))) __PYX_ERR(0, 227, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":223
 * 
 * 
 * @deprecated("Face.get_language_feature_tags()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_layout_language_get_feature_tags(
 *         face: Face, tag: str, script_index: int = 0,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_layout_language_get_feature_tags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":230
 * 
 * 
 * @deprecated("Face.get_script_language_tags()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_layout_script_get_language_tags(
 *         face: Face, tag: str, script_index: int = 0) -> List[str]:
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_27ot_layout_script_get_language_tags(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_27ot_layout_script_get_language_tags = {"ot_layout_script_get_language_tags", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_27ot_layout_script_get_language_tags, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_27ot_layout_script_get_language_tags(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face = 0;
  PyObject *__pyx_v_tag = 0;
  PyObject *__pyx_v_script_index = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_layout_script_get_language_tags (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,&__pyx_mstate_global->__pyx_n_u_tag,&__pyx_mstate_global->__pyx_n_u_script_index,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 230, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 230, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 230, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 230, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_layout_script_get_language_tags", 0) < (0)) __PYX_ERR(0, 230, __pyx_L3_error)
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject*)((PyObject*)__pyx_mstate_global->__pyx_int_0)));
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_layout_script_get_language_tags", 0, 2, 3, i); __PYX_ERR(0, 230, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 230, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 230, __pyx_L3_error)
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 230, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject*)((PyObject*)__pyx_mstate_global->__pyx_int_0)));
    }
    __pyx_v_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)values[0]);
    __pyx_v_tag = ((PyObject*)values[1]);
    if (__Pyx_PyInt_FromNumber(&values[2], "script_index", 0) < (0)) __PYX_ERR(0, 232, __pyx_L3_error)
    __pyx_v_script_index = ((PyObject*)values[2]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_layout_script_get_language_tags", 0, 2, 3, __pyx_nargs); __PYX_ERR(0, 230, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_layout_script_get_language_tags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, 0, "face", 0))) __PYX_ERR(0, 232, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tag), (&PyUnicode_Type), 0, "tag", 2))) __PYX_ERR(0, 232, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_script_index), (&PyLong_Type), 0, "script_index", 2))) __PYX_ERR(0, 232, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_26ot_layout_script_get_language_tags(__pyx_self, __pyx_v_face, __pyx_v_tag, __pyx_v_script_index);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_26ot_layout_script_get_language_tags(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, PyObject *__pyx_v_tag, PyObject *__pyx_v_script_index) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_layout_script_get_language_tags", 0);

  /* "uharfbuzz/_harfbuzz.pyx":233
 * def ot_layout_script_get_language_tags(
 *         face: Face, tag: str, script_index: int = 0) -> List[str]:
 *     return face.get_script_language_tags(tag, script_index)             # <<<<<<<<<<<<<<
 * 
 * @deprecated("Face.get_table_script_tags()", since="0.40.0")
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_face);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_v_tag, __pyx_v_script_index};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_get_script_language_tags, __pyx_callargs+__pyx_t_3, (3-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 233, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (!(likely(PyList_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("list", __pyx_t_1))) __PYX_ERR(0, 233, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":230
 * 
 * 
 * @deprecated("Face.get_script_language_tags()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_layout_script_get_language_tags(
 *         face: Face, tag: str, script_index: int = 0) -> List[str]:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_layout_script_get_language_tags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":235
 *     return face.get_script_language_tags(tag, script_index)
 * 
 * @deprecated("Face.get_table_script_tags()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_layout_table_get_script_tags(face: Face, tag: str) -> List[str]:
 *     return face.get_table_script_tags(tag)
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_29ot_layout_table_get_script_tags(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_29ot_layout_table_get_script_tags = {"ot_layout_table_get_script_tags", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_29ot_layout_table_get_script_tags, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_29ot_layout_table_get_script_tags(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face = 0;
  PyObject *__pyx_v_tag = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_layout_table_get_script_tags (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,&__pyx_mstate_global->__pyx_n_u_tag,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 235, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 235, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 235, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_layout_table_get_script_tags", 0) < (0)) __PYX_ERR(0, 235, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_layout_table_get_script_tags", 1, 2, 2, i); __PYX_ERR(0, 235, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 235, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 235, __pyx_L3_error)
    }
    __pyx_v_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)values[0]);
    __pyx_v_tag = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_layout_table_get_script_tags", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 235, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_layout_table_get_script_tags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, 0, "face", 0))) __PYX_ERR(0, 236, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tag), (&PyUnicode_Type), 0, "tag", 2))) __PYX_ERR(0, 236, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_28ot_layout_table_get_script_tags(__pyx_self, __pyx_v_face, __pyx_v_tag);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_28ot_layout_table_get_script_tags(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, PyObject *__pyx_v_tag) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_layout_table_get_script_tags", 0);

  /* "uharfbuzz/_harfbuzz.pyx":237
 * @deprecated("Face.get_table_script_tags()", since="0.40.0")
 * def ot_layout_table_get_script_tags(face: Face, tag: str) -> List[str]:
 *     return face.get_table_script_tags(tag)             # <<<<<<<<<<<<<<
 * 
 * @deprecated("Face.get_layout_baseline()", since="0.40.0")
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_face);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_tag};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_get_table_script_tags, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 237, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (!(likely(PyList_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("list", __pyx_t_1))) __PYX_ERR(0, 237, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":235
 *     return face.get_script_language_tags(tag, script_index)
 * 
 * @deprecated("Face.get_table_script_tags()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_layout_table_get_script_tags(face: Face, tag: str) -> List[str]:
 *     return face.get_table_script_tags(tag)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_layout_table_get_script_tags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":239
 *     return face.get_table_script_tags(tag)
 * 
 * @deprecated("Face.get_layout_baseline()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_layout_get_baseline(font: Font,
 *                            baseline_tag: str,
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_31ot_layout_get_baseline(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_31ot_layout_get_baseline = {"ot_layout_get_baseline", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_31ot_layout_get_baseline, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_31ot_layout_get_baseline(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font = 0;
  PyObject *__pyx_v_baseline_tag = 0;
  PyObject *__pyx_v_direction = 0;
  PyObject *__pyx_v_script_tag = 0;
  PyObject *__pyx_v_language_tag = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_layout_get_baseline (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_font,&__pyx_mstate_global->__pyx_n_u_baseline_tag,&__pyx_mstate_global->__pyx_n_u_direction,&__pyx_mstate_global->__pyx_n_u_script_tag,&__pyx_mstate_global->__pyx_n_u_language_tag,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 239, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 239, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 239, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 239, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 239, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 239, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_layout_get_baseline", 0) < (0)) __PYX_ERR(0, 239, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 5; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_layout_get_baseline", 1, 5, 5, i); __PYX_ERR(0, 239, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 5)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 239, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 239, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 239, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 239, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 239, __pyx_L3_error)
    }
    __pyx_v_font = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)values[0]);
    __pyx_v_baseline_tag = ((PyObject*)values[1]);
    __pyx_v_direction = ((PyObject*)values[2]);
    __pyx_v_script_tag = ((PyObject*)values[3]);
    __pyx_v_language_tag = ((PyObject*)values[4]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_layout_get_baseline", 1, 5, 5, __pyx_nargs); __PYX_ERR(0, 239, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_layout_get_baseline", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_font), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, 0, "font", 0))) __PYX_ERR(0, 240, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_baseline_tag), (&PyUnicode_Type), 0, "baseline_tag", 2))) __PYX_ERR(0, 241, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_direction), (&PyUnicode_Type), 0, "direction", 2))) __PYX_ERR(0, 242, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_script_tag), (&PyUnicode_Type), 0, "script_tag", 2))) __PYX_ERR(0, 243, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_language_tag), (&PyUnicode_Type), 0, "language_tag", 2))) __PYX_ERR(0, 244, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_30ot_layout_get_baseline(__pyx_self, __pyx_v_font, __pyx_v_baseline_tag, __pyx_v_direction, __pyx_v_script_tag, __pyx_v_language_tag);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_30ot_layout_get_baseline(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_baseline_tag, PyObject *__pyx_v_direction, PyObject *__pyx_v_script_tag, PyObject *__pyx_v_language_tag) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_layout_get_baseline", 0);

  /* "uharfbuzz/_harfbuzz.pyx":245
 *                            script_tag: str,
 *                            language_tag: str) -> int:
 *     return font.get_layout_baseline(baseline_tag, direction, script_tag, language_tag)             # <<<<<<<<<<<<<<
 * 
 * @deprecated("Face.face.has_layout_glyph_classes", since="0.40.0")
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_font);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[5] = {__pyx_t_2, __pyx_v_baseline_tag, __pyx_v_direction, __pyx_v_script_tag, __pyx_v_language_tag};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_get_layout_baseline, __pyx_callargs+__pyx_t_3, (5-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 245, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (__Pyx_PyInt_FromNumber(&__pyx_t_1, NULL, 1) < (0)) __PYX_ERR(0, 245, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":239
 *     return face.get_table_script_tags(tag)
 * 
 * @deprecated("Face.get_layout_baseline()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_layout_get_baseline(font: Font,
 *                            baseline_tag: str,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_layout_get_baseline", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":247
 *     return font.get_layout_baseline(baseline_tag, direction, script_tag, language_tag)
 * 
 * @deprecated("Face.face.has_layout_glyph_classes", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_layout_has_glyph_classes(face: Face) -> bool:
 *     return face.has_layout_glyph_classes
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_33ot_layout_has_glyph_classes(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_33ot_layout_has_glyph_classes = {"ot_layout_has_glyph_classes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_33ot_layout_has_glyph_classes, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_33ot_layout_has_glyph_classes(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_layout_has_glyph_classes (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 247, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 247, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_layout_has_glyph_classes", 0) < (0)) __PYX_ERR(0, 247, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_layout_has_glyph_classes", 1, 1, 1, i); __PYX_ERR(0, 247, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 247, __pyx_L3_error)
    }
    __pyx_v_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_layout_has_glyph_classes", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 247, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_layout_has_glyph_classes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, 0, "face", 0))) __PYX_ERR(0, 248, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_32ot_layout_has_glyph_classes(__pyx_self, __pyx_v_face);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_32ot_layout_has_glyph_classes(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_layout_has_glyph_classes", 0);

  /* "uharfbuzz/_harfbuzz.pyx":249
 * @deprecated("Face.face.has_layout_glyph_classes", since="0.40.0")
 * def ot_layout_has_glyph_classes(face: Face) -> bool:
 *     return face.has_layout_glyph_classes             # <<<<<<<<<<<<<<
 * 
 * @deprecated("Face.has_layout_positioning", since="0.40.0")
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_n_u_has_layout_glyph_classes); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 249, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":247
 *     return font.get_layout_baseline(baseline_tag, direction, script_tag, language_tag)
 * 
 * @deprecated("Face.face.has_layout_glyph_classes", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_layout_has_glyph_classes(face: Face) -> bool:
 *     return face.has_layout_glyph_classes
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_layout_has_glyph_classes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":251
 *     return face.has_layout_glyph_classes
 * 
 * @deprecated("Face.has_layout_positioning", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_layout_has_positioning(face: Face) -> bool:
 *     return face.has_layout_positioning
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_35ot_layout_has_positioning(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_35ot_layout_has_positioning = {"ot_layout_has_positioning", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_35ot_layout_has_positioning, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_35ot_layout_has_positioning(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_layout_has_positioning (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 251, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 251, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_layout_has_positioning", 0) < (0)) __PYX_ERR(0, 251, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_layout_has_positioning", 1, 1, 1, i); __PYX_ERR(0, 251, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 251, __pyx_L3_error)
    }
    __pyx_v_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_layout_has_positioning", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 251, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_layout_has_positioning", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, 0, "face", 0))) __PYX_ERR(0, 252, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_34ot_layout_has_positioning(__pyx_self, __pyx_v_face);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_34ot_layout_has_positioning(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_layout_has_positioning", 0);

  /* "uharfbuzz/_harfbuzz.pyx":253
 * @deprecated("Face.has_layout_positioning", since="0.40.0")
 * def ot_layout_has_positioning(face: Face) -> bool:
 *     return face.has_layout_positioning             # <<<<<<<<<<<<<<
 * 
 * @deprecated("Face.has_layout_substitution", since="0.40.0")
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_n_u_has_layout_positioning); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 253, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":251
 *     return face.has_layout_glyph_classes
 * 
 * @deprecated("Face.has_layout_positioning", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_layout_has_positioning(face: Face) -> bool:
 *     return face.has_layout_positioning
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_layout_has_positioning", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":255
 *     return face.has_layout_positioning
 * 
 * @deprecated("Face.has_layout_substitution", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_layout_has_substitution(face: Face) -> bool:
 *     return face.has_layout_substitution
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_37ot_layout_has_substitution(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_37ot_layout_has_substitution = {"ot_layout_has_substitution", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_37ot_layout_has_substitution, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_37ot_layout_has_substitution(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_layout_has_substitution (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 255, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 255, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_layout_has_substitution", 0) < (0)) __PYX_ERR(0, 255, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_layout_has_substitution", 1, 1, 1, i); __PYX_ERR(0, 255, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 255, __pyx_L3_error)
    }
    __pyx_v_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_layout_has_substitution", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 255, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_layout_has_substitution", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, 0, "face", 0))) __PYX_ERR(0, 256, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_36ot_layout_has_substitution(__pyx_self, __pyx_v_face);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_36ot_layout_has_substitution(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_layout_has_substitution", 0);

  /* "uharfbuzz/_harfbuzz.pyx":257
 * @deprecated("Face.has_layout_substitution", since="0.40.0")
 * def ot_layout_has_substitution(face: Face) -> bool:
 *     return face.has_layout_substitution             # <<<<<<<<<<<<<<
 * 
 * @deprecated("Face.get_layout_glyph_class()", since="0.40.0")
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_n_u_has_layout_substitution); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 257, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":255
 *     return face.has_layout_positioning
 * 
 * @deprecated("Face.has_layout_substitution", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_layout_has_substitution(face: Face) -> bool:
 *     return face.has_layout_substitution
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_layout_has_substitution", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":259
 *     return face.has_layout_substitution
 * 
 * @deprecated("Face.get_layout_glyph_class()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_layout_get_glyph_class(face: Face, glyph: int) -> OTLayoutGlyphClass:
 *     return face.get_layout_glyph_class(glyph)
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_39ot_layout_get_glyph_class(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_39ot_layout_get_glyph_class = {"ot_layout_get_glyph_class", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_39ot_layout_get_glyph_class, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_39ot_layout_get_glyph_class(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face = 0;
  PyObject *__pyx_v_glyph = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_layout_get_glyph_class (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,&__pyx_mstate_global->__pyx_n_u_glyph,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 259, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 259, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 259, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_layout_get_glyph_class", 0) < (0)) __PYX_ERR(0, 259, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_layout_get_glyph_class", 1, 2, 2, i); __PYX_ERR(0, 259, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 259, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 259, __pyx_L3_error)
    }
    __pyx_v_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "glyph", 0) < (0)) __PYX_ERR(0, 260, __pyx_L3_error)
    __pyx_v_glyph = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_layout_get_glyph_class", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 259, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_layout_get_glyph_class", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, 0, "face", 0))) __PYX_ERR(0, 260, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_glyph), (&PyLong_Type), 0, "glyph", 2))) __PYX_ERR(0, 260, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_38ot_layout_get_glyph_class(__pyx_self, __pyx_v_face, __pyx_v_glyph);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_38ot_layout_get_glyph_class(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, PyObject *__pyx_v_glyph) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_layout_get_glyph_class", 0);

  /* "uharfbuzz/_harfbuzz.pyx":261
 * @deprecated("Face.get_layout_glyph_class()", since="0.40.0")
 * def ot_layout_get_glyph_class(face: Face, glyph: int) -> OTLayoutGlyphClass:
 *     return face.get_layout_glyph_class(glyph)             # <<<<<<<<<<<<<<
 * 
 * @deprecated("Face.has_color_palettes", since="0.40.0")
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_face);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_glyph};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_get_layout_glyph_class, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 261, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":259
 *     return face.has_layout_substitution
 * 
 * @deprecated("Face.get_layout_glyph_class()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_layout_get_glyph_class(face: Face, glyph: int) -> OTLayoutGlyphClass:
 *     return face.get_layout_glyph_class(glyph)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_layout_get_glyph_class", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":263
 *     return face.get_layout_glyph_class(glyph)
 * 
 * @deprecated("Face.has_color_palettes", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_has_palettes(face: Face) -> bool:
 *     return face.has_color_palettes
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_41ot_color_has_palettes(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_41ot_color_has_palettes = {"ot_color_has_palettes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_41ot_color_has_palettes, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_41ot_color_has_palettes(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_color_has_palettes (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 263, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 263, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_color_has_palettes", 0) < (0)) __PYX_ERR(0, 263, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_color_has_palettes", 1, 1, 1, i); __PYX_ERR(0, 263, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 263, __pyx_L3_error)
    }
    __pyx_v_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_color_has_palettes", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 263, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_color_has_palettes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, 0, "face", 0))) __PYX_ERR(0, 264, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_40ot_color_has_palettes(__pyx_self, __pyx_v_face);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_40ot_color_has_palettes(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_color_has_palettes", 0);

  /* "uharfbuzz/_harfbuzz.pyx":265
 * @deprecated("Face.has_color_palettes", since="0.40.0")
 * def ot_color_has_palettes(face: Face) -> bool:
 *     return face.has_color_palettes             # <<<<<<<<<<<<<<
 * 
 * @deprecated("Face.color_palettes", since="0.40.0")
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_n_u_has_color_palettes); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 265, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":263
 *     return face.get_layout_glyph_class(glyph)
 * 
 * @deprecated("Face.has_color_palettes", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_has_palettes(face: Face) -> bool:
 *     return face.has_color_palettes
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_color_has_palettes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":267
 *     return face.has_color_palettes
 * 
 * @deprecated("Face.color_palettes", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_palette_get_count(face: Face) -> int:
 *     return hb_ot_color_palette_get_count(face._hb_face)
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_43ot_color_palette_get_count(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_43ot_color_palette_get_count = {"ot_color_palette_get_count", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_43ot_color_palette_get_count, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_43ot_color_palette_get_count(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_color_palette_get_count (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 267, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 267, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_color_palette_get_count", 0) < (0)) __PYX_ERR(0, 267, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_color_palette_get_count", 1, 1, 1, i); __PYX_ERR(0, 267, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 267, __pyx_L3_error)
    }
    __pyx_v_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_color_palette_get_count", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 267, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_color_palette_get_count", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, 0, "face", 0))) __PYX_ERR(0, 268, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_42ot_color_palette_get_count(__pyx_self, __pyx_v_face);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_42ot_color_palette_get_count(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_color_palette_get_count", 0);

  /* "uharfbuzz/_harfbuzz.pyx":269
 * @deprecated("Face.color_palettes", since="0.40.0")
 * def ot_color_palette_get_count(face: Face) -> int:
 *     return hb_ot_color_palette_get_count(face._hb_face)             # <<<<<<<<<<<<<<
 * 
 * @deprecated("Face.get_color_palette()", since="0.40.0")
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int(hb_ot_color_palette_get_count(__pyx_v_face->_hb_face)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 269, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (__Pyx_PyInt_FromNumber(&__pyx_t_1, NULL, 0) < (0)) __PYX_ERR(0, 269, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":267
 *     return face.has_color_palettes
 * 
 * @deprecated("Face.color_palettes", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_palette_get_count(face: Face) -> int:
 *     return hb_ot_color_palette_get_count(face._hb_face)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_color_palette_get_count", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":271
 *     return hb_ot_color_palette_get_count(face._hb_face)
 * 
 * @deprecated("Face.get_color_palette()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_palette_get_flags(face: Face, palette_index: int) -> OTColorPaletteFlags:
 *     return OTColorPaletteFlags(hb_ot_color_palette_get_flags(face._hb_face, palette_index))
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_45ot_color_palette_get_flags(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_45ot_color_palette_get_flags = {"ot_color_palette_get_flags", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_45ot_color_palette_get_flags, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_45ot_color_palette_get_flags(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face = 0;
  PyObject *__pyx_v_palette_index = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_color_palette_get_flags (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,&__pyx_mstate_global->__pyx_n_u_palette_index,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 271, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 271, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 271, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_color_palette_get_flags", 0) < (0)) __PYX_ERR(0, 271, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_color_palette_get_flags", 1, 2, 2, i); __PYX_ERR(0, 271, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 271, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 271, __pyx_L3_error)
    }
    __pyx_v_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "palette_index", 0) < (0)) __PYX_ERR(0, 272, __pyx_L3_error)
    __pyx_v_palette_index = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_color_palette_get_flags", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 271, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_color_palette_get_flags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, 0, "face", 0))) __PYX_ERR(0, 272, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_palette_index), (&PyLong_Type), 0, "palette_index", 2))) __PYX_ERR(0, 272, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_44ot_color_palette_get_flags(__pyx_self, __pyx_v_face, __pyx_v_palette_index);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_44ot_color_palette_get_flags(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, PyObject *__pyx_v_palette_index) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  unsigned int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_color_palette_get_flags", 0);

  /* "uharfbuzz/_harfbuzz.pyx":273
 * @deprecated("Face.get_color_palette()", since="0.40.0")
 * def ot_color_palette_get_flags(face: Face, palette_index: int) -> OTColorPaletteFlags:
 *     return OTColorPaletteFlags(hb_ot_color_palette_get_flags(face._hb_face, palette_index))             # <<<<<<<<<<<<<<
 * 
 * @deprecated("Face.get_color_palette()", since="0.40.0")
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OTColorPaletteFlags); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 273, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_int(__pyx_v_palette_index); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 273, __pyx_L1_error)
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_color_palette_flags_t(hb_ot_color_palette_get_flags(__pyx_v_face->_hb_face, __pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 273, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_5};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 273, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":271
 *     return hb_ot_color_palette_get_count(face._hb_face)
 * 
 * @deprecated("Face.get_color_palette()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_palette_get_flags(face: Face, palette_index: int) -> OTColorPaletteFlags:
 *     return OTColorPaletteFlags(hb_ot_color_palette_get_flags(face._hb_face, palette_index))
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_color_palette_get_flags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":275
 *     return OTColorPaletteFlags(hb_ot_color_palette_get_flags(face._hb_face, palette_index))
 * 
 * @deprecated("Face.get_color_palette()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_palette_get_colors(face: Face, palette_index: int) -> List[Color]:
 *     cdef list ret = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_47ot_color_palette_get_colors(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_47ot_color_palette_get_colors = {"ot_color_palette_get_colors", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_47ot_color_palette_get_colors, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_47ot_color_palette_get_colors(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face = 0;
  PyObject *__pyx_v_palette_index = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_color_palette_get_colors (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,&__pyx_mstate_global->__pyx_n_u_palette_index,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 275, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 275, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 275, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_color_palette_get_colors", 0) < (0)) __PYX_ERR(0, 275, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_color_palette_get_colors", 1, 2, 2, i); __PYX_ERR(0, 275, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 275, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 275, __pyx_L3_error)
    }
    __pyx_v_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "palette_index", 0) < (0)) __PYX_ERR(0, 276, __pyx_L3_error)
    __pyx_v_palette_index = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_color_palette_get_colors", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 275, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_color_palette_get_colors", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, 0, "face", 0))) __PYX_ERR(0, 276, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_palette_index), (&PyLong_Type), 0, "palette_index", 2))) __PYX_ERR(0, 276, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_46ot_color_palette_get_colors(__pyx_self, __pyx_v_face, __pyx_v_palette_index);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_46ot_color_palette_get_colors(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, PyObject *__pyx_v_palette_index) {
  PyObject *__pyx_v_ret = 0;
  unsigned int __pyx_v_i;
  unsigned int __pyx_v_start_offset;
  unsigned int __pyx_v_color_count;
  hb_color_t __pyx_v_colors[128];
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  unsigned int __pyx_t_3;
  unsigned int __pyx_t_4;
  unsigned int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  size_t __pyx_t_9;
  int __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_color_palette_get_colors", 0);

  /* "uharfbuzz/_harfbuzz.pyx":277
 * @deprecated("Face.get_color_palette()", since="0.40.0")
 * def ot_color_palette_get_colors(face: Face, palette_index: int) -> List[Color]:
 *     cdef list ret = []             # <<<<<<<<<<<<<<
 *     cdef unsigned int i
 *     cdef unsigned int start_offset = 0
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_ret = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":279
 *     cdef list ret = []
 *     cdef unsigned int i
 *     cdef unsigned int start_offset = 0             # <<<<<<<<<<<<<<
 *     cdef unsigned int color_count = STATIC_ARRAY_SIZE
 *     cdef hb_color_t colors[STATIC_ARRAY_SIZE]
*/
  __pyx_v_start_offset = 0;

  /* "uharfbuzz/_harfbuzz.pyx":280
 *     cdef unsigned int i
 *     cdef unsigned int start_offset = 0
 *     cdef unsigned int color_count = STATIC_ARRAY_SIZE             # <<<<<<<<<<<<<<
 *     cdef hb_color_t colors[STATIC_ARRAY_SIZE]
 *     while color_count == STATIC_ARRAY_SIZE:
*/
  __pyx_v_color_count = 0x80;

  /* "uharfbuzz/_harfbuzz.pyx":282
 *     cdef unsigned int color_count = STATIC_ARRAY_SIZE
 *     cdef hb_color_t colors[STATIC_ARRAY_SIZE]
 *     while color_count == STATIC_ARRAY_SIZE:             # <<<<<<<<<<<<<<
 *         hb_ot_color_palette_get_colors(face._hb_face, palette_index, start_offset, &color_count, colors)
 *         for i in range(color_count):
*/
  while (1) {
    __pyx_t_2 = (__pyx_v_color_count == 0x80);
    if (!__pyx_t_2) break;

    /* "uharfbuzz/_harfbuzz.pyx":283
 *     cdef hb_color_t colors[STATIC_ARRAY_SIZE]
 *     while color_count == STATIC_ARRAY_SIZE:
 *         hb_ot_color_palette_get_colors(face._hb_face, palette_index, start_offset, &color_count, colors)             # <<<<<<<<<<<<<<
 *         for i in range(color_count):
 *             ret.append(Color.from_int(colors[i]))
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_int(__pyx_v_palette_index); if (unlikely((__pyx_t_3 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 283, __pyx_L1_error)
    (void)(hb_ot_color_palette_get_colors(__pyx_v_face->_hb_face, __pyx_t_3, __pyx_v_start_offset, (&__pyx_v_color_count), __pyx_v_colors));

    /* "uharfbuzz/_harfbuzz.pyx":284
 *     while color_count == STATIC_ARRAY_SIZE:
 *         hb_ot_color_palette_get_colors(face._hb_face, palette_index, start_offset, &color_count, colors)
 *         for i in range(color_count):             # <<<<<<<<<<<<<<
 *             ret.append(Color.from_int(colors[i]))
 *     return ret
*/
    __pyx_t_3 = __pyx_v_color_count;
    __pyx_t_4 = __pyx_t_3;
    for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) {
      __pyx_v_i = __pyx_t_5;

      /* "uharfbuzz/_harfbuzz.pyx":285
 *         hb_ot_color_palette_get_colors(face._hb_face, palette_index, start_offset, &color_count, colors)
 *         for i in range(color_count):
 *             ret.append(Color.from_int(colors[i]))             # <<<<<<<<<<<<<<
 *     return ret
 * 
*/
      __pyx_t_6 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_Color); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 285, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_from_int); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 285, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = __Pyx_PyLong_From_uint32_t((__pyx_v_colors[__pyx_v_i])); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 285, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_9 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_8))) {
        __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_8);
        assert(__pyx_t_6);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_8, __pyx__function);
        __pyx_t_9 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_7};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_8, __pyx_callargs+__pyx_t_9, (2-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 285, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_ret, __pyx_t_1); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(0, 285, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    }
  }

  /* "uharfbuzz/_harfbuzz.pyx":286
 *         for i in range(color_count):
 *             ret.append(Color.from_int(colors[i]))
 *     return ret             # <<<<<<<<<<<<<<
 * 
 * @deprecated("Face.get_color_palette()", since="0.40.0")
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_ret);
  __pyx_r = __pyx_v_ret;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":275
 *     return OTColorPaletteFlags(hb_ot_color_palette_get_flags(face._hb_face, palette_index))
 * 
 * @deprecated("Face.get_color_palette()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_palette_get_colors(face: Face, palette_index: int) -> List[Color]:
 *     cdef list ret = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_color_palette_get_colors", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_ret);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":288
 *     return ret
 * 
 * @deprecated("Face.get_color_palette()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_palette_get_name_id(face: Face, palette_index: int) -> int | None:
 *     cdef hb_ot_name_id_t name_id
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_49ot_color_palette_get_name_id(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_49ot_color_palette_get_name_id = {"ot_color_palette_get_name_id", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_49ot_color_palette_get_name_id, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_49ot_color_palette_get_name_id(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face = 0;
  PyObject *__pyx_v_palette_index = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_color_palette_get_name_id (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,&__pyx_mstate_global->__pyx_n_u_palette_index,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 288, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 288, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 288, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_color_palette_get_name_id", 0) < (0)) __PYX_ERR(0, 288, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_color_palette_get_name_id", 1, 2, 2, i); __PYX_ERR(0, 288, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 288, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 288, __pyx_L3_error)
    }
    __pyx_v_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "palette_index", 0) < (0)) __PYX_ERR(0, 289, __pyx_L3_error)
    __pyx_v_palette_index = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_color_palette_get_name_id", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 288, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_color_palette_get_name_id", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, 0, "face", 0))) __PYX_ERR(0, 289, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_palette_index), (&PyLong_Type), 0, "palette_index", 2))) __PYX_ERR(0, 289, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_48ot_color_palette_get_name_id(__pyx_self, __pyx_v_face, __pyx_v_palette_index);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_48ot_color_palette_get_name_id(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, PyObject *__pyx_v_palette_index) {
  hb_ot_name_id_t __pyx_v_name_id;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  unsigned int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_color_palette_get_name_id", 0);

  /* "uharfbuzz/_harfbuzz.pyx":291
 * def ot_color_palette_get_name_id(face: Face, palette_index: int) -> int | None:
 *     cdef hb_ot_name_id_t name_id
 *     name_id = hb_ot_color_palette_get_name_id(face._hb_face, palette_index)             # <<<<<<<<<<<<<<
 *     if name_id == HB_OT_NAME_ID_INVALID:
 *         return None
*/
  __pyx_t_1 = __Pyx_PyLong_As_unsigned_int(__pyx_v_palette_index); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 291, __pyx_L1_error)
  __pyx_v_name_id = hb_ot_color_palette_get_name_id(__pyx_v_face->_hb_face, __pyx_t_1);

  /* "uharfbuzz/_harfbuzz.pyx":292
 *     cdef hb_ot_name_id_t name_id
 *     name_id = hb_ot_color_palette_get_name_id(face._hb_face, palette_index)
 *     if name_id == HB_OT_NAME_ID_INVALID:             # <<<<<<<<<<<<<<
 *         return None
 *     return name_id
*/
  __pyx_t_2 = (__pyx_v_name_id == HB_OT_NAME_ID_INVALID);
  if (__pyx_t_2) {

    /* "uharfbuzz/_harfbuzz.pyx":293
 *     name_id = hb_ot_color_palette_get_name_id(face._hb_face, palette_index)
 *     if name_id == HB_OT_NAME_ID_INVALID:
 *         return None             # <<<<<<<<<<<<<<
 *     return name_id
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = ((PyObject*)Py_None); __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "uharfbuzz/_harfbuzz.pyx":292
 *     cdef hb_ot_name_id_t name_id
 *     name_id = hb_ot_color_palette_get_name_id(face._hb_face, palette_index)
 *     if name_id == HB_OT_NAME_ID_INVALID:             # <<<<<<<<<<<<<<
 *         return None
 *     return name_id
*/
  }

  /* "uharfbuzz/_harfbuzz.pyx":294
 *     if name_id == HB_OT_NAME_ID_INVALID:
 *         return None
 *     return name_id             # <<<<<<<<<<<<<<
 * 
 * @deprecated("Face.color_palette_color_get_name_id()", since="0.40.0")
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __Pyx_PyLong_From_hb_ot_name_id_t(__pyx_v_name_id); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 294, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (__Pyx_PyInt_FromNumber(&__pyx_t_3, NULL, 0) < (0)) __PYX_ERR(0, 294, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":288
 *     return ret
 * 
 * @deprecated("Face.get_color_palette()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_palette_get_name_id(face: Face, palette_index: int) -> int | None:
 *     cdef hb_ot_name_id_t name_id
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_color_palette_get_name_id", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":296
 *     return name_id
 * 
 * @deprecated("Face.color_palette_color_get_name_id()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_palette_color_get_name_id(face: Face, color_index: int) -> int | None:
 *     return face.color_palette_color_get_name_id(color_index)
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_51ot_color_palette_color_get_name_id(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_51ot_color_palette_color_get_name_id = {"ot_color_palette_color_get_name_id", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_51ot_color_palette_color_get_name_id, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_51ot_color_palette_color_get_name_id(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face = 0;
  PyObject *__pyx_v_color_index = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_color_palette_color_get_name_id (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,&__pyx_mstate_global->__pyx_n_u_color_index,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 296, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 296, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 296, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_color_palette_color_get_name_id", 0) < (0)) __PYX_ERR(0, 296, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_color_palette_color_get_name_id", 1, 2, 2, i); __PYX_ERR(0, 296, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 296, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 296, __pyx_L3_error)
    }
    __pyx_v_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "color_index", 0) < (0)) __PYX_ERR(0, 297, __pyx_L3_error)
    __pyx_v_color_index = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_color_palette_color_get_name_id", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 296, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_color_palette_color_get_name_id", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, 0, "face", 0))) __PYX_ERR(0, 297, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_color_index), (&PyLong_Type), 0, "color_index", 2))) __PYX_ERR(0, 297, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_50ot_color_palette_color_get_name_id(__pyx_self, __pyx_v_face, __pyx_v_color_index);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_50ot_color_palette_color_get_name_id(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, PyObject *__pyx_v_color_index) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_color_palette_color_get_name_id", 0);

  /* "uharfbuzz/_harfbuzz.pyx":298
 * @deprecated("Face.color_palette_color_get_name_id()", since="0.40.0")
 * def ot_color_palette_color_get_name_id(face: Face, color_index: int) -> int | None:
 *     return face.color_palette_color_get_name_id(color_index)             # <<<<<<<<<<<<<<
 * 
 * @deprecated("Face.has_color_layers", since="0.40.0")
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_face);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_color_index};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_color_palette_color_get_name_id, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 298, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (__Pyx_PyInt_FromNumber(&__pyx_t_1, NULL, 1) < (0)) __PYX_ERR(0, 298, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":296
 *     return name_id
 * 
 * @deprecated("Face.color_palette_color_get_name_id()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_palette_color_get_name_id(face: Face, color_index: int) -> int | None:
 *     return face.color_palette_color_get_name_id(color_index)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_color_palette_color_get_name_id", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":300
 *     return face.color_palette_color_get_name_id(color_index)
 * 
 * @deprecated("Face.has_color_layers", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_has_layers(face: Face) -> bool:
 *     return face.has_color_layers
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_53ot_color_has_layers(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_53ot_color_has_layers = {"ot_color_has_layers", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_53ot_color_has_layers, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_53ot_color_has_layers(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_color_has_layers (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 300, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 300, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_color_has_layers", 0) < (0)) __PYX_ERR(0, 300, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_color_has_layers", 1, 1, 1, i); __PYX_ERR(0, 300, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 300, __pyx_L3_error)
    }
    __pyx_v_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_color_has_layers", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 300, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_color_has_layers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, 0, "face", 0))) __PYX_ERR(0, 301, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_52ot_color_has_layers(__pyx_self, __pyx_v_face);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_52ot_color_has_layers(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_color_has_layers", 0);

  /* "uharfbuzz/_harfbuzz.pyx":302
 * @deprecated("Face.has_color_layers", since="0.40.0")
 * def ot_color_has_layers(face: Face) -> bool:
 *     return face.has_color_layers             # <<<<<<<<<<<<<<
 * 
 * @deprecated("Face.get_glyph_color_layers()", since="0.40.0")
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_n_u_has_color_layers); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 302, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":300
 *     return face.color_palette_color_get_name_id(color_index)
 * 
 * @deprecated("Face.has_color_layers", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_has_layers(face: Face) -> bool:
 *     return face.has_color_layers
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_color_has_layers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":304
 *     return face.has_color_layers
 * 
 * @deprecated("Face.get_glyph_color_layers()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_glyph_get_layers(face: Face, glyph: int) -> List[OTColorLayer]:
 *     return face.get_glyph_color_layers(glyph)
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_55ot_color_glyph_get_layers(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_55ot_color_glyph_get_layers = {"ot_color_glyph_get_layers", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_55ot_color_glyph_get_layers, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_55ot_color_glyph_get_layers(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face = 0;
  PyObject *__pyx_v_glyph = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_color_glyph_get_layers (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,&__pyx_mstate_global->__pyx_n_u_glyph,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 304, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 304, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 304, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_color_glyph_get_layers", 0) < (0)) __PYX_ERR(0, 304, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_color_glyph_get_layers", 1, 2, 2, i); __PYX_ERR(0, 304, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 304, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 304, __pyx_L3_error)
    }
    __pyx_v_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "glyph", 0) < (0)) __PYX_ERR(0, 305, __pyx_L3_error)
    __pyx_v_glyph = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_color_glyph_get_layers", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 304, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_color_glyph_get_layers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, 0, "face", 0))) __PYX_ERR(0, 305, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_glyph), (&PyLong_Type), 0, "glyph", 2))) __PYX_ERR(0, 305, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_54ot_color_glyph_get_layers(__pyx_self, __pyx_v_face, __pyx_v_glyph);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_54ot_color_glyph_get_layers(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, PyObject *__pyx_v_glyph) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_color_glyph_get_layers", 0);

  /* "uharfbuzz/_harfbuzz.pyx":306
 * @deprecated("Face.get_glyph_color_layers()", since="0.40.0")
 * def ot_color_glyph_get_layers(face: Face, glyph: int) -> List[OTColorLayer]:
 *     return face.get_glyph_color_layers(glyph)             # <<<<<<<<<<<<<<
 * 
 * @deprecated("Face.has_color_paint", since="0.40.0")
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_face);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_glyph};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_get_glyph_color_layers, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 306, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (!(likely(PyList_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("list", __pyx_t_1))) __PYX_ERR(0, 306, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":304
 *     return face.has_color_layers
 * 
 * @deprecated("Face.get_glyph_color_layers()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_glyph_get_layers(face: Face, glyph: int) -> List[OTColorLayer]:
 *     return face.get_glyph_color_layers(glyph)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_color_glyph_get_layers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":308
 *     return face.get_glyph_color_layers(glyph)
 * 
 * @deprecated("Face.has_color_paint", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_has_paint(face: Face) -> bool:
 *     return face.has_color_paint
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_57ot_color_has_paint(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_57ot_color_has_paint = {"ot_color_has_paint", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_57ot_color_has_paint, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_57ot_color_has_paint(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_color_has_paint (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 308, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 308, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_color_has_paint", 0) < (0)) __PYX_ERR(0, 308, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_color_has_paint", 1, 1, 1, i); __PYX_ERR(0, 308, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 308, __pyx_L3_error)
    }
    __pyx_v_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_color_has_paint", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 308, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_color_has_paint", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, 0, "face", 0))) __PYX_ERR(0, 309, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_56ot_color_has_paint(__pyx_self, __pyx_v_face);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_56ot_color_has_paint(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_color_has_paint", 0);

  /* "uharfbuzz/_harfbuzz.pyx":310
 * @deprecated("Face.has_color_paint", since="0.40.0")
 * def ot_color_has_paint(face: Face) -> bool:
 *     return face.has_color_paint             # <<<<<<<<<<<<<<
 * 
 * @deprecated("Face.glyph_has_color_paint()", since="0.40.0")
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_n_u_has_color_paint); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 310, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":308
 *     return face.get_glyph_color_layers(glyph)
 * 
 * @deprecated("Face.has_color_paint", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_has_paint(face: Face) -> bool:
 *     return face.has_color_paint
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_color_has_paint", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":312
 *     return face.has_color_paint
 * 
 * @deprecated("Face.glyph_has_color_paint()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_glyph_has_paint(face: Face, glyph: int) -> bool:
 *     return face.glyph_has_color_paint(glyph)
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_59ot_color_glyph_has_paint(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_59ot_color_glyph_has_paint = {"ot_color_glyph_has_paint", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_59ot_color_glyph_has_paint, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_59ot_color_glyph_has_paint(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face = 0;
  PyObject *__pyx_v_glyph = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_color_glyph_has_paint (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,&__pyx_mstate_global->__pyx_n_u_glyph,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 312, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 312, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 312, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_color_glyph_has_paint", 0) < (0)) __PYX_ERR(0, 312, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_color_glyph_has_paint", 1, 2, 2, i); __PYX_ERR(0, 312, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 312, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 312, __pyx_L3_error)
    }
    __pyx_v_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "glyph", 0) < (0)) __PYX_ERR(0, 313, __pyx_L3_error)
    __pyx_v_glyph = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_color_glyph_has_paint", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 312, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_color_glyph_has_paint", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, 0, "face", 0))) __PYX_ERR(0, 313, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_glyph), (&PyLong_Type), 0, "glyph", 2))) __PYX_ERR(0, 313, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_58ot_color_glyph_has_paint(__pyx_self, __pyx_v_face, __pyx_v_glyph);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_58ot_color_glyph_has_paint(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, PyObject *__pyx_v_glyph) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_color_glyph_has_paint", 0);

  /* "uharfbuzz/_harfbuzz.pyx":314
 * @deprecated("Face.glyph_has_color_paint()", since="0.40.0")
 * def ot_color_glyph_has_paint(face: Face, glyph: int) -> bool:
 *     return face.glyph_has_color_paint(glyph)             # <<<<<<<<<<<<<<
 * 
 * @deprecated("Face.has_color_svg", since="0.40.0")
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_face);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_glyph};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_glyph_has_color_paint, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 314, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":312
 *     return face.has_color_paint
 * 
 * @deprecated("Face.glyph_has_color_paint()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_glyph_has_paint(face: Face, glyph: int) -> bool:
 *     return face.glyph_has_color_paint(glyph)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_color_glyph_has_paint", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":316
 *     return face.glyph_has_color_paint(glyph)
 * 
 * @deprecated("Face.has_color_svg", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_has_svg(face: Face) -> bool:
 *     return face.has_color_svg
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_61ot_color_has_svg(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_61ot_color_has_svg = {"ot_color_has_svg", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_61ot_color_has_svg, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_61ot_color_has_svg(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_color_has_svg (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 316, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 316, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_color_has_svg", 0) < (0)) __PYX_ERR(0, 316, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_color_has_svg", 1, 1, 1, i); __PYX_ERR(0, 316, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 316, __pyx_L3_error)
    }
    __pyx_v_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_color_has_svg", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 316, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_color_has_svg", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, 0, "face", 0))) __PYX_ERR(0, 317, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_60ot_color_has_svg(__pyx_self, __pyx_v_face);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_60ot_color_has_svg(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_color_has_svg", 0);

  /* "uharfbuzz/_harfbuzz.pyx":318
 * @deprecated("Face.has_color_svg", since="0.40.0")
 * def ot_color_has_svg(face: Face) -> bool:
 *     return face.has_color_svg             # <<<<<<<<<<<<<<
 * 
 * @deprecated("Face.get_glyph_color_svg()", since="0.40.0")
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_n_u_has_color_svg); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 318, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":316
 *     return face.glyph_has_color_paint(glyph)
 * 
 * @deprecated("Face.has_color_svg", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_has_svg(face: Face) -> bool:
 *     return face.has_color_svg
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_color_has_svg", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":320
 *     return face.has_color_svg
 * 
 * @deprecated("Face.get_glyph_color_svg()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_glyph_get_svg(face: Face, glyph: int) -> Blob:
 *     return face.get_glyph_color_svg(glyph)
*/

/* Python wrapper */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_pw_9uharfbuzz_9_harfbuzz_63ot_color_glyph_get_svg(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_63ot_color_glyph_get_svg = {"ot_color_glyph_get_svg", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_63ot_color_glyph_get_svg, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_pw_9uharfbuzz_9_harfbuzz_63ot_color_glyph_get_svg(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face = 0;
  PyObject *__pyx_v_glyph = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_color_glyph_get_svg (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,&__pyx_mstate_global->__pyx_n_u_glyph,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 320, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 320, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 320, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_color_glyph_get_svg", 0) < (0)) __PYX_ERR(0, 320, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_color_glyph_get_svg", 1, 2, 2, i); __PYX_ERR(0, 320, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 320, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 320, __pyx_L3_error)
    }
    __pyx_v_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "glyph", 0) < (0)) __PYX_ERR(0, 321, __pyx_L3_error)
    __pyx_v_glyph = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_color_glyph_get_svg", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 320, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_color_glyph_get_svg", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, 0, "face", 0))) __PYX_ERR(0, 321, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_glyph), (&PyLong_Type), 0, "glyph", 2))) __PYX_ERR(0, 321, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_62ot_color_glyph_get_svg(__pyx_self, __pyx_v_face, __pyx_v_glyph);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_pf_9uharfbuzz_9_harfbuzz_62ot_color_glyph_get_svg(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, PyObject *__pyx_v_glyph) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_color_glyph_get_svg", 0);

  /* "uharfbuzz/_harfbuzz.pyx":322
 * @deprecated("Face.get_glyph_color_svg()", since="0.40.0")
 * def ot_color_glyph_get_svg(face: Face, glyph: int) -> Blob:
 *     return face.get_glyph_color_svg(glyph)             # <<<<<<<<<<<<<<
 * 
 * @deprecated("Face.has_color_png", since="0.40.0")
*/
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_face);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_glyph};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_get_glyph_color_svg, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 322, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Blob))))) __PYX_ERR(0, 322, __pyx_L1_error)
  __pyx_r = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":320
 *     return face.has_color_svg
 * 
 * @deprecated("Face.get_glyph_color_svg()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_glyph_get_svg(face: Face, glyph: int) -> Blob:
 *     return face.get_glyph_color_svg(glyph)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_color_glyph_get_svg", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":324
 *     return face.get_glyph_color_svg(glyph)
 * 
 * @deprecated("Face.has_color_png", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_has_png(face: Face) -> bool:
 *     return face.has_color_png
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_65ot_color_has_png(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_65ot_color_has_png = {"ot_color_has_png", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_65ot_color_has_png, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_65ot_color_has_png(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_color_has_png (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 324, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 324, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_color_has_png", 0) < (0)) __PYX_ERR(0, 324, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_color_has_png", 1, 1, 1, i); __PYX_ERR(0, 324, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 324, __pyx_L3_error)
    }
    __pyx_v_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_color_has_png", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 324, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_color_has_png", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, 0, "face", 0))) __PYX_ERR(0, 325, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_64ot_color_has_png(__pyx_self, __pyx_v_face);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_64ot_color_has_png(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_color_has_png", 0);

  /* "uharfbuzz/_harfbuzz.pyx":326
 * @deprecated("Face.has_color_png", since="0.40.0")
 * def ot_color_has_png(face: Face) -> bool:
 *     return face.has_color_png             # <<<<<<<<<<<<<<
 * 
 * @deprecated("Font.get_glyph_color_png()", since="0.40.0")
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_n_u_has_color_png); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 326, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":324
 *     return face.get_glyph_color_svg(glyph)
 * 
 * @deprecated("Face.has_color_png", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_has_png(face: Face) -> bool:
 *     return face.has_color_png
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_color_has_png", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":328
 *     return face.has_color_png
 * 
 * @deprecated("Font.get_glyph_color_png()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_glyph_get_png(font: Font, glyph: int) -> Blob:
 *     return font.get_glyph_color_png(glyph)
*/

/* Python wrapper */
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_pw_9uharfbuzz_9_harfbuzz_67ot_color_glyph_get_png(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_67ot_color_glyph_get_png = {"ot_color_glyph_get_png", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_67ot_color_glyph_get_png, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_pw_9uharfbuzz_9_harfbuzz_67ot_color_glyph_get_png(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font = 0;
  PyObject *__pyx_v_glyph = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_color_glyph_get_png (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_font,&__pyx_mstate_global->__pyx_n_u_glyph,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 328, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 328, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 328, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_color_glyph_get_png", 0) < (0)) __PYX_ERR(0, 328, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_color_glyph_get_png", 1, 2, 2, i); __PYX_ERR(0, 328, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 328, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 328, __pyx_L3_error)
    }
    __pyx_v_font = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "glyph", 0) < (0)) __PYX_ERR(0, 329, __pyx_L3_error)
    __pyx_v_glyph = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_color_glyph_get_png", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 328, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_color_glyph_get_png", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_font), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, 0, "font", 0))) __PYX_ERR(0, 329, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_glyph), (&PyLong_Type), 0, "glyph", 2))) __PYX_ERR(0, 329, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_66ot_color_glyph_get_png(__pyx_self, __pyx_v_font, __pyx_v_glyph);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_pf_9uharfbuzz_9_harfbuzz_66ot_color_glyph_get_png(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_glyph) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_color_glyph_get_png", 0);

  /* "uharfbuzz/_harfbuzz.pyx":330
 * @deprecated("Font.get_glyph_color_png()", since="0.40.0")
 * def ot_color_glyph_get_png(font: Font, glyph: int) -> Blob:
 *     return font.get_glyph_color_png(glyph)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_font);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_glyph};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_get_glyph_color_png, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 330, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Blob))))) __PYX_ERR(0, 330, __pyx_L1_error)
  __pyx_r = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":328
 *     return face.has_color_png
 * 
 * @deprecated("Font.get_glyph_color_png()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_glyph_get_png(font: Font, glyph: int) -> Blob:
 *     return font.get_glyph_color_png(glyph)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_color_glyph_get_png", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":333
 * 
 * 
 * @deprecated("Face.has_math_data", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_math_has_data(face: Face) -> bool:
 *     return face.has_math_data
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_69ot_math_has_data(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_69ot_math_has_data = {"ot_math_has_data", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_69ot_math_has_data, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_69ot_math_has_data(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_math_has_data (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 333, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 333, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_math_has_data", 0) < (0)) __PYX_ERR(0, 333, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_math_has_data", 1, 1, 1, i); __PYX_ERR(0, 333, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 333, __pyx_L3_error)
    }
    __pyx_v_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_math_has_data", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 333, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_math_has_data", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, 0, "face", 0))) __PYX_ERR(0, 334, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_68ot_math_has_data(__pyx_self, __pyx_v_face);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_68ot_math_has_data(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_math_has_data", 0);

  /* "uharfbuzz/_harfbuzz.pyx":335
 * @deprecated("Face.has_math_data", since="0.40.0")
 * def ot_math_has_data(face: Face) -> bool:
 *     return face.has_math_data             # <<<<<<<<<<<<<<
 * 
 * @deprecated("Font.get_math_constant()", since="0.40.0")
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_n_u_has_math_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 335, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":333
 * 
 * 
 * @deprecated("Face.has_math_data", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_math_has_data(face: Face) -> bool:
 *     return face.has_math_data
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_math_has_data", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":337
 *     return face.has_math_data
 * 
 * @deprecated("Font.get_math_constant()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_math_get_constant(font: Font, constant: OTMathConstant) -> int:
 *     return font.get_math_constant(constant)
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_71ot_math_get_constant(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_71ot_math_get_constant = {"ot_math_get_constant", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_71ot_math_get_constant, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_71ot_math_get_constant(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font = 0;
  PyObject *__pyx_v_constant = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_math_get_constant (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_font,&__pyx_mstate_global->__pyx_n_u_constant,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 337, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 337, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 337, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_math_get_constant", 0) < (0)) __PYX_ERR(0, 337, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_math_get_constant", 1, 2, 2, i); __PYX_ERR(0, 337, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 337, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 337, __pyx_L3_error)
    }
    __pyx_v_font = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)values[0]);
    __pyx_v_constant = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_math_get_constant", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 337, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_math_get_constant", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_font), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, 0, "font", 0))) __PYX_ERR(0, 338, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_70ot_math_get_constant(__pyx_self, __pyx_v_font, __pyx_v_constant);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_70ot_math_get_constant(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_constant) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_math_get_constant", 0);

  /* "uharfbuzz/_harfbuzz.pyx":339
 * @deprecated("Font.get_math_constant()", since="0.40.0")
 * def ot_math_get_constant(font: Font, constant: OTMathConstant) -> int:
 *     return font.get_math_constant(constant)             # <<<<<<<<<<<<<<
 * 
 * @deprecated("Font.get_math_glyph_italics_correction()", since="0.40.0")
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_font);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_constant};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_get_math_constant, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 339, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (__Pyx_PyInt_FromNumber(&__pyx_t_1, NULL, 1) < (0)) __PYX_ERR(0, 339, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":337
 *     return face.has_math_data
 * 
 * @deprecated("Font.get_math_constant()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_math_get_constant(font: Font, constant: OTMathConstant) -> int:
 *     return font.get_math_constant(constant)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_math_get_constant", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":341
 *     return font.get_math_constant(constant)
 * 
 * @deprecated("Font.get_math_glyph_italics_correction()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_math_get_glyph_italics_correction(font: Font, glyph: int) -> int:
 *     return font.get_math_glyph_italics_correction(glyph)
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_73ot_math_get_glyph_italics_correction(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_73ot_math_get_glyph_italics_correction = {"ot_math_get_glyph_italics_correction", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_73ot_math_get_glyph_italics_correction, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_73ot_math_get_glyph_italics_correction(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font = 0;
  PyObject *__pyx_v_glyph = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_math_get_glyph_italics_correction (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_font,&__pyx_mstate_global->__pyx_n_u_glyph,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 341, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 341, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 341, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_math_get_glyph_italics_correction", 0) < (0)) __PYX_ERR(0, 341, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_math_get_glyph_italics_correction", 1, 2, 2, i); __PYX_ERR(0, 341, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 341, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 341, __pyx_L3_error)
    }
    __pyx_v_font = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "glyph", 0) < (0)) __PYX_ERR(0, 342, __pyx_L3_error)
    __pyx_v_glyph = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_math_get_glyph_italics_correction", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 341, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_math_get_glyph_italics_correction", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_font), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, 0, "font", 0))) __PYX_ERR(0, 342, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_glyph), (&PyLong_Type), 0, "glyph", 2))) __PYX_ERR(0, 342, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_72ot_math_get_glyph_italics_correction(__pyx_self, __pyx_v_font, __pyx_v_glyph);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_72ot_math_get_glyph_italics_correction(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_glyph) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_math_get_glyph_italics_correction", 0);

  /* "uharfbuzz/_harfbuzz.pyx":343
 * @deprecated("Font.get_math_glyph_italics_correction()", since="0.40.0")
 * def ot_math_get_glyph_italics_correction(font: Font, glyph: int) -> int:
 *     return font.get_math_glyph_italics_correction(glyph)             # <<<<<<<<<<<<<<
 * 
 * @deprecated("Font.get_math_glyph_top_accent_attachment()", since="0.40.0")
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_font);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_glyph};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_get_math_glyph_italics_correctio, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 343, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (__Pyx_PyInt_FromNumber(&__pyx_t_1, NULL, 1) < (0)) __PYX_ERR(0, 343, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":341
 *     return font.get_math_constant(constant)
 * 
 * @deprecated("Font.get_math_glyph_italics_correction()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_math_get_glyph_italics_correction(font: Font, glyph: int) -> int:
 *     return font.get_math_glyph_italics_correction(glyph)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_math_get_glyph_italics_correction", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":345
 *     return font.get_math_glyph_italics_correction(glyph)
 * 
 * @deprecated("Font.get_math_glyph_top_accent_attachment()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_math_get_glyph_top_accent_attachment(font: Font, glyph: int) -> int:
 *     return font.get_math_glyph_top_accent_attachment(glyph)
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_75ot_math_get_glyph_top_accent_attachment(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_75ot_math_get_glyph_top_accent_attachment = {"ot_math_get_glyph_top_accent_attachment", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_75ot_math_get_glyph_top_accent_attachment, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_75ot_math_get_glyph_top_accent_attachment(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font = 0;
  PyObject *__pyx_v_glyph = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_math_get_glyph_top_accent_attachment (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_font,&__pyx_mstate_global->__pyx_n_u_glyph,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 345, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 345, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 345, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_math_get_glyph_top_accent_attachment", 0) < (0)) __PYX_ERR(0, 345, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_math_get_glyph_top_accent_attachment", 1, 2, 2, i); __PYX_ERR(0, 345, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 345, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 345, __pyx_L3_error)
    }
    __pyx_v_font = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "glyph", 0) < (0)) __PYX_ERR(0, 346, __pyx_L3_error)
    __pyx_v_glyph = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_math_get_glyph_top_accent_attachment", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 345, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_math_get_glyph_top_accent_attachment", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_font), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, 0, "font", 0))) __PYX_ERR(0, 346, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_glyph), (&PyLong_Type), 0, "glyph", 2))) __PYX_ERR(0, 346, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_74ot_math_get_glyph_top_accent_attachment(__pyx_self, __pyx_v_font, __pyx_v_glyph);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_74ot_math_get_glyph_top_accent_attachment(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_glyph) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_math_get_glyph_top_accent_attachment", 0);

  /* "uharfbuzz/_harfbuzz.pyx":347
 * @deprecated("Font.get_math_glyph_top_accent_attachment()", since="0.40.0")
 * def ot_math_get_glyph_top_accent_attachment(font: Font, glyph: int) -> int:
 *     return font.get_math_glyph_top_accent_attachment(glyph)             # <<<<<<<<<<<<<<
 * 
 * @deprecated("Face.is_glyph_extended_math_shape()", since="0.40.0")
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_font);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_glyph};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_get_math_glyph_top_accent_attach, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 347, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (__Pyx_PyInt_FromNumber(&__pyx_t_1, NULL, 1) < (0)) __PYX_ERR(0, 347, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":345
 *     return font.get_math_glyph_italics_correction(glyph)
 * 
 * @deprecated("Font.get_math_glyph_top_accent_attachment()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_math_get_glyph_top_accent_attachment(font: Font, glyph: int) -> int:
 *     return font.get_math_glyph_top_accent_attachment(glyph)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_math_get_glyph_top_accent_attachment", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":349
 *     return font.get_math_glyph_top_accent_attachment(glyph)
 * 
 * @deprecated("Face.is_glyph_extended_math_shape()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_math_is_glyph_extended_shape(face: Face, glyph: int) -> bool:
 *     return face.is_glyph_extended_math_shape(glyph)
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_77ot_math_is_glyph_extended_shape(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_77ot_math_is_glyph_extended_shape = {"ot_math_is_glyph_extended_shape", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_77ot_math_is_glyph_extended_shape, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_77ot_math_is_glyph_extended_shape(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face = 0;
  PyObject *__pyx_v_glyph = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_math_is_glyph_extended_shape (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,&__pyx_mstate_global->__pyx_n_u_glyph,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 349, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 349, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 349, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_math_is_glyph_extended_shape", 0) < (0)) __PYX_ERR(0, 349, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_math_is_glyph_extended_shape", 1, 2, 2, i); __PYX_ERR(0, 349, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 349, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 349, __pyx_L3_error)
    }
    __pyx_v_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "glyph", 0) < (0)) __PYX_ERR(0, 350, __pyx_L3_error)
    __pyx_v_glyph = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_math_is_glyph_extended_shape", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 349, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_math_is_glyph_extended_shape", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_face), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, 0, "face", 0))) __PYX_ERR(0, 350, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_glyph), (&PyLong_Type), 0, "glyph", 2))) __PYX_ERR(0, 350, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_76ot_math_is_glyph_extended_shape(__pyx_self, __pyx_v_face, __pyx_v_glyph);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_76ot_math_is_glyph_extended_shape(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *__pyx_v_face, PyObject *__pyx_v_glyph) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_math_is_glyph_extended_shape", 0);

  /* "uharfbuzz/_harfbuzz.pyx":351
 * @deprecated("Face.is_glyph_extended_math_shape()", since="0.40.0")
 * def ot_math_is_glyph_extended_shape(face: Face, glyph: int) -> bool:
 *     return face.is_glyph_extended_math_shape(glyph)             # <<<<<<<<<<<<<<
 * 
 * @deprecated("Font.get_math_min_connector_overlap()", since="0.40.0")
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_face);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_glyph};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_is_glyph_extended_math_shape, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 351, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":349
 *     return font.get_math_glyph_top_accent_attachment(glyph)
 * 
 * @deprecated("Face.is_glyph_extended_math_shape()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_math_is_glyph_extended_shape(face: Face, glyph: int) -> bool:
 *     return face.is_glyph_extended_math_shape(glyph)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_math_is_glyph_extended_shape", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":353
 *     return face.is_glyph_extended_math_shape(glyph)
 * 
 * @deprecated("Font.get_math_min_connector_overlap()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_math_get_min_connector_overlap(font: Font, direction: str) -> int:
 *     return font.get_math_min_connector_overlap(direction)
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_79ot_math_get_min_connector_overlap(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_79ot_math_get_min_connector_overlap = {"ot_math_get_min_connector_overlap", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_79ot_math_get_min_connector_overlap, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_79ot_math_get_min_connector_overlap(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font = 0;
  PyObject *__pyx_v_direction = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_math_get_min_connector_overlap (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_font,&__pyx_mstate_global->__pyx_n_u_direction,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 353, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 353, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 353, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_math_get_min_connector_overlap", 0) < (0)) __PYX_ERR(0, 353, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_math_get_min_connector_overlap", 1, 2, 2, i); __PYX_ERR(0, 353, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 353, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 353, __pyx_L3_error)
    }
    __pyx_v_font = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)values[0]);
    __pyx_v_direction = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_math_get_min_connector_overlap", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 353, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_math_get_min_connector_overlap", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_font), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, 0, "font", 0))) __PYX_ERR(0, 354, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_direction), (&PyUnicode_Type), 0, "direction", 2))) __PYX_ERR(0, 354, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_78ot_math_get_min_connector_overlap(__pyx_self, __pyx_v_font, __pyx_v_direction);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_78ot_math_get_min_connector_overlap(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_direction) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_math_get_min_connector_overlap", 0);

  /* "uharfbuzz/_harfbuzz.pyx":355
 * @deprecated("Font.get_math_min_connector_overlap()", since="0.40.0")
 * def ot_math_get_min_connector_overlap(font: Font, direction: str) -> int:
 *     return font.get_math_min_connector_overlap(direction)             # <<<<<<<<<<<<<<
 * 
 * @deprecated("Font.get_math_glyph_kerning()", since="0.40.0")
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_font);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_direction};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_get_math_min_connector_overlap, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 355, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (__Pyx_PyInt_FromNumber(&__pyx_t_1, NULL, 1) < (0)) __PYX_ERR(0, 355, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":353
 *     return face.is_glyph_extended_math_shape(glyph)
 * 
 * @deprecated("Font.get_math_min_connector_overlap()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_math_get_min_connector_overlap(font: Font, direction: str) -> int:
 *     return font.get_math_min_connector_overlap(direction)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_math_get_min_connector_overlap", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":357
 *     return font.get_math_min_connector_overlap(direction)
 * 
 * @deprecated("Font.get_math_glyph_kerning()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_math_get_glyph_kerning(font: Font,
 *                               glyph: int,
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_81ot_math_get_glyph_kerning(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_81ot_math_get_glyph_kerning = {"ot_math_get_glyph_kerning", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_81ot_math_get_glyph_kerning, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_81ot_math_get_glyph_kerning(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font = 0;
  PyObject *__pyx_v_glyph = 0;
  PyObject *__pyx_v_kern = 0;
  int __pyx_v_correction_height;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_math_get_glyph_kerning (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_font,&__pyx_mstate_global->__pyx_n_u_glyph,&__pyx_mstate_global->__pyx_n_u_kern,&__pyx_mstate_global->__pyx_n_u_correction_height,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 357, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 357, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 357, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 357, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 357, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_math_get_glyph_kerning", 0) < (0)) __PYX_ERR(0, 357, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_math_get_glyph_kerning", 1, 4, 4, i); __PYX_ERR(0, 357, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 357, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 357, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 357, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 357, __pyx_L3_error)
    }
    __pyx_v_font = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "glyph", 0) < (0)) __PYX_ERR(0, 359, __pyx_L3_error)
    __pyx_v_glyph = ((PyObject*)values[1]);
    __pyx_v_kern = values[2];
    __pyx_v_correction_height = __Pyx_PyLong_As_int(values[3]); if (unlikely((__pyx_v_correction_height == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 361, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_math_get_glyph_kerning", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 357, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_math_get_glyph_kerning", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_font), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, 0, "font", 0))) __PYX_ERR(0, 358, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_glyph), (&PyLong_Type), 0, "glyph", 2))) __PYX_ERR(0, 359, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_80ot_math_get_glyph_kerning(__pyx_self, __pyx_v_font, __pyx_v_glyph, __pyx_v_kern, __pyx_v_correction_height);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_80ot_math_get_glyph_kerning(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_glyph, PyObject *__pyx_v_kern, int __pyx_v_correction_height) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_math_get_glyph_kerning", 0);

  /* "uharfbuzz/_harfbuzz.pyx":362
 *                               kern: OTMathKern,
 *                               int correction_height) -> int:
 *     return font.get_math_glyph_kerning(glyph, kern, correction_height)             # <<<<<<<<<<<<<<
 * 
 * @deprecated("Font.get_math_glyph_kernings()", since="0.40.0")
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_font);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_correction_height); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 362, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_v_glyph, __pyx_v_kern, __pyx_t_3};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_get_math_glyph_kerning, __pyx_callargs+__pyx_t_4, (4-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 362, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (__Pyx_PyInt_FromNumber(&__pyx_t_1, NULL, 1) < (0)) __PYX_ERR(0, 362, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":357
 *     return font.get_math_min_connector_overlap(direction)
 * 
 * @deprecated("Font.get_math_glyph_kerning()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_math_get_glyph_kerning(font: Font,
 *                               glyph: int,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_math_get_glyph_kerning", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":364
 *     return font.get_math_glyph_kerning(glyph, kern, correction_height)
 * 
 * @deprecated("Font.get_math_glyph_kernings()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_math_get_glyph_kernings(font: Font,
 *                                glyph: int,
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_83ot_math_get_glyph_kernings(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_83ot_math_get_glyph_kernings = {"ot_math_get_glyph_kernings", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_83ot_math_get_glyph_kernings, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_83ot_math_get_glyph_kernings(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font = 0;
  PyObject *__pyx_v_glyph = 0;
  PyObject *__pyx_v_kern = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_math_get_glyph_kernings (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_font,&__pyx_mstate_global->__pyx_n_u_glyph,&__pyx_mstate_global->__pyx_n_u_kern,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 364, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 364, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 364, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 364, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_math_get_glyph_kernings", 0) < (0)) __PYX_ERR(0, 364, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_math_get_glyph_kernings", 1, 3, 3, i); __PYX_ERR(0, 364, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 364, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 364, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 364, __pyx_L3_error)
    }
    __pyx_v_font = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "glyph", 0) < (0)) __PYX_ERR(0, 366, __pyx_L3_error)
    __pyx_v_glyph = ((PyObject*)values[1]);
    __pyx_v_kern = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_math_get_glyph_kernings", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 364, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_math_get_glyph_kernings", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_font), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, 0, "font", 0))) __PYX_ERR(0, 365, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_glyph), (&PyLong_Type), 0, "glyph", 2))) __PYX_ERR(0, 366, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_82ot_math_get_glyph_kernings(__pyx_self, __pyx_v_font, __pyx_v_glyph, __pyx_v_kern);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_82ot_math_get_glyph_kernings(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_glyph, PyObject *__pyx_v_kern) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_math_get_glyph_kernings", 0);

  /* "uharfbuzz/_harfbuzz.pyx":368
 *                                glyph: int,
 *                                kern: OTMathKern) -> List[OTMathKernEntry]:
 *     return font.get_math_glyph_kernings(glyph, kern)             # <<<<<<<<<<<<<<
 * 
 * @deprecated("Font.get_math_glyph_variants()", since="0.40.0")
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_font);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_v_glyph, __pyx_v_kern};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_get_math_glyph_kernings, __pyx_callargs+__pyx_t_3, (3-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 368, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (!(likely(PyList_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("list", __pyx_t_1))) __PYX_ERR(0, 368, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":364
 *     return font.get_math_glyph_kerning(glyph, kern, correction_height)
 * 
 * @deprecated("Font.get_math_glyph_kernings()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_math_get_glyph_kernings(font: Font,
 *                                glyph: int,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_math_get_glyph_kernings", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":370
 *     return font.get_math_glyph_kernings(glyph, kern)
 * 
 * @deprecated("Font.get_math_glyph_variants()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_math_get_glyph_variants(font: Font, glyph: int, direction: str) -> List[OTMathGlyphVariant]:
 *     return font.get_math_glyph_variants(glyph, direction)
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_85ot_math_get_glyph_variants(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_85ot_math_get_glyph_variants = {"ot_math_get_glyph_variants", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_85ot_math_get_glyph_variants, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_85ot_math_get_glyph_variants(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font = 0;
  PyObject *__pyx_v_glyph = 0;
  PyObject *__pyx_v_direction = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_math_get_glyph_variants (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_font,&__pyx_mstate_global->__pyx_n_u_glyph,&__pyx_mstate_global->__pyx_n_u_direction,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 370, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 370, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 370, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 370, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_math_get_glyph_variants", 0) < (0)) __PYX_ERR(0, 370, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_math_get_glyph_variants", 1, 3, 3, i); __PYX_ERR(0, 370, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 370, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 370, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 370, __pyx_L3_error)
    }
    __pyx_v_font = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "glyph", 0) < (0)) __PYX_ERR(0, 371, __pyx_L3_error)
    __pyx_v_glyph = ((PyObject*)values[1]);
    __pyx_v_direction = ((PyObject*)values[2]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_math_get_glyph_variants", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 370, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_math_get_glyph_variants", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_font), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, 0, "font", 0))) __PYX_ERR(0, 371, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_glyph), (&PyLong_Type), 0, "glyph", 2))) __PYX_ERR(0, 371, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_direction), (&PyUnicode_Type), 0, "direction", 2))) __PYX_ERR(0, 371, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_84ot_math_get_glyph_variants(__pyx_self, __pyx_v_font, __pyx_v_glyph, __pyx_v_direction);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_84ot_math_get_glyph_variants(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_glyph, PyObject *__pyx_v_direction) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_math_get_glyph_variants", 0);

  /* "uharfbuzz/_harfbuzz.pyx":372
 * @deprecated("Font.get_math_glyph_variants()", since="0.40.0")
 * def ot_math_get_glyph_variants(font: Font, glyph: int, direction: str) -> List[OTMathGlyphVariant]:
 *     return font.get_math_glyph_variants(glyph, direction)             # <<<<<<<<<<<<<<
 * 
 * @deprecated("Font.get_math_glyph_assembly()", since="0.40.0")
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_font);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_v_glyph, __pyx_v_direction};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_get_math_glyph_variants, __pyx_callargs+__pyx_t_3, (3-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 372, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (!(likely(PyList_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("list", __pyx_t_1))) __PYX_ERR(0, 372, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":370
 *     return font.get_math_glyph_kernings(glyph, kern)
 * 
 * @deprecated("Font.get_math_glyph_variants()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_math_get_glyph_variants(font: Font, glyph: int, direction: str) -> List[OTMathGlyphVariant]:
 *     return font.get_math_glyph_variants(glyph, direction)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_math_get_glyph_variants", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":374
 *     return font.get_math_glyph_variants(glyph, direction)
 * 
 * @deprecated("Font.get_math_glyph_assembly()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_math_get_glyph_assembly(font: Font,
 *                                glyph: int,
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_87ot_math_get_glyph_assembly(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_87ot_math_get_glyph_assembly = {"ot_math_get_glyph_assembly", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_87ot_math_get_glyph_assembly, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_87ot_math_get_glyph_assembly(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font = 0;
  PyObject *__pyx_v_glyph = 0;
  PyObject *__pyx_v_direction = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_math_get_glyph_assembly (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_font,&__pyx_mstate_global->__pyx_n_u_glyph,&__pyx_mstate_global->__pyx_n_u_direction,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 374, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 374, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 374, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 374, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_math_get_glyph_assembly", 0) < (0)) __PYX_ERR(0, 374, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_math_get_glyph_assembly", 1, 3, 3, i); __PYX_ERR(0, 374, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 374, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 374, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 374, __pyx_L3_error)
    }
    __pyx_v_font = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)values[0]);
    if (__Pyx_PyInt_FromNumber(&values[1], "glyph", 0) < (0)) __PYX_ERR(0, 376, __pyx_L3_error)
    __pyx_v_glyph = ((PyObject*)values[1]);
    __pyx_v_direction = ((PyObject*)values[2]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_math_get_glyph_assembly", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 374, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_math_get_glyph_assembly", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_font), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, 0, "font", 0))) __PYX_ERR(0, 375, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_glyph), (&PyLong_Type), 0, "glyph", 2))) __PYX_ERR(0, 376, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_direction), (&PyUnicode_Type), 0, "direction", 2))) __PYX_ERR(0, 377, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_86ot_math_get_glyph_assembly(__pyx_self, __pyx_v_font, __pyx_v_glyph, __pyx_v_direction);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_86ot_math_get_glyph_assembly(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font, PyObject *__pyx_v_glyph, PyObject *__pyx_v_direction) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ot_math_get_glyph_assembly", 0);

  /* "uharfbuzz/_harfbuzz.pyx":378
 *                                glyph: int,
 *                                direction: str) -> Tuple[List[OTMathGlyphPart], int]:
 *     return font.get_math_glyph_assembly(glyph, direction)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_font);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_v_glyph, __pyx_v_direction};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_get_math_glyph_assembly, __pyx_callargs+__pyx_t_3, (3-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 378, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (!(likely(PyTuple_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_1))) __PYX_ERR(0, 378, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "uharfbuzz/_harfbuzz.pyx":374
 *     return font.get_math_glyph_variants(glyph, direction)
 * 
 * @deprecated("Font.get_math_glyph_assembly()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_math_get_glyph_assembly(font: Font,
 *                                glyph: int,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_math_get_glyph_assembly", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "uharfbuzz/_harfbuzz.pyx":381
 * 
 * 
 * def ot_font_set_funcs(font: Font):             # <<<<<<<<<<<<<<
 *     """Sets the font functions to use when working with ``font`` to the
 *     HarfBuzz's native implementation. This is the default for fonts newly
*/

/* Python wrapper */
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_89ot_font_set_funcs(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_9uharfbuzz_9_harfbuzz_88ot_font_set_funcs, "Sets the font functions to use when working with ``font`` to the\n    HarfBuzz's native implementation. This is the default for fonts newly\n    created.\n\n    Wraps `hb_ot_font_set_funcs()\n    <https://harfbuzz.github.io/harfbuzz-hb-ot-font.html#hb-ot-font-set-funcs>`_.\n    ");
static PyMethodDef __pyx_mdef_9uharfbuzz_9_harfbuzz_89ot_font_set_funcs = {"ot_font_set_funcs", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_89ot_font_set_funcs, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_88ot_font_set_funcs};
static PyObject *__pyx_pw_9uharfbuzz_9_harfbuzz_89ot_font_set_funcs(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_font_set_funcs (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_font,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 381, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 381, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ot_font_set_funcs", 0) < (0)) __PYX_ERR(0, 381, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ot_font_set_funcs", 1, 1, 1, i); __PYX_ERR(0, 381, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 381, __pyx_L3_error)
    }
    __pyx_v_font = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ot_font_set_funcs", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 381, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("uharfbuzz._harfbuzz.ot_font_set_funcs", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_font), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, 0, "font", 0))) __PYX_ERR(0, 381, __pyx_L1_error)
  __pyx_r = __pyx_pf_9uharfbuzz_9_harfbuzz_88ot_font_set_funcs(__pyx_self, __pyx_v_font);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_9uharfbuzz_9_harfbuzz_88ot_font_set_funcs(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *__pyx_v_font) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ot_font_set_funcs", 0);

  /* "uharfbuzz/_harfbuzz.pyx":389
 *     <https://harfbuzz.github.io/harfbuzz-hb-ot-font.html#hb-ot-font-set-funcs>`_.
 *     """
 *     hb_ot_font_set_funcs(font._hb_font)             # <<<<<<<<<<<<<<
*/
  hb_ot_font_set_funcs(__pyx_v_font->_hb_font);

  /* "uharfbuzz/_harfbuzz.pyx":381
 * 
 * 
 * def ot_font_set_funcs(font: Font):             # <<<<<<<<<<<<<<
 *     """Sets the font functions to use when working with ``font`` to the
 *     HarfBuzz's native implementation. This is the default for fonts newly
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
/* #### Code section: module_exttypes ### */
static struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_Set __pyx_vtable_9uharfbuzz_9_harfbuzz_Set;

static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_Set(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)o);
  p->__pyx_vtab = __pyx_vtabptr_9uharfbuzz_9_harfbuzz_Set;
  if (unlikely(__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_Set(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_Set) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_9uharfbuzz_9_harfbuzz_3Set_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_tp_richcompare_9uharfbuzz_9_harfbuzz_Set(PyObject *o1, PyObject *o2, int op) {
  switch (op) {
    case Py_EQ: {
      return __pyx_pw_9uharfbuzz_9_harfbuzz_3Set_33__eq__(o1, o2);
    }
    case Py_NE: {
      PyObject *ret;
      ret = __pyx_pw_9uharfbuzz_9_harfbuzz_3Set_33__eq__(o1, o2);
      if (likely(ret && ret != Py_NotImplemented)) {
        int b = __Pyx_PyObject_IsTrue(ret);
        Py_DECREF(ret);
        if (unlikely(b < 0)) return NULL;
        ret = (b) ? Py_False : Py_True;
        Py_INCREF(ret);
      }
      return ret;
    }
    default: {
      return __Pyx_NewRef(Py_NotImplemented);
    }
  }
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_3Set_min(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_3Set_3min_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_3Set_max(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_3Set_3max_1__get__(o);
}

static PyMethodDef __pyx_methods_9uharfbuzz_9_harfbuzz_Set[] = {
  {"copy", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_7copy, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Set_6copy},
  {"__copy__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_9__copy__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"clear", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_11clear, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Set_10clear},
  {"invert", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_15invert, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Set_14invert},
  {"is_inverted", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_17is_inverted, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Set_16is_inverted},
  {"add", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_21add, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Set_20add},
  {"add_range", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_23add_range, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Set_22add_range},
  {"remove", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_25remove, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Set_24remove},
  {"discard", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_27discard, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Set_26discard},
  {"del_range", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_29del_range, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Set_28del_range},
  {"_is_equal", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_31_is_equal, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"issubset", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_35issubset, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Set_34issubset},
  {"issuperset", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_37issuperset, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Set_36issuperset},
  {"_set", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_39_set, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"set", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_41set, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Set_40set},
  {"_update", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_43_update, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"update", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_45update, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Set_44update},
  {"intersection_update", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_49intersection_update, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Set_48intersection_update},
  {"difference_update", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_53difference_update, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Set_52difference_update},
  {"symmetric_difference_update", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_57symmetric_difference_update, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Set_56symmetric_difference_update},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_67__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_69__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_9uharfbuzz_9_harfbuzz_Set[] = {
  {"min", __pyx_getprop_9uharfbuzz_9_harfbuzz_3Set_min, 0, PyDoc_STR("The smallest element in the set, or :attr:`INVALID_VALUE` if the\n        set is empty.\n\n        :type: int\n\n        Wraps `hb_set_get_min()\n        <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-get-min>`_.\n        "), 0},
  {"max", __pyx_getprop_9uharfbuzz_9_harfbuzz_3Set_max, 0, PyDoc_STR("The largest element in the set, or :attr:`INVALID_VALUE` if the\n        set is empty.\n\n        :type: int\n\n        Wraps `hb_set_get_max()\n        <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-get-max>`_.\n        "), 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_9uharfbuzz_9_harfbuzz_Set_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_Set},
  {Py_tp_repr, (void *)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_65__repr__},
  {Py_nb_bool, (void *)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_13__bool__},
  {Py_nb_inplace_subtract, (void *)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_55__isub__},
  {Py_nb_inplace_and, (void *)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_51__iand__},
  {Py_nb_inplace_xor, (void *)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_59__ixor__},
  {Py_nb_inplace_or, (void *)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_47__ior__},
  {Py_sq_length, (void *)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_61__len__},
  {Py_sq_contains, (void *)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_19__contains__},
  {Py_mp_length, (void *)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_61__len__},
  {Py_tp_doc, (void *)PyDoc_STR("Data type for holding a set of integers. :class:`Set` is used to\n    gather and contain glyph IDs, Unicode code points, and various other\n    collections of discrete values.\n\n    .. attribute:: INVALID_VALUE\n\n       Unset set value.\n\n       Wraps `HB_SET_VALUE_INVALID\n       <https://harfbuzz.github.io/harfbuzz-hb-set.html#HB-SET-VALUE-INVALID:CAPS>`_.\n\n    Wraps `hb_set_t\n    <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-t>`_.\n    ")},
  {Py_tp_richcompare, (void *)__pyx_tp_richcompare_9uharfbuzz_9_harfbuzz_Set},
  {Py_tp_iter, (void *)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_63__iter__},
  {Py_tp_methods, (void *)__pyx_methods_9uharfbuzz_9_harfbuzz_Set},
  {Py_tp_getset, (void *)__pyx_getsets_9uharfbuzz_9_harfbuzz_Set},
  {Py_tp_init, (void *)__pyx_pw_9uharfbuzz_9_harfbuzz_3Set_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_9uharfbuzz_9_harfbuzz_Set},
  {0, 0},
};
static PyType_Spec __pyx_type_9uharfbuzz_9_harfbuzz_Set_spec = {
  "uharfbuzz._harfbuzz.Set",
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_9uharfbuzz_9_harfbuzz_Set_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_Set = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  __pyx_pw_9uharfbuzz_9_harfbuzz_3Set_13__bool__, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  0, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  __pyx_pw_9uharfbuzz_9_harfbuzz_3Set_55__isub__, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  __pyx_pw_9uharfbuzz_9_harfbuzz_3Set_51__iand__, /*nb_inplace_and*/
  __pyx_pw_9uharfbuzz_9_harfbuzz_3Set_59__ixor__, /*nb_inplace_xor*/
  __pyx_pw_9uharfbuzz_9_harfbuzz_3Set_47__ior__, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  0, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PySequenceMethods __pyx_tp_as_sequence_Set = {
  __pyx_pw_9uharfbuzz_9_harfbuzz_3Set_61__len__, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  0, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  __pyx_pw_9uharfbuzz_9_harfbuzz_3Set_19__contains__, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_Set = {
  __pyx_pw_9uharfbuzz_9_harfbuzz_3Set_61__len__, /*mp_length*/
  0, /*mp_subscript*/
  0, /*mp_ass_subscript*/
};

static PyTypeObject __pyx_type_9uharfbuzz_9_harfbuzz_Set = {
  PyVarObject_HEAD_INIT(0, 0)
  "uharfbuzz._harfbuzz.""Set", /*tp_name*/
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_Set, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_9uharfbuzz_9_harfbuzz_3Set_65__repr__, /*tp_repr*/
  &__pyx_tp_as_number_Set, /*tp_as_number*/
  &__pyx_tp_as_sequence_Set, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_Set, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("Data type for holding a set of integers. :class:`Set` is used to\n    gather and contain glyph IDs, Unicode code points, and various other\n    collections of discrete values.\n\n    .. attribute:: INVALID_VALUE\n\n       Unset set value.\n\n       Wraps `HB_SET_VALUE_INVALID\n       <https://harfbuzz.github.io/harfbuzz-hb-set.html#HB-SET-VALUE-INVALID:CAPS>`_.\n\n    Wraps `hb_set_t\n    <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-t>`_.\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  __pyx_tp_richcompare_9uharfbuzz_9_harfbuzz_Set, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  __pyx_pw_9uharfbuzz_9_harfbuzz_3Set_63__iter__, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_9uharfbuzz_9_harfbuzz_Set, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_9uharfbuzz_9_harfbuzz_Set, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_9uharfbuzz_9_harfbuzz_3Set_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_9uharfbuzz_9_harfbuzz_Set, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_SetIter(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_SetIter *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_SetIter *)o);
  p->s = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_9uharfbuzz_9_harfbuzz_7SetIter_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_SetIter(PyObject *o) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_SetIter *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_SetIter *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_SetIter) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->s);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_9uharfbuzz_9_harfbuzz_SetIter(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_SetIter *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_SetIter *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->s) {
    e = (*v)(((PyObject *)p->s), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_9uharfbuzz_9_harfbuzz_SetIter(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_SetIter *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_SetIter *)o;
  tmp = ((PyObject*)p->s);
  p->s = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_specialmethod___pyx_pw_9uharfbuzz_9_harfbuzz_7SetIter_5__next__(PyObject *self, CYTHON_UNUSED PyObject *arg) {
  PyObject *res = __pyx_pw_9uharfbuzz_9_harfbuzz_7SetIter_5__next__(self);
  if (!res && !PyErr_Occurred()) { PyErr_SetNone(PyExc_StopIteration); }
  return res;
}

static PyMethodDef __pyx_methods_9uharfbuzz_9_harfbuzz_SetIter[] = {
  {"__next__", (PyCFunction)__pyx_specialmethod___pyx_pw_9uharfbuzz_9_harfbuzz_7SetIter_5__next__, METH_NOARGS|METH_COEXIST, 0},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_7SetIter_7__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_7SetIter_9__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_9uharfbuzz_9_harfbuzz_SetIter_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_SetIter},
  {Py_tp_doc, (void *)PyDoc_STR("Iterator over the elements of a :class:`Set` in increasing order.\n\n    Wraps `hb_set_next()\n    <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-next>`_.\n    ")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_9uharfbuzz_9_harfbuzz_SetIter},
  {Py_tp_clear, (void *)__pyx_tp_clear_9uharfbuzz_9_harfbuzz_SetIter},
  {Py_tp_iter, (void *)__pyx_pw_9uharfbuzz_9_harfbuzz_7SetIter_3__iter__},
  {Py_tp_iternext, (void *)__pyx_pw_9uharfbuzz_9_harfbuzz_7SetIter_5__next__},
  {Py_tp_methods, (void *)__pyx_methods_9uharfbuzz_9_harfbuzz_SetIter},
  {Py_tp_new, (void *)__pyx_tp_new_9uharfbuzz_9_harfbuzz_SetIter},
  {0, 0},
};
static PyType_Spec __pyx_type_9uharfbuzz_9_harfbuzz_SetIter_spec = {
  "uharfbuzz._harfbuzz.SetIter",
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SetIter),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_9uharfbuzz_9_harfbuzz_SetIter_slots,
};
#else

static PyTypeObject __pyx_type_9uharfbuzz_9_harfbuzz_SetIter = {
  PyVarObject_HEAD_INIT(0, 0)
  "uharfbuzz._harfbuzz.""SetIter", /*tp_name*/
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SetIter), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_SetIter, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("Iterator over the elements of a :class:`Set` in increasing order.\n\n    Wraps `hb_set_next()\n    <https://harfbuzz.github.io/harfbuzz-hb-set.html#hb-set-next>`_.\n    "), /*tp_doc*/
  __pyx_tp_traverse_9uharfbuzz_9_harfbuzz_SetIter, /*tp_traverse*/
  __pyx_tp_clear_9uharfbuzz_9_harfbuzz_SetIter, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  __pyx_pw_9uharfbuzz_9_harfbuzz_7SetIter_3__iter__, /*tp_iter*/
  __pyx_pw_9uharfbuzz_9_harfbuzz_7SetIter_5__next__, /*tp_iternext*/
  __pyx_methods_9uharfbuzz_9_harfbuzz_SetIter, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_9uharfbuzz_9_harfbuzz_SetIter, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
static struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_Map __pyx_vtable_9uharfbuzz_9_harfbuzz_Map;

static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_Map(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)o);
  p->__pyx_vtab = __pyx_vtabptr_9uharfbuzz_9_harfbuzz_Map;
  if (unlikely(__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_Map(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_Map) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_9uharfbuzz_9_harfbuzz_3Map_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_sq_item_9uharfbuzz_9_harfbuzz_Map(PyObject *o, Py_ssize_t i) {
  PyObject *r;
  PyObject *x = PyLong_FromSsize_t(i); if(!x) return 0;
  #if CYTHON_USE_TYPE_SLOTS || (!CYTHON_USE_TYPE_SPECS && __PYX_LIMITED_VERSION_HEX < 0x030A0000)
  r = Py_TYPE(o)->tp_as_mapping->mp_subscript(o, x);
  #else
  r = ((binaryfunc)PyType_GetSlot(Py_TYPE(o), Py_mp_subscript))(o, x);
  #endif
  Py_DECREF(x);
  return r;
}

static int __pyx_mp_ass_subscript_9uharfbuzz_9_harfbuzz_Map(PyObject *o, PyObject *i, PyObject *v) {
  if (v) {
    return __pyx_pw_9uharfbuzz_9_harfbuzz_3Map_25__setitem__(o, i, v);
  }
  else {
    return __pyx_pw_9uharfbuzz_9_harfbuzz_3Map_33__delitem__(o, i);
  }
}

static PyObject *__pyx_tp_richcompare_9uharfbuzz_9_harfbuzz_Map(PyObject *o1, PyObject *o2, int op) {
  switch (op) {
    case Py_EQ: {
      return __pyx_pw_9uharfbuzz_9_harfbuzz_3Map_23__eq__(o1, o2);
    }
    case Py_NE: {
      PyObject *ret;
      ret = __pyx_pw_9uharfbuzz_9_harfbuzz_3Map_23__eq__(o1, o2);
      if (likely(ret && ret != Py_NotImplemented)) {
        int b = __Pyx_PyObject_IsTrue(ret);
        Py_DECREF(ret);
        if (unlikely(b < 0)) return NULL;
        ret = (b) ? Py_False : Py_True;
        Py_INCREF(ret);
      }
      return ret;
    }
    default: {
      return __Pyx_NewRef(Py_NotImplemented);
    }
  }
}

static PyMethodDef __pyx_methods_9uharfbuzz_9_harfbuzz_Map[] = {
  {"copy", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_7copy, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Map_6copy},
  {"__copy__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_9__copy__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"_update", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_11_update, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"update", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_13update, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Map_12update},
  {"clear", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_15clear, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Map_14clear},
  {"_is_equal", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_21_is_equal, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"get", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_27get, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Map_26get},
  {"items", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_35items, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Map_34items},
  {"keys", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_37keys, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Map_36keys},
  {"values", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_39values, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_3Map_38values},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_45__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_47__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_9uharfbuzz_9_harfbuzz_Map_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_Map},
  {Py_tp_repr, (void *)__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_43__repr__},
  {Py_nb_bool, (void *)__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_17__bool__},
  {Py_sq_length, (void *)__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_19__len__},
  {Py_sq_item, (void *)__pyx_sq_item_9uharfbuzz_9_harfbuzz_Map},
  {Py_sq_contains, (void *)__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_31__contains__},
  {Py_mp_length, (void *)__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_19__len__},
  {Py_mp_subscript, (void *)__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_29__getitem__},
  {Py_mp_ass_subscript, (void *)__pyx_mp_ass_subscript_9uharfbuzz_9_harfbuzz_Map},
  {Py_tp_doc, (void *)PyDoc_STR("Data type for holding integer-to-integer hash maps.\n\n    .. attribute:: INVALID_VALUE\n\n       Unset map value.\n\n       Wraps `HB_MAP_VALUE_INVALID\n       <https://harfbuzz.github.io/harfbuzz-hb-map.html#HB-MAP-VALUE-INVALID:CAPS>`_.\n\n    Wraps `hb_map_t\n    <https://harfbuzz.github.io/harfbuzz-hb-map.html#hb-map-t>`_.\n    ")},
  {Py_tp_richcompare, (void *)__pyx_tp_richcompare_9uharfbuzz_9_harfbuzz_Map},
  {Py_tp_iter, (void *)__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_41__iter__},
  {Py_tp_methods, (void *)__pyx_methods_9uharfbuzz_9_harfbuzz_Map},
  {Py_tp_init, (void *)__pyx_pw_9uharfbuzz_9_harfbuzz_3Map_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_9uharfbuzz_9_harfbuzz_Map},
  {0, 0},
};
static PyType_Spec __pyx_type_9uharfbuzz_9_harfbuzz_Map_spec = {
  "uharfbuzz._harfbuzz.Map",
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_9uharfbuzz_9_harfbuzz_Map_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_Map = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  __pyx_pw_9uharfbuzz_9_harfbuzz_3Map_17__bool__, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  0, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  0, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PySequenceMethods __pyx_tp_as_sequence_Map = {
  __pyx_pw_9uharfbuzz_9_harfbuzz_3Map_19__len__, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  __pyx_sq_item_9uharfbuzz_9_harfbuzz_Map, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  __pyx_pw_9uharfbuzz_9_harfbuzz_3Map_31__contains__, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_Map = {
  __pyx_pw_9uharfbuzz_9_harfbuzz_3Map_19__len__, /*mp_length*/
  __pyx_pw_9uharfbuzz_9_harfbuzz_3Map_29__getitem__, /*mp_subscript*/
  __pyx_mp_ass_subscript_9uharfbuzz_9_harfbuzz_Map, /*mp_ass_subscript*/
};

static PyTypeObject __pyx_type_9uharfbuzz_9_harfbuzz_Map = {
  PyVarObject_HEAD_INIT(0, 0)
  "uharfbuzz._harfbuzz.""Map", /*tp_name*/
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_Map, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_9uharfbuzz_9_harfbuzz_3Map_43__repr__, /*tp_repr*/
  &__pyx_tp_as_number_Map, /*tp_as_number*/
  &__pyx_tp_as_sequence_Map, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_Map, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("Data type for holding integer-to-integer hash maps.\n\n    .. attribute:: INVALID_VALUE\n\n       Unset map value.\n\n       Wraps `HB_MAP_VALUE_INVALID\n       <https://harfbuzz.github.io/harfbuzz-hb-map.html#HB-MAP-VALUE-INVALID:CAPS>`_.\n\n    Wraps `hb_map_t\n    <https://harfbuzz.github.io/harfbuzz-hb-map.html#hb-map-t>`_.\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  __pyx_tp_richcompare_9uharfbuzz_9_harfbuzz_Map, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  __pyx_pw_9uharfbuzz_9_harfbuzz_3Map_41__iter__, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_9uharfbuzz_9_harfbuzz_Map, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_9uharfbuzz_9_harfbuzz_3Map_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_9uharfbuzz_9_harfbuzz_Map, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_MapIter(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_MapIter *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_MapIter *)o);
  p->m = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_9uharfbuzz_9_harfbuzz_7MapIter_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_MapIter(PyObject *o) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_MapIter *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_MapIter *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_MapIter) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->m);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_9uharfbuzz_9_harfbuzz_MapIter(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_MapIter *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_MapIter *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->m) {
    e = (*v)(((PyObject *)p->m), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_9uharfbuzz_9_harfbuzz_MapIter(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_MapIter *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_MapIter *)o;
  tmp = ((PyObject*)p->m);
  p->m = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_specialmethod___pyx_pw_9uharfbuzz_9_harfbuzz_7MapIter_5__next__(PyObject *self, CYTHON_UNUSED PyObject *arg) {
  PyObject *res = __pyx_pw_9uharfbuzz_9_harfbuzz_7MapIter_5__next__(self);
  if (!res && !PyErr_Occurred()) { PyErr_SetNone(PyExc_StopIteration); }
  return res;
}

static PyMethodDef __pyx_methods_9uharfbuzz_9_harfbuzz_MapIter[] = {
  {"__next__", (PyCFunction)__pyx_specialmethod___pyx_pw_9uharfbuzz_9_harfbuzz_7MapIter_5__next__, METH_NOARGS|METH_COEXIST, 0},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_7MapIter_7__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_7MapIter_9__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_9uharfbuzz_9_harfbuzz_MapIter_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_MapIter},
  {Py_tp_doc, (void *)PyDoc_STR("Iterator over ``(key, value)`` pairs in a :class:`Map`.\n\n    Wraps `hb_map_next()\n    <https://harfbuzz.github.io/harfbuzz-hb-map.html#hb-map-next>`_.\n    ")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_9uharfbuzz_9_harfbuzz_MapIter},
  {Py_tp_clear, (void *)__pyx_tp_clear_9uharfbuzz_9_harfbuzz_MapIter},
  {Py_tp_iter, (void *)__pyx_pw_9uharfbuzz_9_harfbuzz_7MapIter_3__iter__},
  {Py_tp_iternext, (void *)__pyx_pw_9uharfbuzz_9_harfbuzz_7MapIter_5__next__},
  {Py_tp_methods, (void *)__pyx_methods_9uharfbuzz_9_harfbuzz_MapIter},
  {Py_tp_new, (void *)__pyx_tp_new_9uharfbuzz_9_harfbuzz_MapIter},
  {0, 0},
};
static PyType_Spec __pyx_type_9uharfbuzz_9_harfbuzz_MapIter_spec = {
  "uharfbuzz._harfbuzz.MapIter",
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_MapIter),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_9uharfbuzz_9_harfbuzz_MapIter_slots,
};
#else

static PyTypeObject __pyx_type_9uharfbuzz_9_harfbuzz_MapIter = {
  PyVarObject_HEAD_INIT(0, 0)
  "uharfbuzz._harfbuzz.""MapIter", /*tp_name*/
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_MapIter), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_MapIter, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("Iterator over ``(key, value)`` pairs in a :class:`Map`.\n\n    Wraps `hb_map_next()\n    <https://harfbuzz.github.io/harfbuzz-hb-map.html#hb-map-next>`_.\n    "), /*tp_doc*/
  __pyx_tp_traverse_9uharfbuzz_9_harfbuzz_MapIter, /*tp_traverse*/
  __pyx_tp_clear_9uharfbuzz_9_harfbuzz_MapIter, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  __pyx_pw_9uharfbuzz_9_harfbuzz_7MapIter_3__iter__, /*tp_iter*/
  __pyx_pw_9uharfbuzz_9_harfbuzz_7MapIter_5__next__, /*tp_iternext*/
  __pyx_methods_9uharfbuzz_9_harfbuzz_MapIter, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_9uharfbuzz_9_harfbuzz_MapIter, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
static struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_Blob __pyx_vtable_9uharfbuzz_9_harfbuzz_Blob;

static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_Blob(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *)o);
  p->__pyx_vtab = __pyx_vtabptr_9uharfbuzz_9_harfbuzz_Blob;
  if (unlikely(__pyx_pw_9uharfbuzz_9_harfbuzz_4Blob_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_Blob(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_Blob) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_9uharfbuzz_9_harfbuzz_4Blob_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_4Blob_data(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_4Blob_4data_1__get__(o);
}

static PyMethodDef __pyx_methods_9uharfbuzz_9_harfbuzz_Blob[] = {
  {"from_file_path", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Blob_3from_file_path, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Blob_2from_file_path},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Blob_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Blob_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_9uharfbuzz_9_harfbuzz_Blob[] = {
  {"data", __pyx_getprop_9uharfbuzz_9_harfbuzz_4Blob_data, 0, PyDoc_STR("Fetches the data from a blob.\n\n        :type: bytes\n\n        Wraps `hb_blob_get_data()\n        <https://harfbuzz.github.io/harfbuzz-hb-blob.html#hb-blob-get-data>`_.\n        "), 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_9uharfbuzz_9_harfbuzz_Blob_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_Blob},
  {Py_nb_bool, (void *)__pyx_pw_9uharfbuzz_9_harfbuzz_4Blob_9__bool__},
  {Py_sq_length, (void *)__pyx_pw_9uharfbuzz_9_harfbuzz_4Blob_7__len__},
  {Py_mp_length, (void *)__pyx_pw_9uharfbuzz_9_harfbuzz_4Blob_7__len__},
  {Py_tp_doc, (void *)PyDoc_STR("Binary data containers.\n\n    Blobs wrap a chunk of binary data to handle lifecycle management of data\n    while it is passed between client and HarfBuzz. Blobs are primarily used\n    to create font faces, but also to access font face tables, as well as\n    pass around other binary data.\n\n    :param data: The binary data to wrap. If ``None`` or empty, the empty\n        blob is returned.\n\n    Wraps `hb_blob_t\n    <https://harfbuzz.github.io/harfbuzz-hb-blob.html#hb-blob-t>`_.\n    ")},
  {Py_tp_methods, (void *)__pyx_methods_9uharfbuzz_9_harfbuzz_Blob},
  {Py_tp_getset, (void *)__pyx_getsets_9uharfbuzz_9_harfbuzz_Blob},
  {Py_tp_new, (void *)__pyx_tp_new_9uharfbuzz_9_harfbuzz_Blob},
  {0, 0},
};
static PyType_Spec __pyx_type_9uharfbuzz_9_harfbuzz_Blob_spec = {
  "uharfbuzz._harfbuzz.Blob",
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_9uharfbuzz_9_harfbuzz_Blob_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_Blob = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  __pyx_pw_9uharfbuzz_9_harfbuzz_4Blob_9__bool__, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  0, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  0, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PySequenceMethods __pyx_tp_as_sequence_Blob = {
  __pyx_pw_9uharfbuzz_9_harfbuzz_4Blob_7__len__, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  0, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  0, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_Blob = {
  __pyx_pw_9uharfbuzz_9_harfbuzz_4Blob_7__len__, /*mp_length*/
  0, /*mp_subscript*/
  0, /*mp_ass_subscript*/
};

static PyTypeObject __pyx_type_9uharfbuzz_9_harfbuzz_Blob = {
  PyVarObject_HEAD_INIT(0, 0)
  "uharfbuzz._harfbuzz.""Blob", /*tp_name*/
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_Blob, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  &__pyx_tp_as_number_Blob, /*tp_as_number*/
  &__pyx_tp_as_sequence_Blob, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_Blob, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("Binary data containers.\n\n    Blobs wrap a chunk of binary data to handle lifecycle management of data\n    while it is passed between client and HarfBuzz. Blobs are primarily used\n    to create font faces, but also to access font face tables, as well as\n    pass around other binary data.\n\n    :param data: The binary data to wrap. If ``None`` or empty, the empty\n        blob is returned.\n\n    Wraps `hb_blob_t\n    <https://harfbuzz.github.io/harfbuzz-hb-blob.html#hb-blob-t>`_.\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_9uharfbuzz_9_harfbuzz_Blob, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_9uharfbuzz_9_harfbuzz_Blob, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_9uharfbuzz_9_harfbuzz_Blob, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
static struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_GlyphInfo __pyx_vtable_9uharfbuzz_9_harfbuzz_GlyphInfo;

static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_GlyphInfo(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphInfo *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphInfo *)o);
  p->__pyx_vtab = __pyx_vtabptr_9uharfbuzz_9_harfbuzz_GlyphInfo;
  __Pyx_default_placement_construct(&(p->_hb_glyph_info));
  return o;
}

static void __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_GlyphInfo(PyObject *o) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphInfo *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphInfo *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_GlyphInfo) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  __Pyx_call_destructor(p->_hb_glyph_info);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_9GlyphInfo_codepoint(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_9GlyphInfo_9codepoint_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_9GlyphInfo_cluster(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_9GlyphInfo_7cluster_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_9GlyphInfo_flags(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_9GlyphInfo_5flags_1__get__(o);
}

static PyMethodDef __pyx_methods_9uharfbuzz_9_harfbuzz_GlyphInfo[] = {
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9GlyphInfo_1__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9GlyphInfo_3__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_9uharfbuzz_9_harfbuzz_GlyphInfo[] = {
  {"codepoint", __pyx_getprop_9uharfbuzz_9_harfbuzz_9GlyphInfo_codepoint, 0, PyDoc_STR("Either a Unicode code point (before shaping) or a glyph index\n        (after shaping).\n        "), 0},
  {"cluster", __pyx_getprop_9uharfbuzz_9_harfbuzz_9GlyphInfo_cluster, 0, PyDoc_STR("The index of the character in the original text that corresponds\n        to this :class:`GlyphInfo`, or whatever the client passes to\n        :meth:`Buffer.add_codepoints`. More than one :class:`GlyphInfo` can\n        have the same ``cluster`` value, if they resulted from the same\n        character (e.g. one to many glyph substitution), and when more than\n        one character gets merged in the same glyph (e.g. many to one glyph\n        substitution) the :class:`GlyphInfo` will have the smallest cluster\n        value of them. By default some characters are merged into the same\n        cluster (e.g. combining marks have the same cluster as their bases)\n        even if they are separate glyphs, :attr:`Buffer.cluster_level` allows\n        selecting more fine-grained cluster handling.\n        "), 0},
  {"flags", __pyx_getprop_9uharfbuzz_9_harfbuzz_9GlyphInfo_flags, 0, PyDoc_STR("Glyph flags encoded within a :class:`GlyphInfo`.\n\n        :type: GlyphFlags\n\n        Wraps `hb_glyph_info_get_glyph_flags()\n        <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-glyph-info-get-glyph-flags>`_.\n        "), 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_9uharfbuzz_9_harfbuzz_GlyphInfo_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_GlyphInfo},
  {Py_tp_doc, (void *)PyDoc_STR("The structure that holds information about the glyphs and their\n    relation to input text.\n\n    Wraps `hb_glyph_info_t\n    <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-glyph-info-t>`_.\n    ")},
  {Py_tp_methods, (void *)__pyx_methods_9uharfbuzz_9_harfbuzz_GlyphInfo},
  {Py_tp_getset, (void *)__pyx_getsets_9uharfbuzz_9_harfbuzz_GlyphInfo},
  {Py_tp_new, (void *)__pyx_tp_new_9uharfbuzz_9_harfbuzz_GlyphInfo},
  {0, 0},
};
static PyType_Spec __pyx_type_9uharfbuzz_9_harfbuzz_GlyphInfo_spec = {
  "uharfbuzz._harfbuzz.GlyphInfo",
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphInfo),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_9uharfbuzz_9_harfbuzz_GlyphInfo_slots,
};
#else

static PyTypeObject __pyx_type_9uharfbuzz_9_harfbuzz_GlyphInfo = {
  PyVarObject_HEAD_INIT(0, 0)
  "uharfbuzz._harfbuzz.""GlyphInfo", /*tp_name*/
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphInfo), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_GlyphInfo, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("The structure that holds information about the glyphs and their\n    relation to input text.\n\n    Wraps `hb_glyph_info_t\n    <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-glyph-info-t>`_.\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_9uharfbuzz_9_harfbuzz_GlyphInfo, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_9uharfbuzz_9_harfbuzz_GlyphInfo, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_9uharfbuzz_9_harfbuzz_GlyphInfo, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
static struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_GlyphPosition __pyx_vtable_9uharfbuzz_9_harfbuzz_GlyphPosition;

static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_GlyphPosition(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition *)o);
  p->__pyx_vtab = __pyx_vtabptr_9uharfbuzz_9_harfbuzz_GlyphPosition;
  __Pyx_default_placement_construct(&(p->_hb_glyph_position));
  return o;
}

static void __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_GlyphPosition(PyObject *o) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_GlyphPosition) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  __Pyx_call_destructor(p->_hb_glyph_position);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_13GlyphPosition_position(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_13GlyphPosition_8position_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_13GlyphPosition_x_advance(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_13GlyphPosition_9x_advance_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_13GlyphPosition_y_advance(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_13GlyphPosition_9y_advance_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_13GlyphPosition_x_offset(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_13GlyphPosition_8x_offset_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_13GlyphPosition_y_offset(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_13GlyphPosition_8y_offset_1__get__(o);
}

static PyMethodDef __pyx_methods_9uharfbuzz_9_harfbuzz_GlyphPosition[] = {
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_13GlyphPosition_1__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_13GlyphPosition_3__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_9uharfbuzz_9_harfbuzz_GlyphPosition[] = {
  {"position", __pyx_getprop_9uharfbuzz_9_harfbuzz_13GlyphPosition_position, 0, PyDoc_STR("A tuple of (:attr:`x_offset`, :attr:`y_offset`, :attr:`x_advance`,\n        :attr:`y_advance`).\n        "), 0},
  {"x_advance", __pyx_getprop_9uharfbuzz_9_harfbuzz_13GlyphPosition_x_advance, 0, PyDoc_STR("How much the line advances after drawing this glyph when setting\n        text in horizontal direction.\n        "), 0},
  {"y_advance", __pyx_getprop_9uharfbuzz_9_harfbuzz_13GlyphPosition_y_advance, 0, PyDoc_STR("How much the line advances after drawing this glyph when setting\n        text in vertical direction.\n        "), 0},
  {"x_offset", __pyx_getprop_9uharfbuzz_9_harfbuzz_13GlyphPosition_x_offset, 0, PyDoc_STR("How much the glyph moves on the X-axis before drawing it, this\n        should not affect how much the line advances.\n        "), 0},
  {"y_offset", __pyx_getprop_9uharfbuzz_9_harfbuzz_13GlyphPosition_y_offset, 0, PyDoc_STR("How much the glyph moves on the Y-axis before drawing it, this\n        should not affect how much the line advances.\n        "), 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_9uharfbuzz_9_harfbuzz_GlyphPosition_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_GlyphPosition},
  {Py_tp_doc, (void *)PyDoc_STR("The structure that holds the positions of the glyph in both horizontal\n    and vertical directions. All positions in :class:`GlyphPosition` are\n    relative to the current point.\n\n    Wraps `hb_glyph_position_t\n    <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-glyph-position-t>`_.\n    ")},
  {Py_tp_methods, (void *)__pyx_methods_9uharfbuzz_9_harfbuzz_GlyphPosition},
  {Py_tp_getset, (void *)__pyx_getsets_9uharfbuzz_9_harfbuzz_GlyphPosition},
  {Py_tp_new, (void *)__pyx_tp_new_9uharfbuzz_9_harfbuzz_GlyphPosition},
  {0, 0},
};
static PyType_Spec __pyx_type_9uharfbuzz_9_harfbuzz_GlyphPosition_spec = {
  "uharfbuzz._harfbuzz.GlyphPosition",
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_9uharfbuzz_9_harfbuzz_GlyphPosition_slots,
};
#else

static PyTypeObject __pyx_type_9uharfbuzz_9_harfbuzz_GlyphPosition = {
  PyVarObject_HEAD_INIT(0, 0)
  "uharfbuzz._harfbuzz.""GlyphPosition", /*tp_name*/
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_GlyphPosition, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("The structure that holds the positions of the glyph in both horizontal\n    and vertical directions. All positions in :class:`GlyphPosition` are\n    relative to the current point.\n\n    Wraps `hb_glyph_position_t\n    <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-glyph-position-t>`_.\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_9uharfbuzz_9_harfbuzz_GlyphPosition, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_9uharfbuzz_9_harfbuzz_GlyphPosition, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_9uharfbuzz_9_harfbuzz_GlyphPosition, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_Buffer(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)o);
  p->_message_callback = Py_None; Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_1__cinit__(o, __pyx_mstate_global->__pyx_empty_tuple, NULL) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_Buffer(PyObject *o) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_Buffer) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_message_callback);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_9uharfbuzz_9_harfbuzz_Buffer(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_message_callback) {
    e = (*v)(p->_message_callback, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_9uharfbuzz_9_harfbuzz_Buffer(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer *)o;
  tmp = ((PyObject*)p->_message_callback);
  p->_message_callback = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_6Buffer_direction(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_9direction_1__get__(o);
}

static int __pyx_setprop_9uharfbuzz_9_harfbuzz_6Buffer_direction(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_9direction_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_6Buffer_glyph_infos(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_11glyph_infos_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_6Buffer_glyph_positions(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_15glyph_positions_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_6Buffer_language(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_8language_1__get__(o);
}

static int __pyx_setprop_9uharfbuzz_9_harfbuzz_6Buffer_language(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_8language_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_6Buffer_script(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_6script_1__get__(o);
}

static int __pyx_setprop_9uharfbuzz_9_harfbuzz_6Buffer_script(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_6script_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_6Buffer_flags(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_5flags_1__get__(o);
}

static int __pyx_setprop_9uharfbuzz_9_harfbuzz_6Buffer_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_5flags_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_6Buffer_cluster_level(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_13cluster_level_1__get__(o);
}

static int __pyx_setprop_9uharfbuzz_9_harfbuzz_6Buffer_cluster_level(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_13cluster_level_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_6Buffer_content_type(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_12content_type_1__get__(o);
}

static int __pyx_setprop_9uharfbuzz_9_harfbuzz_6Buffer_content_type(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_12content_type_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_6Buffer_replacement_codepoint(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_21replacement_codepoint_1__get__(o);
}

static int __pyx_setprop_9uharfbuzz_9_harfbuzz_6Buffer_replacement_codepoint(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_21replacement_codepoint_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_6Buffer_invisible_glyph(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_15invisible_glyph_1__get__(o);
}

static int __pyx_setprop_9uharfbuzz_9_harfbuzz_6Buffer_invisible_glyph(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_15invisible_glyph_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_6Buffer_not_found_glyph(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_15not_found_glyph_1__get__(o);
}

static int __pyx_setprop_9uharfbuzz_9_harfbuzz_6Buffer_not_found_glyph(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_15not_found_glyph_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_9uharfbuzz_9_harfbuzz_Buffer[] = {
  {"create", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_5create, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"reset", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_9reset, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_6Buffer_8reset},
  {"clear_contents", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_11clear_contents, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_6Buffer_10clear_contents},
  {"set_language_from_ot_tag", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_13set_language_from_ot_tag, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_6Buffer_12set_language_from_ot_tag},
  {"set_script_from_ot_tag", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_15set_script_from_ot_tag, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_6Buffer_14set_script_from_ot_tag},
  {"add_codepoints", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_17add_codepoints, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_6Buffer_16add_codepoints},
  {"add_utf8", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_19add_utf8, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_6Buffer_18add_utf8},
  {"add_str", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_21add_str, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_6Buffer_20add_str},
  {"guess_segment_properties", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_23guess_segment_properties, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_6Buffer_22guess_segment_properties},
  {"set_message_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_25set_message_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_6Buffer_24set_message_func},
  {"serialize", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_27serialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_6Buffer_26serialize},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_29__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_31__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_9uharfbuzz_9_harfbuzz_Buffer[] = {
  {"direction", __pyx_getprop_9uharfbuzz_9_harfbuzz_6Buffer_direction, __pyx_setprop_9uharfbuzz_9_harfbuzz_6Buffer_direction, PyDoc_STR("The text flow direction of the buffer. No shaping can happen\n        without setting buffer direction, and it controls the visual\n        direction for the output glyphs; for RTL direction the glyphs will be\n        reversed. Many layout features depend on the proper setting of the\n        direction, for example, reversing RTL text before shaping, then\n        shaping with LTR direction is not the same as keeping the text in\n        logical order and shaping with RTL direction.\n\n        Wraps `hb_buffer_get_direction()\n        <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-get-direction>`_\n        / `hb_buffer_set_direction()\n        <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-set-direction>`_.\n        "), 0},
  {"glyph_infos", __pyx_getprop_9uharfbuzz_9_harfbuzz_6Buffer_glyph_infos, 0, PyDoc_STR("The buffer glyph information array. The value is valid as long as\n        the buffer has not been modified.\n\n        :type: list[GlyphInfo]\n\n        Wraps `hb_buffer_get_glyph_infos()\n        <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-get-glyph-infos>`_.\n        "), 0},
  {"glyph_positions", __pyx_getprop_9uharfbuzz_9_harfbuzz_6Buffer_glyph_positions, 0, PyDoc_STR("The buffer glyph position array. The value is valid as long as the\n        buffer has not been modified.\n\n        If the buffer did not have positions before, the positions will be\n        initialized to zeros, unless this property is accessed from within a\n        buffer message callback (see :meth:`set_message_func`), in which case\n        ``None`` is returned.\n\n        :type: list[GlyphPosition] | None\n\n        Wraps `hb_buffer_get_glyph_positions()\n        <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-get-glyph-positions>`_.\n        "), 0},
  {"language", __pyx_getprop_9uharfbuzz_9_harfbuzz_6Buffer_language, __pyx_setprop_9uharfbuzz_9_harfbuzz_6Buffer_language, PyDoc_STR("The language of the buffer, as a BCP 47 language tag.\n\n        Languages are crucial for selecting which OpenType feature to apply\n        to the buffer which can result in applying language-specific\n        behaviour. Languages are orthogonal to the scripts, and though they\n        are related, they are different concepts and should not be confused\n        with each other.\n\n        Wraps `hb_buffer_get_language()\n        <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-get-language>`_\n        / `hb_buffer_set_language()\n        <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-set-language>`_.\n        "), 0},
  {"script", __pyx_getprop_9uharfbuzz_9_harfbuzz_6Buffer_script, __pyx_setprop_9uharfbuzz_9_harfbuzz_6Buffer_script, PyDoc_STR("The script of the buffer, as an ISO 15924 script tag.\n\n        Script is crucial for choosing the proper shaping behaviour for\n        scripts that require it (e.g. Arabic) and the which OpenType features\n        defined in the font to be applied.\n\n        Wraps `hb_buffer_get_script()\n        <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-get-script>`_\n        / `hb_buffer_set_script()\n        <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-set-script>`_.\n        "), 0},
  {"flags", __pyx_getprop_9uharfbuzz_9_harfbuzz_6Buffer_flags, __pyx_setprop_9uharfbuzz_9_harfbuzz_6Buffer_flags, PyDoc_STR("The :class:`BufferFlags` of the buffer.\n\n        :type: BufferFlags\n\n        Wraps `hb_buffer_get_flags()\n        <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-get-flags>`_\n        / `hb_buffer_set_flags()\n        <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-set-flags>`_.\n        "), 0},
  {"cluster_level", __pyx_getprop_9uharfbuzz_9_harfbuzz_6Buffer_cluster_level, __pyx_setprop_9uharfbuzz_9_harfbuzz_6Buffer_cluster_level, PyDoc_STR("The cluster level of the buffer. The :class:`BufferClusterLevel`\n        dictates one aspect of how HarfBuzz will treat non-base characters\n        during shaping.\n\n        :type: BufferClusterLevel\n\n        Wraps `hb_buffer_get_cluster_level()\n        <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-get-cluster-level>`_\n        / `hb_buffer_set_cluster_level()\n        <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-set-cluster-level>`_.\n        "), 0},
  {"content_type", __pyx_getprop_9uharfbuzz_9_harfbuzz_6Buffer_content_type, __pyx_setprop_9uharfbuzz_9_harfbuzz_6Buffer_content_type, PyDoc_STR("The type of buffer contents. Buffers are either empty, contain\n        characters (before shaping), or contain glyphs (the result of\n        shaping).\n\n        :type: BufferContentType\n\n        Wraps `hb_buffer_get_content_type()\n        <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-get-content-type>`_\n        / `hb_buffer_set_content_type()\n        <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-set-content-type>`_.\n        "), 0},
  {"replacement_codepoint", __pyx_getprop_9uharfbuzz_9_harfbuzz_6Buffer_replacement_codepoint, __pyx_setprop_9uharfbuzz_9_harfbuzz_6Buffer_replacement_codepoint, PyDoc_STR("The codepoint that replaces invalid entries for a given encoding\n        when adding text to the buffer.\n\n        Default is :attr:`DEFAULT_REPLACEMENT_CODEPOINT`.\n\n        Wraps `hb_buffer_get_replacement_codepoint()\n        <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-get-replacement-codepoint>`_\n        / `hb_buffer_set_replacement_codepoint()\n        <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-set-replacement-codepoint>`_.\n        "), 0},
  {"invisible_glyph", __pyx_getprop_9uharfbuzz_9_harfbuzz_6Buffer_invisible_glyph, __pyx_setprop_9uharfbuzz_9_harfbuzz_6Buffer_invisible_glyph, PyDoc_STR("The codepoint that replaces invisible characters in the shaping\n        result. If set to zero (default), the glyph for the U+0020 SPACE\n        character is used. Otherwise, this value is used verbatim.\n\n        Wraps `hb_buffer_get_invisible_glyph()\n        <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-get-invisible-glyph>`_\n        / `hb_buffer_set_invisible_glyph()\n        <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-set-invisible-glyph>`_.\n        "), 0},
  {"not_found_glyph", __pyx_getprop_9uharfbuzz_9_harfbuzz_6Buffer_not_found_glyph, __pyx_setprop_9uharfbuzz_9_harfbuzz_6Buffer_not_found_glyph, PyDoc_STR("The codepoint that replaces characters not found in the font\n        during shaping.\n\n        The not-found glyph defaults to zero, sometimes known as the\n        ``.notdef`` glyph. This API allows for differentiating the two.\n\n        Wraps `hb_buffer_get_not_found_glyph()\n        <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-get-not-found-glyph>`_\n        / `hb_buffer_set_not_found_glyph()\n        <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-set-not-found-glyph>`_.\n        "), 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_9uharfbuzz_9_harfbuzz_Buffer_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_Buffer},
  {Py_sq_length, (void *)__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_7__len__},
  {Py_mp_length, (void *)__pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_7__len__},
  {Py_tp_doc, (void *)PyDoc_STR("Input and output buffers.\n\n    Buffers serve a dual role in HarfBuzz; before shaping, they hold the\n    input characters that are passed to :func:`shape`, and after shaping they\n    hold the output glyphs.\n\n    The input buffer is a sequence of Unicode codepoints, with associated\n    attributes such as direction and script. The output buffer is a sequence\n    of glyphs, with associated attributes such as position and cluster.\n\n    .. attribute:: DEFAULT_REPLACEMENT_CODEPOINT\n       :value: 0xFFFD\n\n       The default code point for replacing invalid characters in a given\n       encoding. Set to U+FFFD REPLACEMENT CHARACTER.\n\n       Wraps `HB_BUFFER_REPLACEMENT_CODEPOINT_DEFAULT\n       <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#HB-BUFFER-REPLACEMENT-CODEPOINT-DEFAULT:CAPS>`_.\n\n    Wraps `hb_buffer_t\n    <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-t>`_.\n    ")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_9uharfbuzz_9_harfbuzz_Buffer},
  {Py_tp_clear, (void *)__pyx_tp_clear_9uharfbuzz_9_harfbuzz_Buffer},
  {Py_tp_methods, (void *)__pyx_methods_9uharfbuzz_9_harfbuzz_Buffer},
  {Py_tp_getset, (void *)__pyx_getsets_9uharfbuzz_9_harfbuzz_Buffer},
  {Py_tp_new, (void *)__pyx_tp_new_9uharfbuzz_9_harfbuzz_Buffer},
  {0, 0},
};
static PyType_Spec __pyx_type_9uharfbuzz_9_harfbuzz_Buffer_spec = {
  "uharfbuzz._harfbuzz.Buffer",
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_9uharfbuzz_9_harfbuzz_Buffer_slots,
};
#else

static PySequenceMethods __pyx_tp_as_sequence_Buffer = {
  __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_7__len__, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  0, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  0, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_Buffer = {
  __pyx_pw_9uharfbuzz_9_harfbuzz_6Buffer_7__len__, /*mp_length*/
  0, /*mp_subscript*/
  0, /*mp_ass_subscript*/
};

static PyTypeObject __pyx_type_9uharfbuzz_9_harfbuzz_Buffer = {
  PyVarObject_HEAD_INIT(0, 0)
  "uharfbuzz._harfbuzz.""Buffer", /*tp_name*/
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Buffer), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_Buffer, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  &__pyx_tp_as_sequence_Buffer, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_Buffer, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("Input and output buffers.\n\n    Buffers serve a dual role in HarfBuzz; before shaping, they hold the\n    input characters that are passed to :func:`shape`, and after shaping they\n    hold the output glyphs.\n\n    The input buffer is a sequence of Unicode codepoints, with associated\n    attributes such as direction and script. The output buffer is a sequence\n    of glyphs, with associated attributes such as position and cluster.\n\n    .. attribute:: DEFAULT_REPLACEMENT_CODEPOINT\n       :value: 0xFFFD\n\n       The default code point for replacing invalid characters in a given\n       encoding. Set to U+FFFD REPLACEMENT CHARACTER.\n\n       Wraps `HB_BUFFER_REPLACEMENT_CODEPOINT_DEFAULT\n       <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#HB-BUFFER-REPLACEMENT-CODEPOINT-DEFAULT:CAPS>`_.\n\n    Wraps `hb_buffer_t\n    <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-t>`_.\n    "), /*tp_doc*/
  __pyx_tp_traverse_9uharfbuzz_9_harfbuzz_Buffer, /*tp_traverse*/
  __pyx_tp_clear_9uharfbuzz_9_harfbuzz_Buffer, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_9uharfbuzz_9_harfbuzz_Buffer, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_9uharfbuzz_9_harfbuzz_Buffer, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_9uharfbuzz_9_harfbuzz_Buffer, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
static struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_Face __pyx_vtable_9uharfbuzz_9_harfbuzz_Face;

static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_Face(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)o);
  p->__pyx_vtab = __pyx_vtabptr_9uharfbuzz_9_harfbuzz_Face;
  p->_reference_table_func = Py_None; Py_INCREF(Py_None);
  p->_get_table_tags_func = Py_None; Py_INCREF(Py_None);
  p->_blob = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_Face(PyObject *o) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_Face) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_reference_table_func);
  Py_CLEAR(p->_get_table_tags_func);
  Py_CLEAR(p->_blob);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_9uharfbuzz_9_harfbuzz_Face(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_reference_table_func) {
    e = (*v)(p->_reference_table_func, a); if (e) return e;
  }
  if (p->_get_table_tags_func) {
    e = (*v)(p->_get_table_tags_func, a); if (e) return e;
  }
  if (p->_blob) {
    e = (*v)(((PyObject *)p->_blob), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_9uharfbuzz_9_harfbuzz_Face(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)o;
  tmp = ((PyObject*)p->_reference_table_func);
  p->_reference_table_func = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_get_table_tags_func);
  p->_get_table_tags_func = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_blob);
  p->_blob = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_count(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_5count_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_index(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_5index_1__get__(o);
}

static int __pyx_setprop_9uharfbuzz_9_harfbuzz_4Face_index(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_5index_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_upem(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_4upem_1__get__(o);
}

static int __pyx_setprop_9uharfbuzz_9_harfbuzz_4Face_upem(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_4upem_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_glyph_count(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_11glyph_count_1__get__(o);
}

static int __pyx_setprop_9uharfbuzz_9_harfbuzz_4Face_glyph_count(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_11glyph_count_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_blob(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_4blob_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_table_tags(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_10table_tags_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_unicodes(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_8unicodes_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_variation_selectors(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_19variation_selectors_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_has_var_data(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_12has_var_data_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_axis_infos(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_10axis_infos_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_named_instances(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_15named_instances_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_has_math_data(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_13has_math_data_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_has_color_layers(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_16has_color_layers_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_has_color_palettes(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_18has_color_palettes_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_color_palettes(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_14color_palettes_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_has_color_paint(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_15has_color_paint_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_has_color_svg(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_13has_color_svg_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_has_color_png(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_13has_color_png_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_has_layout_glyph_classes(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_24has_layout_glyph_classes_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_has_layout_positioning(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_22has_layout_positioning_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_has_layout_substitution(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_4Face_23has_layout_substitution_1__get__(o);
}

static PyMethodDef __pyx_methods_9uharfbuzz_9_harfbuzz_Face[] = {
  {"create", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_5create, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"create_for_tables", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_7create_for_tables, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_6create_for_tables},
  {"reference_table", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_9reference_table, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_8reference_table},
  {"set_get_table_tags_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_11set_get_table_tags_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_10set_get_table_tags_func},
  {"variation_unicodes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_13variation_unicodes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_12variation_unicodes},
  {"is_glyph_extended_math_shape", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_15is_glyph_extended_math_shape, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_14is_glyph_extended_math_shape},
  {"get_glyph_color_layers", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_17get_glyph_color_layers, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_16get_glyph_color_layers},
  {"get_color_palette", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_19get_color_palette, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_18get_color_palette},
  {"color_palette_color_get_name_id", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_21color_palette_color_get_name_id, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_20color_palette_color_get_name_id},
  {"glyph_has_color_paint", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_23glyph_has_color_paint, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_22glyph_has_color_paint},
  {"get_glyph_color_svg", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_25get_glyph_color_svg, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_24get_glyph_color_svg},
  {"get_layout_glyph_class", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_27get_layout_glyph_class, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_26get_layout_glyph_class},
  {"get_lookup_glyph_alternates", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_29get_lookup_glyph_alternates, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_28get_lookup_glyph_alternates},
  {"get_language_feature_tags", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_31get_language_feature_tags, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_30get_language_feature_tags},
  {"get_script_language_tags", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_33get_script_language_tags, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_32get_script_language_tags},
  {"get_table_script_tags", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_35get_table_script_tags, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_34get_table_script_tags},
  {"list_names", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_37list_names, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_36list_names},
  {"get_name", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_39get_name, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Face_38get_name},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_41__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Face_43__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_9uharfbuzz_9_harfbuzz_Face[] = {
  {"count", __pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_count, 0, PyDoc_STR("The number of faces in the blob.\n\n        Wraps `hb_face_count()\n        <https://harfbuzz.github.io/harfbuzz-hb-face.html#hb-face-count>`_.\n        "), 0},
  {"index", __pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_index, __pyx_setprop_9uharfbuzz_9_harfbuzz_4Face_index, PyDoc_STR("The face-index of this face.\n\n        Face indices within a collection are zero-based. Changing the index\n        has no effect on the face itself, only on the value returned by this\n        property.\n\n        Wraps `hb_face_get_index()\n        <https://harfbuzz.github.io/harfbuzz-hb-face.html#hb-face-get-index>`_\n        / `hb_face_set_index()\n        <https://harfbuzz.github.io/harfbuzz-hb-face.html#hb-face-set-index>`_.\n        "), 0},
  {"upem", __pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_upem, __pyx_setprop_9uharfbuzz_9_harfbuzz_4Face_upem, PyDoc_STR("The units-per-em (UPEM) value of the face.\n\n        Typical UPEM values for fonts are 1000, or 2048, but any value in\n        between 16 and 16,384 is allowed for OpenType fonts.\n\n        Wraps `hb_face_get_upem()\n        <https://harfbuzz.github.io/harfbuzz-hb-face.html#hb-face-get-upem>`_\n        / `hb_face_set_upem()\n        <https://harfbuzz.github.io/harfbuzz-hb-face.html#hb-face-set-upem>`_.\n        "), 0},
  {"glyph_count", __pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_glyph_count, __pyx_setprop_9uharfbuzz_9_harfbuzz_4Face_glyph_count, PyDoc_STR("The glyph-count value of the face.\n\n        Wraps `hb_face_get_glyph_count()\n        <https://harfbuzz.github.io/harfbuzz-hb-face.html#hb-face-get-glyph-count>`_\n        / `hb_face_set_glyph_count()\n        <https://harfbuzz.github.io/harfbuzz-hb-face.html#hb-face-set-glyph-count>`_.\n        "), 0},
  {"blob", __pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_blob, 0, PyDoc_STR("A :class:`Blob` containing the binary data of the face.\n\n        If referencing the face data is not possible, this property creates\n        a blob out of individual table blobs if :attr:`table_tags` works\n        with this face, otherwise it returns an empty blob.\n\n        :type: Blob\n\n        Wraps `hb_face_reference_blob()\n        <https://harfbuzz.github.io/harfbuzz-hb-face.html#hb-face-reference-blob>`_.\n        "), 0},
  {"table_tags", __pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_table_tags, 0, PyDoc_STR("A list of all table tags for the face, if possible.\n\n        :type: list[str]\n\n        Wraps `hb_face_get_table_tags()\n        <https://harfbuzz.github.io/harfbuzz-hb-face.html#hb-face-get-table-tags>`_.\n        "), 0},
  {"unicodes", __pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_unicodes, 0, PyDoc_STR("All Unicode characters covered by the face.\n\n        :type: Set\n\n        Wraps `hb_face_collect_unicodes()\n        <https://harfbuzz.github.io/harfbuzz-hb-face.html#hb-face-collect-unicodes>`_.\n        "), 0},
  {"variation_selectors", __pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_variation_selectors, 0, PyDoc_STR("All Unicode \"Variation Selector\" characters covered by the face.\n\n        :type: Set\n\n        Wraps `hb_face_collect_variation_selectors()\n        <https://harfbuzz.github.io/harfbuzz-hb-face.html#hb-face-collect-variation-selectors>`_.\n        "), 0},
  {"has_var_data", __pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_has_var_data, 0, PyDoc_STR("Whether the face includes any OpenType variation data in the\n        ``fvar`` table.\n\n        Wraps `hb_ot_var_has_data()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-var.html#hb-ot-var-has-data>`_.\n        "), 0},
  {"axis_infos", __pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_axis_infos, 0, PyDoc_STR("A list of all variation axes in the face.\n\n        :type: list[OTVarAxisInfo]\n\n        Wraps `hb_ot_var_get_axis_infos()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-var.html#hb-ot-var-get-axis-infos>`_.\n        "), 0},
  {"named_instances", __pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_named_instances, 0, PyDoc_STR("The named instances defined in the face's ``fvar`` table.\n\n        :type: list[OTVarNamedInstance]\n\n        Wraps `hb_ot_var_get_named_instance_count()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-var.html#hb-ot-var-get-named-instance-count>`_,\n        `hb_ot_var_named_instance_get_subfamily_name_id()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-var.html#hb-ot-var-named-instance-get-subfamily-name-id>`_,\n        `hb_ot_var_named_instance_get_postscript_name_id()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-var.html#hb-ot-var-named-instance-get-postscript-name-id>`_,\n        and `hb_ot_var_named_instance_get_design_coords()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-var.html#hb-ot-var-named-instance-get-design-coords>`_.\n        "), 0},
  {"has_math_data", __pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_has_math_data, 0, PyDoc_STR("Whether the face has a ``MATH`` table.\n\n        Wraps `hb_ot_math_has_data()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-math.html#hb-ot-math-has-data>`_.\n        "), 0},
  {"has_color_layers", __pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_has_color_layers, 0, PyDoc_STR("Whether the face includes a ``COLR`` table with data according to\n        COLRv0.\n\n        Wraps `hb_ot_color_has_layers()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-color.html#hb-ot-color-has-layers>`_.\n        "), 0},
  {"has_color_palettes", __pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_has_color_palettes, 0, PyDoc_STR("Whether the face includes a ``CPAL`` color-palette table.\n\n        Wraps `hb_ot_color_has_palettes()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-color.html#hb-ot-color-has-palettes>`_.\n        "), 0},
  {"color_palettes", __pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_color_palettes, 0, PyDoc_STR("The face's color palettes.\n\n        :type: list[OTColorPalette]\n\n        Wraps `hb_ot_color_palette_get_count()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-color.html#hb-ot-color-palette-get-count>`_.\n        "), 0},
  {"has_color_paint", __pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_has_color_paint, 0, PyDoc_STR("Whether the face includes a ``COLR`` table with data according to\n        COLRv1.\n\n        Wraps `hb_ot_color_has_paint()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-color.html#hb-ot-color-has-paint>`_.\n        "), 0},
  {"has_color_svg", __pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_has_color_svg, 0, PyDoc_STR("Whether the face includes any ``SVG`` glyph images.\n\n        Wraps `hb_ot_color_has_svg()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-color.html#hb-ot-color-has-svg>`_.\n        "), 0},
  {"has_color_png", __pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_has_color_png, 0, PyDoc_STR("Whether the face has PNG glyph images (either in ``CBDT`` or\n        ``sbix`` tables).\n\n        Wraps `hb_ot_color_has_png()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-color.html#hb-ot-color-has-png>`_.\n        "), 0},
  {"has_layout_glyph_classes", __pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_has_layout_glyph_classes, 0, PyDoc_STR("Whether the face has any glyph classes defined in its GDEF table.\n\n        Wraps `hb_ot_layout_has_glyph_classes()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-layout.html#hb-ot-layout-has-glyph-classes>`_.\n        "), 0},
  {"has_layout_positioning", __pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_has_layout_positioning, 0, PyDoc_STR("Whether the face includes any GPOS positioning.\n\n        Wraps `hb_ot_layout_has_positioning()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-layout.html#hb-ot-layout-has-positioning>`_.\n        "), 0},
  {"has_layout_substitution", __pyx_getprop_9uharfbuzz_9_harfbuzz_4Face_has_layout_substitution, 0, PyDoc_STR("Whether the face includes any GSUB substitutions.\n\n        Wraps `hb_ot_layout_has_substitution()\n        <https://harfbuzz.github.io/harfbuzz-hb-ot-layout.html#hb-ot-layout-has-substitution>`_.\n        "), 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_9uharfbuzz_9_harfbuzz_Face_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_Face},
  {Py_tp_doc, (void *)PyDoc_STR("Font face objects.\n\n    A font face is an object that represents a single face from within a\n    font family. More precisely, a font face represents a single face in a\n    binary font file. Font faces are typically built from a binary blob and\n    a face index. Font faces are used to create fonts.\n\n    The face index is used for blobs of file formats such as TTC and DFont\n    that can contain more than one face. Face indices within such\n    collections are zero-based.\n\n    :param blob: A :class:`Blob` or :class:`bytes` containing the font data.\n        If ``None``, the empty face is returned.\n    :param index: The index of the face within the blob.\n\n    Wraps `hb_face_t\n    <https://harfbuzz.github.io/harfbuzz-hb-face.html#hb-face-t>`_.\n    ")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_9uharfbuzz_9_harfbuzz_Face},
  {Py_tp_clear, (void *)__pyx_tp_clear_9uharfbuzz_9_harfbuzz_Face},
  {Py_tp_methods, (void *)__pyx_methods_9uharfbuzz_9_harfbuzz_Face},
  {Py_tp_getset, (void *)__pyx_getsets_9uharfbuzz_9_harfbuzz_Face},
  {Py_tp_new, (void *)__pyx_tp_new_9uharfbuzz_9_harfbuzz_Face},
  {0, 0},
};
static PyType_Spec __pyx_type_9uharfbuzz_9_harfbuzz_Face_spec = {
  "uharfbuzz._harfbuzz.Face",
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_9uharfbuzz_9_harfbuzz_Face_slots,
};
#else

static PyTypeObject __pyx_type_9uharfbuzz_9_harfbuzz_Face = {
  PyVarObject_HEAD_INIT(0, 0)
  "uharfbuzz._harfbuzz.""Face", /*tp_name*/
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_Face, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("Font face objects.\n\n    A font face is an object that represents a single face from within a\n    font family. More precisely, a font face represents a single face in a\n    binary font file. Font faces are typically built from a binary blob and\n    a face index. Font faces are used to create fonts.\n\n    The face index is used for blobs of file formats such as TTC and DFont\n    that can contain more than one face. Face indices within such\n    collections are zero-based.\n\n    :param blob: A :class:`Blob` or :class:`bytes` containing the font data.\n        If ``None``, the empty face is returned.\n    :param index: The index of the face within the blob.\n\n    Wraps `hb_face_t\n    <https://harfbuzz.github.io/harfbuzz-hb-face.html#hb-face-t>`_.\n    "), /*tp_doc*/
  __pyx_tp_traverse_9uharfbuzz_9_harfbuzz_Face, /*tp_traverse*/
  __pyx_tp_clear_9uharfbuzz_9_harfbuzz_Face, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_9uharfbuzz_9_harfbuzz_Face, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_9uharfbuzz_9_harfbuzz_Face, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_9uharfbuzz_9_harfbuzz_Face, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_DrawFuncs(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *)o);
  p->_move_to_func = Py_None; Py_INCREF(Py_None);
  p->_line_to_func = Py_None; Py_INCREF(Py_None);
  p->_cubic_to_func = Py_None; Py_INCREF(Py_None);
  p->_quadratic_to_func = Py_None; Py_INCREF(Py_None);
  p->_close_path_func = Py_None; Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_1__cinit__(o, __pyx_mstate_global->__pyx_empty_tuple, NULL) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_DrawFuncs(PyObject *o) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_DrawFuncs) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_move_to_func);
  Py_CLEAR(p->_line_to_func);
  Py_CLEAR(p->_cubic_to_func);
  Py_CLEAR(p->_quadratic_to_func);
  Py_CLEAR(p->_close_path_func);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_9uharfbuzz_9_harfbuzz_DrawFuncs(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_move_to_func) {
    e = (*v)(p->_move_to_func, a); if (e) return e;
  }
  if (p->_line_to_func) {
    e = (*v)(p->_line_to_func, a); if (e) return e;
  }
  if (p->_cubic_to_func) {
    e = (*v)(p->_cubic_to_func, a); if (e) return e;
  }
  if (p->_quadratic_to_func) {
    e = (*v)(p->_quadratic_to_func, a); if (e) return e;
  }
  if (p->_close_path_func) {
    e = (*v)(p->_close_path_func, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_9uharfbuzz_9_harfbuzz_DrawFuncs(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs *)o;
  tmp = ((PyObject*)p->_move_to_func);
  p->_move_to_func = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_line_to_func);
  p->_line_to_func = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_cubic_to_func);
  p->_cubic_to_func = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_quadratic_to_func);
  p->_quadratic_to_func = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_close_path_func);
  p->_close_path_func = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyMethodDef __pyx_methods_9uharfbuzz_9_harfbuzz_DrawFuncs[] = {
  {"get_glyph_shape", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_5get_glyph_shape, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"draw_glyph", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_7draw_glyph, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"set_move_to_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_9set_move_to_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"set_line_to_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_11set_line_to_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"set_cubic_to_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_13set_cubic_to_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"set_quadratic_to_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_15set_quadratic_to_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"set_close_path_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_17set_close_path_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_19__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9DrawFuncs_21__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_9uharfbuzz_9_harfbuzz_DrawFuncs_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_DrawFuncs},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_9uharfbuzz_9_harfbuzz_DrawFuncs},
  {Py_tp_clear, (void *)__pyx_tp_clear_9uharfbuzz_9_harfbuzz_DrawFuncs},
  {Py_tp_methods, (void *)__pyx_methods_9uharfbuzz_9_harfbuzz_DrawFuncs},
  {Py_tp_new, (void *)__pyx_tp_new_9uharfbuzz_9_harfbuzz_DrawFuncs},
  {0, 0},
};
static PyType_Spec __pyx_type_9uharfbuzz_9_harfbuzz_DrawFuncs_spec = {
  "uharfbuzz._harfbuzz.DrawFuncs",
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_9uharfbuzz_9_harfbuzz_DrawFuncs_slots,
};
#else

static PyTypeObject __pyx_type_9uharfbuzz_9_harfbuzz_DrawFuncs = {
  PyVarObject_HEAD_INIT(0, 0)
  "uharfbuzz._harfbuzz.""DrawFuncs", /*tp_name*/
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_DrawFuncs), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_DrawFuncs, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_9uharfbuzz_9_harfbuzz_DrawFuncs, /*tp_traverse*/
  __pyx_tp_clear_9uharfbuzz_9_harfbuzz_DrawFuncs, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_9uharfbuzz_9_harfbuzz_DrawFuncs, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_9uharfbuzz_9_harfbuzz_DrawFuncs, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
static struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_ColorLine __pyx_vtable_9uharfbuzz_9_harfbuzz_ColorLine;

static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_ColorLine(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine *)o);
  p->__pyx_vtab = __pyx_vtabptr_9uharfbuzz_9_harfbuzz_ColorLine;
  if (unlikely(__pyx_pw_9uharfbuzz_9_harfbuzz_9ColorLine_1__cinit__(o, __pyx_mstate_global->__pyx_empty_tuple, NULL) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_ColorLine(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_ColorLine) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_9ColorLine_color_stops(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_9ColorLine_11color_stops_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_9ColorLine_extend(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_9ColorLine_6extend_1__get__(o);
}

static PyMethodDef __pyx_methods_9uharfbuzz_9_harfbuzz_ColorLine[] = {
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9ColorLine_3__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9ColorLine_5__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_9uharfbuzz_9_harfbuzz_ColorLine[] = {
  {"color_stops", __pyx_getprop_9uharfbuzz_9_harfbuzz_9ColorLine_color_stops, 0, PyDoc_STR("Fetches a list of color stops from this color line.\n\n        Note that due to variations being applied, the returned color stops\n        may be out of order. It is the caller's responsibility to ensure\n        that color stops are sorted by their offset before they are used.\n\n        :type: Sequence[ColorStop]\n\n        Wraps `hb_color_line_get_color_stops()\n        <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-color-line-get-color-stops>`_.\n        "), 0},
  {"extend", __pyx_getprop_9uharfbuzz_9_harfbuzz_9ColorLine_extend, 0, PyDoc_STR("Fetches the extend mode of this color line.\n\n        :type: PaintExtend\n\n        Wraps `hb_color_line_get_extend()\n        <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-color-line-get-extend>`_.\n        "), 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_9uharfbuzz_9_harfbuzz_ColorLine_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_ColorLine},
  {Py_tp_doc, (void *)PyDoc_STR("A struct containing color information for a gradient.\n\n    Wraps `hb_color_line_t\n    <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-color-line-t>`_.\n    ")},
  {Py_tp_methods, (void *)__pyx_methods_9uharfbuzz_9_harfbuzz_ColorLine},
  {Py_tp_getset, (void *)__pyx_getsets_9uharfbuzz_9_harfbuzz_ColorLine},
  {Py_tp_new, (void *)__pyx_tp_new_9uharfbuzz_9_harfbuzz_ColorLine},
  {0, 0},
};
static PyType_Spec __pyx_type_9uharfbuzz_9_harfbuzz_ColorLine_spec = {
  "uharfbuzz._harfbuzz.ColorLine",
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_9uharfbuzz_9_harfbuzz_ColorLine_slots,
};
#else

static PyTypeObject __pyx_type_9uharfbuzz_9_harfbuzz_ColorLine = {
  PyVarObject_HEAD_INIT(0, 0)
  "uharfbuzz._harfbuzz.""ColorLine", /*tp_name*/
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_ColorLine, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("A struct containing color information for a gradient.\n\n    Wraps `hb_color_line_t\n    <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-color-line-t>`_.\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_9uharfbuzz_9_harfbuzz_ColorLine, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_9uharfbuzz_9_harfbuzz_ColorLine, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_9uharfbuzz_9_harfbuzz_ColorLine, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_PaintFuncs(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)o);
  p->_push_transform_func = Py_None; Py_INCREF(Py_None);
  p->_pop_transform_func = Py_None; Py_INCREF(Py_None);
  p->_color_glyph_func = Py_None; Py_INCREF(Py_None);
  p->_push_clip_glyph_func = Py_None; Py_INCREF(Py_None);
  p->_push_clip_rectangle_func = Py_None; Py_INCREF(Py_None);
  p->_pop_clip_func = Py_None; Py_INCREF(Py_None);
  p->_color_func = Py_None; Py_INCREF(Py_None);
  p->_image_func = Py_None; Py_INCREF(Py_None);
  p->_linear_gradient_func = Py_None; Py_INCREF(Py_None);
  p->_radial_gradient_func = Py_None; Py_INCREF(Py_None);
  p->_sweep_gradient_func = Py_None; Py_INCREF(Py_None);
  p->_push_group_func = Py_None; Py_INCREF(Py_None);
  p->_pop_group_func = Py_None; Py_INCREF(Py_None);
  p->_custom_palette_color_func = Py_None; Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_1__cinit__(o, __pyx_mstate_global->__pyx_empty_tuple, NULL) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_PaintFuncs(PyObject *o) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_PaintFuncs) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_push_transform_func);
  Py_CLEAR(p->_pop_transform_func);
  Py_CLEAR(p->_color_glyph_func);
  Py_CLEAR(p->_push_clip_glyph_func);
  Py_CLEAR(p->_push_clip_rectangle_func);
  Py_CLEAR(p->_pop_clip_func);
  Py_CLEAR(p->_color_func);
  Py_CLEAR(p->_image_func);
  Py_CLEAR(p->_linear_gradient_func);
  Py_CLEAR(p->_radial_gradient_func);
  Py_CLEAR(p->_sweep_gradient_func);
  Py_CLEAR(p->_push_group_func);
  Py_CLEAR(p->_pop_group_func);
  Py_CLEAR(p->_custom_palette_color_func);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_9uharfbuzz_9_harfbuzz_PaintFuncs(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_push_transform_func) {
    e = (*v)(p->_push_transform_func, a); if (e) return e;
  }
  if (p->_pop_transform_func) {
    e = (*v)(p->_pop_transform_func, a); if (e) return e;
  }
  if (p->_color_glyph_func) {
    e = (*v)(p->_color_glyph_func, a); if (e) return e;
  }
  if (p->_push_clip_glyph_func) {
    e = (*v)(p->_push_clip_glyph_func, a); if (e) return e;
  }
  if (p->_push_clip_rectangle_func) {
    e = (*v)(p->_push_clip_rectangle_func, a); if (e) return e;
  }
  if (p->_pop_clip_func) {
    e = (*v)(p->_pop_clip_func, a); if (e) return e;
  }
  if (p->_color_func) {
    e = (*v)(p->_color_func, a); if (e) return e;
  }
  if (p->_image_func) {
    e = (*v)(p->_image_func, a); if (e) return e;
  }
  if (p->_linear_gradient_func) {
    e = (*v)(p->_linear_gradient_func, a); if (e) return e;
  }
  if (p->_radial_gradient_func) {
    e = (*v)(p->_radial_gradient_func, a); if (e) return e;
  }
  if (p->_sweep_gradient_func) {
    e = (*v)(p->_sweep_gradient_func, a); if (e) return e;
  }
  if (p->_push_group_func) {
    e = (*v)(p->_push_group_func, a); if (e) return e;
  }
  if (p->_pop_group_func) {
    e = (*v)(p->_pop_group_func, a); if (e) return e;
  }
  if (p->_custom_palette_color_func) {
    e = (*v)(p->_custom_palette_color_func, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_9uharfbuzz_9_harfbuzz_PaintFuncs(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs *)o;
  tmp = ((PyObject*)p->_push_transform_func);
  p->_push_transform_func = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_pop_transform_func);
  p->_pop_transform_func = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_color_glyph_func);
  p->_color_glyph_func = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_push_clip_glyph_func);
  p->_push_clip_glyph_func = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_push_clip_rectangle_func);
  p->_push_clip_rectangle_func = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_pop_clip_func);
  p->_pop_clip_func = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_color_func);
  p->_color_func = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_image_func);
  p->_image_func = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_linear_gradient_func);
  p->_linear_gradient_func = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_radial_gradient_func);
  p->_radial_gradient_func = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_sweep_gradient_func);
  p->_sweep_gradient_func = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_push_group_func);
  p->_push_group_func = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_pop_group_func);
  p->_pop_group_func = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_custom_palette_color_func);
  p->_custom_palette_color_func = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyMethodDef __pyx_methods_9uharfbuzz_9_harfbuzz_PaintFuncs[] = {
  {"set_push_transform_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_5set_push_transform_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_4set_push_transform_func},
  {"set_pop_transform_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_7set_pop_transform_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_6set_pop_transform_func},
  {"set_color_glyph_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_9set_color_glyph_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_8set_color_glyph_func},
  {"set_push_clip_glyph_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_11set_push_clip_glyph_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_10set_push_clip_glyph_func},
  {"set_push_clip_rectangle_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_13set_push_clip_rectangle_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_12set_push_clip_rectangle_func},
  {"set_pop_clip_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_15set_pop_clip_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_14set_pop_clip_func},
  {"set_color_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_17set_color_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_16set_color_func},
  {"set_image_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_19set_image_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_18set_image_func},
  {"set_linear_gradient_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_21set_linear_gradient_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_20set_linear_gradient_func},
  {"set_radial_gradient_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_23set_radial_gradient_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_22set_radial_gradient_func},
  {"set_sweep_gradient_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_25set_sweep_gradient_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_24set_sweep_gradient_func},
  {"set_push_group_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_27set_push_group_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_26set_push_group_func},
  {"set_pop_group_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_29set_pop_group_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_28set_pop_group_func},
  {"set_custom_palette_color_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_31set_custom_palette_color_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10PaintFuncs_30set_custom_palette_color_func},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_33__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10PaintFuncs_35__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_9uharfbuzz_9_harfbuzz_PaintFuncs_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_PaintFuncs},
  {Py_tp_doc, (void *)PyDoc_STR("Glyph paint callbacks.\n\n    The callbacks assume that the caller maintains a stack of current\n    transforms, clips and intermediate surfaces, as evidenced by the pairs\n    of push/pop callbacks. The push/pop calls will be properly nested, so it\n    is fine to store the different kinds of object on a single stack.\n\n    Not all callbacks are required for all kinds of glyphs. For rendering\n    COLRv0 or non-color outline glyphs, the gradient callbacks are not\n    needed, and the composite callback only needs to handle simple alpha\n    compositing (:attr:`PaintCompositeMode.SRC_OVER`).\n\n    The paint-image callback is only needed for glyphs with image blobs in\n    the ``CBDT``, ``sbix`` or ``SVG`` tables.\n\n    The custom-palette-color callback is only necessary if you want to\n    override colors from the font palette with custom colors.\n\n    Wraps `hb_paint_funcs_t\n    <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-funcs-t>`_.\n    ")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_9uharfbuzz_9_harfbuzz_PaintFuncs},
  {Py_tp_clear, (void *)__pyx_tp_clear_9uharfbuzz_9_harfbuzz_PaintFuncs},
  {Py_tp_methods, (void *)__pyx_methods_9uharfbuzz_9_harfbuzz_PaintFuncs},
  {Py_tp_new, (void *)__pyx_tp_new_9uharfbuzz_9_harfbuzz_PaintFuncs},
  {0, 0},
};
static PyType_Spec __pyx_type_9uharfbuzz_9_harfbuzz_PaintFuncs_spec = {
  "uharfbuzz._harfbuzz.PaintFuncs",
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_9uharfbuzz_9_harfbuzz_PaintFuncs_slots,
};
#else

static PyTypeObject __pyx_type_9uharfbuzz_9_harfbuzz_PaintFuncs = {
  PyVarObject_HEAD_INIT(0, 0)
  "uharfbuzz._harfbuzz.""PaintFuncs", /*tp_name*/
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_PaintFuncs), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_PaintFuncs, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("Glyph paint callbacks.\n\n    The callbacks assume that the caller maintains a stack of current\n    transforms, clips and intermediate surfaces, as evidenced by the pairs\n    of push/pop callbacks. The push/pop calls will be properly nested, so it\n    is fine to store the different kinds of object on a single stack.\n\n    Not all callbacks are required for all kinds of glyphs. For rendering\n    COLRv0 or non-color outline glyphs, the gradient callbacks are not\n    needed, and the composite callback only needs to handle simple alpha\n    compositing (:attr:`PaintCompositeMode.SRC_OVER`).\n\n    The paint-image callback is only needed for glyphs with image blobs in\n    the ``CBDT``, ``sbix`` or ``SVG`` tables.\n\n    The custom-palette-color callback is only necessary if you want to\n    override colors from the font palette with custom colors.\n\n    Wraps `hb_paint_funcs_t\n    <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-funcs-t>`_.\n    "), /*tp_doc*/
  __pyx_tp_traverse_9uharfbuzz_9_harfbuzz_PaintFuncs, /*tp_traverse*/
  __pyx_tp_clear_9uharfbuzz_9_harfbuzz_PaintFuncs, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_9uharfbuzz_9_harfbuzz_PaintFuncs, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_9uharfbuzz_9_harfbuzz_PaintFuncs, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
static struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_Font __pyx_vtable_9uharfbuzz_9_harfbuzz_Font;

static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_Font(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)o);
  p->__pyx_vtab = __pyx_vtabptr_9uharfbuzz_9_harfbuzz_Font;
  p->_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)Py_None); Py_INCREF(Py_None);
  p->_ffuncs = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_Font(PyObject *o) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_Font) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_face);
  Py_CLEAR(p->_ffuncs);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_9uharfbuzz_9_harfbuzz_Font(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_face) {
    e = (*v)(((PyObject *)p->_face), a); if (e) return e;
  }
  if (p->_ffuncs) {
    e = (*v)(((PyObject *)p->_ffuncs), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_9uharfbuzz_9_harfbuzz_Font(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *)o;
  tmp = ((PyObject*)p->_face);
  p->_face = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_ffuncs);
  p->_ffuncs = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_4Font_face(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_4face_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_4Font_funcs(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_5funcs_1__get__(o);
}

static int __pyx_setprop_9uharfbuzz_9_harfbuzz_4Font_funcs(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_5funcs_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_4Font_scale(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_5scale_1__get__(o);
}

static int __pyx_setprop_9uharfbuzz_9_harfbuzz_4Font_scale(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_5scale_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_4Font_ppem(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_4ppem_1__get__(o);
}

static int __pyx_setprop_9uharfbuzz_9_harfbuzz_4Font_ppem(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_4ppem_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_4Font_ptem(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_4ptem_1__get__(o);
}

static int __pyx_setprop_9uharfbuzz_9_harfbuzz_4Font_ptem(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_4ptem_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_4Font_synthetic_slant(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_15synthetic_slant_1__get__(o);
}

static int __pyx_setprop_9uharfbuzz_9_harfbuzz_4Font_synthetic_slant(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_15synthetic_slant_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_4Font_synthetic_bold(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_14synthetic_bold_1__get__(o);
}

static int __pyx_setprop_9uharfbuzz_9_harfbuzz_4Font_synthetic_bold(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_14synthetic_bold_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_4Font_var_named_instance(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_18var_named_instance_1__get__(o);
}

static int __pyx_setprop_9uharfbuzz_9_harfbuzz_4Font_var_named_instance(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_9uharfbuzz_9_harfbuzz_4Font_18var_named_instance_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_9uharfbuzz_9_harfbuzz_Font[] = {
  {"create", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_5create, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"set_variations", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_7set_variations, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_6set_variations},
  {"set_variation", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_9set_variation, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_8set_variation},
  {"get_glyph_name", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_11get_glyph_name, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_10get_glyph_name},
  {"get_glyph_from_name", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_13get_glyph_from_name, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_12get_glyph_from_name},
  {"get_glyph_extents", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_15get_glyph_extents, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_14get_glyph_extents},
  {"get_glyph_h_advance", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_17get_glyph_h_advance, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_16get_glyph_h_advance},
  {"get_glyph_v_advance", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_19get_glyph_v_advance, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_18get_glyph_v_advance},
  {"get_glyph_h_origin", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_21get_glyph_h_origin, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_20get_glyph_h_origin},
  {"get_glyph_v_origin", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_23get_glyph_v_origin, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_22get_glyph_v_origin},
  {"get_font_extents", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_25get_font_extents, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_24get_font_extents},
  {"get_variation_glyph", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_27get_variation_glyph, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_26get_variation_glyph},
  {"get_nominal_glyph", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_29get_nominal_glyph, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_28get_nominal_glyph},
  {"get_var_coords_normalized", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_31get_var_coords_normalized, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_30get_var_coords_normalized},
  {"set_var_coords_normalized", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_33set_var_coords_normalized, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_32set_var_coords_normalized},
  {"get_var_coords_design", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_35get_var_coords_design, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_34get_var_coords_design},
  {"set_var_coords_design", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_37set_var_coords_design, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_36set_var_coords_design},
  {"glyph_to_string", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_39glyph_to_string, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_38glyph_to_string},
  {"glyph_from_string", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_41glyph_from_string, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_40glyph_from_string},
  {"draw_glyph", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_43draw_glyph, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_42draw_glyph},
  {"paint_glyph", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_45paint_glyph, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_44paint_glyph},
  {"draw_glyph_with_pen", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_47draw_glyph_with_pen, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_46draw_glyph_with_pen},
  {"get_math_constant", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_49get_math_constant, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_48get_math_constant},
  {"get_math_glyph_italics_correction", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_51get_math_glyph_italics_correction, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_50get_math_glyph_italics_correction},
  {"get_math_glyph_top_accent_attachment", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_53get_math_glyph_top_accent_attachment, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_52get_math_glyph_top_accent_attachment},
  {"get_math_min_connector_overlap", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_55get_math_min_connector_overlap, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_54get_math_min_connector_overlap},
  {"get_math_glyph_kerning", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_57get_math_glyph_kerning, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_56get_math_glyph_kerning},
  {"get_math_glyph_kernings", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_59get_math_glyph_kernings, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_58get_math_glyph_kernings},
  {"get_math_glyph_variants", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_61get_math_glyph_variants, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_60get_math_glyph_variants},
  {"get_math_glyph_assembly", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_63get_math_glyph_assembly, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_62get_math_glyph_assembly},
  {"get_metric_position", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_65get_metric_position, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_64get_metric_position},
  {"get_metric_position_with_fallback", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_67get_metric_position_with_fallback, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_66get_metric_position_with_fallback},
  {"get_metric_variation", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_69get_metric_variation, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_68get_metric_variation},
  {"get_metric_x_variation", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_71get_metric_x_variation, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_70get_metric_x_variation},
  {"get_metric_y_variation", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_73get_metric_y_variation, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_72get_metric_y_variation},
  {"get_glyph_color_png", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_75get_glyph_color_png, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_74get_glyph_color_png},
  {"get_layout_baseline", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_77get_layout_baseline, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_76get_layout_baseline},
  {"get_style_value", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_79get_style_value, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_4Font_78get_style_value},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_81__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_4Font_83__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_9uharfbuzz_9_harfbuzz_Font[] = {
  {"face", __pyx_getprop_9uharfbuzz_9_harfbuzz_4Font_face, 0, PyDoc_STR("The :class:`Face` associated with this font.\n\n        :type: Face\n\n        Wraps `hb_font_get_face()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-get-face>`_.\n        "), 0},
  {"funcs", __pyx_getprop_9uharfbuzz_9_harfbuzz_4Font_funcs, __pyx_setprop_9uharfbuzz_9_harfbuzz_4Font_funcs, PyDoc_STR("The font-functions structure attached to this font.\n\n        Assigning to this property replaces the font-functions structure\n        attached to the font.\n\n        :type: FontFuncs\n\n        Wraps `hb_font_set_funcs()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-set-funcs>`_.\n        "), 0},
  {"scale", __pyx_getprop_9uharfbuzz_9_harfbuzz_4Font_scale, __pyx_setprop_9uharfbuzz_9_harfbuzz_4Font_scale, PyDoc_STR("The horizontal and vertical scale of the font, as a\n        ``(x_scale, y_scale)`` tuple.\n\n        The font scale is a number related to, but not the same as, font\n        size. Typically the client establishes a scale factor to be used\n        between the two. For example, 64, or 256, which would be the\n        fractional-precision part of the font scale. This is necessary\n        because position values are integer types and you need to leave\n        room for fractional values in there.\n\n        For example, to set the font size to 20, with 64 levels of\n        fractional precision you would call\n        ``font.scale = (20 * 64, 20 * 64)``.\n\n        In the example above, even what font size 20 means is up to\n        you. It might be 20 pixels, or 20 points, or 20 millimeters.\n        HarfBuzz does not care about that. You can set the point size of\n        the font using :attr:`ptem`, and the pixel size using\n        :attr:`ppem`.\n\n        The choice of scale is yours but needs to be consistent between\n        what you set here, and what you expect out of position values as\n        well has draw / paint API output values.\n\n        Fonts default to a scale equal to the UPEM value of their face.\n        A font with this setting is sometimes called an \"unscaled\" font.\n\n        Wraps `hb_font_get_scale()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-get-scale>`_\n        / `hb_font_set_scale()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-set-scale>`_.\n        "), 0},
  {"ppem", __pyx_getprop_9uharfbuzz_9_harfbuzz_4Font_ppem, __pyx_setprop_9uharfbuzz_9_harfbuzz_4Font_ppem, PyDoc_STR("The horizontal and vertical pixels-per-em (PPEM) of the font, as\n        a ``(x_ppem, y_ppem)`` tuple.\n\n        These values are used for pixel-size-specific adjustment to shaping\n        and draw results, though for the most part they are unused and can\n        be left unset.\n\n        Wraps `hb_font_get_ppem()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-get-ppem>`_\n        / `hb_font_set_ppem()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-set-ppem>`_.\n        "), 0},
  {"ptem", __pyx_getprop_9uharfbuzz_9_harfbuzz_4Font_ptem, __pyx_setprop_9uharfbuzz_9_harfbuzz_4Font_ptem, PyDoc_STR("The \"point size\" of the font. Set to zero to unset. Used in\n        CoreText to implement optical sizing.\n\n        Note: there are 72 points in an inch.\n\n        Wraps `hb_font_get_ptem()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-get-ptem>`_\n        / `hb_font_set_ptem()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-set-ptem>`_.\n        "), 0},
  {"synthetic_slant", __pyx_getprop_9uharfbuzz_9_harfbuzz_4Font_synthetic_slant, __pyx_setprop_9uharfbuzz_9_harfbuzz_4Font_synthetic_slant, PyDoc_STR("The \"synthetic slant\" of the font. By default is zero. Synthetic\n        slant is the graphical skew applied to the font at rendering time.\n\n        HarfBuzz needs to know this value to adjust shaping results,\n        metrics, and style values to match the slanted rendering.\n\n        The slant value is a ratio. For example, a 20% slant would be\n        represented as a 0.2 value.\n\n        Wraps `hb_font_get_synthetic_slant()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-get-synthetic-slant>`_\n        / `hb_font_set_synthetic_slant()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-set-synthetic-slant>`_.\n        "), 0},
  {"synthetic_bold", __pyx_getprop_9uharfbuzz_9_harfbuzz_4Font_synthetic_bold, __pyx_setprop_9uharfbuzz_9_harfbuzz_4Font_synthetic_bold, PyDoc_STR("The \"synthetic boldness\" of the font, as a tuple ``(x_embolden,\n        y_embolden, in_place)``.\n\n        Positive values for ``x_embolden`` / ``y_embolden`` make a font\n        bolder, negative values thinner. Typical values are in the 0.01 to\n        0.05 range. The default value is zero.\n\n        If ``in_place`` is ``False``, then glyph advance-widths are also\n        adjusted, otherwise they are not. The in-place mode is useful for\n        simulating font grading.\n\n        The setter accepts a :class:`float` (applied to both axes,\n        ``in_place=False``), a 1-tuple, a 2-tuple, or a 3-tuple.\n\n        Wraps `hb_font_get_synthetic_bold()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-get-synthetic-bold>`_\n        / `hb_font_set_synthetic_bold()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-set-synthetic-bold>`_.\n        "), 0},
  {"var_named_instance", __pyx_getprop_9uharfbuzz_9_harfbuzz_4Font_var_named_instance, __pyx_setprop_9uharfbuzz_9_harfbuzz_4Font_var_named_instance, PyDoc_STR("The currently-set named-instance index of the font.\n\n        Wraps `hb_font_get_var_named_instance()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-get-var-named-instance>`_\n        / `hb_font_set_var_named_instance()\n        <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-set-var-named-instance>`_.\n        "), 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_9uharfbuzz_9_harfbuzz_Font_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_Font},
  {Py_tp_doc, (void *)PyDoc_STR("Font objects.\n\n    A font object represents a font face at a specific size and with certain\n    other parameters (pixels-per-em, points-per-em, variation settings)\n    specified. Font objects are created from font face objects, and are used\n    as input to :func:`shape`, among other things.\n\n    Client programs can optionally pass in their own functions that\n    implement the basic, lower-level queries of font objects. This set of\n    font functions is defined by the virtual methods in :class:`FontFuncs`.\n\n    :param face_or_font: A :class:`Face` to create a font from, or another\n        :class:`Font` to create a sub-font from. If ``None``, the empty font\n        is returned.\n\n    Wraps `hb_font_t\n    <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-t>`_.\n    ")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_9uharfbuzz_9_harfbuzz_Font},
  {Py_tp_clear, (void *)__pyx_tp_clear_9uharfbuzz_9_harfbuzz_Font},
  {Py_tp_methods, (void *)__pyx_methods_9uharfbuzz_9_harfbuzz_Font},
  {Py_tp_getset, (void *)__pyx_getsets_9uharfbuzz_9_harfbuzz_Font},
  {Py_tp_new, (void *)__pyx_tp_new_9uharfbuzz_9_harfbuzz_Font},
  {0, 0},
};
static PyType_Spec __pyx_type_9uharfbuzz_9_harfbuzz_Font_spec = {
  "uharfbuzz._harfbuzz.Font",
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_9uharfbuzz_9_harfbuzz_Font_slots,
};
#else

static PyTypeObject __pyx_type_9uharfbuzz_9_harfbuzz_Font = {
  PyVarObject_HEAD_INIT(0, 0)
  "uharfbuzz._harfbuzz.""Font", /*tp_name*/
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_Font, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("Font objects.\n\n    A font object represents a font face at a specific size and with certain\n    other parameters (pixels-per-em, points-per-em, variation settings)\n    specified. Font objects are created from font face objects, and are used\n    as input to :func:`shape`, among other things.\n\n    Client programs can optionally pass in their own functions that\n    implement the basic, lower-level queries of font objects. This set of\n    font functions is defined by the virtual methods in :class:`FontFuncs`.\n\n    :param face_or_font: A :class:`Face` to create a font from, or another\n        :class:`Font` to create a sub-font from. If ``None``, the empty font\n        is returned.\n\n    Wraps `hb_font_t\n    <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-t>`_.\n    "), /*tp_doc*/
  __pyx_tp_traverse_9uharfbuzz_9_harfbuzz_Font, /*tp_traverse*/
  __pyx_tp_clear_9uharfbuzz_9_harfbuzz_Font, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_9uharfbuzz_9_harfbuzz_Font, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_9uharfbuzz_9_harfbuzz_Font, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_9uharfbuzz_9_harfbuzz_Font, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_FontFuncs(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)o);
  p->_glyph_h_advance_func = Py_None; Py_INCREF(Py_None);
  p->_glyph_v_advance_func = Py_None; Py_INCREF(Py_None);
  p->_glyph_v_origin_func = Py_None; Py_INCREF(Py_None);
  p->_glyph_name_func = Py_None; Py_INCREF(Py_None);
  p->_nominal_glyph_func = Py_None; Py_INCREF(Py_None);
  p->_variation_glyph_func = Py_None; Py_INCREF(Py_None);
  p->_font_h_extents_func = Py_None; Py_INCREF(Py_None);
  p->_font_v_extents_func = Py_None; Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_1__cinit__(o, __pyx_mstate_global->__pyx_empty_tuple, NULL) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_FontFuncs(PyObject *o) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_FontFuncs) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_glyph_h_advance_func);
  Py_CLEAR(p->_glyph_v_advance_func);
  Py_CLEAR(p->_glyph_v_origin_func);
  Py_CLEAR(p->_glyph_name_func);
  Py_CLEAR(p->_nominal_glyph_func);
  Py_CLEAR(p->_variation_glyph_func);
  Py_CLEAR(p->_font_h_extents_func);
  Py_CLEAR(p->_font_v_extents_func);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_9uharfbuzz_9_harfbuzz_FontFuncs(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_glyph_h_advance_func) {
    e = (*v)(p->_glyph_h_advance_func, a); if (e) return e;
  }
  if (p->_glyph_v_advance_func) {
    e = (*v)(p->_glyph_v_advance_func, a); if (e) return e;
  }
  if (p->_glyph_v_origin_func) {
    e = (*v)(p->_glyph_v_origin_func, a); if (e) return e;
  }
  if (p->_glyph_name_func) {
    e = (*v)(p->_glyph_name_func, a); if (e) return e;
  }
  if (p->_nominal_glyph_func) {
    e = (*v)(p->_nominal_glyph_func, a); if (e) return e;
  }
  if (p->_variation_glyph_func) {
    e = (*v)(p->_variation_glyph_func, a); if (e) return e;
  }
  if (p->_font_h_extents_func) {
    e = (*v)(p->_font_h_extents_func, a); if (e) return e;
  }
  if (p->_font_v_extents_func) {
    e = (*v)(p->_font_v_extents_func, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_9uharfbuzz_9_harfbuzz_FontFuncs(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs *)o;
  tmp = ((PyObject*)p->_glyph_h_advance_func);
  p->_glyph_h_advance_func = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_glyph_v_advance_func);
  p->_glyph_v_advance_func = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_glyph_v_origin_func);
  p->_glyph_v_origin_func = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_glyph_name_func);
  p->_glyph_name_func = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_nominal_glyph_func);
  p->_nominal_glyph_func = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_variation_glyph_func);
  p->_variation_glyph_func = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_font_h_extents_func);
  p->_font_h_extents_func = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_font_v_extents_func);
  p->_font_v_extents_func = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyMethodDef __pyx_methods_9uharfbuzz_9_harfbuzz_FontFuncs[] = {
  {"create", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_5create, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"set_glyph_h_advance_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_7set_glyph_h_advance_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_9FontFuncs_6set_glyph_h_advance_func},
  {"set_glyph_v_advance_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_9set_glyph_v_advance_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_9FontFuncs_8set_glyph_v_advance_func},
  {"set_glyph_v_origin_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_11set_glyph_v_origin_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_9FontFuncs_10set_glyph_v_origin_func},
  {"set_glyph_name_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_13set_glyph_name_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_9FontFuncs_12set_glyph_name_func},
  {"set_nominal_glyph_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_15set_nominal_glyph_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_9FontFuncs_14set_nominal_glyph_func},
  {"set_variation_glyph_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_17set_variation_glyph_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_9FontFuncs_16set_variation_glyph_func},
  {"set_font_h_extents_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_19set_font_h_extents_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_9FontFuncs_18set_font_h_extents_func},
  {"set_font_v_extents_func", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_21set_font_v_extents_func, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_9FontFuncs_20set_font_v_extents_func},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_23__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_9FontFuncs_25__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_9uharfbuzz_9_harfbuzz_FontFuncs_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_FontFuncs},
  {Py_tp_doc, (void *)PyDoc_STR("The virtual methods that define the font functions used by a\n    :class:`Font` for the basic, lower-level queries against a font object.\n\n    Wraps `hb_font_funcs_t\n    <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-funcs-t>`_.\n    ")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_9uharfbuzz_9_harfbuzz_FontFuncs},
  {Py_tp_clear, (void *)__pyx_tp_clear_9uharfbuzz_9_harfbuzz_FontFuncs},
  {Py_tp_methods, (void *)__pyx_methods_9uharfbuzz_9_harfbuzz_FontFuncs},
  {Py_tp_new, (void *)__pyx_tp_new_9uharfbuzz_9_harfbuzz_FontFuncs},
  {0, 0},
};
static PyType_Spec __pyx_type_9uharfbuzz_9_harfbuzz_FontFuncs_spec = {
  "uharfbuzz._harfbuzz.FontFuncs",
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_9uharfbuzz_9_harfbuzz_FontFuncs_slots,
};
#else

static PyTypeObject __pyx_type_9uharfbuzz_9_harfbuzz_FontFuncs = {
  PyVarObject_HEAD_INIT(0, 0)
  "uharfbuzz._harfbuzz.""FontFuncs", /*tp_name*/
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_FontFuncs), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_FontFuncs, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("The virtual methods that define the font functions used by a\n    :class:`Font` for the basic, lower-level queries against a font object.\n\n    Wraps `hb_font_funcs_t\n    <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-funcs-t>`_.\n    "), /*tp_doc*/
  __pyx_tp_traverse_9uharfbuzz_9_harfbuzz_FontFuncs, /*tp_traverse*/
  __pyx_tp_clear_9uharfbuzz_9_harfbuzz_FontFuncs, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_9uharfbuzz_9_harfbuzz_FontFuncs, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_9uharfbuzz_9_harfbuzz_FontFuncs, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
static struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_RasterImage __pyx_vtable_9uharfbuzz_9_harfbuzz_RasterImage;

static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_RasterImage(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *)o);
  p->__pyx_vtab = __pyx_vtabptr_9uharfbuzz_9_harfbuzz_RasterImage;
  if (unlikely(__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_1__cinit__(o, __pyx_mstate_global->__pyx_empty_tuple, NULL) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_RasterImage(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_RasterImage) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_11RasterImage_format(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_6format_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_11RasterImage_extents(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_7extents_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_11RasterImage_buffer(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_6buffer_1__get__(o);
}

static PyMethodDef __pyx_methods_9uharfbuzz_9_harfbuzz_RasterImage[] = {
  {"configure", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_7configure, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11RasterImage_6configure},
  {"clear", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_9clear, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11RasterImage_8clear},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_9uharfbuzz_9_harfbuzz_RasterImage[] = {
  {"format", __pyx_getprop_9uharfbuzz_9_harfbuzz_11RasterImage_format, 0, PyDoc_STR("Fetches the pixel format of this image.\n\n        :type: RasterFormat\n\n        Wraps `hb_raster_image_get_format()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-image-get-format>`_.\n        "), 0},
  {"extents", __pyx_getprop_9uharfbuzz_9_harfbuzz_11RasterImage_extents, 0, PyDoc_STR("Fetches the pixel-buffer extents of this image.\n\n        :type: RasterExtents\n\n        Wraps `hb_raster_image_get_extents()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-image-get-extents>`_.\n        "), 0},
  {"buffer", __pyx_getprop_9uharfbuzz_9_harfbuzz_11RasterImage_buffer, 0, PyDoc_STR("Fetches the raw pixel buffer of this image. The buffer layout is\n        described by :attr:`extents` and :attr:`format`. Rows are stored\n        bottom-to-top.\n\n        :type: bytes\n\n        Wraps `hb_raster_image_get_buffer()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-image-get-buffer>`_.\n        "), 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_9uharfbuzz_9_harfbuzz_RasterImage_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_RasterImage},
  {Py_tp_doc, (void *)PyDoc_STR("An opaque raster image object holding a pixel buffer produced by\n    :meth:`RasterDraw.render`. Use :attr:`buffer` and :attr:`extents` to\n    access the pixels.\n\n    Wraps `hb_raster_image_t\n    <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-image-t>`_.\n    ")},
  {Py_tp_methods, (void *)__pyx_methods_9uharfbuzz_9_harfbuzz_RasterImage},
  {Py_tp_getset, (void *)__pyx_getsets_9uharfbuzz_9_harfbuzz_RasterImage},
  {Py_tp_init, (void *)__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_9uharfbuzz_9_harfbuzz_RasterImage},
  {0, 0},
};
static PyType_Spec __pyx_type_9uharfbuzz_9_harfbuzz_RasterImage_spec = {
  "uharfbuzz._harfbuzz.RasterImage",
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_9uharfbuzz_9_harfbuzz_RasterImage_slots,
};
#else

static PyTypeObject __pyx_type_9uharfbuzz_9_harfbuzz_RasterImage = {
  PyVarObject_HEAD_INIT(0, 0)
  "uharfbuzz._harfbuzz.""RasterImage", /*tp_name*/
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_RasterImage, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("An opaque raster image object holding a pixel buffer produced by\n    :meth:`RasterDraw.render`. Use :attr:`buffer` and :attr:`extents` to\n    access the pixels.\n\n    Wraps `hb_raster_image_t\n    <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-image-t>`_.\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_9uharfbuzz_9_harfbuzz_RasterImage, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_9uharfbuzz_9_harfbuzz_RasterImage, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterImage_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_9uharfbuzz_9_harfbuzz_RasterImage, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_RasterDraw(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_1__cinit__(o, __pyx_mstate_global->__pyx_empty_tuple, NULL) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_RasterDraw(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_RasterDraw) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_10RasterDraw_transform(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_9transform_1__get__(o);
}

static int __pyx_setprop_9uharfbuzz_9_harfbuzz_10RasterDraw_transform(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_9transform_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_10RasterDraw_scale_factor(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_12scale_factor_1__get__(o);
}

static int __pyx_setprop_9uharfbuzz_9_harfbuzz_10RasterDraw_scale_factor(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_12scale_factor_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_10RasterDraw_extents(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_7extents_1__get__(o);
}

static int __pyx_setprop_9uharfbuzz_9_harfbuzz_10RasterDraw_extents(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_7extents_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_9uharfbuzz_9_harfbuzz_RasterDraw[] = {
  {"set_glyph_extents", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_5set_glyph_extents, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10RasterDraw_4set_glyph_extents},
  {"draw_glyph", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_7draw_glyph, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10RasterDraw_6draw_glyph},
  {"draw_glyph_or_fail", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_9draw_glyph_or_fail, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10RasterDraw_8draw_glyph_or_fail},
  {"render", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_11render, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10RasterDraw_10render},
  {"clear", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_13clear, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10RasterDraw_12clear},
  {"reset", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_15reset, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10RasterDraw_14reset},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10RasterDraw_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_9uharfbuzz_9_harfbuzz_RasterDraw[] = {
  {"transform", __pyx_getprop_9uharfbuzz_9_harfbuzz_10RasterDraw_transform, __pyx_setprop_9uharfbuzz_9_harfbuzz_10RasterDraw_transform, PyDoc_STR("A 2\303\2273 affine transform applied to all incoming draw coordinates\n        before rasterization. The default is the identity.\n\n        :type: tuple of (xx, yx, xy, yy, dx, dy)\n\n        Wraps `hb_raster_draw_get_transform()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-draw-get-transform>`_\n        and `hb_raster_draw_set_transform()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-draw-set-transform>`_.\n        "), 0},
  {"scale_factor", __pyx_getprop_9uharfbuzz_9_harfbuzz_10RasterDraw_scale_factor, __pyx_setprop_9uharfbuzz_9_harfbuzz_10RasterDraw_scale_factor, PyDoc_STR("Post-transform minification factors applied during rasterization.\n        Factors larger than 1 shrink the output in pixels. The default is 1.\n\n        :type: tuple of (x_scale_factor, y_scale_factor)\n\n        Wraps `hb_raster_draw_get_scale_factor()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-draw-get-scale-factor>`_\n        and `hb_raster_draw_set_scale_factor()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-draw-set-scale-factor>`_.\n        "), 0},
  {"extents", __pyx_getprop_9uharfbuzz_9_harfbuzz_10RasterDraw_extents, __pyx_setprop_9uharfbuzz_9_harfbuzz_10RasterDraw_extents, PyDoc_STR("The output image extents. When set, :meth:`render` uses the given\n        extents instead of auto-computing them from the accumulated\n        geometry. ``None`` if no extents are configured.\n\n        :type: RasterExtents | None\n\n        Wraps `hb_raster_draw_get_extents()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-draw-get-extents>`_\n        and `hb_raster_draw_set_extents()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-draw-set-extents>`_.\n        "), 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_9uharfbuzz_9_harfbuzz_RasterDraw_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_RasterDraw},
  {Py_tp_doc, (void *)PyDoc_STR("An opaque outline rasterizer object. Accumulates glyph outlines via\n    :class:`DrawFuncs` callbacks, then produces a :class:`RasterImage` with\n    :meth:`render`.\n\n    Wraps `hb_raster_draw_t\n    <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-draw-t>`_.\n    ")},
  {Py_tp_methods, (void *)__pyx_methods_9uharfbuzz_9_harfbuzz_RasterDraw},
  {Py_tp_getset, (void *)__pyx_getsets_9uharfbuzz_9_harfbuzz_RasterDraw},
  {Py_tp_new, (void *)__pyx_tp_new_9uharfbuzz_9_harfbuzz_RasterDraw},
  {0, 0},
};
static PyType_Spec __pyx_type_9uharfbuzz_9_harfbuzz_RasterDraw_spec = {
  "uharfbuzz._harfbuzz.RasterDraw",
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_9uharfbuzz_9_harfbuzz_RasterDraw_slots,
};
#else

static PyTypeObject __pyx_type_9uharfbuzz_9_harfbuzz_RasterDraw = {
  PyVarObject_HEAD_INIT(0, 0)
  "uharfbuzz._harfbuzz.""RasterDraw", /*tp_name*/
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterDraw), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_RasterDraw, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("An opaque outline rasterizer object. Accumulates glyph outlines via\n    :class:`DrawFuncs` callbacks, then produces a :class:`RasterImage` with\n    :meth:`render`.\n\n    Wraps `hb_raster_draw_t\n    <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-draw-t>`_.\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_9uharfbuzz_9_harfbuzz_RasterDraw, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_9uharfbuzz_9_harfbuzz_RasterDraw, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_9uharfbuzz_9_harfbuzz_RasterDraw, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_RasterPaint(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_1__cinit__(o, __pyx_mstate_global->__pyx_empty_tuple, NULL) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_RasterPaint(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_RasterPaint) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_11RasterPaint_transform(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_9transform_1__get__(o);
}

static int __pyx_setprop_9uharfbuzz_9_harfbuzz_11RasterPaint_transform(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_9transform_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_11RasterPaint_scale_factor(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_12scale_factor_1__get__(o);
}

static int __pyx_setprop_9uharfbuzz_9_harfbuzz_11RasterPaint_scale_factor(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_12scale_factor_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_11RasterPaint_extents(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_7extents_1__get__(o);
}

static int __pyx_setprop_9uharfbuzz_9_harfbuzz_11RasterPaint_extents(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_7extents_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_11RasterPaint_foreground(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_10foreground_1__get__(o);
}

static int __pyx_setprop_9uharfbuzz_9_harfbuzz_11RasterPaint_foreground(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_10foreground_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_11RasterPaint_background(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_10background_1__get__(o);
}

static int __pyx_setprop_9uharfbuzz_9_harfbuzz_11RasterPaint_background(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_10background_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_11RasterPaint_palette(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_7palette_1__get__(o);
}

static int __pyx_setprop_9uharfbuzz_9_harfbuzz_11RasterPaint_palette(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_7palette_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_9uharfbuzz_9_harfbuzz_RasterPaint[] = {
  {"set_glyph_extents", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_5set_glyph_extents, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11RasterPaint_4set_glyph_extents},
  {"set_custom_palette_color", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_7set_custom_palette_color, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11RasterPaint_6set_custom_palette_color},
  {"clear_custom_palette_colors", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_9clear_custom_palette_colors, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11RasterPaint_8clear_custom_palette_colors},
  {"paint_glyph", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_11paint_glyph, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11RasterPaint_10paint_glyph},
  {"paint_glyph_or_fail", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_13paint_glyph_or_fail, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11RasterPaint_12paint_glyph_or_fail},
  {"render", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_15render, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11RasterPaint_14render},
  {"clear", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_17clear, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11RasterPaint_16clear},
  {"reset", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_19reset, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11RasterPaint_18reset},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_21__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11RasterPaint_23__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_9uharfbuzz_9_harfbuzz_RasterPaint[] = {
  {"transform", __pyx_getprop_9uharfbuzz_9_harfbuzz_11RasterPaint_transform, __pyx_setprop_9uharfbuzz_9_harfbuzz_11RasterPaint_transform, PyDoc_STR("The base 2\303\2273 affine transform that maps from glyph-space\n        coordinates to pixel-space coordinates.\n\n        :type: tuple of (xx, yx, xy, yy, dx, dy)\n\n        Wraps `hb_raster_paint_get_transform()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-get-transform>`_\n        and `hb_raster_paint_set_transform()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-set-transform>`_.\n        "), 0},
  {"scale_factor", __pyx_getprop_9uharfbuzz_9_harfbuzz_11RasterPaint_scale_factor, __pyx_setprop_9uharfbuzz_9_harfbuzz_11RasterPaint_scale_factor, PyDoc_STR("Post-transform minification factors applied during painting.\n        Factors larger than 1 shrink the output in pixels. The default is 1.\n\n        :type: tuple of (x_scale_factor, y_scale_factor)\n\n        Wraps `hb_raster_paint_get_scale_factor()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-get-scale-factor>`_\n        and `hb_raster_paint_set_scale_factor()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-set-scale-factor>`_.\n        "), 0},
  {"extents", __pyx_getprop_9uharfbuzz_9_harfbuzz_11RasterPaint_extents, __pyx_setprop_9uharfbuzz_9_harfbuzz_11RasterPaint_extents, PyDoc_STR("The output image extents (pixel rectangle). Must be set before\n        painting; otherwise :meth:`render` returns ``None``. ``None`` if no\n        extents are configured.\n\n        :type: RasterExtents | None\n\n        Wraps `hb_raster_paint_get_extents()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-get-extents>`_\n        and `hb_raster_paint_set_extents()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-set-extents>`_.\n        "), 0},
  {"foreground", __pyx_getprop_9uharfbuzz_9_harfbuzz_11RasterPaint_foreground, __pyx_setprop_9uharfbuzz_9_harfbuzz_11RasterPaint_foreground, PyDoc_STR("The foreground color used when paint callbacks request it (e.g.\n        ``is_foreground`` in color stops or solid fills). Defaults to\n        opaque black if none was set.\n\n        :type: Color\n\n        Wraps `hb_raster_paint_get_foreground()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-get-foreground>`_\n        and `hb_raster_paint_set_foreground()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-set-foreground>`_.\n        "), 0},
  {"background", __pyx_getprop_9uharfbuzz_9_harfbuzz_11RasterPaint_background, __pyx_setprop_9uharfbuzz_9_harfbuzz_11RasterPaint_background, PyDoc_STR("The background color. If set to a non-transparent value, the\n        rendered image is pre-filled with this color before glyph content\n        is composited on top. Default is transparent.\n\n        :type: Color\n\n        Wraps `hb_raster_paint_get_background()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-get-background>`_\n        and `hb_raster_paint_set_background()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-set-background>`_.\n        "), 0},
  {"palette", __pyx_getprop_9uharfbuzz_9_harfbuzz_11RasterPaint_palette, __pyx_setprop_9uharfbuzz_9_harfbuzz_11RasterPaint_palette, PyDoc_STR("Selects which font palette is used when paint callbacks look up\n        indexed colors. Default is palette 0.\n\n        :type: int\n\n        Wraps `hb_raster_paint_get_palette()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-get-palette>`_\n        and `hb_raster_paint_set_palette()\n        <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-set-palette>`_.\n        "), 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_9uharfbuzz_9_harfbuzz_RasterPaint_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_RasterPaint},
  {Py_tp_doc, (void *)PyDoc_STR("An opaque color-glyph paint context. Implements :class:`PaintFuncs`\n    callbacks that render COLRv0/v1 color glyphs into a\n    :attr:`RasterFormat.BGRA32` :class:`RasterImage`.\n\n    Wraps `hb_raster_paint_t\n    <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-t>`_.\n    ")},
  {Py_tp_methods, (void *)__pyx_methods_9uharfbuzz_9_harfbuzz_RasterPaint},
  {Py_tp_getset, (void *)__pyx_getsets_9uharfbuzz_9_harfbuzz_RasterPaint},
  {Py_tp_new, (void *)__pyx_tp_new_9uharfbuzz_9_harfbuzz_RasterPaint},
  {0, 0},
};
static PyType_Spec __pyx_type_9uharfbuzz_9_harfbuzz_RasterPaint_spec = {
  "uharfbuzz._harfbuzz.RasterPaint",
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_9uharfbuzz_9_harfbuzz_RasterPaint_slots,
};
#else

static PyTypeObject __pyx_type_9uharfbuzz_9_harfbuzz_RasterPaint = {
  PyVarObject_HEAD_INIT(0, 0)
  "uharfbuzz._harfbuzz.""RasterPaint", /*tp_name*/
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterPaint), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_RasterPaint, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("An opaque color-glyph paint context. Implements :class:`PaintFuncs`\n    callbacks that render COLRv0/v1 color glyphs into a\n    :attr:`RasterFormat.BGRA32` :class:`RasterImage`.\n\n    Wraps `hb_raster_paint_t\n    <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-paint-t>`_.\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_9uharfbuzz_9_harfbuzz_RasterPaint, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_9uharfbuzz_9_harfbuzz_RasterPaint, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_9uharfbuzz_9_harfbuzz_RasterPaint, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
static struct __pyx_vtabstruct_9uharfbuzz_9_harfbuzz_HBObject __pyx_vtable_9uharfbuzz_9_harfbuzz_HBObject;

static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_HBObject(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz_HBObject *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz_HBObject *)o);
  p->__pyx_vtab = __pyx_vtabptr_9uharfbuzz_9_harfbuzz_HBObject;
  if (unlikely(__pyx_pw_9uharfbuzz_9_harfbuzz_8HBObject_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_HBObject(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_HBObject) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_9uharfbuzz_9_harfbuzz_8HBObject_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyMethodDef __pyx_methods_9uharfbuzz_9_harfbuzz_HBObject[] = {
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_8HBObject_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_8HBObject_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_9uharfbuzz_9_harfbuzz_HBObject_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_HBObject},
  {Py_tp_doc, (void *)PyDoc_STR("Represents an array of objects in the object graph to be serialized.\n    Used internally by :func:`serialize` and :func:`serialize_with_tag`.\n\n    Wraps `hb_subset_serialize_object_t\n    <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-serialize-object-t>`_.\n    ")},
  {Py_tp_methods, (void *)__pyx_methods_9uharfbuzz_9_harfbuzz_HBObject},
  {Py_tp_new, (void *)__pyx_tp_new_9uharfbuzz_9_harfbuzz_HBObject},
  {0, 0},
};
static PyType_Spec __pyx_type_9uharfbuzz_9_harfbuzz_HBObject_spec = {
  "uharfbuzz._harfbuzz.HBObject",
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_HBObject),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_9uharfbuzz_9_harfbuzz_HBObject_slots,
};
#else

static PyTypeObject __pyx_type_9uharfbuzz_9_harfbuzz_HBObject = {
  PyVarObject_HEAD_INIT(0, 0)
  "uharfbuzz._harfbuzz.""HBObject", /*tp_name*/
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_HBObject), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_HBObject, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("Represents an array of objects in the object graph to be serialized.\n    Used internally by :func:`serialize` and :func:`serialize_with_tag`.\n\n    Wraps `hb_subset_serialize_object_t\n    <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-serialize-object-t>`_.\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_9uharfbuzz_9_harfbuzz_HBObject, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_9uharfbuzz_9_harfbuzz_HBObject, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_SubsetInput(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_1__cinit__(o, __pyx_mstate_global->__pyx_empty_tuple, NULL) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_SubsetInput(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_SubsetInput) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_11SubsetInput_unicode_set(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_11unicode_set_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_11SubsetInput_glyph_set(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_9glyph_set_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_11SubsetInput_no_subset_table_tag_set(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_23no_subset_table_tag_set_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_11SubsetInput_drop_table_tag_set(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_18drop_table_tag_set_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_11SubsetInput_name_id_set(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_11name_id_set_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_11SubsetInput_name_lang_id_set(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_16name_lang_id_set_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_11SubsetInput_layout_feature_tag_set(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_22layout_feature_tag_set_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_11SubsetInput_layout_script_tag_set(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_21layout_script_tag_set_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_11SubsetInput_flags(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_5flags_1__get__(o);
}

static int __pyx_setprop_9uharfbuzz_9_harfbuzz_11SubsetInput_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_5flags_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_9uharfbuzz_9_harfbuzz_SubsetInput[] = {
  {"subset", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_5subset, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11SubsetInput_4subset},
  {"keep_everything", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_7keep_everything, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11SubsetInput_6keep_everything},
  {"pin_all_axes_to_default", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_9pin_all_axes_to_default, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11SubsetInput_8pin_all_axes_to_default},
  {"pin_axis_to_default", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_11pin_axis_to_default, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11SubsetInput_10pin_axis_to_default},
  {"pin_axis_location", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_13pin_axis_location, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11SubsetInput_12pin_axis_location},
  {"set_axis_range", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_15set_axis_range, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11SubsetInput_14set_axis_range},
  {"get_axis_range", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_17get_axis_range, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11SubsetInput_16get_axis_range},
  {"sets", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_19sets, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_11SubsetInput_18sets},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_21__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_11SubsetInput_23__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_9uharfbuzz_9_harfbuzz_SubsetInput[] = {
  {"unicode_set", __pyx_getprop_9uharfbuzz_9_harfbuzz_11SubsetInput_unicode_set, 0, PyDoc_STR("The set of Unicode code points to retain. The caller should modify\n        the set as needed.\n\n        :type: Set\n\n        Wraps `hb_subset_input_unicode_set()\n        <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-input-unicode-set>`_.\n        "), 0},
  {"glyph_set", __pyx_getprop_9uharfbuzz_9_harfbuzz_11SubsetInput_glyph_set, 0, PyDoc_STR("The set of glyph IDs to retain. The caller should modify the set\n        as needed.\n\n        :type: Set\n\n        Wraps `hb_subset_input_glyph_set()\n        <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-input-glyph-set>`_.\n        "), 0},
  {"no_subset_table_tag_set", __pyx_getprop_9uharfbuzz_9_harfbuzz_11SubsetInput_no_subset_table_tag_set, 0, PyDoc_STR("Shortcut for ``sets(SubsetInputSets.NO_SUBSET_TABLE_TAG)``.\n\n        :type: Set\n        "), 0},
  {"drop_table_tag_set", __pyx_getprop_9uharfbuzz_9_harfbuzz_11SubsetInput_drop_table_tag_set, 0, PyDoc_STR("Shortcut for ``sets(SubsetInputSets.DROP_TABLE_TAG)``.\n\n        :type: Set\n        "), 0},
  {"name_id_set", __pyx_getprop_9uharfbuzz_9_harfbuzz_11SubsetInput_name_id_set, 0, PyDoc_STR("Shortcut for ``sets(SubsetInputSets.NAME_ID)``.\n\n        :type: Set\n        "), 0},
  {"name_lang_id_set", __pyx_getprop_9uharfbuzz_9_harfbuzz_11SubsetInput_name_lang_id_set, 0, PyDoc_STR("Shortcut for ``sets(SubsetInputSets.NAME_LANG_ID)``.\n\n        :type: Set\n        "), 0},
  {"layout_feature_tag_set", __pyx_getprop_9uharfbuzz_9_harfbuzz_11SubsetInput_layout_feature_tag_set, 0, PyDoc_STR("Shortcut for ``sets(SubsetInputSets.LAYOUT_FEATURE_TAG)``.\n\n        :type: Set\n        "), 0},
  {"layout_script_tag_set", __pyx_getprop_9uharfbuzz_9_harfbuzz_11SubsetInput_layout_script_tag_set, 0, PyDoc_STR("Shortcut for ``sets(SubsetInputSets.LAYOUT_SCRIPT_TAG)``.\n\n        :type: Set\n        "), 0},
  {"flags", __pyx_getprop_9uharfbuzz_9_harfbuzz_11SubsetInput_flags, __pyx_setprop_9uharfbuzz_9_harfbuzz_11SubsetInput_flags, PyDoc_STR("All of the subsetting flags in the input object.\n\n        :type: SubsetFlags\n\n        Wraps `hb_subset_input_get_flags()\n        <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-input-get-flags>`_\n        and `hb_subset_input_set_flags()\n        <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-input-set-flags>`_.\n        "), 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_9uharfbuzz_9_harfbuzz_SubsetInput_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_SubsetInput},
  {Py_tp_doc, (void *)PyDoc_STR("Things that change based on the input. Characters to keep, etc.\n\n    Wraps `hb_subset_input_t\n    <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-input-t>`_.\n    ")},
  {Py_tp_methods, (void *)__pyx_methods_9uharfbuzz_9_harfbuzz_SubsetInput},
  {Py_tp_getset, (void *)__pyx_getsets_9uharfbuzz_9_harfbuzz_SubsetInput},
  {Py_tp_new, (void *)__pyx_tp_new_9uharfbuzz_9_harfbuzz_SubsetInput},
  {0, 0},
};
static PyType_Spec __pyx_type_9uharfbuzz_9_harfbuzz_SubsetInput_spec = {
  "uharfbuzz._harfbuzz.SubsetInput",
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_9uharfbuzz_9_harfbuzz_SubsetInput_slots,
};
#else

static PyTypeObject __pyx_type_9uharfbuzz_9_harfbuzz_SubsetInput = {
  PyVarObject_HEAD_INIT(0, 0)
  "uharfbuzz._harfbuzz.""SubsetInput", /*tp_name*/
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetInput), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_SubsetInput, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("Things that change based on the input. Characters to keep, etc.\n\n    Wraps `hb_subset_input_t\n    <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-input-t>`_.\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_9uharfbuzz_9_harfbuzz_SubsetInput, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_9uharfbuzz_9_harfbuzz_SubsetInput, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_9uharfbuzz_9_harfbuzz_SubsetInput, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz_SubsetPlan(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_9uharfbuzz_9_harfbuzz_10SubsetPlan_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_SubsetPlan(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_SubsetPlan) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_9uharfbuzz_9_harfbuzz_10SubsetPlan_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_10SubsetPlan_old_to_new_glyph_mapping(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_10SubsetPlan_24old_to_new_glyph_mapping_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_10SubsetPlan_new_to_old_glyph_mapping(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_10SubsetPlan_24new_to_old_glyph_mapping_1__get__(o);
}

static PyObject *__pyx_getprop_9uharfbuzz_9_harfbuzz_10SubsetPlan_unicode_to_old_glyph_mapping(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_9uharfbuzz_9_harfbuzz_10SubsetPlan_28unicode_to_old_glyph_mapping_1__get__(o);
}

static PyMethodDef __pyx_methods_9uharfbuzz_9_harfbuzz_SubsetPlan[] = {
  {"execute", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10SubsetPlan_5execute, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_9uharfbuzz_9_harfbuzz_10SubsetPlan_4execute},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10SubsetPlan_7__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9uharfbuzz_9_harfbuzz_10SubsetPlan_9__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_9uharfbuzz_9_harfbuzz_SubsetPlan[] = {
  {"old_to_new_glyph_mapping", __pyx_getprop_9uharfbuzz_9_harfbuzz_10SubsetPlan_old_to_new_glyph_mapping, 0, PyDoc_STR("The mapping between glyphs in the original font to glyphs in the\n        subset that will be produced by this plan.\n\n        :type: Map\n\n        Wraps `hb_subset_plan_old_to_new_glyph_mapping()\n        <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-plan-old-to-new-glyph-mapping>`_.\n        "), 0},
  {"new_to_old_glyph_mapping", __pyx_getprop_9uharfbuzz_9_harfbuzz_10SubsetPlan_new_to_old_glyph_mapping, 0, PyDoc_STR("The mapping between glyphs in the subset that will be produced by\n        this plan and the glyph in the original font.\n\n        :type: Map\n\n        Wraps `hb_subset_plan_new_to_old_glyph_mapping()\n        <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-plan-new-to-old-glyph-mapping>`_.\n        "), 0},
  {"unicode_to_old_glyph_mapping", __pyx_getprop_9uharfbuzz_9_harfbuzz_10SubsetPlan_unicode_to_old_glyph_mapping, 0, PyDoc_STR("The mapping between codepoints in the original font and the\n        associated glyph id in the original font.\n\n        :type: Map\n\n        Wraps `hb_subset_plan_unicode_to_old_glyph_mapping()\n        <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-plan-unicode-to-old-glyph-mapping>`_.\n        "), 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_9uharfbuzz_9_harfbuzz_SubsetPlan_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_SubsetPlan},
  {Py_tp_doc, (void *)PyDoc_STR("Contains information about how the subset operation will be\n    executed. Such as mappings from the old glyph ids to the new ones in\n    the subset.\n\n    Constructing a :class:`SubsetPlan` computes a plan for subsetting the\n    supplied ``face`` according to the provided ``input``. The plan\n    describes which tables and glyphs should be retained.\n\n    Wraps `hb_subset_plan_t\n    <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-plan-t>`_.\n    ")},
  {Py_tp_methods, (void *)__pyx_methods_9uharfbuzz_9_harfbuzz_SubsetPlan},
  {Py_tp_getset, (void *)__pyx_getsets_9uharfbuzz_9_harfbuzz_SubsetPlan},
  {Py_tp_new, (void *)__pyx_tp_new_9uharfbuzz_9_harfbuzz_SubsetPlan},
  {0, 0},
};
static PyType_Spec __pyx_type_9uharfbuzz_9_harfbuzz_SubsetPlan_spec = {
  "uharfbuzz._harfbuzz.SubsetPlan",
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetPlan),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_9uharfbuzz_9_harfbuzz_SubsetPlan_slots,
};
#else

static PyTypeObject __pyx_type_9uharfbuzz_9_harfbuzz_SubsetPlan = {
  PyVarObject_HEAD_INIT(0, 0)
  "uharfbuzz._harfbuzz.""SubsetPlan", /*tp_name*/
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz_SubsetPlan), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz_SubsetPlan, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("Contains information about how the subset operation will be\n    executed. Such as mappings from the old glyph ids to the new ones in\n    the subset.\n\n    Constructing a :class:`SubsetPlan` computes a plan for subsetting the\n    supplied ``face`` according to the provided ``input``. The plan\n    describes which tables and glyphs should be retained.\n\n    Wraps `hb_subset_plan_t\n    <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-plan-t>`_.\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_9uharfbuzz_9_harfbuzz_SubsetPlan, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_9uharfbuzz_9_harfbuzz_SubsetPlan, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_9uharfbuzz_9_harfbuzz_SubsetPlan, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated, sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated[--__pyx_mstate_global->__pyx_freecount_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated(PyObject *o) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_replacement);
  Py_CLEAR(p->__pyx_v_since);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated, sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated))))
  {
    __pyx_mstate_global->__pyx_freelist_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated[__pyx_mstate_global->__pyx_freecount_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated++] = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_v_replacement) {
    e = (*v)(p->__pyx_v_replacement, a); if (e) return e;
  }
  if (p->__pyx_v_since) {
    e = (*v)(p->__pyx_v_since, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated *)o;
  tmp = ((PyObject*)p->__pyx_v_replacement);
  p->__pyx_v_replacement = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->__pyx_v_since);
  p->__pyx_v_since = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated},
  {Py_tp_clear, (void *)__pyx_tp_clear_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated},
  {Py_tp_new, (void *)__pyx_tp_new_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated},
  {0, 0},
};
static PyType_Spec __pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated_spec = {
  "uharfbuzz._harfbuzz.__pyx_scope_struct__deprecated",
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated_slots,
};
#else

static PyTypeObject __pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated = {
  PyVarObject_HEAD_INIT(0, 0)
  "uharfbuzz._harfbuzz.""__pyx_scope_struct__deprecated", /*tp_name*/
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated, /*tp_traverse*/
  __pyx_tp_clear_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator, sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator[--__pyx_mstate_global->__pyx_freecount_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator(PyObject *o) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_func);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator, sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator))))
  {
    __pyx_mstate_global->__pyx_freelist_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator[__pyx_mstate_global->__pyx_freecount_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator++] = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_func) {
    e = (*v)(p->__pyx_v_func, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator *)o;
  tmp = ((PyObject*)p->__pyx_outer_scope);
  p->__pyx_outer_scope = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->__pyx_v_func);
  p->__pyx_v_func = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator},
  {Py_tp_clear, (void *)__pyx_tp_clear_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator},
  {Py_tp_new, (void *)__pyx_tp_new_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator},
  {0, 0},
};
static PyType_Spec __pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator_spec = {
  "uharfbuzz._harfbuzz.__pyx_scope_struct_1_decorator",
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator_slots,
};
#else

static PyTypeObject __pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator = {
  PyVarObject_HEAD_INIT(0, 0)
  "uharfbuzz._harfbuzz.""__pyx_scope_struct_1_decorator", /*tp_name*/
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator, /*tp_traverse*/
  __pyx_tp_clear_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr, sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr[--__pyx_mstate_global->__pyx_freecount_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr(PyObject *o) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr, sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr[__pyx_mstate_global->__pyx_freecount_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr++] = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(((PyObject *)p->__pyx_genexpr_arg_0), a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr_spec = {
  "uharfbuzz._harfbuzz.__pyx_scope_struct_2_genexpr",
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "uharfbuzz._harfbuzz.""__pyx_scope_struct_2_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr, sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr[--__pyx_mstate_global->__pyx_freecount_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr(PyObject *o) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  Py_CLEAR(p->__pyx_t_0);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr, sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr[__pyx_mstate_global->__pyx_freecount_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr++] = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(((PyObject *)p->__pyx_genexpr_arg_0), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  if (p->__pyx_t_0) {
    e = (*v)(p->__pyx_t_0, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr_spec = {
  "uharfbuzz._harfbuzz.__pyx_scope_struct_3_genexpr",
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "uharfbuzz._harfbuzz.""__pyx_scope_struct_3_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr, sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr[--__pyx_mstate_global->__pyx_freecount_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr(PyObject *o) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  Py_CLEAR(p->__pyx_t_0);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr, sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr[__pyx_mstate_global->__pyx_freecount_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr++] = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(((PyObject *)p->__pyx_genexpr_arg_0), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  if (p->__pyx_t_0) {
    e = (*v)(p->__pyx_t_0, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr_spec = {
  "uharfbuzz._harfbuzz.__pyx_scope_struct_4_genexpr",
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "uharfbuzz._harfbuzz.""__pyx_scope_struct_4_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr, sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr[--__pyx_mstate_global->__pyx_freecount_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr(PyObject *o) {
  struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr, sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr[__pyx_mstate_global->__pyx_freecount_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr++] = ((struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr *p = (struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr_spec = {
  "uharfbuzz._harfbuzz.__pyx_scope_struct_5_genexpr",
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "uharfbuzz._harfbuzz.""__pyx_scope_struct_5_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyMethodDef __pyx_methods[] = {
  {0, 0, 0, 0}
};
/* #### Code section: initfunc_declarations ### */
static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_InitGlobals(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_InitConstants(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_global_init_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_variable_export_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_function_export_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_variable_import_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_CreateCodeObjects(__pyx_mstatetype *__pyx_mstate); /*proto*/
/* #### Code section: init_module ### */

static int __Pyx_modinit_global_init_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_global_init_code", 0);
  /*--- Global init code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_variable_export_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_variable_export_code", 0);
  /*--- Variable export code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_function_export_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_function_export_code", 0);
  /*--- Function export code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0);
  /*--- Type init code ---*/
  __pyx_vtabptr_9uharfbuzz_9_harfbuzz_Set = &__pyx_vtable_9uharfbuzz_9_harfbuzz_Set;
  __pyx_vtable_9uharfbuzz_9_harfbuzz_Set.from_ptr = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_Set *(*)(hb_set_t *))__pyx_f_9uharfbuzz_9_harfbuzz_3Set_from_ptr;
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9uharfbuzz_9_harfbuzz_Set_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set)) __PYX_ERR(2, 1, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9uharfbuzz_9_harfbuzz_Set_spec, __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set = &__pyx_type_9uharfbuzz_9_harfbuzz_Set;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set->tp_dictoffset && __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (__Pyx_SetVtable(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, __pyx_vtabptr_9uharfbuzz_9_harfbuzz_Set) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  if (__Pyx_MergeVtables(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_Set_2, (PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SetIter = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9uharfbuzz_9_harfbuzz_SetIter_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SetIter)) __PYX_ERR(2, 303, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9uharfbuzz_9_harfbuzz_SetIter_spec, __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SetIter) < (0)) __PYX_ERR(2, 303, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SetIter = &__pyx_type_9uharfbuzz_9_harfbuzz_SetIter;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SetIter) < (0)) __PYX_ERR(2, 303, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SetIter);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SetIter->tp_dictoffset && __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SetIter->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SetIter->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_SetIter, (PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SetIter) < (0)) __PYX_ERR(2, 303, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SetIter) < (0)) __PYX_ERR(2, 303, __pyx_L1_error)
  __pyx_vtabptr_9uharfbuzz_9_harfbuzz_Map = &__pyx_vtable_9uharfbuzz_9_harfbuzz_Map;
  __pyx_vtable_9uharfbuzz_9_harfbuzz_Map.from_ptr = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_Map *(*)(hb_map_t *))__pyx_f_9uharfbuzz_9_harfbuzz_3Map_from_ptr;
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9uharfbuzz_9_harfbuzz_Map_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map)) __PYX_ERR(5, 1, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9uharfbuzz_9_harfbuzz_Map_spec, __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map) < (0)) __PYX_ERR(5, 1, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map = &__pyx_type_9uharfbuzz_9_harfbuzz_Map;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map) < (0)) __PYX_ERR(5, 1, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map->tp_dictoffset && __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (__Pyx_SetVtable(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map, __pyx_vtabptr_9uharfbuzz_9_harfbuzz_Map) < (0)) __PYX_ERR(5, 1, __pyx_L1_error)
  if (__Pyx_MergeVtables(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map) < (0)) __PYX_ERR(5, 1, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_Map, (PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map) < (0)) __PYX_ERR(5, 1, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map) < (0)) __PYX_ERR(5, 1, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_MapIter = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9uharfbuzz_9_harfbuzz_MapIter_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_MapIter)) __PYX_ERR(5, 167, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9uharfbuzz_9_harfbuzz_MapIter_spec, __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_MapIter) < (0)) __PYX_ERR(5, 167, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_MapIter = &__pyx_type_9uharfbuzz_9_harfbuzz_MapIter;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_MapIter) < (0)) __PYX_ERR(5, 167, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_MapIter);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_MapIter->tp_dictoffset && __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_MapIter->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_MapIter->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_MapIter, (PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_MapIter) < (0)) __PYX_ERR(5, 167, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_MapIter) < (0)) __PYX_ERR(5, 167, __pyx_L1_error)
  __pyx_vtabptr_9uharfbuzz_9_harfbuzz_Blob = &__pyx_vtable_9uharfbuzz_9_harfbuzz_Blob;
  __pyx_vtable_9uharfbuzz_9_harfbuzz_Blob.from_ptr = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_Blob *(*)(hb_blob_t *))__pyx_f_9uharfbuzz_9_harfbuzz_4Blob_from_ptr;
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Blob = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9uharfbuzz_9_harfbuzz_Blob_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Blob)) __PYX_ERR(6, 1, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9uharfbuzz_9_harfbuzz_Blob_spec, __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Blob) < (0)) __PYX_ERR(6, 1, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Blob = &__pyx_type_9uharfbuzz_9_harfbuzz_Blob;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Blob) < (0)) __PYX_ERR(6, 1, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Blob);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Blob->tp_dictoffset && __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Blob->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Blob->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (__Pyx_SetVtable(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Blob, __pyx_vtabptr_9uharfbuzz_9_harfbuzz_Blob) < (0)) __PYX_ERR(6, 1, __pyx_L1_error)
  if (__Pyx_MergeVtables(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Blob) < (0)) __PYX_ERR(6, 1, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_Blob, (PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Blob) < (0)) __PYX_ERR(6, 1, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Blob) < (0)) __PYX_ERR(6, 1, __pyx_L1_error)
  __pyx_vtabptr_9uharfbuzz_9_harfbuzz_GlyphInfo = &__pyx_vtable_9uharfbuzz_9_harfbuzz_GlyphInfo;
  __pyx_vtable_9uharfbuzz_9_harfbuzz_GlyphInfo.set = (PyObject *(*)(struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphInfo *, hb_glyph_info_t))__pyx_f_9uharfbuzz_9_harfbuzz_9GlyphInfo_set;
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphInfo = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9uharfbuzz_9_harfbuzz_GlyphInfo_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphInfo)) __PYX_ERR(7, 76, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9uharfbuzz_9_harfbuzz_GlyphInfo_spec, __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphInfo) < (0)) __PYX_ERR(7, 76, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphInfo = &__pyx_type_9uharfbuzz_9_harfbuzz_GlyphInfo;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphInfo) < (0)) __PYX_ERR(7, 76, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphInfo);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphInfo->tp_dictoffset && __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphInfo->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphInfo->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (__Pyx_SetVtable(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphInfo, __pyx_vtabptr_9uharfbuzz_9_harfbuzz_GlyphInfo) < (0)) __PYX_ERR(7, 76, __pyx_L1_error)
  if (__Pyx_MergeVtables(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphInfo) < (0)) __PYX_ERR(7, 76, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_GlyphInfo, (PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphInfo) < (0)) __PYX_ERR(7, 76, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphInfo) < (0)) __PYX_ERR(7, 76, __pyx_L1_error)
  __pyx_vtabptr_9uharfbuzz_9_harfbuzz_GlyphPosition = &__pyx_vtable_9uharfbuzz_9_harfbuzz_GlyphPosition;
  __pyx_vtable_9uharfbuzz_9_harfbuzz_GlyphPosition.set = (PyObject *(*)(struct __pyx_obj_9uharfbuzz_9_harfbuzz_GlyphPosition *, hb_glyph_position_t))__pyx_f_9uharfbuzz_9_harfbuzz_13GlyphPosition_set;
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphPosition = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9uharfbuzz_9_harfbuzz_GlyphPosition_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphPosition)) __PYX_ERR(7, 125, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9uharfbuzz_9_harfbuzz_GlyphPosition_spec, __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphPosition) < (0)) __PYX_ERR(7, 125, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphPosition = &__pyx_type_9uharfbuzz_9_harfbuzz_GlyphPosition;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphPosition) < (0)) __PYX_ERR(7, 125, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphPosition);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphPosition->tp_dictoffset && __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphPosition->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphPosition->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (__Pyx_SetVtable(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphPosition, __pyx_vtabptr_9uharfbuzz_9_harfbuzz_GlyphPosition) < (0)) __PYX_ERR(7, 125, __pyx_L1_error)
  if (__Pyx_MergeVtables(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphPosition) < (0)) __PYX_ERR(7, 125, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_GlyphPosition, (PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphPosition) < (0)) __PYX_ERR(7, 125, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_GlyphPosition) < (0)) __PYX_ERR(7, 125, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Buffer = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9uharfbuzz_9_harfbuzz_Buffer_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Buffer)) __PYX_ERR(7, 432, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9uharfbuzz_9_harfbuzz_Buffer_spec, __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Buffer) < (0)) __PYX_ERR(7, 432, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Buffer = &__pyx_type_9uharfbuzz_9_harfbuzz_Buffer;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Buffer) < (0)) __PYX_ERR(7, 432, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Buffer);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Buffer->tp_dictoffset && __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Buffer->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Buffer->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_Buffer, (PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Buffer) < (0)) __PYX_ERR(7, 432, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Buffer) < (0)) __PYX_ERR(7, 432, __pyx_L1_error)
  __pyx_vtabptr_9uharfbuzz_9_harfbuzz_Face = &__pyx_vtable_9uharfbuzz_9_harfbuzz_Face;
  __pyx_vtable_9uharfbuzz_9_harfbuzz_Face.from_ptr = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *(*)(hb_face_t *))__pyx_f_9uharfbuzz_9_harfbuzz_4Face_from_ptr;
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9uharfbuzz_9_harfbuzz_Face_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face)) __PYX_ERR(1, 386, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9uharfbuzz_9_harfbuzz_Face_spec, __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face) < (0)) __PYX_ERR(1, 386, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face = &__pyx_type_9uharfbuzz_9_harfbuzz_Face;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face) < (0)) __PYX_ERR(1, 386, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face->tp_dictoffset && __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (__Pyx_SetVtable(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, __pyx_vtabptr_9uharfbuzz_9_harfbuzz_Face) < (0)) __PYX_ERR(1, 386, __pyx_L1_error)
  if (__Pyx_MergeVtables(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face) < (0)) __PYX_ERR(1, 386, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_Face, (PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face) < (0)) __PYX_ERR(1, 386, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face) < (0)) __PYX_ERR(1, 386, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_DrawFuncs = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9uharfbuzz_9_harfbuzz_DrawFuncs_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_DrawFuncs)) __PYX_ERR(8, 51, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9uharfbuzz_9_harfbuzz_DrawFuncs_spec, __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_DrawFuncs) < (0)) __PYX_ERR(8, 51, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_DrawFuncs = &__pyx_type_9uharfbuzz_9_harfbuzz_DrawFuncs;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_DrawFuncs) < (0)) __PYX_ERR(8, 51, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_DrawFuncs);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_DrawFuncs->tp_dictoffset && __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_DrawFuncs->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_DrawFuncs->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_DrawFuncs, (PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_DrawFuncs) < (0)) __PYX_ERR(8, 51, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_DrawFuncs) < (0)) __PYX_ERR(8, 51, __pyx_L1_error)
  __pyx_vtabptr_9uharfbuzz_9_harfbuzz_ColorLine = &__pyx_vtable_9uharfbuzz_9_harfbuzz_ColorLine;
  __pyx_vtable_9uharfbuzz_9_harfbuzz_ColorLine.from_ptr = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_ColorLine *(*)(hb_color_line_t *))__pyx_f_9uharfbuzz_9_harfbuzz_9ColorLine_from_ptr;
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_ColorLine = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9uharfbuzz_9_harfbuzz_ColorLine_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_ColorLine)) __PYX_ERR(9, 227, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9uharfbuzz_9_harfbuzz_ColorLine_spec, __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_ColorLine) < (0)) __PYX_ERR(9, 227, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_ColorLine = &__pyx_type_9uharfbuzz_9_harfbuzz_ColorLine;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_ColorLine) < (0)) __PYX_ERR(9, 227, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_ColorLine);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_ColorLine->tp_dictoffset && __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_ColorLine->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_ColorLine->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (__Pyx_SetVtable(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_ColorLine, __pyx_vtabptr_9uharfbuzz_9_harfbuzz_ColorLine) < (0)) __PYX_ERR(9, 227, __pyx_L1_error)
  if (__Pyx_MergeVtables(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_ColorLine) < (0)) __PYX_ERR(9, 227, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_ColorLine, (PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_ColorLine) < (0)) __PYX_ERR(9, 227, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_ColorLine) < (0)) __PYX_ERR(9, 227, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_PaintFuncs = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9uharfbuzz_9_harfbuzz_PaintFuncs_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_PaintFuncs)) __PYX_ERR(9, 463, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9uharfbuzz_9_harfbuzz_PaintFuncs_spec, __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_PaintFuncs) < (0)) __PYX_ERR(9, 463, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_PaintFuncs = &__pyx_type_9uharfbuzz_9_harfbuzz_PaintFuncs;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_PaintFuncs) < (0)) __PYX_ERR(9, 463, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_PaintFuncs);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_PaintFuncs->tp_dictoffset && __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_PaintFuncs->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_PaintFuncs->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_PaintFuncs, (PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_PaintFuncs) < (0)) __PYX_ERR(9, 463, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_PaintFuncs) < (0)) __PYX_ERR(9, 463, __pyx_L1_error)
  __pyx_vtabptr_9uharfbuzz_9_harfbuzz_Font = &__pyx_vtable_9uharfbuzz_9_harfbuzz_Font;
  __pyx_vtable_9uharfbuzz_9_harfbuzz_Font._Font__create = (PyObject *(*)(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Face *))__pyx_f_9uharfbuzz_9_harfbuzz_4Font__Font__create;
  __pyx_vtable_9uharfbuzz_9_harfbuzz_Font._Font__create_sub_font = (PyObject *(*)(struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *, struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *))__pyx_f_9uharfbuzz_9_harfbuzz_4Font__Font__create_sub_font;
  __pyx_vtable_9uharfbuzz_9_harfbuzz_Font.from_ptr = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_Font *(*)(hb_font_t *))__pyx_f_9uharfbuzz_9_harfbuzz_4Font_from_ptr;
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9uharfbuzz_9_harfbuzz_Font_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font)) __PYX_ERR(3, 280, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9uharfbuzz_9_harfbuzz_Font_spec, __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font) < (0)) __PYX_ERR(3, 280, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font = &__pyx_type_9uharfbuzz_9_harfbuzz_Font;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font) < (0)) __PYX_ERR(3, 280, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font->tp_dictoffset && __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (__Pyx_SetVtable(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_vtabptr_9uharfbuzz_9_harfbuzz_Font) < (0)) __PYX_ERR(3, 280, __pyx_L1_error)
  if (__Pyx_MergeVtables(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font) < (0)) __PYX_ERR(3, 280, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_Font, (PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font) < (0)) __PYX_ERR(3, 280, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font) < (0)) __PYX_ERR(3, 280, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_FontFuncs = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9uharfbuzz_9_harfbuzz_FontFuncs_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_FontFuncs)) __PYX_ERR(3, 1376, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9uharfbuzz_9_harfbuzz_FontFuncs_spec, __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_FontFuncs) < (0)) __PYX_ERR(3, 1376, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_FontFuncs = &__pyx_type_9uharfbuzz_9_harfbuzz_FontFuncs;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_FontFuncs) < (0)) __PYX_ERR(3, 1376, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_FontFuncs);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_FontFuncs->tp_dictoffset && __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_FontFuncs->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_FontFuncs->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_FontFuncs, (PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_FontFuncs) < (0)) __PYX_ERR(3, 1376, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_FontFuncs) < (0)) __PYX_ERR(3, 1376, __pyx_L1_error)
  __pyx_vtabptr_9uharfbuzz_9_harfbuzz_RasterImage = &__pyx_vtable_9uharfbuzz_9_harfbuzz_RasterImage;
  __pyx_vtable_9uharfbuzz_9_harfbuzz_RasterImage.from_ptr = (struct __pyx_obj_9uharfbuzz_9_harfbuzz_RasterImage *(*)(hb_raster_image_t *))__pyx_f_9uharfbuzz_9_harfbuzz_11RasterImage_from_ptr;
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterImage = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9uharfbuzz_9_harfbuzz_RasterImage_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterImage)) __PYX_ERR(10, 37, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9uharfbuzz_9_harfbuzz_RasterImage_spec, __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterImage) < (0)) __PYX_ERR(10, 37, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterImage = &__pyx_type_9uharfbuzz_9_harfbuzz_RasterImage;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterImage) < (0)) __PYX_ERR(10, 37, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterImage);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterImage->tp_dictoffset && __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterImage->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterImage->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (__Pyx_SetVtable(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterImage, __pyx_vtabptr_9uharfbuzz_9_harfbuzz_RasterImage) < (0)) __PYX_ERR(10, 37, __pyx_L1_error)
  if (__Pyx_MergeVtables(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterImage) < (0)) __PYX_ERR(10, 37, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_RasterImage, (PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterImage) < (0)) __PYX_ERR(10, 37, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterImage) < (0)) __PYX_ERR(10, 37, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterDraw = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9uharfbuzz_9_harfbuzz_RasterDraw_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterDraw)) __PYX_ERR(10, 151, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9uharfbuzz_9_harfbuzz_RasterDraw_spec, __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterDraw) < (0)) __PYX_ERR(10, 151, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterDraw = &__pyx_type_9uharfbuzz_9_harfbuzz_RasterDraw;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterDraw) < (0)) __PYX_ERR(10, 151, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterDraw);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterDraw->tp_dictoffset && __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterDraw->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterDraw->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_RasterDraw, (PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterDraw) < (0)) __PYX_ERR(10, 151, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterDraw) < (0)) __PYX_ERR(10, 151, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterPaint = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9uharfbuzz_9_harfbuzz_RasterPaint_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterPaint)) __PYX_ERR(10, 327, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9uharfbuzz_9_harfbuzz_RasterPaint_spec, __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterPaint) < (0)) __PYX_ERR(10, 327, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterPaint = &__pyx_type_9uharfbuzz_9_harfbuzz_RasterPaint;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterPaint) < (0)) __PYX_ERR(10, 327, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterPaint);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterPaint->tp_dictoffset && __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterPaint->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterPaint->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_RasterPaint, (PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterPaint) < (0)) __PYX_ERR(10, 327, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterPaint) < (0)) __PYX_ERR(10, 327, __pyx_L1_error)
  __pyx_vtabptr_9uharfbuzz_9_harfbuzz_HBObject = &__pyx_vtable_9uharfbuzz_9_harfbuzz_HBObject;
  __pyx_vtable_9uharfbuzz_9_harfbuzz_HBObject.update_obj_length = (PyObject *(*)(struct __pyx_obj_9uharfbuzz_9_harfbuzz_HBObject *, unsigned int, char *, char *))__pyx_f_9uharfbuzz_9_harfbuzz_8HBObject_update_obj_length;
  __pyx_vtable_9uharfbuzz_9_harfbuzz_HBObject.create_links = (hb_subset_serialize_link_t *(*)(struct __pyx_obj_9uharfbuzz_9_harfbuzz_HBObject *, unsigned int, unsigned int, int))__pyx_f_9uharfbuzz_9_harfbuzz_8HBObject_create_links;
  __pyx_vtable_9uharfbuzz_9_harfbuzz_HBObject.update_links = (PyObject *(*)(struct __pyx_obj_9uharfbuzz_9_harfbuzz_HBObject *, unsigned int, int, PyObject *))__pyx_f_9uharfbuzz_9_harfbuzz_8HBObject_update_links;
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_HBObject = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9uharfbuzz_9_harfbuzz_HBObject_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_HBObject)) __PYX_ERR(11, 1, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9uharfbuzz_9_harfbuzz_HBObject_spec, __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_HBObject) < (0)) __PYX_ERR(11, 1, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_HBObject = &__pyx_type_9uharfbuzz_9_harfbuzz_HBObject;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_HBObject) < (0)) __PYX_ERR(11, 1, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_HBObject);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_HBObject->tp_dictoffset && __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_HBObject->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_HBObject->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (__Pyx_SetVtable(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_HBObject, __pyx_vtabptr_9uharfbuzz_9_harfbuzz_HBObject) < (0)) __PYX_ERR(11, 1, __pyx_L1_error)
  if (__Pyx_MergeVtables(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_HBObject) < (0)) __PYX_ERR(11, 1, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_HBObject, (PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_HBObject) < (0)) __PYX_ERR(11, 1, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_HBObject) < (0)) __PYX_ERR(11, 1, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetInput = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9uharfbuzz_9_harfbuzz_SubsetInput_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetInput)) __PYX_ERR(12, 159, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9uharfbuzz_9_harfbuzz_SubsetInput_spec, __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetInput) < (0)) __PYX_ERR(12, 159, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetInput = &__pyx_type_9uharfbuzz_9_harfbuzz_SubsetInput;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetInput) < (0)) __PYX_ERR(12, 159, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetInput);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetInput->tp_dictoffset && __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetInput->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetInput->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_SubsetInput, (PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetInput) < (0)) __PYX_ERR(12, 159, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetInput) < (0)) __PYX_ERR(12, 159, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetPlan = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9uharfbuzz_9_harfbuzz_SubsetPlan_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetPlan)) __PYX_ERR(12, 406, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9uharfbuzz_9_harfbuzz_SubsetPlan_spec, __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetPlan) < (0)) __PYX_ERR(12, 406, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetPlan = &__pyx_type_9uharfbuzz_9_harfbuzz_SubsetPlan;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetPlan) < (0)) __PYX_ERR(12, 406, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetPlan);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetPlan->tp_dictoffset && __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetPlan->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetPlan->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_SubsetPlan, (PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetPlan) < (0)) __PYX_ERR(12, 406, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetPlan) < (0)) __PYX_ERR(12, 406, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated)) __PYX_ERR(0, 48, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated_spec, __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated) < (0)) __PYX_ERR(0, 48, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated = &__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated) < (0)) __PYX_ERR(0, 48, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated->tp_dictoffset && __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct__deprecated->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator)) __PYX_ERR(0, 55, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator_spec, __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator) < (0)) __PYX_ERR(0, 55, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator = &__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator) < (0)) __PYX_ERR(0, 55, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator->tp_dictoffset && __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_1_decorator->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr)) __PYX_ERR(2, 300, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr_spec, __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr) < (0)) __PYX_ERR(2, 300, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr = &__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr) < (0)) __PYX_ERR(2, 300, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_2_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr)) __PYX_ERR(5, 151, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr_spec, __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr) < (0)) __PYX_ERR(5, 151, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr = &__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr) < (0)) __PYX_ERR(5, 151, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_3_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr)) __PYX_ERR(5, 158, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr_spec, __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr) < (0)) __PYX_ERR(5, 158, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr = &__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr) < (0)) __PYX_ERR(5, 158, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_4_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr)) __PYX_ERR(5, 164, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr_spec, __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr) < (0)) __PYX_ERR(5, 164, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr = &__pyx_type_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr) < (0)) __PYX_ERR(5, 164, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_9uharfbuzz_9_harfbuzz___pyx_scope_struct_5_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_type_import_code", 0);
  /*--- Type import code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_variable_import_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_variable_import_code", 0);
  /*--- Variable import code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_function_import_code", 0);
  /*--- Function import code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

#if CYTHON_PEP489_MULTI_PHASE_INIT
static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def); /*proto*/
static int __pyx_pymod_exec__harfbuzz(PyObject* module); /*proto*/
static PyModuleDef_Slot __pyx_moduledef_slots[] = {
  {Py_mod_create, (void*)__pyx_pymod_create},
  {Py_mod_exec, (void*)__pyx_pymod_exec__harfbuzz},
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
  {Py_mod_gil, __Pyx_FREETHREADING_COMPATIBLE},
  #endif
  #if PY_VERSION_HEX >= 0x030C0000 && CYTHON_USE_MODULE_STATE
  {Py_mod_multiple_interpreters, Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED},
  #endif
  {0, NULL}
};
#endif

#ifdef __cplusplus
namespace {
  struct PyModuleDef __pyx_moduledef =
  #else
  static struct PyModuleDef __pyx_moduledef =
  #endif
  {
      PyModuleDef_HEAD_INIT,
      "_harfbuzz",
      0, /* m_doc */
    #if CYTHON_USE_MODULE_STATE
      sizeof(__pyx_mstatetype), /* m_size */
    #else
      (CYTHON_PEP489_MULTI_PHASE_INIT) ? 0 : -1, /* m_size */
    #endif
      __pyx_methods /* m_methods */,
    #if CYTHON_PEP489_MULTI_PHASE_INIT
      __pyx_moduledef_slots, /* m_slots */
    #else
      NULL, /* m_reload */
    #endif
    #if CYTHON_USE_MODULE_STATE
      __pyx_m_traverse, /* m_traverse */
      __pyx_m_clear, /* m_clear */
      NULL /* m_free */
    #else
      NULL, /* m_traverse */
      NULL, /* m_clear */
      NULL /* m_free */
    #endif
  };
  #ifdef __cplusplus
} /* anonymous namespace */
#endif

/* PyModInitFuncType */
#ifndef CYTHON_NO_PYINIT_EXPORT
  #define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
#else
  #ifdef __cplusplus
  #define __Pyx_PyMODINIT_FUNC extern "C" PyObject *
  #else
  #define __Pyx_PyMODINIT_FUNC PyObject *
  #endif
#endif

__Pyx_PyMODINIT_FUNC PyInit__harfbuzz(void) CYTHON_SMALL_CODE; /*proto*/
__Pyx_PyMODINIT_FUNC PyInit__harfbuzz(void)
#if CYTHON_PEP489_MULTI_PHASE_INIT
{
  return PyModuleDef_Init(&__pyx_moduledef);
}
/* ModuleCreationPEP489 */
#if CYTHON_COMPILING_IN_LIMITED_API && (__PYX_LIMITED_VERSION_HEX < 0x03090000\
      || ((defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)) && __PYX_LIMITED_VERSION_HEX < 0x030A0000))
static PY_INT64_T __Pyx_GetCurrentInterpreterId(void) {
    {
        PyObject *module = PyImport_ImportModule("_interpreters"); // 3.13+ I think
        if (!module) {
            PyErr_Clear(); // just try the 3.8-3.12 version
            module = PyImport_ImportModule("_xxsubinterpreters");
            if (!module) goto bad;
        }
        PyObject *current = PyObject_CallMethod(module, "get_current", NULL);
        Py_DECREF(module);
        if (!current) goto bad;
        if (PyTuple_Check(current)) {
            PyObject *new_current = PySequence_GetItem(current, 0);
            Py_DECREF(current);
            current = new_current;
            if (!new_current) goto bad;
        }
        long long as_c_int = PyLong_AsLongLong(current);
        Py_DECREF(current);
        return as_c_int;
    }
  bad:
    PySys_WriteStderr("__Pyx_GetCurrentInterpreterId failed. Try setting the C define CYTHON_PEP489_MULTI_PHASE_INIT=0\n");
    return -1;
}
#endif
#if !CYTHON_USE_MODULE_STATE
static CYTHON_SMALL_CODE int __Pyx_check_single_interpreter(void) {
    static PY_INT64_T main_interpreter_id = -1;
#if CYTHON_COMPILING_IN_GRAAL && defined(GRAALPY_VERSION_NUM) && GRAALPY_VERSION_NUM > 0x19000000
    PY_INT64_T current_id = GraalPyInterpreterState_GetIDFromThreadState(PyThreadState_Get());
#elif CYTHON_COMPILING_IN_GRAAL
    PY_INT64_T current_id = PyInterpreterState_GetIDFromThreadState(PyThreadState_Get());
#elif CYTHON_COMPILING_IN_LIMITED_API && (__PYX_LIMITED_VERSION_HEX < 0x03090000\
      || ((defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)) && __PYX_LIMITED_VERSION_HEX < 0x030A0000))
    PY_INT64_T current_id = __Pyx_GetCurrentInterpreterId();
#elif CYTHON_COMPILING_IN_LIMITED_API
    PY_INT64_T current_id = PyInterpreterState_GetID(PyInterpreterState_Get());
#else
    PY_INT64_T current_id = PyInterpreterState_GetID(PyThreadState_Get()->interp);
#endif
    if (unlikely(current_id == -1)) {
        return -1;
    }
    if (main_interpreter_id == -1) {
        main_interpreter_id = current_id;
        return 0;
    } else if (unlikely(main_interpreter_id != current_id)) {
        PyErr_SetString(
            PyExc_ImportError,
            "Interpreter change detected - this module can only be loaded into one interpreter per process.");
        return -1;
    }
    return 0;
}
#endif
static CYTHON_SMALL_CODE int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *moddict, const char* from_name, const char* to_name, int allow_none)
{
    PyObject *value = PyObject_GetAttrString(spec, from_name);
    int result = 0;
    if (likely(value)) {
        if (allow_none || value != Py_None) {
            result = PyDict_SetItemString(moddict, to_name, value);
        }
        Py_DECREF(value);
    } else if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
        PyErr_Clear();
    } else {
        result = -1;
    }
    return result;
}
static CYTHON_SMALL_CODE PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def) {
    PyObject *module = NULL, *moddict, *modname;
    CYTHON_UNUSED_VAR(def);
    #if !CYTHON_USE_MODULE_STATE
    if (__Pyx_check_single_interpreter())
        return NULL;
    #endif
    if (__pyx_m)
        return __Pyx_NewRef(__pyx_m);
    modname = PyObject_GetAttrString(spec, "name");
    if (unlikely(!modname)) goto bad;
    module = PyModule_NewObject(modname);
    Py_DECREF(modname);
    if (unlikely(!module)) goto bad;
    moddict = PyModule_GetDict(module);
    if (unlikely(!moddict)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "loader", "__loader__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "origin", "__file__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "parent", "__package__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "submodule_search_locations", "__path__", 0) < 0)) goto bad;
    return module;
bad:
    Py_XDECREF(module);
    return NULL;
}


static CYTHON_SMALL_CODE int __pyx_pymod_exec__harfbuzz(PyObject *__pyx_pyinit_module)
#endif
{
  int stringtab_initialized = 0;
  #if CYTHON_USE_MODULE_STATE
  int pystate_addmodule_run = 0;
  #endif
  __pyx_mstatetype *__pyx_mstate = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  if (__pyx_m) {
    if (__pyx_m == __pyx_pyinit_module) return 0;
    PyErr_SetString(PyExc_RuntimeError, "Module '_harfbuzz' has already been imported. Re-initialisation is not supported.");
    return -1;
  }
  #else
  if (__pyx_m) return __Pyx_NewRef(__pyx_m);
  #endif
  /*--- Module creation code ---*/
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  __pyx_t_1 = __pyx_pyinit_module;
  Py_INCREF(__pyx_t_1);
  #else
  __pyx_t_1 = PyModule_Create(&__pyx_moduledef); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #if CYTHON_USE_MODULE_STATE
  {
    int add_module_result = __Pyx_State_AddModule(__pyx_t_1, &__pyx_moduledef);
    __pyx_t_1 = 0; /* transfer ownership from __pyx_t_1 to "_harfbuzz" pseudovariable */
    if (unlikely((add_module_result < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
    pystate_addmodule_run = 1;
  }
  #else
  __pyx_m = __pyx_t_1;
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
  PyUnstable_Module_SetGIL(__pyx_m, Py_MOD_GIL_USED);
  #endif
  __pyx_mstate = __pyx_mstate_global;
  CYTHON_UNUSED_VAR(__pyx_t_1);
  __pyx_mstate->__pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_mstate->__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error)
  Py_INCREF(__pyx_mstate->__pyx_d);
  __pyx_mstate->__pyx_b = __Pyx_PyImport_AddModuleRef(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_mstate->__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_mstate->__pyx_cython_runtime = __Pyx_PyImport_AddModuleRef("cython_runtime"); if (unlikely(!__pyx_mstate->__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_mstate->__pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  /* ImportRefnannyAPI */
  #if CYTHON_REFNANNY
  __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny");
  if (!__Pyx_RefNanny) {
    PyErr_Clear();
    __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny");
    if (!__Pyx_RefNanny)
        Py_FatalError("failed to import 'refnanny' module");
  }
  #endif
  
__Pyx_RefNannySetupContext("PyInit__harfbuzz", 0);
  __Pyx_init_runtime_version();
  if (__Pyx_check_binary_version(__PYX_LIMITED_VERSION_HEX, __Pyx_get_runtime_version(), CYTHON_COMPILING_IN_LIMITED_API) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_mstate->__pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_mstate->__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_mstate->__pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_mstate->__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_mstate->__pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_mstate->__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Library function declarations ---*/
  /*--- Initialize various global constants etc. ---*/
  if (__Pyx_InitConstants(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  stringtab_initialized = 1;
  if (__Pyx_InitGlobals() < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__pyx_module_is_main_uharfbuzz___harfbuzz) {
    if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_name, __pyx_mstate_global->__pyx_n_u_main) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  }
  {
    PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error)
    if (!PyDict_GetItemString(modules, "uharfbuzz._harfbuzz")) {
      if (unlikely((PyDict_SetItemString(modules, "uharfbuzz._harfbuzz", __pyx_m) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
    }
  }
  /*--- Builtin init code ---*/
  if (__Pyx_InitCachedBuiltins(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Constants init code ---*/
  if (__Pyx_InitCachedConstants(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_CreateCodeObjects(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Global type/function init code ---*/
  (void)__Pyx_modinit_global_init_code(__pyx_mstate);
  (void)__Pyx_modinit_variable_export_code(__pyx_mstate);
  (void)__Pyx_modinit_function_export_code(__pyx_mstate);
  if (unlikely((__Pyx_modinit_type_init_code(__pyx_mstate) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
  (void)__Pyx_modinit_type_import_code(__pyx_mstate);
  (void)__Pyx_modinit_variable_import_code(__pyx_mstate);
  (void)__Pyx_modinit_function_import_code(__pyx_mstate);
  /*--- Execution code ---*/

  /* "uharfbuzz/_harfbuzz.pyx":3
 * #cython: language_level=3
 * cimport cython
 * import os             # <<<<<<<<<<<<<<
 * import warnings
 * from enum import IntEnum, IntFlag
*/
  __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_os, 0, 0, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3, __pyx_L1_error)
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_os, __pyx_t_2) < (0)) __PYX_ERR(0, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":4
 * cimport cython
 * import os
 * import warnings             # <<<<<<<<<<<<<<
 * from enum import IntEnum, IntFlag
 * from .charfbuzz cimport *
*/
  __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_warnings, 0, 0, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4, __pyx_L1_error)
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_warnings, __pyx_t_2) < (0)) __PYX_ERR(0, 4, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":5
 * import os
 * import warnings
 * from enum import IntEnum, IntFlag             # <<<<<<<<<<<<<<
 * from .charfbuzz cimport *
 * from libc.stdlib cimport free, malloc, calloc
*/
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_IntEnum,__pyx_mstate_global->__pyx_n_u_IntFlag};
    __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_enum, __pyx_imported_names, 2, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5, __pyx_L1_error)
  }
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_IntEnum,__pyx_mstate_global->__pyx_n_u_IntFlag};
    for (__pyx_t_3=0; __pyx_t_3 < 2; __pyx_t_3++) {
      __pyx_t_4 = __Pyx_ImportFrom(__pyx_t_2, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_4) < (0)) __PYX_ERR(0, 5, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":13
 * from cpython.unicode cimport PyUnicode_GetLength, PyUnicode_AsUCS4Copy
 * from cpython.mem cimport PyMem_Free
 * from typing import Callable, Dict, List, Sequence, Tuple, Union, NamedTuple             # <<<<<<<<<<<<<<
 * from pathlib import Path
 * from functools import wraps
*/
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_Callable,__pyx_mstate_global->__pyx_n_u_Dict,__pyx_mstate_global->__pyx_n_u_List,__pyx_mstate_global->__pyx_n_u_Sequence,__pyx_mstate_global->__pyx_n_u_Tuple,__pyx_mstate_global->__pyx_n_u_Union,__pyx_mstate_global->__pyx_n_u_NamedTuple};
    __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_typing, __pyx_imported_names, 7, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13, __pyx_L1_error)
  }
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_Callable,__pyx_mstate_global->__pyx_n_u_Dict,__pyx_mstate_global->__pyx_n_u_List,__pyx_mstate_global->__pyx_n_u_Sequence,__pyx_mstate_global->__pyx_n_u_Tuple,__pyx_mstate_global->__pyx_n_u_Union,__pyx_mstate_global->__pyx_n_u_NamedTuple};
    for (__pyx_t_3=0; __pyx_t_3 < 7; __pyx_t_3++) {
      __pyx_t_4 = __Pyx_ImportFrom(__pyx_t_2, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_4) < (0)) __PYX_ERR(0, 13, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":14
 * from cpython.mem cimport PyMem_Free
 * from typing import Callable, Dict, List, Sequence, Tuple, Union, NamedTuple
 * from pathlib import Path             # <<<<<<<<<<<<<<
 * from functools import wraps
 * 
*/
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_Path};
    __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_pathlib, __pyx_imported_names, 1, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14, __pyx_L1_error)
  }
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_Path};
    __pyx_t_3 = 0; {
      __pyx_t_4 = __Pyx_ImportFrom(__pyx_t_2, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_4) < (0)) __PYX_ERR(0, 14, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":15
 * from typing import Callable, Dict, List, Sequence, Tuple, Union, NamedTuple
 * from pathlib import Path
 * from functools import wraps             # <<<<<<<<<<<<<<
 * 
 * # Declare Limited API types and functions (Python 3.3+)
*/
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_wraps};
    __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_functools, __pyx_imported_names, 1, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15, __pyx_L1_error)
  }
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_wraps};
    __pyx_t_3 = 0; {
      __pyx_t_4 = __Pyx_ImportFrom(__pyx_t_2, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_4) < (0)) __PYX_ERR(0, 15, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":32
 * 
 * 
 * def version_string() -> str:             # <<<<<<<<<<<<<<
 *     """Returns library version as a string with three components.
 * 
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(0, 32, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_1version_string, 0, __pyx_mstate_global->__pyx_n_u_version_string, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[6])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_version_string, __pyx_t_4) < (0)) __PYX_ERR(0, 32, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":45
 * 
 * 
 * WARNED = set()             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_4 = PySet_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 45, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_WARNED, __pyx_t_4) < (0)) __PYX_ERR(0, 45, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":48
 * 
 * 
 * def deprecated(replacement=None, since=""):             # <<<<<<<<<<<<<<
 *     """Decorator to raise a warning when a deprecated function is called.
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3deprecated, 0, __pyx_mstate_global->__pyx_n_u_deprecated_2, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[7])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 48, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_mstate_global->__pyx_tuple[0]);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_deprecated_2, __pyx_t_4) < (0)) __PYX_ERR(0, 48, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":78
 * 
 * 
 * class HarfBuzzError(Exception):             # <<<<<<<<<<<<<<
 *     pass
 * 
*/
  __pyx_t_4 = PyTuple_Pack(1, ((PyObject *)(((PyTypeObject*)PyExc_Exception)))); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 78, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 78, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 78, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_mstate_global->__pyx_n_u_HarfBuzzError, __pyx_mstate_global->__pyx_n_u_HarfBuzzError, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, (PyObject *) NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 78, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__pyx_t_2 != __pyx_t_4) {
    if (unlikely((PyDict_SetItemString(__pyx_t_6, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 78, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_HarfBuzzError, __pyx_t_2, __pyx_t_6, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 78, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_HarfBuzzError, __pyx_t_4) < (0)) __PYX_ERR(0, 78, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_set.pxi":19
 *     cdef hb_set_t* _hb_set
 * 
 *     INVALID_VALUE = HB_SET_VALUE_INVALID             # <<<<<<<<<<<<<<
 * 
 *     def __cinit__(self, *args, **kwargs):
*/
  __pyx_t_2 = __Pyx_PyLong_From_hb_codepoint_t(HB_SET_VALUE_INVALID); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 19, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, __pyx_mstate_global->__pyx_n_u_INVALID_VALUE, __pyx_t_2) < (0)) __PYX_ERR(2, 19, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_set.pxi":24
 *         self._hb_set = NULL
 * 
 *     def __init__(self, init = set()):             # <<<<<<<<<<<<<<
 *         self._hb_set = hb_set_create()
 *         if not hb_set_allocation_successful(self._hb_set):
*/
  __pyx_t_2 = PySet_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 24, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_mstate_global->__pyx_k__3 = __pyx_t_2;
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;

  /* "src/uharfbuzz/_set.pxi":42
 *         return wrapper
 * 
 *     def copy(self) -> Set:             # <<<<<<<<<<<<<<
 *         """Allocate a copy of this set.
 * 
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 42, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_Set_2) < (0)) __PYX_ERR(2, 42, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_7copy, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Set_copy, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[8])); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 42, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, __pyx_mstate_global->__pyx_n_u_copy, __pyx_t_5) < (0)) __PYX_ERR(2, 42, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_set.pxi":54
 *         return c
 * 
 *     def __copy__(self) -> Set:             # <<<<<<<<<<<<<<
 *         return self.copy()
 * 
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 54, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_Set_2) < (0)) __PYX_ERR(2, 54, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_9__copy__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Set___copy, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[9])); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 54, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, __pyx_mstate_global->__pyx_n_u_copy_2, __pyx_t_2) < (0)) __PYX_ERR(2, 54, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_set.pxi":57
 *         return self.copy()
 * 
 *     def clear(self):             # <<<<<<<<<<<<<<
 *         """Clears out the contents of this set.
 * 
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_11clear, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Set_clear, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[10])); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 57, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, __pyx_mstate_global->__pyx_n_u_clear, __pyx_t_2) < (0)) __PYX_ERR(2, 57, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_set.pxi":68
 *         return not hb_set_is_empty(self._hb_set)
 * 
 *     def invert(self):             # <<<<<<<<<<<<<<
 *         """Inverts the contents of this set.
 * 
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_15invert, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Set_invert, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[11])); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 68, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, __pyx_mstate_global->__pyx_n_u_invert, __pyx_t_2) < (0)) __PYX_ERR(2, 68, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_set.pxi":76
 *         hb_set_invert(self._hb_set)
 * 
 *     def is_inverted(self) -> bool:             # <<<<<<<<<<<<<<
 *         """Returns whether the set is inverted.
 * 
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 76, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(2, 76, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_17is_inverted, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Set_is_inverted, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[12])); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 76, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, __pyx_mstate_global->__pyx_n_u_is_inverted, __pyx_t_5) < (0)) __PYX_ERR(2, 76, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_set.pxi":93
 *         return hb_set_has(self._hb_set, c)
 * 
 *     def add(self, c: int):             # <<<<<<<<<<<<<<
 *         """Adds ``c`` to this set.
 * 
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 93, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_c, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(2, 93, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_21add, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Set_add, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[13])); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 93, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, __pyx_mstate_global->__pyx_n_u_add, __pyx_t_2) < (0)) __PYX_ERR(2, 93, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_set.pxi":103
 *             raise MemoryError()
 * 
 *     def add_range(self, first: int, last: int):             # <<<<<<<<<<<<<<
 *         """Adds all of the elements from ``first`` to ``last`` (inclusive)
 *         to this set.
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 103, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_first, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(2, 103, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_last, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(2, 103, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_23add_range, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Set_add_range, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[14])); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 103, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, __pyx_mstate_global->__pyx_n_u_add_range, __pyx_t_5) < (0)) __PYX_ERR(2, 103, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_set.pxi":114
 *             raise MemoryError()
 * 
 *     def remove(self, c: int):             # <<<<<<<<<<<<<<
 *         """Removes ``c`` from this set, raising :class:`KeyError` if ``c``
 *         is not in the set.
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 114, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_c, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(2, 114, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_25remove, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Set_remove, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[15])); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 114, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, __pyx_mstate_global->__pyx_n_u_remove, __pyx_t_2) < (0)) __PYX_ERR(2, 114, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_set.pxi":127
 *             raise MemoryError()
 * 
 *     def discard(self, c: int):             # <<<<<<<<<<<<<<
 *         """Removes ``c`` from this set if it is present.
 * 
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 127, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_c, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(2, 127, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_27discard, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Set_discard, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[16])); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 127, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, __pyx_mstate_global->__pyx_n_u_discard, __pyx_t_5) < (0)) __PYX_ERR(2, 127, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_set.pxi":137
 *             raise MemoryError()
 * 
 *     def del_range(self, first: int, last: int):             # <<<<<<<<<<<<<<
 *         """Removes all of the elements from ``first`` to ``last`` (inclusive)
 *         from this set.
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 137, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_first, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(2, 137, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_last, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(2, 137, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_29del_range, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Set_del_range, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[17])); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 137, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, __pyx_mstate_global->__pyx_n_u_del_range, __pyx_t_2) < (0)) __PYX_ERR(2, 137, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_set.pxi":151
 *             raise MemoryError()
 * 
 *     def _is_equal(self, other: Set) -> bool:             # <<<<<<<<<<<<<<
 *         return hb_set_is_equal(self._hb_set, other._hb_set)
 * 
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 151, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_other, __pyx_mstate_global->__pyx_n_u_Set_2) < (0)) __PYX_ERR(2, 151, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(2, 151, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_31_is_equal, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Set__is_equal, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[18])); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 151, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, __pyx_mstate_global->__pyx_n_u_is_equal, __pyx_t_5) < (0)) __PYX_ERR(2, 151, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_set.pxi":159
 *         return self._is_equal(other)
 * 
 *     def issubset(self, larger_set: Set) -> bool:             # <<<<<<<<<<<<<<
 *         """Tests whether this set is a subset of ``larger_set``.
 * 
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 159, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_larger_set, __pyx_mstate_global->__pyx_n_u_Set_2) < (0)) __PYX_ERR(2, 159, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(2, 159, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_35issubset, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Set_issubset, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[19])); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 159, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, __pyx_mstate_global->__pyx_n_u_issubset, __pyx_t_2) < (0)) __PYX_ERR(2, 159, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_set.pxi":170
 *         return hb_set_is_subset(self._hb_set, larger_set._hb_set)
 * 
 *     def issuperset(self, smaller_set: Set) -> bool:             # <<<<<<<<<<<<<<
 *         """Tests whether ``smaller_set`` is a subset of this set.
 * 
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 170, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_smaller_set, __pyx_mstate_global->__pyx_n_u_Set_2) < (0)) __PYX_ERR(2, 170, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(2, 170, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_37issuperset, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Set_issuperset, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[20])); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 170, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, __pyx_mstate_global->__pyx_n_u_issuperset, __pyx_t_5) < (0)) __PYX_ERR(2, 170, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_set.pxi":181
 *         return hb_set_is_subset(smaller_set._hb_set, self._hb_set)
 * 
 *     def _set(self, other: Set):             # <<<<<<<<<<<<<<
 *         hb_set_set(self._hb_set, other._hb_set)
 * 
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 181, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_other, __pyx_mstate_global->__pyx_n_u_Set_2) < (0)) __PYX_ERR(2, 181, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_39_set, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Set__set, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[21])); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 181, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, __pyx_mstate_global->__pyx_n_u_set_2, __pyx_t_2) < (0)) __PYX_ERR(2, 181, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_set.pxi":184
 *         hb_set_set(self._hb_set, other._hb_set)
 * 
 *     def set(self, other):             # <<<<<<<<<<<<<<
 *         """Makes the contents of this set equal to the contents of ``other``.
 * 
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_41set, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Set_set, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[22])); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 184, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, __pyx_mstate_global->__pyx_n_u_set, __pyx_t_2) < (0)) __PYX_ERR(2, 184, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_set.pxi":201
 *             raise MemoryError()
 * 
 *     def _update(self, other: Set):             # <<<<<<<<<<<<<<
 *         hb_set_union(self._hb_set, other._hb_set)
 * 
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 201, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_other, __pyx_mstate_global->__pyx_n_u_Set_2) < (0)) __PYX_ERR(2, 201, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_43_update, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Set__update, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[23])); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 201, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, __pyx_mstate_global->__pyx_n_u_update, __pyx_t_5) < (0)) __PYX_ERR(2, 201, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_set.pxi":204
 *         hb_set_union(self._hb_set, other._hb_set)
 * 
 *     def update(self, other):             # <<<<<<<<<<<<<<
 *         """Makes this set the union of itself and ``other``.
 * 
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_45update, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Set_update, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[24])); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 204, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, __pyx_mstate_global->__pyx_n_u_update_2, __pyx_t_5) < (0)) __PYX_ERR(2, 204, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_set.pxi":225
 *         return self
 * 
 *     def intersection_update(self, other: Set):             # <<<<<<<<<<<<<<
 *         """Makes this set the intersection of itself and ``other``.
 * 
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 225, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_other, __pyx_mstate_global->__pyx_n_u_Set_2) < (0)) __PYX_ERR(2, 225, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_49intersection_update, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Set_intersection_update, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[25])); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 225, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, __pyx_mstate_global->__pyx_n_u_intersection_update, __pyx_t_2) < (0)) __PYX_ERR(2, 225, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_set.pxi":239
 *         return self
 * 
 *     def difference_update(self, other: Set):             # <<<<<<<<<<<<<<
 *         """Subtracts the contents of ``other`` from this set.
 * 
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 239, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_other, __pyx_mstate_global->__pyx_n_u_Set_2) < (0)) __PYX_ERR(2, 239, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_53difference_update, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Set_difference_update, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[26])); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 239, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, __pyx_mstate_global->__pyx_n_u_difference_update, __pyx_t_5) < (0)) __PYX_ERR(2, 239, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_set.pxi":253
 *         return self
 * 
 *     def symmetric_difference_update(self, other: Set):             # <<<<<<<<<<<<<<
 *         """Makes this set the symmetric difference of itself and ``other``.
 * 
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 253, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_other, __pyx_mstate_global->__pyx_n_u_Set_2) < (0)) __PYX_ERR(2, 253, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_57symmetric_difference_update, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Set_symmetric_difference_update, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[27])); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 253, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Set, __pyx_mstate_global->__pyx_n_u_symmetric_difference_update, __pyx_t_2) < (0)) __PYX_ERR(2, 253, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_67__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Set___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[28])); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_2) < (0)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Set_69__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Set___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[29])); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_2) < (0)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_7SetIter_7__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SetIter___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[30])); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_2) < (0)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_7SetIter_9__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SetIter___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[31])); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_2) < (0)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_map.pxi":17
 *     cdef hb_map_t* _hb_map
 * 
 *     INVALID_VALUE = HB_MAP_VALUE_INVALID             # <<<<<<<<<<<<<<
 * 
 *     def __cinit__(self, *args, **kwargs):
*/
  __pyx_t_2 = __Pyx_PyLong_From_hb_codepoint_t(HB_MAP_VALUE_INVALID); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map, __pyx_mstate_global->__pyx_n_u_INVALID_VALUE, __pyx_t_2) < (0)) __PYX_ERR(5, 17, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_map.pxi":22
 *         self._hb_map = NULL
 * 
 *     def __init__(self, init = dict()):             # <<<<<<<<<<<<<<
 *         self._hb_map = hb_map_create()
 *         if not hb_map_allocation_successful(self._hb_map):
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 22, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_mstate_global->__pyx_k__5 = __pyx_t_2;
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;

  /* "src/uharfbuzz/_map.pxi":40
 *         return wrapper
 * 
 *     def copy(self) -> Map:             # <<<<<<<<<<<<<<
 *         """Allocate a copy of this map.
 * 
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 40, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_Map) < (0)) __PYX_ERR(5, 40, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Map_7copy, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Map_copy, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[32])); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 40, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map, __pyx_mstate_global->__pyx_n_u_copy, __pyx_t_5) < (0)) __PYX_ERR(5, 40, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_map.pxi":52
 *         return c
 * 
 *     def __copy__(self) -> Map:             # <<<<<<<<<<<<<<
 *         return self.copy()
 * 
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 52, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_Map) < (0)) __PYX_ERR(5, 52, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Map_9__copy__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Map___copy, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[33])); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 52, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map, __pyx_mstate_global->__pyx_n_u_copy_2, __pyx_t_2) < (0)) __PYX_ERR(5, 52, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_map.pxi":55
 *         return self.copy()
 * 
 *     def _update(self, other : Map):             # <<<<<<<<<<<<<<
 *         hb_map_update(self._hb_map, other._hb_map)
 * 
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 55, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_other, __pyx_mstate_global->__pyx_n_u_Map) < (0)) __PYX_ERR(5, 55, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Map_11_update, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Map__update, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[34])); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 55, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map, __pyx_mstate_global->__pyx_n_u_update, __pyx_t_5) < (0)) __PYX_ERR(5, 55, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_map.pxi":58
 *         hb_map_update(self._hb_map, other._hb_map)
 * 
 *     def update(self, other):             # <<<<<<<<<<<<<<
 *         """Add the contents of ``other`` to this map.
 * 
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Map_13update, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Map_update, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[35])); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 58, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map, __pyx_mstate_global->__pyx_n_u_update_2, __pyx_t_5) < (0)) __PYX_ERR(5, 58, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_map.pxi":76
 *             raise MemoryError()
 * 
 *     def clear(self):             # <<<<<<<<<<<<<<
 *         """Clears out the contents of this map.
 * 
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Map_15clear, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Map_clear, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[36])); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 76, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map, __pyx_mstate_global->__pyx_n_u_clear, __pyx_t_5) < (0)) __PYX_ERR(5, 76, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_map.pxi":90
 *         return hb_map_get_population(self._hb_map)
 * 
 *     def _is_equal(self, other: Map) -> bool:             # <<<<<<<<<<<<<<
 *         return hb_map_is_equal(self._hb_map, other._hb_map)
 * 
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 90, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_other, __pyx_mstate_global->__pyx_n_u_Map) < (0)) __PYX_ERR(5, 90, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(5, 90, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Map_21_is_equal, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Map__is_equal, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[37])); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 90, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map, __pyx_mstate_global->__pyx_n_u_is_equal, __pyx_t_2) < (0)) __PYX_ERR(5, 90, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_map.pxi":103
 *             raise MemoryError()
 * 
 *     def get(self, k: int):             # <<<<<<<<<<<<<<
 *         """Fetches the value stored for ``k`` in this map.
 * 
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 103, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_k, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(5, 103, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Map_27get, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Map_get, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[38])); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 103, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map, __pyx_mstate_global->__pyx_n_u_get, __pyx_t_5) < (0)) __PYX_ERR(5, 103, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_map.pxi":139
 *         hb_map_del(self._hb_map, c)
 * 
 *     def items(self):             # <<<<<<<<<<<<<<
 *         """Returns an iterator over ``(key, value)`` pairs in this map.
 * 
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Map_35items, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Map_items, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[39])); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 139, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map, __pyx_mstate_global->__pyx_n_u_items, __pyx_t_5) < (0)) __PYX_ERR(5, 139, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_map.pxi":146
 *         return MapIter(self)
 * 
 *     def keys(self):             # <<<<<<<<<<<<<<
 *         """Returns an iterator over the keys in this map.
 * 
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Map_37keys, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Map_keys, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[40])); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 146, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map, __pyx_mstate_global->__pyx_n_u_keys, __pyx_t_5) < (0)) __PYX_ERR(5, 146, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_map.pxi":153
 *         return (k for k,v in self.items())
 * 
 *     def values(self):             # <<<<<<<<<<<<<<
 *         """Returns an iterator over the values in this map.
 * 
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Map_39values, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Map_values, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[41])); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 153, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Map, __pyx_mstate_global->__pyx_n_u_values, __pyx_t_5) < (0)) __PYX_ERR(5, 153, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Map_45__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Map___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[42])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_5) < (0)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_3Map_47__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Map___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[43])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_5) < (0)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_7MapIter_7__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_MapIter___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[44])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_5) < (0)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_7MapIter_9__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_MapIter___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[45])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_5) < (0)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_blob.pxi":33
 *         return wrapper
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def from_file_path(cls, filename: Union[str, Path]) -> Blob:
 *         """Creates a new blob containing the data from the specified file.
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(6, 33, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_filename, __pyx_mstate_global->__pyx_kp_u_Union_str_Path) < (0)) __PYX_ERR(6, 33, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_Blob) < (0)) __PYX_ERR(6, 33, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Blob_3from_file_path, __Pyx_CYFUNCTION_CLASSMETHOD | __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Blob_from_file_path, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[46])); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 33, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Blob, __pyx_mstate_global->__pyx_n_u_from_file_path, __pyx_t_2) < (0)) __PYX_ERR(6, 33, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_GetNameInClass(__pyx_t_2, (PyObject*)__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Blob, __pyx_mstate_global->__pyx_n_u_from_file_path); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 33, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_Method_ClassMethod(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(6, 33, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Blob, __pyx_mstate_global->__pyx_n_u_from_file_path, __pyx_t_5) < (0)) __PYX_ERR(6, 33, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Blob_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Blob___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[47])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_5) < (0)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Blob_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Blob___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[48])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_5) < (0)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_buffer.pxi":1
 * class GlyphFlags(IntFlag):             # <<<<<<<<<<<<<<
 *     """Flags for :class:`GlyphInfo`.
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_IntFlag); if (unlikely(!__pyx_t_5)) __PYX_ERR(7, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = PyTuple_Pack(1, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PEP560_update_bases(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(7, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_CalculateMetaclass(NULL, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_6, __pyx_t_5, __pyx_mstate_global->__pyx_n_u_GlyphFlags, __pyx_mstate_global->__pyx_n_u_GlyphFlags, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_Flags_for_class_GlyphInfo_attrib); if (unlikely(!__pyx_t_4)) __PYX_ERR(7, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__pyx_t_5 != __pyx_t_2) {
    if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_2) < 0))) __PYX_ERR(7, 1, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_buffer.pxi":72
 *     <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-glyph-flags-t>`_.
 *     """
 *     UNSAFE_TO_BREAK = HB_GLYPH_FLAG_UNSAFE_TO_BREAK             # <<<<<<<<<<<<<<
 *     UNSAFE_TO_CONCAT = HB_GLYPH_FLAG_UNSAFE_TO_CONCAT
 *     SAFE_TO_INSERT_TATWEEL = HB_GLYPH_FLAG_SAFE_TO_INSERT_TATWEEL
*/
  __pyx_t_2 = __Pyx_PyLong_From_hb_glyph_flags_t(HB_GLYPH_FLAG_UNSAFE_TO_BREAK); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 72, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_UNSAFE_TO_BREAK, __pyx_t_2) < (0)) __PYX_ERR(7, 72, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_buffer.pxi":73
 *     """
 *     UNSAFE_TO_BREAK = HB_GLYPH_FLAG_UNSAFE_TO_BREAK
 *     UNSAFE_TO_CONCAT = HB_GLYPH_FLAG_UNSAFE_TO_CONCAT             # <<<<<<<<<<<<<<
 *     SAFE_TO_INSERT_TATWEEL = HB_GLYPH_FLAG_SAFE_TO_INSERT_TATWEEL
 * 
*/
  __pyx_t_2 = __Pyx_PyLong_From_hb_glyph_flags_t(HB_GLYPH_FLAG_UNSAFE_TO_CONCAT); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 73, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_UNSAFE_TO_CONCAT, __pyx_t_2) < (0)) __PYX_ERR(7, 73, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_buffer.pxi":74
 *     UNSAFE_TO_BREAK = HB_GLYPH_FLAG_UNSAFE_TO_BREAK
 *     UNSAFE_TO_CONCAT = HB_GLYPH_FLAG_UNSAFE_TO_CONCAT
 *     SAFE_TO_INSERT_TATWEEL = HB_GLYPH_FLAG_SAFE_TO_INSERT_TATWEEL             # <<<<<<<<<<<<<<
 * 
 * cdef class GlyphInfo:
*/
  __pyx_t_2 = __Pyx_PyLong_From_hb_glyph_flags_t(HB_GLYPH_FLAG_SAFE_TO_INSERT_TATWEEL); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 74, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_SAFE_TO_INSERT_TATWEEL, __pyx_t_2) < (0)) __PYX_ERR(7, 74, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_buffer.pxi":1
 * class GlyphFlags(IntFlag):             # <<<<<<<<<<<<<<
 *     """Flags for :class:`GlyphInfo`.
 * 
*/
  __pyx_t_2 = __Pyx_Py3ClassCreate(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_GlyphFlags, __pyx_t_5, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GlyphFlags, __pyx_t_2) < (0)) __PYX_ERR(7, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "Pickling of struct members such as self._hb_glyph_info must be explicitly requested with @auto_pickle(True)"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_9GlyphInfo_1__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_GlyphInfo___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[49])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_5) < (0)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "Pickling of struct members such as self._hb_glyph_info must be explicitly requested with @auto_pickle(True)"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "Pickling of struct members such as self._hb_glyph_info must be explicitly requested with @auto_pickle(True)"
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_9GlyphInfo_3__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_GlyphInfo___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[50])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_5) < (0)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "Pickling of struct members such as self._hb_glyph_position must be explicitly requested with @auto_pickle(True)"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_13GlyphPosition_1__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_GlyphPosition___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[51])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_5) < (0)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "Pickling of struct members such as self._hb_glyph_position must be explicitly requested with @auto_pickle(True)"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "Pickling of struct members such as self._hb_glyph_position must be explicitly requested with @auto_pickle(True)"
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_13GlyphPosition_3__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_GlyphPosition___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[52])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_5) < (0)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_buffer.pxi":180
 * 
 * 
 * class BufferFlags(IntFlag):             # <<<<<<<<<<<<<<
 *     """Flags for :class:`Buffer`.
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_IntFlag); if (unlikely(!__pyx_t_5)) __PYX_ERR(7, 180, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_Pack(1, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 180, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PEP560_update_bases(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(7, 180, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(7, 180, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_2 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_5, __pyx_mstate_global->__pyx_n_u_BufferFlags, __pyx_mstate_global->__pyx_n_u_BufferFlags, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_Flags_for_class_Buffer_attribute); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 180, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__pyx_t_5 != __pyx_t_6) {
    if (unlikely((PyDict_SetItemString(__pyx_t_2, "__orig_bases__", __pyx_t_6) < 0))) __PYX_ERR(7, 180, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_buffer.pxi":253
 *     <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-flags-t>`_.
 *     """
 *     DEFAULT = HB_BUFFER_FLAG_DEFAULT             # <<<<<<<<<<<<<<
 *     BOT = HB_BUFFER_FLAG_BOT
 *     EOT = HB_BUFFER_FLAG_EOT
*/
  __pyx_t_6 = __Pyx_PyLong_From_hb_buffer_flags_t(HB_BUFFER_FLAG_DEFAULT); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 253, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_DEFAULT, __pyx_t_6) < (0)) __PYX_ERR(7, 253, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_buffer.pxi":254
 *     """
 *     DEFAULT = HB_BUFFER_FLAG_DEFAULT
 *     BOT = HB_BUFFER_FLAG_BOT             # <<<<<<<<<<<<<<
 *     EOT = HB_BUFFER_FLAG_EOT
 *     PRESERVE_DEFAULT_IGNORABLES = HB_BUFFER_FLAG_PRESERVE_DEFAULT_IGNORABLES
*/
  __pyx_t_6 = __Pyx_PyLong_From_hb_buffer_flags_t(HB_BUFFER_FLAG_BOT); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 254, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_BOT, __pyx_t_6) < (0)) __PYX_ERR(7, 254, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_buffer.pxi":255
 *     DEFAULT = HB_BUFFER_FLAG_DEFAULT
 *     BOT = HB_BUFFER_FLAG_BOT
 *     EOT = HB_BUFFER_FLAG_EOT             # <<<<<<<<<<<<<<
 *     PRESERVE_DEFAULT_IGNORABLES = HB_BUFFER_FLAG_PRESERVE_DEFAULT_IGNORABLES
 *     REMOVE_DEFAULT_IGNORABLES = HB_BUFFER_FLAG_REMOVE_DEFAULT_IGNORABLES
*/
  __pyx_t_6 = __Pyx_PyLong_From_hb_buffer_flags_t(HB_BUFFER_FLAG_EOT); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 255, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_EOT, __pyx_t_6) < (0)) __PYX_ERR(7, 255, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_buffer.pxi":256
 *     BOT = HB_BUFFER_FLAG_BOT
 *     EOT = HB_BUFFER_FLAG_EOT
 *     PRESERVE_DEFAULT_IGNORABLES = HB_BUFFER_FLAG_PRESERVE_DEFAULT_IGNORABLES             # <<<<<<<<<<<<<<
 *     REMOVE_DEFAULT_IGNORABLES = HB_BUFFER_FLAG_REMOVE_DEFAULT_IGNORABLES
 *     DO_NOT_INSERT_DOTTED_CIRCLE = HB_BUFFER_FLAG_DO_NOT_INSERT_DOTTED_CIRCLE
*/
  __pyx_t_6 = __Pyx_PyLong_From_hb_buffer_flags_t(HB_BUFFER_FLAG_PRESERVE_DEFAULT_IGNORABLES); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 256, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_PRESERVE_DEFAULT_IGNORABLES, __pyx_t_6) < (0)) __PYX_ERR(7, 256, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_buffer.pxi":257
 *     EOT = HB_BUFFER_FLAG_EOT
 *     PRESERVE_DEFAULT_IGNORABLES = HB_BUFFER_FLAG_PRESERVE_DEFAULT_IGNORABLES
 *     REMOVE_DEFAULT_IGNORABLES = HB_BUFFER_FLAG_REMOVE_DEFAULT_IGNORABLES             # <<<<<<<<<<<<<<
 *     DO_NOT_INSERT_DOTTED_CIRCLE = HB_BUFFER_FLAG_DO_NOT_INSERT_DOTTED_CIRCLE
 *     VERIFY = HB_BUFFER_FLAG_VERIFY
*/
  __pyx_t_6 = __Pyx_PyLong_From_hb_buffer_flags_t(HB_BUFFER_FLAG_REMOVE_DEFAULT_IGNORABLES); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 257, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_REMOVE_DEFAULT_IGNORABLES, __pyx_t_6) < (0)) __PYX_ERR(7, 257, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_buffer.pxi":258
 *     PRESERVE_DEFAULT_IGNORABLES = HB_BUFFER_FLAG_PRESERVE_DEFAULT_IGNORABLES
 *     REMOVE_DEFAULT_IGNORABLES = HB_BUFFER_FLAG_REMOVE_DEFAULT_IGNORABLES
 *     DO_NOT_INSERT_DOTTED_CIRCLE = HB_BUFFER_FLAG_DO_NOT_INSERT_DOTTED_CIRCLE             # <<<<<<<<<<<<<<
 *     VERIFY = HB_BUFFER_FLAG_VERIFY
 *     PRODUCE_UNSAFE_TO_CONCAT = HB_BUFFER_FLAG_PRODUCE_UNSAFE_TO_CONCAT
*/
  __pyx_t_6 = __Pyx_PyLong_From_hb_buffer_flags_t(HB_BUFFER_FLAG_DO_NOT_INSERT_DOTTED_CIRCLE); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 258, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_DO_NOT_INSERT_DOTTED_CIRCLE, __pyx_t_6) < (0)) __PYX_ERR(7, 258, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_buffer.pxi":259
 *     REMOVE_DEFAULT_IGNORABLES = HB_BUFFER_FLAG_REMOVE_DEFAULT_IGNORABLES
 *     DO_NOT_INSERT_DOTTED_CIRCLE = HB_BUFFER_FLAG_DO_NOT_INSERT_DOTTED_CIRCLE
 *     VERIFY = HB_BUFFER_FLAG_VERIFY             # <<<<<<<<<<<<<<
 *     PRODUCE_UNSAFE_TO_CONCAT = HB_BUFFER_FLAG_PRODUCE_UNSAFE_TO_CONCAT
 *     PRODUCE_SAFE_TO_INSERT_TATWEEL = HB_BUFFER_FLAG_PRODUCE_SAFE_TO_INSERT_TATWEEL
*/
  __pyx_t_6 = __Pyx_PyLong_From_hb_buffer_flags_t(HB_BUFFER_FLAG_VERIFY); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 259, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_VERIFY, __pyx_t_6) < (0)) __PYX_ERR(7, 259, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_buffer.pxi":260
 *     DO_NOT_INSERT_DOTTED_CIRCLE = HB_BUFFER_FLAG_DO_NOT_INSERT_DOTTED_CIRCLE
 *     VERIFY = HB_BUFFER_FLAG_VERIFY
 *     PRODUCE_UNSAFE_TO_CONCAT = HB_BUFFER_FLAG_PRODUCE_UNSAFE_TO_CONCAT             # <<<<<<<<<<<<<<
 *     PRODUCE_SAFE_TO_INSERT_TATWEEL = HB_BUFFER_FLAG_PRODUCE_SAFE_TO_INSERT_TATWEEL
 * 
*/
  __pyx_t_6 = __Pyx_PyLong_From_hb_buffer_flags_t(HB_BUFFER_FLAG_PRODUCE_UNSAFE_TO_CONCAT); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 260, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_PRODUCE_UNSAFE_TO_CONCAT, __pyx_t_6) < (0)) __PYX_ERR(7, 260, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_buffer.pxi":261
 *     VERIFY = HB_BUFFER_FLAG_VERIFY
 *     PRODUCE_UNSAFE_TO_CONCAT = HB_BUFFER_FLAG_PRODUCE_UNSAFE_TO_CONCAT
 *     PRODUCE_SAFE_TO_INSERT_TATWEEL = HB_BUFFER_FLAG_PRODUCE_SAFE_TO_INSERT_TATWEEL             # <<<<<<<<<<<<<<
 * 
 * class BufferClusterLevel(IntEnum):
*/
  __pyx_t_6 = __Pyx_PyLong_From_hb_buffer_flags_t(HB_BUFFER_FLAG_PRODUCE_SAFE_TO_INSERT_TATWEEL); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 261, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_PRODUCE_SAFE_TO_INSERT_TATWEEL, __pyx_t_6) < (0)) __PYX_ERR(7, 261, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_buffer.pxi":180
 * 
 * 
 * class BufferFlags(IntFlag):             # <<<<<<<<<<<<<<
 *     """Flags for :class:`Buffer`.
 * 
*/
  __pyx_t_6 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_BufferFlags, __pyx_t_5, __pyx_t_2, NULL, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 180, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_BufferFlags, __pyx_t_6) < (0)) __PYX_ERR(7, 180, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_buffer.pxi":263
 *     PRODUCE_SAFE_TO_INSERT_TATWEEL = HB_BUFFER_FLAG_PRODUCE_SAFE_TO_INSERT_TATWEEL
 * 
 * class BufferClusterLevel(IntEnum):             # <<<<<<<<<<<<<<
 *     """Data type for holding HarfBuzz's clustering behavior options. The
 *     cluster level dictates one aspect of how HarfBuzz will treat non-base
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_5)) __PYX_ERR(7, 263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = PyTuple_Pack(1, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(7, 263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(7, 263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_CalculateMetaclass(NULL, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_n_u_BufferClusterLevel, __pyx_mstate_global->__pyx_n_u_BufferClusterLevel, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_Data_type_for_holding_HarfBuzz_s); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__pyx_t_5 != __pyx_t_4) {
    if (unlikely((PyDict_SetItemString(__pyx_t_6, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(7, 263, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "src/uharfbuzz/_buffer.pxi":320
 *     <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-cluster-level-t>`_.
 *     """
 *     MONOTONE_GRAPHEMES = HB_BUFFER_CLUSTER_LEVEL_MONOTONE_GRAPHEMES             # <<<<<<<<<<<<<<
 *     MONOTONE_CHARACTERS = HB_BUFFER_CLUSTER_LEVEL_MONOTONE_CHARACTERS
 *     CHARACTERS = HB_BUFFER_CLUSTER_LEVEL_CHARACTERS
*/
  __pyx_t_4 = __Pyx_PyLong_From_hb_buffer_cluster_level_t(HB_BUFFER_CLUSTER_LEVEL_MONOTONE_GRAPHEMES); if (unlikely(!__pyx_t_4)) __PYX_ERR(7, 320, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_MONOTONE_GRAPHEMES, __pyx_t_4) < (0)) __PYX_ERR(7, 320, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "src/uharfbuzz/_buffer.pxi":321
 *     """
 *     MONOTONE_GRAPHEMES = HB_BUFFER_CLUSTER_LEVEL_MONOTONE_GRAPHEMES
 *     MONOTONE_CHARACTERS = HB_BUFFER_CLUSTER_LEVEL_MONOTONE_CHARACTERS             # <<<<<<<<<<<<<<
 *     CHARACTERS = HB_BUFFER_CLUSTER_LEVEL_CHARACTERS
 *     GRAPHEMES = HB_BUFFER_CLUSTER_LEVEL_GRAPHEMES
*/
  __pyx_t_4 = __Pyx_PyLong_From_hb_buffer_cluster_level_t(HB_BUFFER_CLUSTER_LEVEL_MONOTONE_CHARACTERS); if (unlikely(!__pyx_t_4)) __PYX_ERR(7, 321, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_MONOTONE_CHARACTERS, __pyx_t_4) < (0)) __PYX_ERR(7, 321, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "src/uharfbuzz/_buffer.pxi":322
 *     MONOTONE_GRAPHEMES = HB_BUFFER_CLUSTER_LEVEL_MONOTONE_GRAPHEMES
 *     MONOTONE_CHARACTERS = HB_BUFFER_CLUSTER_LEVEL_MONOTONE_CHARACTERS
 *     CHARACTERS = HB_BUFFER_CLUSTER_LEVEL_CHARACTERS             # <<<<<<<<<<<<<<
 *     GRAPHEMES = HB_BUFFER_CLUSTER_LEVEL_GRAPHEMES
 *     DEFAULT = HB_BUFFER_CLUSTER_LEVEL_DEFAULT
*/
  __pyx_t_4 = __Pyx_PyLong_From_hb_buffer_cluster_level_t(HB_BUFFER_CLUSTER_LEVEL_CHARACTERS); if (unlikely(!__pyx_t_4)) __PYX_ERR(7, 322, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_CHARACTERS, __pyx_t_4) < (0)) __PYX_ERR(7, 322, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "src/uharfbuzz/_buffer.pxi":323
 *     MONOTONE_CHARACTERS = HB_BUFFER_CLUSTER_LEVEL_MONOTONE_CHARACTERS
 *     CHARACTERS = HB_BUFFER_CLUSTER_LEVEL_CHARACTERS
 *     GRAPHEMES = HB_BUFFER_CLUSTER_LEVEL_GRAPHEMES             # <<<<<<<<<<<<<<
 *     DEFAULT = HB_BUFFER_CLUSTER_LEVEL_DEFAULT
 * 
*/
  __pyx_t_4 = __Pyx_PyLong_From_hb_buffer_cluster_level_t(HB_BUFFER_CLUSTER_LEVEL_GRAPHEMES); if (unlikely(!__pyx_t_4)) __PYX_ERR(7, 323, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_GRAPHEMES, __pyx_t_4) < (0)) __PYX_ERR(7, 323, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "src/uharfbuzz/_buffer.pxi":324
 *     CHARACTERS = HB_BUFFER_CLUSTER_LEVEL_CHARACTERS
 *     GRAPHEMES = HB_BUFFER_CLUSTER_LEVEL_GRAPHEMES
 *     DEFAULT = HB_BUFFER_CLUSTER_LEVEL_DEFAULT             # <<<<<<<<<<<<<<
 * 
 * class BufferContentType(IntEnum):
*/
  __pyx_t_4 = __Pyx_PyLong_From_hb_buffer_cluster_level_t(HB_BUFFER_CLUSTER_LEVEL_DEFAULT); if (unlikely(!__pyx_t_4)) __PYX_ERR(7, 324, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_DEFAULT, __pyx_t_4) < (0)) __PYX_ERR(7, 324, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "src/uharfbuzz/_buffer.pxi":263
 *     PRODUCE_SAFE_TO_INSERT_TATWEEL = HB_BUFFER_FLAG_PRODUCE_SAFE_TO_INSERT_TATWEEL
 * 
 * class BufferClusterLevel(IntEnum):             # <<<<<<<<<<<<<<
 *     """Data type for holding HarfBuzz's clustering behavior options. The
 *     cluster level dictates one aspect of how HarfBuzz will treat non-base
*/
  __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_BufferClusterLevel, __pyx_t_5, __pyx_t_6, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(7, 263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_BufferClusterLevel, __pyx_t_4) < (0)) __PYX_ERR(7, 263, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_buffer.pxi":326
 *     DEFAULT = HB_BUFFER_CLUSTER_LEVEL_DEFAULT
 * 
 * class BufferContentType(IntEnum):             # <<<<<<<<<<<<<<
 *     """The type of :class:`Buffer` contents.
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_5)) __PYX_ERR(7, 326, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = PyTuple_Pack(1, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 326, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PEP560_update_bases(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(7, 326, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_CalculateMetaclass(NULL, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 326, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_6, __pyx_t_5, __pyx_mstate_global->__pyx_n_u_BufferContentType, __pyx_mstate_global->__pyx_n_u_BufferContentType, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_The_type_of_class_Buffer_content); if (unlikely(!__pyx_t_4)) __PYX_ERR(7, 326, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__pyx_t_5 != __pyx_t_2) {
    if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_2) < 0))) __PYX_ERR(7, 326, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_buffer.pxi":347
 *     <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-content-type-t>`_.
 *     """
 *     INVALID = HB_BUFFER_CONTENT_TYPE_INVALID             # <<<<<<<<<<<<<<
 *     UNICODE = HB_BUFFER_CONTENT_TYPE_UNICODE
 *     GLYPHS = HB_BUFFER_CONTENT_TYPE_GLYPHS
*/
  __pyx_t_2 = __Pyx_PyLong_From_hb_buffer_content_type_t(HB_BUFFER_CONTENT_TYPE_INVALID); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 347, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_INVALID, __pyx_t_2) < (0)) __PYX_ERR(7, 347, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_buffer.pxi":348
 *     """
 *     INVALID = HB_BUFFER_CONTENT_TYPE_INVALID
 *     UNICODE = HB_BUFFER_CONTENT_TYPE_UNICODE             # <<<<<<<<<<<<<<
 *     GLYPHS = HB_BUFFER_CONTENT_TYPE_GLYPHS
 * 
*/
  __pyx_t_2 = __Pyx_PyLong_From_hb_buffer_content_type_t(HB_BUFFER_CONTENT_TYPE_UNICODE); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 348, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_UNICODE, __pyx_t_2) < (0)) __PYX_ERR(7, 348, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_buffer.pxi":349
 *     INVALID = HB_BUFFER_CONTENT_TYPE_INVALID
 *     UNICODE = HB_BUFFER_CONTENT_TYPE_UNICODE
 *     GLYPHS = HB_BUFFER_CONTENT_TYPE_GLYPHS             # <<<<<<<<<<<<<<
 * 
 * class BufferSerializeFormat(IntEnum):
*/
  __pyx_t_2 = __Pyx_PyLong_From_hb_buffer_content_type_t(HB_BUFFER_CONTENT_TYPE_GLYPHS); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 349, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_GLYPHS, __pyx_t_2) < (0)) __PYX_ERR(7, 349, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_buffer.pxi":326
 *     DEFAULT = HB_BUFFER_CLUSTER_LEVEL_DEFAULT
 * 
 * class BufferContentType(IntEnum):             # <<<<<<<<<<<<<<
 *     """The type of :class:`Buffer` contents.
 * 
*/
  __pyx_t_2 = __Pyx_Py3ClassCreate(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_BufferContentType, __pyx_t_5, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 326, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_BufferContentType, __pyx_t_2) < (0)) __PYX_ERR(7, 326, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_buffer.pxi":351
 *     GLYPHS = HB_BUFFER_CONTENT_TYPE_GLYPHS
 * 
 * class BufferSerializeFormat(IntEnum):             # <<<<<<<<<<<<<<
 *     """The buffer serialization and de-serialization format used in
 *     :meth:`Buffer.serialize`.
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_5)) __PYX_ERR(7, 351, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_Pack(1, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 351, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PEP560_update_bases(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(7, 351, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(7, 351, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_2 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_5, __pyx_mstate_global->__pyx_n_u_BufferSerializeFormat, __pyx_mstate_global->__pyx_n_u_BufferSerializeFormat, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_The_buffer_serialization_and_de); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 351, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__pyx_t_5 != __pyx_t_6) {
    if (unlikely((PyDict_SetItemString(__pyx_t_2, "__orig_bases__", __pyx_t_6) < 0))) __PYX_ERR(7, 351, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_buffer.pxi":370
 *     <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-serialize-format-t>`_.
 *     """
 *     TEXT = HB_BUFFER_SERIALIZE_FORMAT_TEXT             # <<<<<<<<<<<<<<
 *     JSON = HB_BUFFER_SERIALIZE_FORMAT_JSON
 *     INVALID = HB_BUFFER_SERIALIZE_FORMAT_INVALID
*/
  __pyx_t_6 = __Pyx_PyLong_From_hb_buffer_serialize_format_t(HB_BUFFER_SERIALIZE_FORMAT_TEXT); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 370, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_TEXT, __pyx_t_6) < (0)) __PYX_ERR(7, 370, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_buffer.pxi":371
 *     """
 *     TEXT = HB_BUFFER_SERIALIZE_FORMAT_TEXT
 *     JSON = HB_BUFFER_SERIALIZE_FORMAT_JSON             # <<<<<<<<<<<<<<
 *     INVALID = HB_BUFFER_SERIALIZE_FORMAT_INVALID
 * 
*/
  __pyx_t_6 = __Pyx_PyLong_From_hb_buffer_serialize_format_t(HB_BUFFER_SERIALIZE_FORMAT_JSON); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 371, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_JSON, __pyx_t_6) < (0)) __PYX_ERR(7, 371, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_buffer.pxi":372
 *     TEXT = HB_BUFFER_SERIALIZE_FORMAT_TEXT
 *     JSON = HB_BUFFER_SERIALIZE_FORMAT_JSON
 *     INVALID = HB_BUFFER_SERIALIZE_FORMAT_INVALID             # <<<<<<<<<<<<<<
 * 
 * class BufferSerializeFlags(IntFlag):
*/
  __pyx_t_6 = __Pyx_PyLong_From_hb_buffer_serialize_format_t(HB_BUFFER_SERIALIZE_FORMAT_INVALID); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 372, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_INVALID, __pyx_t_6) < (0)) __PYX_ERR(7, 372, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_buffer.pxi":351
 *     GLYPHS = HB_BUFFER_CONTENT_TYPE_GLYPHS
 * 
 * class BufferSerializeFormat(IntEnum):             # <<<<<<<<<<<<<<
 *     """The buffer serialization and de-serialization format used in
 *     :meth:`Buffer.serialize`.
*/
  __pyx_t_6 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_BufferSerializeFormat, __pyx_t_5, __pyx_t_2, NULL, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 351, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_BufferSerializeFormat, __pyx_t_6) < (0)) __PYX_ERR(7, 351, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_buffer.pxi":374
 *     INVALID = HB_BUFFER_SERIALIZE_FORMAT_INVALID
 * 
 * class BufferSerializeFlags(IntFlag):             # <<<<<<<<<<<<<<
 *     """Flags that control what glyph information are serialized in
 *     :meth:`Buffer.serialize`.
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_IntFlag); if (unlikely(!__pyx_t_5)) __PYX_ERR(7, 374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = PyTuple_Pack(1, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(7, 374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(7, 374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_CalculateMetaclass(NULL, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_n_u_BufferSerializeFlags, __pyx_mstate_global->__pyx_n_u_BufferSerializeFlags, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_Flags_that_control_what_glyph_in); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__pyx_t_5 != __pyx_t_4) {
    if (unlikely((PyDict_SetItemString(__pyx_t_6, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(7, 374, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "src/uharfbuzz/_buffer.pxi":423
 *     <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-serialize-flags-t>`_.
 *     """
 *     DEFAULT = HB_BUFFER_SERIALIZE_FLAG_DEFAULT             # <<<<<<<<<<<<<<
 *     NO_CLUSTERS = HB_BUFFER_SERIALIZE_FLAG_NO_CLUSTERS
 *     NO_POSITIONS = HB_BUFFER_SERIALIZE_FLAG_NO_POSITIONS
*/
  __pyx_t_4 = __Pyx_PyLong_From_hb_buffer_serialize_flags_t(HB_BUFFER_SERIALIZE_FLAG_DEFAULT); if (unlikely(!__pyx_t_4)) __PYX_ERR(7, 423, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_DEFAULT, __pyx_t_4) < (0)) __PYX_ERR(7, 423, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "src/uharfbuzz/_buffer.pxi":424
 *     """
 *     DEFAULT = HB_BUFFER_SERIALIZE_FLAG_DEFAULT
 *     NO_CLUSTERS = HB_BUFFER_SERIALIZE_FLAG_NO_CLUSTERS             # <<<<<<<<<<<<<<
 *     NO_POSITIONS = HB_BUFFER_SERIALIZE_FLAG_NO_POSITIONS
 *     NO_GLYPH_NAMES = HB_BUFFER_SERIALIZE_FLAG_NO_GLYPH_NAMES
*/
  __pyx_t_4 = __Pyx_PyLong_From_hb_buffer_serialize_flags_t(HB_BUFFER_SERIALIZE_FLAG_NO_CLUSTERS); if (unlikely(!__pyx_t_4)) __PYX_ERR(7, 424, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_NO_CLUSTERS, __pyx_t_4) < (0)) __PYX_ERR(7, 424, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "src/uharfbuzz/_buffer.pxi":425
 *     DEFAULT = HB_BUFFER_SERIALIZE_FLAG_DEFAULT
 *     NO_CLUSTERS = HB_BUFFER_SERIALIZE_FLAG_NO_CLUSTERS
 *     NO_POSITIONS = HB_BUFFER_SERIALIZE_FLAG_NO_POSITIONS             # <<<<<<<<<<<<<<
 *     NO_GLYPH_NAMES = HB_BUFFER_SERIALIZE_FLAG_NO_GLYPH_NAMES
 *     GLYPH_EXTENTS = HB_BUFFER_SERIALIZE_FLAG_GLYPH_EXTENTS
*/
  __pyx_t_4 = __Pyx_PyLong_From_hb_buffer_serialize_flags_t(HB_BUFFER_SERIALIZE_FLAG_NO_POSITIONS); if (unlikely(!__pyx_t_4)) __PYX_ERR(7, 425, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_NO_POSITIONS, __pyx_t_4) < (0)) __PYX_ERR(7, 425, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "src/uharfbuzz/_buffer.pxi":426
 *     NO_CLUSTERS = HB_BUFFER_SERIALIZE_FLAG_NO_CLUSTERS
 *     NO_POSITIONS = HB_BUFFER_SERIALIZE_FLAG_NO_POSITIONS
 *     NO_GLYPH_NAMES = HB_BUFFER_SERIALIZE_FLAG_NO_GLYPH_NAMES             # <<<<<<<<<<<<<<
 *     GLYPH_EXTENTS = HB_BUFFER_SERIALIZE_FLAG_GLYPH_EXTENTS
 *     GLYPH_FLAGS = HB_BUFFER_SERIALIZE_FLAG_GLYPH_FLAGS
*/
  __pyx_t_4 = __Pyx_PyLong_From_hb_buffer_serialize_flags_t(HB_BUFFER_SERIALIZE_FLAG_NO_GLYPH_NAMES); if (unlikely(!__pyx_t_4)) __PYX_ERR(7, 426, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_NO_GLYPH_NAMES, __pyx_t_4) < (0)) __PYX_ERR(7, 426, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "src/uharfbuzz/_buffer.pxi":427
 *     NO_POSITIONS = HB_BUFFER_SERIALIZE_FLAG_NO_POSITIONS
 *     NO_GLYPH_NAMES = HB_BUFFER_SERIALIZE_FLAG_NO_GLYPH_NAMES
 *     GLYPH_EXTENTS = HB_BUFFER_SERIALIZE_FLAG_GLYPH_EXTENTS             # <<<<<<<<<<<<<<
 *     GLYPH_FLAGS = HB_BUFFER_SERIALIZE_FLAG_GLYPH_FLAGS
 *     NO_ADVANCES = HB_BUFFER_SERIALIZE_FLAG_NO_ADVANCES
*/
  __pyx_t_4 = __Pyx_PyLong_From_hb_buffer_serialize_flags_t(HB_BUFFER_SERIALIZE_FLAG_GLYPH_EXTENTS); if (unlikely(!__pyx_t_4)) __PYX_ERR(7, 427, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_GLYPH_EXTENTS, __pyx_t_4) < (0)) __PYX_ERR(7, 427, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "src/uharfbuzz/_buffer.pxi":428
 *     NO_GLYPH_NAMES = HB_BUFFER_SERIALIZE_FLAG_NO_GLYPH_NAMES
 *     GLYPH_EXTENTS = HB_BUFFER_SERIALIZE_FLAG_GLYPH_EXTENTS
 *     GLYPH_FLAGS = HB_BUFFER_SERIALIZE_FLAG_GLYPH_FLAGS             # <<<<<<<<<<<<<<
 *     NO_ADVANCES = HB_BUFFER_SERIALIZE_FLAG_NO_ADVANCES
 *     DEFINED = HB_BUFFER_SERIALIZE_FLAG_DEFINED
*/
  __pyx_t_4 = __Pyx_PyLong_From_hb_buffer_serialize_flags_t(HB_BUFFER_SERIALIZE_FLAG_GLYPH_FLAGS); if (unlikely(!__pyx_t_4)) __PYX_ERR(7, 428, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_GLYPH_FLAGS, __pyx_t_4) < (0)) __PYX_ERR(7, 428, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "src/uharfbuzz/_buffer.pxi":429
 *     GLYPH_EXTENTS = HB_BUFFER_SERIALIZE_FLAG_GLYPH_EXTENTS
 *     GLYPH_FLAGS = HB_BUFFER_SERIALIZE_FLAG_GLYPH_FLAGS
 *     NO_ADVANCES = HB_BUFFER_SERIALIZE_FLAG_NO_ADVANCES             # <<<<<<<<<<<<<<
 *     DEFINED = HB_BUFFER_SERIALIZE_FLAG_DEFINED
 * 
*/
  __pyx_t_4 = __Pyx_PyLong_From_hb_buffer_serialize_flags_t(HB_BUFFER_SERIALIZE_FLAG_NO_ADVANCES); if (unlikely(!__pyx_t_4)) __PYX_ERR(7, 429, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_NO_ADVANCES, __pyx_t_4) < (0)) __PYX_ERR(7, 429, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "src/uharfbuzz/_buffer.pxi":430
 *     GLYPH_FLAGS = HB_BUFFER_SERIALIZE_FLAG_GLYPH_FLAGS
 *     NO_ADVANCES = HB_BUFFER_SERIALIZE_FLAG_NO_ADVANCES
 *     DEFINED = HB_BUFFER_SERIALIZE_FLAG_DEFINED             # <<<<<<<<<<<<<<
 * 
 * cdef class Buffer:
*/
  __pyx_t_4 = __Pyx_PyLong_From_hb_buffer_serialize_flags_t(HB_BUFFER_SERIALIZE_FLAG_DEFINED); if (unlikely(!__pyx_t_4)) __PYX_ERR(7, 430, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_DEFINED, __pyx_t_4) < (0)) __PYX_ERR(7, 430, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "src/uharfbuzz/_buffer.pxi":374
 *     INVALID = HB_BUFFER_SERIALIZE_FORMAT_INVALID
 * 
 * class BufferSerializeFlags(IntFlag):             # <<<<<<<<<<<<<<
 *     """Flags that control what glyph information are serialized in
 *     :meth:`Buffer.serialize`.
*/
  __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_BufferSerializeFlags, __pyx_t_5, __pyx_t_6, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(7, 374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_BufferSerializeFlags, __pyx_t_4) < (0)) __PYX_ERR(7, 374, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_buffer.pxi":459
 *     cdef object _message_callback
 * 
 *     DEFAULT_REPLACEMENT_CODEPOINT = HB_BUFFER_REPLACEMENT_CODEPOINT_DEFAULT             # <<<<<<<<<<<<<<
 * 
 *     def __cinit__(self):
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_codepoint_t(HB_BUFFER_REPLACEMENT_CODEPOINT_DEFAULT); if (unlikely(!__pyx_t_5)) __PYX_ERR(7, 459, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Buffer, __pyx_mstate_global->__pyx_n_u_DEFAULT_REPLACEMENT_CODEPOINT, __pyx_t_5) < (0)) __PYX_ERR(7, 459, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_buffer.pxi":470
 *         hb_buffer_destroy(self._hb_buffer)
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     @deprecated("Buffer()", since="0.10.0")
 *     def create(cls) -> Buffer:
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(7, 470, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_Buffer) < (0)) __PYX_ERR(7, 470, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_6Buffer_5create, __Pyx_CYFUNCTION_CLASSMETHOD | __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Buffer_create, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[53])); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 470, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Buffer, __pyx_mstate_global->__pyx_n_u_create, __pyx_t_2) < (0)) __PYX_ERR(7, 470, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_buffer.pxi":471
 * 
 *     @classmethod
 *     @deprecated("Buffer()", since="0.10.0")             # <<<<<<<<<<<<<<
 *     def create(cls) -> Buffer:
 *         cdef Buffer inst = cls()
*/
  __pyx_t_5 = NULL;
  __pyx_t_4 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(7, 471, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Buffer_2};
    __pyx_t_9 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(7, 471, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_10_0, __pyx_t_9, __pyx_callargs+2, 0) < (0)) __PYX_ERR(7, 471, __pyx_L1_error)
    __pyx_t_6 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_9);
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 471, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }

  /* "src/uharfbuzz/_buffer.pxi":470
 *         hb_buffer_destroy(self._hb_buffer)
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     @deprecated("Buffer()", since="0.10.0")
 *     def create(cls) -> Buffer:
*/
  __Pyx_GetNameInClass(__pyx_t_7, (PyObject*)__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Buffer, __pyx_mstate_global->__pyx_n_u_create); if (unlikely(!__pyx_t_7)) __PYX_ERR(7, 470, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_7};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 471, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_6 = __Pyx_Method_ClassMethod(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 470, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Buffer, __pyx_mstate_global->__pyx_n_u_create, __pyx_t_6) < (0)) __PYX_ERR(7, 470, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_buffer.pxi":479
 *         return hb_buffer_get_length(self._hb_buffer)
 * 
 *     def reset(self):             # <<<<<<<<<<<<<<
 *         """Resets the buffer to its initial status, as if it was just newly
 *         created.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_6Buffer_9reset, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Buffer_reset, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[54])); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 479, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Buffer, __pyx_mstate_global->__pyx_n_u_reset, __pyx_t_6) < (0)) __PYX_ERR(7, 479, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_buffer.pxi":488
 *         hb_buffer_reset (self._hb_buffer)
 * 
 *     def clear_contents(self):             # <<<<<<<<<<<<<<
 *         """Similar to :meth:`reset`, but does not clear the Unicode functions
 *         and the replacement code point.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_6Buffer_11clear_contents, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Buffer_clear_contents, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[55])); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 488, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Buffer, __pyx_mstate_global->__pyx_n_u_clear_contents, __pyx_t_6) < (0)) __PYX_ERR(7, 488, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_buffer.pxi":749
 *         hb_buffer_set_not_found_glyph(self._hb_buffer, value)
 * 
 *     def set_language_from_ot_tag(self, value: str):             # <<<<<<<<<<<<<<
 *         """Sets the language of the buffer from an OpenType language tag.
 * 
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 749, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_value, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(7, 749, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_6Buffer_13set_language_from_ot_tag, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Buffer_set_language_from_ot_tag, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[56])); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 749, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Buffer, __pyx_mstate_global->__pyx_n_u_set_language_from_ot_tag, __pyx_t_2) < (0)) __PYX_ERR(7, 749, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_buffer.pxi":762
 *             self._hb_buffer, hb_ot_tag_to_language(hb_tag_from_string(cstr, -1)))
 * 
 *     def set_script_from_ot_tag(self, value: str):             # <<<<<<<<<<<<<<
 *         """Sets the script of the buffer from an OpenType script tag.
 * 
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 762, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_value, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(7, 762, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_6Buffer_15set_script_from_ot_tag, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Buffer_set_script_from_ot_tag, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[57])); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 762, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Buffer, __pyx_mstate_global->__pyx_n_u_set_script_from_ot_tag, __pyx_t_6) < (0)) __PYX_ERR(7, 762, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_buffer.pxi":775
 *             self._hb_buffer, hb_ot_tag_to_script(hb_tag_from_string(cstr, -1)))
 * 
 *     def add_codepoints(self, codepoints: List[int],             # <<<<<<<<<<<<<<
 *                        item_offset: int = 0, item_length: int = -1):
 *         """Appends characters from ``codepoints`` to the buffer.
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 775, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_codepoints, __pyx_mstate_global->__pyx_kp_u_List_int) < (0)) __PYX_ERR(7, 775, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_item_offset, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(7, 775, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_item_length, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(7, 775, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_6Buffer_17add_codepoints, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Buffer_add_codepoints, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[58])); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 775, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[1]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Buffer, __pyx_mstate_global->__pyx_n_u_add_codepoints, __pyx_t_2) < (0)) __PYX_ERR(7, 775, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_buffer.pxi":819
 *             raise MemoryError()
 * 
 *     def add_utf8(self, text: bytes,             # <<<<<<<<<<<<<<
 *                  item_offset: int = 0, item_length: int = -1):
 *         """Appends UTF-8 ``text`` to the buffer.
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 819, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_text, __pyx_mstate_global->__pyx_n_u_bytes) < (0)) __PYX_ERR(7, 819, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_item_offset, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(7, 819, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_item_length, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(7, 819, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_6Buffer_19add_utf8, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Buffer_add_utf8, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[59])); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 819, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_6, __pyx_mstate_global->__pyx_tuple[1]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Buffer, __pyx_mstate_global->__pyx_n_u_add_utf8, __pyx_t_6) < (0)) __PYX_ERR(7, 819, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_buffer.pxi":842
 *             raise MemoryError()
 * 
 *     def add_str(self, text: str,             # <<<<<<<<<<<<<<
 *                 item_offset: int = 0, item_length: int = -1):
 *         """Appends ``text`` to the buffer.
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 842, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_text, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(7, 842, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_item_offset, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(7, 842, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_item_length, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(7, 842, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_6Buffer_21add_str, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Buffer_add_str, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[60])); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 842, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[1]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Buffer, __pyx_mstate_global->__pyx_n_u_add_str, __pyx_t_2) < (0)) __PYX_ERR(7, 842, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_buffer.pxi":882
 *             PyMem_Free(ucs4_buffer)
 * 
 *     def guess_segment_properties(self):             # <<<<<<<<<<<<<<
 *         """Sets unset buffer segment properties based on buffer Unicode
 *         contents. If the buffer is not empty, it must have content type
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_6Buffer_23guess_segment_properties, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Buffer_guess_segment_properties, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[61])); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 882, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Buffer, __pyx_mstate_global->__pyx_n_u_guess_segment_properties, __pyx_t_2) < (0)) __PYX_ERR(7, 882, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_buffer.pxi":902
 *         hb_buffer_guess_segment_properties(self._hb_buffer)
 * 
 *     def set_message_func(self, callback: Callable[str]):             # <<<<<<<<<<<<<<
 *         """Sets the implementation function for the buffer's message
 *         callback.
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 902, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_callback, __pyx_mstate_global->__pyx_kp_u_Callable_str) < (0)) __PYX_ERR(7, 902, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_6Buffer_25set_message_func, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Buffer_set_message_func, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[62])); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 902, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Buffer, __pyx_mstate_global->__pyx_n_u_set_message_func, __pyx_t_6) < (0)) __PYX_ERR(7, 902, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_buffer.pxi":918
 *     def serialize(self,
 *                   font: Font,
 *                   format: BufferSerializeFormat = BufferSerializeFormat.TEXT,             # <<<<<<<<<<<<<<
 *                   flags: BufferSerializeFlags = BufferSerializeFlags.DEFAULT) -> str:
 *         """Serializes the buffer into a textual representation of its
*/
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_BufferSerializeFormat); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 918, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_TEXT); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 918, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_mstate_global->__pyx_k__7 = __pyx_t_2;
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;

  /* "src/uharfbuzz/_buffer.pxi":919
 *                   font: Font,
 *                   format: BufferSerializeFormat = BufferSerializeFormat.TEXT,
 *                   flags: BufferSerializeFlags = BufferSerializeFlags.DEFAULT) -> str:             # <<<<<<<<<<<<<<
 *         """Serializes the buffer into a textual representation of its
 *         content, whether Unicode codepoints or glyph identifiers and
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_BufferSerializeFlags); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 919, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_DEFAULT); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 919, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_mstate_global->__pyx_k__8 = __pyx_t_6;
  __Pyx_GIVEREF(__pyx_t_6);
  __pyx_t_6 = 0;

  /* "src/uharfbuzz/_buffer.pxi":918
 *     def serialize(self,
 *                   font: Font,
 *                   format: BufferSerializeFormat = BufferSerializeFormat.TEXT,             # <<<<<<<<<<<<<<
 *                   flags: BufferSerializeFlags = BufferSerializeFlags.DEFAULT) -> str:
 *         """Serializes the buffer into a textual representation of its
*/
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_BufferSerializeFormat); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 918, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_TEXT); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 918, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_buffer.pxi":919
 *                   font: Font,
 *                   format: BufferSerializeFormat = BufferSerializeFormat.TEXT,
 *                   flags: BufferSerializeFlags = BufferSerializeFlags.DEFAULT) -> str:             # <<<<<<<<<<<<<<
 *         """Serializes the buffer into a textual representation of its
 *         content, whether Unicode codepoints or glyph identifiers and
*/
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_BufferSerializeFlags); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 919, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_DEFAULT); if (unlikely(!__pyx_t_7)) __PYX_ERR(7, 919, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_buffer.pxi":916
 *         hb_buffer_set_message_func(self._hb_buffer, msgcallback, <void*>callback, NULL)
 * 
 *     def serialize(self,             # <<<<<<<<<<<<<<
 *                   font: Font,
 *                   format: BufferSerializeFormat = BufferSerializeFormat.TEXT,
*/
  __pyx_t_6 = PyTuple_Pack(2, __pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 916, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_7)) __PYX_ERR(7, 916, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (PyDict_SetItem(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_font, __pyx_mstate_global->__pyx_n_u_Font) < (0)) __PYX_ERR(7, 916, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_format, __pyx_mstate_global->__pyx_n_u_BufferSerializeFormat) < (0)) __PYX_ERR(7, 916, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_flags, __pyx_mstate_global->__pyx_n_u_BufferSerializeFlags) < (0)) __PYX_ERR(7, 916, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(7, 916, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_6Buffer_27serialize, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Buffer_serialize, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[63])); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 916, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_t_6);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Buffer, __pyx_mstate_global->__pyx_n_u_serialize, __pyx_t_2) < (0)) __PYX_ERR(7, 916, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_6Buffer_29__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Buffer___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[64])); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_2) < (0)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_6Buffer_31__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Buffer___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[65])); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_2) < (0)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_face.pxi":1
 * class OTVarAxisFlags(IntFlag):             # <<<<<<<<<<<<<<
 *     """Flags for :class:`OTVarAxisInfo`.
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_IntFlag); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = PyTuple_Pack(1, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_6, __pyx_t_2, __pyx_mstate_global->__pyx_n_u_OTVarAxisFlags, __pyx_mstate_global->__pyx_n_u_OTVarAxisFlags, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_Flags_for_class_OTVarAxisInfo_at); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__pyx_t_2 != __pyx_t_7) {
    if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_7) < 0))) __PYX_ERR(1, 1, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_face.pxi":12
 *     <https://harfbuzz.github.io/harfbuzz-hb-ot-var.html#hb-ot-var-axis-flags-t>`_.
 *     """
 *     HIDDEN = HB_OT_VAR_AXIS_FLAG_HIDDEN             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_7 = __Pyx_PyLong_From_hb_ot_var_axis_flags_t(HB_OT_VAR_AXIS_FLAG_HIDDEN); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_HIDDEN, __pyx_t_7) < (0)) __PYX_ERR(1, 12, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_face.pxi":1
 * class OTVarAxisFlags(IntFlag):             # <<<<<<<<<<<<<<
 *     """Flags for :class:`OTVarAxisInfo`.
 * 
*/
  __pyx_t_7 = __Pyx_Py3ClassCreate(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_OTVarAxisFlags, __pyx_t_2, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_7);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_OTVarAxisFlags, __pyx_t_7) < (0)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_face.pxi":15
 * 
 * 
 * class OTVarAxisInfo(NamedTuple):             # <<<<<<<<<<<<<<
 *     """Data type for holding variation-axis values.
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_NamedTuple); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 15, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = PyTuple_Pack(1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 15, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_7 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_mstate_global->__pyx_n_u_OTVarAxisInfo, __pyx_mstate_global->__pyx_n_u_OTVarAxisInfo, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_Data_type_for_holding_variation); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 15, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (__pyx_t_2 != __pyx_t_6) {
    if (unlikely((PyDict_SetItemString(__pyx_t_7, "__orig_bases__", __pyx_t_6) < 0))) __PYX_ERR(1, 15, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_axis_index, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(1, 15, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_tag, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(1, 15, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_name_id, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(1, 15, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_flags, __pyx_mstate_global->__pyx_n_u_OTVarAxisFlags) < (0)) __PYX_ERR(1, 15, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_min_value, __pyx_mstate_global->__pyx_n_u_float) < (0)) __PYX_ERR(1, 15, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_default_value, __pyx_mstate_global->__pyx_n_u_float) < (0)) __PYX_ERR(1, 15, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_max_value, __pyx_mstate_global->__pyx_n_u_float) < (0)) __PYX_ERR(1, 15, __pyx_L1_error)
  if (__Pyx_SetNameInClass(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_annotations, __pyx_t_6) < (0)) __PYX_ERR(1, 15, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_face.pxi":34
 *     """The position on the variation axis corresponding to the font's defaults."""
 *     max_value: float
 *     """The maximum value on the variation axis that the font covers."""             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_6 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_OTVarAxisInfo, __pyx_t_2, __pyx_t_7, NULL, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_OTVarAxisInfo, __pyx_t_6) < (0)) __PYX_ERR(1, 15, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_face.pxi":37
 * 
 * 
 * class OTVarNamedInstance(NamedTuple):             # <<<<<<<<<<<<<<
 *     """A named instance defined in the font's ``fvar`` table."""
 *     subfamily_name_id: int
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_NamedTuple); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 37, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = PyTuple_Pack(1, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 37, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 37, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 37, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_6 = __Pyx_Py3MetaclassPrepare(__pyx_t_7, __pyx_t_2, __pyx_mstate_global->__pyx_n_u_OTVarNamedInstance, __pyx_mstate_global->__pyx_n_u_OTVarNamedInstance, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_A_named_instance_defined_in_the); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 37, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__pyx_t_2 != __pyx_t_5) {
    if (unlikely((PyDict_SetItemString(__pyx_t_6, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(1, 37, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 37, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_subfamily_name_id, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(1, 37, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_postscript_name_id, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(1, 37, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_design_coords, __pyx_mstate_global->__pyx_kp_u_List_float) < (0)) __PYX_ERR(1, 37, __pyx_L1_error)
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_annotations, __pyx_t_5) < (0)) __PYX_ERR(1, 37, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_face.pxi":46
 *     "PostScript name" defined for the given named instance."""
 *     design_coords: List[float]
 *     """The design-space coordinates corresponding to the named instance."""             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_OTVarNamedInstance, __pyx_t_2, __pyx_t_6, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 37, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_OTVarNamedInstance, __pyx_t_5) < (0)) __PYX_ERR(1, 37, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_face.pxi":49
 * 
 * 
 * class Color(NamedTuple):             # <<<<<<<<<<<<<<
 *     """A color value. Colors are eight bits per channel RGB plus alpha
 *     transparency.
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_NamedTuple); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 49, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = PyTuple_Pack(1, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 49, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 49, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 49, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_6, __pyx_t_2, __pyx_mstate_global->__pyx_n_u_Color, __pyx_mstate_global->__pyx_n_u_Color, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_A_color_value_Colors_are_eight_b); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 49, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__pyx_t_2 != __pyx_t_7) {
    if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_7) < 0))) __PYX_ERR(1, 49, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 49, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (PyDict_SetItem(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_red, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(1, 49, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_green, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(1, 49, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_blue, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(1, 49, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_alpha, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(1, 49, __pyx_L1_error)
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_annotations, __pyx_t_7) < (0)) __PYX_ERR(1, 49, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_face.pxi":65
 *     """Alpha channel value."""
 * 
 *     def to_int(self) -> int:             # <<<<<<<<<<<<<<
 *         """Returns an :class:`int` representation of this :class:`Color`."""
 *         return HB_COLOR(self.blue, self.green, self.red, self.alpha)
*/
  __pyx_t_7 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 65, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (PyDict_SetItem(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(1, 65, __pyx_L1_error)
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_5Color_1to_int, 0, __pyx_mstate_global->__pyx_n_u_Color_to_int, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[66])); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 65, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_9, __pyx_t_7);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_to_int, __pyx_t_9) < (0)) __PYX_ERR(1, 65, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":69
 *         return HB_COLOR(self.blue, self.green, self.red, self.alpha)
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def from_int(value: int) -> Color:
 *         """Construct a :class:`Color` from an integer representation."""
*/
  __pyx_t_7 = NULL;
  __pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 69, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_value, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(1, 69, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_Color) < (0)) __PYX_ERR(1, 69, __pyx_L1_error)
  __pyx_t_10 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_5Color_3from_int, __Pyx_CYFUNCTION_STATICMETHOD, __pyx_mstate_global->__pyx_n_u_Color_from_int, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[67])); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 69, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_10);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_10, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_10};
    __pyx_t_9 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_staticmethod, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 69, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
  }
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_from_int, __pyx_t_9) < (0)) __PYX_ERR(1, 69, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":49
 * 
 * 
 * class Color(NamedTuple):             # <<<<<<<<<<<<<<
 *     """A color value. Colors are eight bits per channel RGB plus alpha
 *     transparency.
*/
  __pyx_t_9 = __Pyx_Py3ClassCreate(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_Color, __pyx_t_2, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 49, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_Color, __pyx_t_9) < (0)) __PYX_ERR(1, 49, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_face.pxi":79
 * 
 * 
 * class OTColor(Color):             # <<<<<<<<<<<<<<
 *     """A :class:`Color` from a font's color palette, together with its name
 *     ID."""
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_Color); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 79, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = PyTuple_Pack(1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 79, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 79, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 79, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_9 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_mstate_global->__pyx_n_u_OTColor, __pyx_mstate_global->__pyx_n_u_OTColor, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_A_class_Color_from_a_font_s_colo); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 79, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (__pyx_t_2 != __pyx_t_6) {
    if (unlikely((PyDict_SetItemString(__pyx_t_9, "__orig_bases__", __pyx_t_6) < 0))) __PYX_ERR(1, 79, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 79, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_name_id, __pyx_mstate_global->__pyx_kp_u_int_None) < (0)) __PYX_ERR(1, 79, __pyx_L1_error)
  if (__Pyx_SetNameInClass(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_annotations, __pyx_t_6) < (0)) __PYX_ERR(1, 79, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_face.pxi":82
 *     """A :class:`Color` from a font's color palette, together with its name
 *     ID."""
 *     name_id: int | None             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_6 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_OTColor, __pyx_t_2, __pyx_t_9, NULL, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 79, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_OTColor, __pyx_t_6) < (0)) __PYX_ERR(1, 79, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_face.pxi":85
 * 
 * 
 * class OTColorPaletteFlags(IntFlag):             # <<<<<<<<<<<<<<
 *     """Flags that describe the properties of a color palette.
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_IntFlag); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 85, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = PyTuple_Pack(1, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 85, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 85, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_9 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 85, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_6 = __Pyx_Py3MetaclassPrepare(__pyx_t_9, __pyx_t_2, __pyx_mstate_global->__pyx_n_u_OTColorPaletteFlags, __pyx_mstate_global->__pyx_n_u_OTColorPaletteFlags, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_Flags_that_describe_the_properti); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 85, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__pyx_t_2 != __pyx_t_5) {
    if (unlikely((PyDict_SetItemString(__pyx_t_6, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(1, 85, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_face.pxi":109
 *     <https://harfbuzz.github.io/harfbuzz-hb-ot-color.html#hb-ot-color-palette-flags-t>`_.
 *     """
 *     DEFAULT = HB_OT_COLOR_PALETTE_FLAG_DEFAULT             # <<<<<<<<<<<<<<
 *     USABLE_WITH_LIGHT_BACKGROUND = HB_OT_COLOR_PALETTE_FLAG_USABLE_WITH_LIGHT_BACKGROUND
 *     USABLE_WITH_DARK_BACKGROUND = HB_OT_COLOR_PALETTE_FLAG_USABLE_WITH_DARK_BACKGROUND
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_color_palette_flags_t(HB_OT_COLOR_PALETTE_FLAG_DEFAULT); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 109, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_DEFAULT, __pyx_t_5) < (0)) __PYX_ERR(1, 109, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_face.pxi":110
 *     """
 *     DEFAULT = HB_OT_COLOR_PALETTE_FLAG_DEFAULT
 *     USABLE_WITH_LIGHT_BACKGROUND = HB_OT_COLOR_PALETTE_FLAG_USABLE_WITH_LIGHT_BACKGROUND             # <<<<<<<<<<<<<<
 *     USABLE_WITH_DARK_BACKGROUND = HB_OT_COLOR_PALETTE_FLAG_USABLE_WITH_DARK_BACKGROUND
 * 
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_color_palette_flags_t(HB_OT_COLOR_PALETTE_FLAG_USABLE_WITH_LIGHT_BACKGROUND); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_USABLE_WITH_LIGHT_BACKGROUND, __pyx_t_5) < (0)) __PYX_ERR(1, 110, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_face.pxi":111
 *     DEFAULT = HB_OT_COLOR_PALETTE_FLAG_DEFAULT
 *     USABLE_WITH_LIGHT_BACKGROUND = HB_OT_COLOR_PALETTE_FLAG_USABLE_WITH_LIGHT_BACKGROUND
 *     USABLE_WITH_DARK_BACKGROUND = HB_OT_COLOR_PALETTE_FLAG_USABLE_WITH_DARK_BACKGROUND             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_color_palette_flags_t(HB_OT_COLOR_PALETTE_FLAG_USABLE_WITH_DARK_BACKGROUND); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 111, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_USABLE_WITH_DARK_BACKGROUND, __pyx_t_5) < (0)) __PYX_ERR(1, 111, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_face.pxi":85
 * 
 * 
 * class OTColorPaletteFlags(IntFlag):             # <<<<<<<<<<<<<<
 *     """Flags that describe the properties of a color palette.
 * 
*/
  __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_OTColorPaletteFlags, __pyx_t_2, __pyx_t_6, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 85, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_OTColorPaletteFlags, __pyx_t_5) < (0)) __PYX_ERR(1, 85, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_face.pxi":114
 * 
 * 
 * class OTColorPalette(NamedTuple):             # <<<<<<<<<<<<<<
 *     """A color palette from a font's ``CPAL`` table."""
 *     colors: List[OTColor]
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_NamedTuple); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 114, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_9 = PyTuple_Pack(1, __pyx_t_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 114, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_9); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 114, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 114, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_6, __pyx_t_2, __pyx_mstate_global->__pyx_n_u_OTColorPalette, __pyx_mstate_global->__pyx_n_u_OTColorPalette, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_A_color_palette_from_a_font_s_CP); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 114, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__pyx_t_2 != __pyx_t_9) {
    if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_9) < 0))) __PYX_ERR(1, 114, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __pyx_t_9 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 114, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_colors, __pyx_mstate_global->__pyx_kp_u_List_OTColor) < (0)) __PYX_ERR(1, 114, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_name_id, __pyx_mstate_global->__pyx_kp_u_int_None) < (0)) __PYX_ERR(1, 114, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_flags, __pyx_mstate_global->__pyx_n_u_OTColorPaletteFlags) < (0)) __PYX_ERR(1, 114, __pyx_L1_error)
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_annotations, __pyx_t_9) < (0)) __PYX_ERR(1, 114, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":122
 *     palette, or ``None`` if no name is associated."""
 *     flags: OTColorPaletteFlags
 *     """The :class:`OTColorPaletteFlags` flags for the palette."""             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_9 = __Pyx_Py3ClassCreate(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_OTColorPalette, __pyx_t_2, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 114, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_OTColorPalette, __pyx_t_9) < (0)) __PYX_ERR(1, 114, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_face.pxi":125
 * 
 * 
 * class OTColorLayer(NamedTuple):             # <<<<<<<<<<<<<<
 *     """A pair of glyph and color index.
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_NamedTuple); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 125, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = PyTuple_Pack(1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 125, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 125, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 125, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_9 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_mstate_global->__pyx_n_u_OTColorLayer, __pyx_mstate_global->__pyx_n_u_OTColorLayer, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_A_pair_of_glyph_and_color_index); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 125, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (__pyx_t_2 != __pyx_t_6) {
    if (unlikely((PyDict_SetItemString(__pyx_t_9, "__orig_bases__", __pyx_t_6) < 0))) __PYX_ERR(1, 125, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 125, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(1, 125, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_color_index, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(1, 125, __pyx_L1_error)
  if (__Pyx_SetNameInClass(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_annotations, __pyx_t_6) < (0)) __PYX_ERR(1, 125, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_face.pxi":137
 *     """The glyph ID of the layer."""
 *     color_index: int
 *     """The palette color index of the layer."""             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_6 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_OTColorLayer, __pyx_t_2, __pyx_t_9, NULL, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 125, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_OTColorLayer, __pyx_t_6) < (0)) __PYX_ERR(1, 125, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_face.pxi":140
 * 
 * 
 * class OTLayoutGlyphClass(IntEnum):             # <<<<<<<<<<<<<<
 *     """The GDEF classes defined for glyphs.
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = PyTuple_Pack(1, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_9 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_6 = __Pyx_Py3MetaclassPrepare(__pyx_t_9, __pyx_t_2, __pyx_mstate_global->__pyx_n_u_OTLayoutGlyphClass, __pyx_mstate_global->__pyx_n_u_OTLayoutGlyphClass, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_The_GDEF_classes_defined_for_gly); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__pyx_t_2 != __pyx_t_5) {
    if (unlikely((PyDict_SetItemString(__pyx_t_6, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(1, 140, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_face.pxi":171
 *     <https://harfbuzz.github.io/harfbuzz-hb-ot-layout.html#hb-ot-layout-glyph-class-t>`_.
 *     """
 *     UNCLASSIFIED = HB_OT_LAYOUT_GLYPH_CLASS_UNCLASSIFIED             # <<<<<<<<<<<<<<
 *     BASE_GLYPH = HB_OT_LAYOUT_GLYPH_CLASS_BASE_GLYPH
 *     LIGATURE = HB_OT_LAYOUT_GLYPH_CLASS_LIGATURE
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_layout_glyph_class_t(HB_OT_LAYOUT_GLYPH_CLASS_UNCLASSIFIED); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 171, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_UNCLASSIFIED, __pyx_t_5) < (0)) __PYX_ERR(1, 171, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_face.pxi":172
 *     """
 *     UNCLASSIFIED = HB_OT_LAYOUT_GLYPH_CLASS_UNCLASSIFIED
 *     BASE_GLYPH = HB_OT_LAYOUT_GLYPH_CLASS_BASE_GLYPH             # <<<<<<<<<<<<<<
 *     LIGATURE = HB_OT_LAYOUT_GLYPH_CLASS_LIGATURE
 *     MARK = HB_OT_LAYOUT_GLYPH_CLASS_MARK
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_layout_glyph_class_t(HB_OT_LAYOUT_GLYPH_CLASS_BASE_GLYPH); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 172, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_BASE_GLYPH, __pyx_t_5) < (0)) __PYX_ERR(1, 172, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_face.pxi":173
 *     UNCLASSIFIED = HB_OT_LAYOUT_GLYPH_CLASS_UNCLASSIFIED
 *     BASE_GLYPH = HB_OT_LAYOUT_GLYPH_CLASS_BASE_GLYPH
 *     LIGATURE = HB_OT_LAYOUT_GLYPH_CLASS_LIGATURE             # <<<<<<<<<<<<<<
 *     MARK = HB_OT_LAYOUT_GLYPH_CLASS_MARK
 *     COMPONENT = HB_OT_LAYOUT_GLYPH_CLASS_COMPONENT
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_layout_glyph_class_t(HB_OT_LAYOUT_GLYPH_CLASS_LIGATURE); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 173, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_LIGATURE, __pyx_t_5) < (0)) __PYX_ERR(1, 173, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_face.pxi":174
 *     BASE_GLYPH = HB_OT_LAYOUT_GLYPH_CLASS_BASE_GLYPH
 *     LIGATURE = HB_OT_LAYOUT_GLYPH_CLASS_LIGATURE
 *     MARK = HB_OT_LAYOUT_GLYPH_CLASS_MARK             # <<<<<<<<<<<<<<
 *     COMPONENT = HB_OT_LAYOUT_GLYPH_CLASS_COMPONENT
 * 
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_layout_glyph_class_t(HB_OT_LAYOUT_GLYPH_CLASS_MARK); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 174, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_MARK, __pyx_t_5) < (0)) __PYX_ERR(1, 174, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_face.pxi":175
 *     LIGATURE = HB_OT_LAYOUT_GLYPH_CLASS_LIGATURE
 *     MARK = HB_OT_LAYOUT_GLYPH_CLASS_MARK
 *     COMPONENT = HB_OT_LAYOUT_GLYPH_CLASS_COMPONENT             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_layout_glyph_class_t(HB_OT_LAYOUT_GLYPH_CLASS_COMPONENT); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 175, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_COMPONENT, __pyx_t_5) < (0)) __PYX_ERR(1, 175, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_face.pxi":140
 * 
 * 
 * class OTLayoutGlyphClass(IntEnum):             # <<<<<<<<<<<<<<
 *     """The GDEF classes defined for glyphs.
 * 
*/
  __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_OTLayoutGlyphClass, __pyx_t_2, __pyx_t_6, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_OTLayoutGlyphClass, __pyx_t_5) < (0)) __PYX_ERR(1, 140, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_face.pxi":233
 * 
 * 
 * class OTNameIdPredefined(IntEnum):             # <<<<<<<<<<<<<<
 *     """Predefined values for the OpenType ``name`` table Name ID.
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 233, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_9 = PyTuple_Pack(1, __pyx_t_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 233, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_9); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 233, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 233, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_6, __pyx_t_2, __pyx_mstate_global->__pyx_n_u_OTNameIdPredefined, __pyx_mstate_global->__pyx_n_u_OTNameIdPredefined, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_Predefined_values_for_the_OpenTy); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 233, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__pyx_t_2 != __pyx_t_9) {
    if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_9) < 0))) __PYX_ERR(1, 233, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":344
 *     <https://harfbuzz.github.io/harfbuzz-hb-ot-name.html#hb-ot-name-id-predefined-t>`_.
 *     """
 *     COPYRIGHT = HB_OT_NAME_ID_COPYRIGHT             # <<<<<<<<<<<<<<
 *     FONT_FAMILY = HB_OT_NAME_ID_FONT_FAMILY
 *     FONT_SUBFAMILY = HB_OT_NAME_ID_FONT_SUBFAMILY
*/
  __pyx_t_9 = __Pyx_PyLong_From_hb_ot_name_id_predefined_t(HB_OT_NAME_ID_COPYRIGHT); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 344, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_COPYRIGHT, __pyx_t_9) < (0)) __PYX_ERR(1, 344, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":345
 *     """
 *     COPYRIGHT = HB_OT_NAME_ID_COPYRIGHT
 *     FONT_FAMILY = HB_OT_NAME_ID_FONT_FAMILY             # <<<<<<<<<<<<<<
 *     FONT_SUBFAMILY = HB_OT_NAME_ID_FONT_SUBFAMILY
 *     UNIQUE_ID = HB_OT_NAME_ID_UNIQUE_ID
*/
  __pyx_t_9 = __Pyx_PyLong_From_hb_ot_name_id_predefined_t(HB_OT_NAME_ID_FONT_FAMILY); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 345, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_FONT_FAMILY, __pyx_t_9) < (0)) __PYX_ERR(1, 345, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":346
 *     COPYRIGHT = HB_OT_NAME_ID_COPYRIGHT
 *     FONT_FAMILY = HB_OT_NAME_ID_FONT_FAMILY
 *     FONT_SUBFAMILY = HB_OT_NAME_ID_FONT_SUBFAMILY             # <<<<<<<<<<<<<<
 *     UNIQUE_ID = HB_OT_NAME_ID_UNIQUE_ID
 *     FULL_NAME = HB_OT_NAME_ID_FULL_NAME
*/
  __pyx_t_9 = __Pyx_PyLong_From_hb_ot_name_id_predefined_t(HB_OT_NAME_ID_FONT_SUBFAMILY); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 346, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_FONT_SUBFAMILY, __pyx_t_9) < (0)) __PYX_ERR(1, 346, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":347
 *     FONT_FAMILY = HB_OT_NAME_ID_FONT_FAMILY
 *     FONT_SUBFAMILY = HB_OT_NAME_ID_FONT_SUBFAMILY
 *     UNIQUE_ID = HB_OT_NAME_ID_UNIQUE_ID             # <<<<<<<<<<<<<<
 *     FULL_NAME = HB_OT_NAME_ID_FULL_NAME
 *     VERSION_STRING = HB_OT_NAME_ID_VERSION_STRING
*/
  __pyx_t_9 = __Pyx_PyLong_From_hb_ot_name_id_predefined_t(HB_OT_NAME_ID_UNIQUE_ID); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 347, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_UNIQUE_ID, __pyx_t_9) < (0)) __PYX_ERR(1, 347, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":348
 *     FONT_SUBFAMILY = HB_OT_NAME_ID_FONT_SUBFAMILY
 *     UNIQUE_ID = HB_OT_NAME_ID_UNIQUE_ID
 *     FULL_NAME = HB_OT_NAME_ID_FULL_NAME             # <<<<<<<<<<<<<<
 *     VERSION_STRING = HB_OT_NAME_ID_VERSION_STRING
 *     POSTSCRIPT_NAME = HB_OT_NAME_ID_POSTSCRIPT_NAME
*/
  __pyx_t_9 = __Pyx_PyLong_From_hb_ot_name_id_predefined_t(HB_OT_NAME_ID_FULL_NAME); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 348, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_FULL_NAME, __pyx_t_9) < (0)) __PYX_ERR(1, 348, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":349
 *     UNIQUE_ID = HB_OT_NAME_ID_UNIQUE_ID
 *     FULL_NAME = HB_OT_NAME_ID_FULL_NAME
 *     VERSION_STRING = HB_OT_NAME_ID_VERSION_STRING             # <<<<<<<<<<<<<<
 *     POSTSCRIPT_NAME = HB_OT_NAME_ID_POSTSCRIPT_NAME
 *     TRADEMARK = HB_OT_NAME_ID_TRADEMARK
*/
  __pyx_t_9 = __Pyx_PyLong_From_hb_ot_name_id_predefined_t(HB_OT_NAME_ID_VERSION_STRING); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 349, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_VERSION_STRING, __pyx_t_9) < (0)) __PYX_ERR(1, 349, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":350
 *     FULL_NAME = HB_OT_NAME_ID_FULL_NAME
 *     VERSION_STRING = HB_OT_NAME_ID_VERSION_STRING
 *     POSTSCRIPT_NAME = HB_OT_NAME_ID_POSTSCRIPT_NAME             # <<<<<<<<<<<<<<
 *     TRADEMARK = HB_OT_NAME_ID_TRADEMARK
 *     MANUFACTURER = HB_OT_NAME_ID_MANUFACTURER
*/
  __pyx_t_9 = __Pyx_PyLong_From_hb_ot_name_id_predefined_t(HB_OT_NAME_ID_POSTSCRIPT_NAME); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 350, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_POSTSCRIPT_NAME, __pyx_t_9) < (0)) __PYX_ERR(1, 350, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":351
 *     VERSION_STRING = HB_OT_NAME_ID_VERSION_STRING
 *     POSTSCRIPT_NAME = HB_OT_NAME_ID_POSTSCRIPT_NAME
 *     TRADEMARK = HB_OT_NAME_ID_TRADEMARK             # <<<<<<<<<<<<<<
 *     MANUFACTURER = HB_OT_NAME_ID_MANUFACTURER
 *     DESIGNER = HB_OT_NAME_ID_DESIGNER
*/
  __pyx_t_9 = __Pyx_PyLong_From_hb_ot_name_id_predefined_t(HB_OT_NAME_ID_TRADEMARK); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 351, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_TRADEMARK, __pyx_t_9) < (0)) __PYX_ERR(1, 351, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":352
 *     POSTSCRIPT_NAME = HB_OT_NAME_ID_POSTSCRIPT_NAME
 *     TRADEMARK = HB_OT_NAME_ID_TRADEMARK
 *     MANUFACTURER = HB_OT_NAME_ID_MANUFACTURER             # <<<<<<<<<<<<<<
 *     DESIGNER = HB_OT_NAME_ID_DESIGNER
 *     DESCRIPTION = HB_OT_NAME_ID_DESCRIPTION
*/
  __pyx_t_9 = __Pyx_PyLong_From_hb_ot_name_id_predefined_t(HB_OT_NAME_ID_MANUFACTURER); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 352, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_MANUFACTURER, __pyx_t_9) < (0)) __PYX_ERR(1, 352, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":353
 *     TRADEMARK = HB_OT_NAME_ID_TRADEMARK
 *     MANUFACTURER = HB_OT_NAME_ID_MANUFACTURER
 *     DESIGNER = HB_OT_NAME_ID_DESIGNER             # <<<<<<<<<<<<<<
 *     DESCRIPTION = HB_OT_NAME_ID_DESCRIPTION
 *     VENDOR_URL = HB_OT_NAME_ID_VENDOR_URL
*/
  __pyx_t_9 = __Pyx_PyLong_From_hb_ot_name_id_predefined_t(HB_OT_NAME_ID_DESIGNER); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 353, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_DESIGNER, __pyx_t_9) < (0)) __PYX_ERR(1, 353, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":354
 *     MANUFACTURER = HB_OT_NAME_ID_MANUFACTURER
 *     DESIGNER = HB_OT_NAME_ID_DESIGNER
 *     DESCRIPTION = HB_OT_NAME_ID_DESCRIPTION             # <<<<<<<<<<<<<<
 *     VENDOR_URL = HB_OT_NAME_ID_VENDOR_URL
 *     DESIGNER_URL = HB_OT_NAME_ID_DESIGNER_URL
*/
  __pyx_t_9 = __Pyx_PyLong_From_hb_ot_name_id_predefined_t(HB_OT_NAME_ID_DESCRIPTION); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 354, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_DESCRIPTION, __pyx_t_9) < (0)) __PYX_ERR(1, 354, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":355
 *     DESIGNER = HB_OT_NAME_ID_DESIGNER
 *     DESCRIPTION = HB_OT_NAME_ID_DESCRIPTION
 *     VENDOR_URL = HB_OT_NAME_ID_VENDOR_URL             # <<<<<<<<<<<<<<
 *     DESIGNER_URL = HB_OT_NAME_ID_DESIGNER_URL
 *     LICENSE = HB_OT_NAME_ID_LICENSE
*/
  __pyx_t_9 = __Pyx_PyLong_From_hb_ot_name_id_predefined_t(HB_OT_NAME_ID_VENDOR_URL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 355, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_VENDOR_URL, __pyx_t_9) < (0)) __PYX_ERR(1, 355, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":356
 *     DESCRIPTION = HB_OT_NAME_ID_DESCRIPTION
 *     VENDOR_URL = HB_OT_NAME_ID_VENDOR_URL
 *     DESIGNER_URL = HB_OT_NAME_ID_DESIGNER_URL             # <<<<<<<<<<<<<<
 *     LICENSE = HB_OT_NAME_ID_LICENSE
 *     LICENSE_URL = HB_OT_NAME_ID_LICENSE_URL
*/
  __pyx_t_9 = __Pyx_PyLong_From_hb_ot_name_id_predefined_t(HB_OT_NAME_ID_DESIGNER_URL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 356, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_DESIGNER_URL, __pyx_t_9) < (0)) __PYX_ERR(1, 356, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":357
 *     VENDOR_URL = HB_OT_NAME_ID_VENDOR_URL
 *     DESIGNER_URL = HB_OT_NAME_ID_DESIGNER_URL
 *     LICENSE = HB_OT_NAME_ID_LICENSE             # <<<<<<<<<<<<<<
 *     LICENSE_URL = HB_OT_NAME_ID_LICENSE_URL
 *     TYPOGRAPHIC_FAMILY = HB_OT_NAME_ID_TYPOGRAPHIC_FAMILY
*/
  __pyx_t_9 = __Pyx_PyLong_From_hb_ot_name_id_predefined_t(HB_OT_NAME_ID_LICENSE); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 357, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_LICENSE, __pyx_t_9) < (0)) __PYX_ERR(1, 357, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":358
 *     DESIGNER_URL = HB_OT_NAME_ID_DESIGNER_URL
 *     LICENSE = HB_OT_NAME_ID_LICENSE
 *     LICENSE_URL = HB_OT_NAME_ID_LICENSE_URL             # <<<<<<<<<<<<<<
 *     TYPOGRAPHIC_FAMILY = HB_OT_NAME_ID_TYPOGRAPHIC_FAMILY
 *     TYPOGRAPHIC_SUBFAMILY = HB_OT_NAME_ID_TYPOGRAPHIC_SUBFAMILY
*/
  __pyx_t_9 = __Pyx_PyLong_From_hb_ot_name_id_predefined_t(HB_OT_NAME_ID_LICENSE_URL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 358, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_LICENSE_URL, __pyx_t_9) < (0)) __PYX_ERR(1, 358, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":359
 *     LICENSE = HB_OT_NAME_ID_LICENSE
 *     LICENSE_URL = HB_OT_NAME_ID_LICENSE_URL
 *     TYPOGRAPHIC_FAMILY = HB_OT_NAME_ID_TYPOGRAPHIC_FAMILY             # <<<<<<<<<<<<<<
 *     TYPOGRAPHIC_SUBFAMILY = HB_OT_NAME_ID_TYPOGRAPHIC_SUBFAMILY
 *     MAC_FULL_NAME = HB_OT_NAME_ID_MAC_FULL_NAME
*/
  __pyx_t_9 = __Pyx_PyLong_From_hb_ot_name_id_predefined_t(HB_OT_NAME_ID_TYPOGRAPHIC_FAMILY); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 359, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_TYPOGRAPHIC_FAMILY, __pyx_t_9) < (0)) __PYX_ERR(1, 359, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":360
 *     LICENSE_URL = HB_OT_NAME_ID_LICENSE_URL
 *     TYPOGRAPHIC_FAMILY = HB_OT_NAME_ID_TYPOGRAPHIC_FAMILY
 *     TYPOGRAPHIC_SUBFAMILY = HB_OT_NAME_ID_TYPOGRAPHIC_SUBFAMILY             # <<<<<<<<<<<<<<
 *     MAC_FULL_NAME = HB_OT_NAME_ID_MAC_FULL_NAME
 *     SAMPLE_TEXT = HB_OT_NAME_ID_SAMPLE_TEXT
*/
  __pyx_t_9 = __Pyx_PyLong_From_hb_ot_name_id_predefined_t(HB_OT_NAME_ID_TYPOGRAPHIC_SUBFAMILY); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 360, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_TYPOGRAPHIC_SUBFAMILY, __pyx_t_9) < (0)) __PYX_ERR(1, 360, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":361
 *     TYPOGRAPHIC_FAMILY = HB_OT_NAME_ID_TYPOGRAPHIC_FAMILY
 *     TYPOGRAPHIC_SUBFAMILY = HB_OT_NAME_ID_TYPOGRAPHIC_SUBFAMILY
 *     MAC_FULL_NAME = HB_OT_NAME_ID_MAC_FULL_NAME             # <<<<<<<<<<<<<<
 *     SAMPLE_TEXT = HB_OT_NAME_ID_SAMPLE_TEXT
 *     CID_FINDFONT_NAME = HB_OT_NAME_ID_CID_FINDFONT_NAME
*/
  __pyx_t_9 = __Pyx_PyLong_From_hb_ot_name_id_predefined_t(HB_OT_NAME_ID_MAC_FULL_NAME); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 361, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_MAC_FULL_NAME, __pyx_t_9) < (0)) __PYX_ERR(1, 361, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":362
 *     TYPOGRAPHIC_SUBFAMILY = HB_OT_NAME_ID_TYPOGRAPHIC_SUBFAMILY
 *     MAC_FULL_NAME = HB_OT_NAME_ID_MAC_FULL_NAME
 *     SAMPLE_TEXT = HB_OT_NAME_ID_SAMPLE_TEXT             # <<<<<<<<<<<<<<
 *     CID_FINDFONT_NAME = HB_OT_NAME_ID_CID_FINDFONT_NAME
 *     WWS_FAMILY = HB_OT_NAME_ID_WWS_FAMILY
*/
  __pyx_t_9 = __Pyx_PyLong_From_hb_ot_name_id_predefined_t(HB_OT_NAME_ID_SAMPLE_TEXT); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 362, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_SAMPLE_TEXT, __pyx_t_9) < (0)) __PYX_ERR(1, 362, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":363
 *     MAC_FULL_NAME = HB_OT_NAME_ID_MAC_FULL_NAME
 *     SAMPLE_TEXT = HB_OT_NAME_ID_SAMPLE_TEXT
 *     CID_FINDFONT_NAME = HB_OT_NAME_ID_CID_FINDFONT_NAME             # <<<<<<<<<<<<<<
 *     WWS_FAMILY = HB_OT_NAME_ID_WWS_FAMILY
 *     WWS_SUBFAMILY = HB_OT_NAME_ID_WWS_SUBFAMILY
*/
  __pyx_t_9 = __Pyx_PyLong_From_hb_ot_name_id_predefined_t(HB_OT_NAME_ID_CID_FINDFONT_NAME); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 363, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_CID_FINDFONT_NAME, __pyx_t_9) < (0)) __PYX_ERR(1, 363, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":364
 *     SAMPLE_TEXT = HB_OT_NAME_ID_SAMPLE_TEXT
 *     CID_FINDFONT_NAME = HB_OT_NAME_ID_CID_FINDFONT_NAME
 *     WWS_FAMILY = HB_OT_NAME_ID_WWS_FAMILY             # <<<<<<<<<<<<<<
 *     WWS_SUBFAMILY = HB_OT_NAME_ID_WWS_SUBFAMILY
 *     LIGHT_BACKGROUND = HB_OT_NAME_ID_LIGHT_BACKGROUND
*/
  __pyx_t_9 = __Pyx_PyLong_From_hb_ot_name_id_predefined_t(HB_OT_NAME_ID_WWS_FAMILY); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 364, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_WWS_FAMILY, __pyx_t_9) < (0)) __PYX_ERR(1, 364, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":365
 *     CID_FINDFONT_NAME = HB_OT_NAME_ID_CID_FINDFONT_NAME
 *     WWS_FAMILY = HB_OT_NAME_ID_WWS_FAMILY
 *     WWS_SUBFAMILY = HB_OT_NAME_ID_WWS_SUBFAMILY             # <<<<<<<<<<<<<<
 *     LIGHT_BACKGROUND = HB_OT_NAME_ID_LIGHT_BACKGROUND
 *     DARK_BACKGROUND = HB_OT_NAME_ID_DARK_BACKGROUND
*/
  __pyx_t_9 = __Pyx_PyLong_From_hb_ot_name_id_predefined_t(HB_OT_NAME_ID_WWS_SUBFAMILY); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 365, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_WWS_SUBFAMILY, __pyx_t_9) < (0)) __PYX_ERR(1, 365, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":366
 *     WWS_FAMILY = HB_OT_NAME_ID_WWS_FAMILY
 *     WWS_SUBFAMILY = HB_OT_NAME_ID_WWS_SUBFAMILY
 *     LIGHT_BACKGROUND = HB_OT_NAME_ID_LIGHT_BACKGROUND             # <<<<<<<<<<<<<<
 *     DARK_BACKGROUND = HB_OT_NAME_ID_DARK_BACKGROUND
 *     VARIATIONS_PS_PREFIX = HB_OT_NAME_ID_VARIATIONS_PS_PREFIX
*/
  __pyx_t_9 = __Pyx_PyLong_From_hb_ot_name_id_predefined_t(HB_OT_NAME_ID_LIGHT_BACKGROUND); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 366, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_LIGHT_BACKGROUND, __pyx_t_9) < (0)) __PYX_ERR(1, 366, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":367
 *     WWS_SUBFAMILY = HB_OT_NAME_ID_WWS_SUBFAMILY
 *     LIGHT_BACKGROUND = HB_OT_NAME_ID_LIGHT_BACKGROUND
 *     DARK_BACKGROUND = HB_OT_NAME_ID_DARK_BACKGROUND             # <<<<<<<<<<<<<<
 *     VARIATIONS_PS_PREFIX = HB_OT_NAME_ID_VARIATIONS_PS_PREFIX
 *     INVALID = HB_OT_NAME_ID_INVALID
*/
  __pyx_t_9 = __Pyx_PyLong_From_hb_ot_name_id_predefined_t(HB_OT_NAME_ID_DARK_BACKGROUND); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 367, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_DARK_BACKGROUND, __pyx_t_9) < (0)) __PYX_ERR(1, 367, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":368
 *     LIGHT_BACKGROUND = HB_OT_NAME_ID_LIGHT_BACKGROUND
 *     DARK_BACKGROUND = HB_OT_NAME_ID_DARK_BACKGROUND
 *     VARIATIONS_PS_PREFIX = HB_OT_NAME_ID_VARIATIONS_PS_PREFIX             # <<<<<<<<<<<<<<
 *     INVALID = HB_OT_NAME_ID_INVALID
 * 
*/
  __pyx_t_9 = __Pyx_PyLong_From_hb_ot_name_id_predefined_t(HB_OT_NAME_ID_VARIATIONS_PS_PREFIX); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 368, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_VARIATIONS_PS_PREFIX, __pyx_t_9) < (0)) __PYX_ERR(1, 368, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":369
 *     DARK_BACKGROUND = HB_OT_NAME_ID_DARK_BACKGROUND
 *     VARIATIONS_PS_PREFIX = HB_OT_NAME_ID_VARIATIONS_PS_PREFIX
 *     INVALID = HB_OT_NAME_ID_INVALID             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_9 = __Pyx_PyLong_From_hb_ot_name_id_predefined_t(HB_OT_NAME_ID_INVALID); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 369, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_INVALID, __pyx_t_9) < (0)) __PYX_ERR(1, 369, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":233
 * 
 * 
 * class OTNameIdPredefined(IntEnum):             # <<<<<<<<<<<<<<
 *     """Predefined values for the OpenType ``name`` table Name ID.
 * 
*/
  __pyx_t_9 = __Pyx_Py3ClassCreate(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_OTNameIdPredefined, __pyx_t_2, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 233, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_OTNameIdPredefined, __pyx_t_9) < (0)) __PYX_ERR(1, 233, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_face.pxi":372
 * 
 * 
 * class OTNameEntry(NamedTuple):             # <<<<<<<<<<<<<<
 *     """Structure representing a name ID in a particular language.
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_NamedTuple); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 372, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = PyTuple_Pack(1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 372, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 372, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 372, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_9 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_mstate_global->__pyx_n_u_OTNameEntry, __pyx_mstate_global->__pyx_n_u_OTNameEntry, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_Structure_representing_a_name_ID); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 372, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (__pyx_t_2 != __pyx_t_6) {
    if (unlikely((PyDict_SetItemString(__pyx_t_9, "__orig_bases__", __pyx_t_6) < 0))) __PYX_ERR(1, 372, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 372, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_name_id, __pyx_mstate_global->__pyx_kp_u_OTNameIdPredefined_int) < (0)) __PYX_ERR(1, 372, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_language, __pyx_mstate_global->__pyx_kp_u_str_None) < (0)) __PYX_ERR(1, 372, __pyx_L1_error)
  if (__Pyx_SetNameInClass(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_annotations, __pyx_t_6) < (0)) __PYX_ERR(1, 372, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_face.pxi":382
 *     :class:`int` if it does not match any of the predefined ones."""
 *     language: str | None
 *     """The BCP 47 language tag, or ``None`` if the language cannot be             # <<<<<<<<<<<<<<
 *     determined."""
 * 
*/
  __pyx_t_6 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_OTNameEntry, __pyx_t_2, __pyx_t_9, NULL, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 372, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_OTNameEntry, __pyx_t_6) < (0)) __PYX_ERR(1, 372, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_face.pxi":434
 *         return wrapper
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     @deprecated("Face()", since="0.10.0")
 *     def create(cls, blob: bytes, index: int = 0) -> Face:
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 434, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_blob, __pyx_mstate_global->__pyx_n_u_bytes) < (0)) __PYX_ERR(1, 434, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_index, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(1, 434, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(1, 434, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_5create, __Pyx_CYFUNCTION_CLASSMETHOD | __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Face_create, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[68])); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 434, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[2]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, __pyx_mstate_global->__pyx_n_u_create, __pyx_t_5) < (0)) __PYX_ERR(1, 434, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_face.pxi":435
 * 
 *     @classmethod
 *     @deprecated("Face()", since="0.10.0")             # <<<<<<<<<<<<<<
 *     def create(cls, blob: bytes, index: int = 0) -> Face:
 *         cdef Face inst = cls(blob, index)
*/
  __pyx_t_2 = NULL;
  __pyx_t_6 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 435, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_6, __pyx_mstate_global->__pyx_kp_u_Face_2};
    __pyx_t_7 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 435, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_10_0, __pyx_t_7, __pyx_callargs+2, 0) < (0)) __PYX_ERR(1, 435, __pyx_L1_error)
    __pyx_t_9 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_10, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_7);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 435, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
  }

  /* "src/uharfbuzz/_face.pxi":434
 *         return wrapper
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     @deprecated("Face()", since="0.10.0")
 *     def create(cls, blob: bytes, index: int = 0) -> Face:
*/
  __Pyx_GetNameInClass(__pyx_t_10, (PyObject*)__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, __pyx_mstate_global->__pyx_n_u_create); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 434, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_10};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_9, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 435, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  __pyx_t_9 = __Pyx_Method_ClassMethod(__pyx_t_5); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 434, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, __pyx_mstate_global->__pyx_n_u_create, __pyx_t_9) < (0)) __PYX_ERR(1, 434, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":440
 *         return inst
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def create_for_tables(cls,
 *                           func: Callable[[
*/
  __pyx_t_9 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 440, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_func, __pyx_mstate_global->__pyx_kp_u_Callable_Face_str_object_bytes) < (0)) __PYX_ERR(1, 440, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_user_data, __pyx_mstate_global->__pyx_n_u_object) < (0)) __PYX_ERR(1, 440, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(1, 440, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_7create_for_tables, __Pyx_CYFUNCTION_CLASSMETHOD | __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Face_create_for_tables, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[69])); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 440, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_9);
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, __pyx_mstate_global->__pyx_n_u_create_for_tables, __pyx_t_5) < (0)) __PYX_ERR(1, 440, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_GetNameInClass(__pyx_t_5, (PyObject*)__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, __pyx_mstate_global->__pyx_n_u_create_for_tables); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 440, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_9 = __Pyx_Method_ClassMethod(__pyx_t_5); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 440, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, __pyx_mstate_global->__pyx_n_u_create_for_tables, __pyx_t_9) < (0)) __PYX_ERR(1, 440, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":552
 *         return Blob.from_ptr(blob)
 * 
 *     def reference_table(self, tag: str) -> Blob:             # <<<<<<<<<<<<<<
 *         """Fetches a reference to the specified table within the face.
 * 
*/
  __pyx_t_9 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 552, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_tag, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(1, 552, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_Blob) < (0)) __PYX_ERR(1, 552, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_9reference_table, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Face_reference_table, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[70])); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 552, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_9);
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, __pyx_mstate_global->__pyx_n_u_reference_table, __pyx_t_5) < (0)) __PYX_ERR(1, 552, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_face.pxi":570
 *         return Blob.from_ptr(blob)
 * 
 *     def set_get_table_tags_func(self,             # <<<<<<<<<<<<<<
 *                                 func: Callable[[Face, object], List[str]],
 *                                 user_data: object = None):
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 570, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_func, __pyx_mstate_global->__pyx_kp_u_Callable_Face_object_List_str) < (0)) __PYX_ERR(1, 570, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_user_data, __pyx_mstate_global->__pyx_n_u_object) < (0)) __PYX_ERR(1, 570, __pyx_L1_error)
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_11set_get_table_tags_func, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Face_set_get_table_tags_func, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[71])); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 570, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_9, __pyx_mstate_global->__pyx_tuple[3]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_9, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, __pyx_mstate_global->__pyx_n_u_set_get_table_tags_func, __pyx_t_9) < (0)) __PYX_ERR(1, 570, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":640
 *         return s
 * 
 *     def variation_unicodes(self, variation_selector: int) -> Set[int]:             # <<<<<<<<<<<<<<
 *         """All Unicode characters for ``variation_selector`` covered by the
 *         face.
*/
  __pyx_t_9 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 640, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_variation_selector, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(1, 640, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_Set_int) < (0)) __PYX_ERR(1, 640, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_13variation_unicodes, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Face_variation_unicodes, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[72])); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 640, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_9);
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, __pyx_mstate_global->__pyx_n_u_variation_unicodes, __pyx_t_5) < (0)) __PYX_ERR(1, 640, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_face.pxi":749
 *         return hb_ot_math_has_data(self._hb_face)
 * 
 *     def is_glyph_extended_math_shape(self, glyph: int) -> bool:             # <<<<<<<<<<<<<<
 *         """Tests whether the given glyph index is an extended shape in the
 *         face.
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 749, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(1, 749, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(1, 749, __pyx_L1_error)
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_15is_glyph_extended_math_shape, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Face_is_glyph_extended_math_shap, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[73])); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 749, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_9, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, __pyx_mstate_global->__pyx_n_u_is_glyph_extended_math_shape, __pyx_t_9) < (0)) __PYX_ERR(1, 749, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":774
 *         return hb_ot_color_has_layers(self._hb_face)
 * 
 *     def get_glyph_color_layers(self, glyph: int) -> List[OTColorLayer]:             # <<<<<<<<<<<<<<
 *         """Fetches a list of all color layers for the specified glyph index in
 *         the face.
*/
  __pyx_t_9 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 774, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(1, 774, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_List_OTColorLayer) < (0)) __PYX_ERR(1, 774, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_17get_glyph_color_layers, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Face_get_glyph_color_layers, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[74])); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 774, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_9);
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, __pyx_mstate_global->__pyx_n_u_get_glyph_color_layers, __pyx_t_5) < (0)) __PYX_ERR(1, 774, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_face.pxi":806
 *         return hb_ot_color_has_palettes(self._hb_face)
 * 
 *     def get_color_palette(self, palette_index: int) -> OTColorPalette:             # <<<<<<<<<<<<<<
 *         """Fetches the color palette at the specified index.
 * 
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 806, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_palette_index, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(1, 806, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_OTColorPalette) < (0)) __PYX_ERR(1, 806, __pyx_L1_error)
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_19get_color_palette, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Face_get_color_palette, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[75])); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 806, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_9, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, __pyx_mstate_global->__pyx_n_u_get_color_palette, __pyx_t_9) < (0)) __PYX_ERR(1, 806, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":853
 *         return palettes
 * 
 *     def color_palette_color_get_name_id(self, color_index: int) -> int | None:             # <<<<<<<<<<<<<<
 *         """Fetches the ``name`` table Name ID that provides display names
 *         for the specified color in the face's ``CPAL`` color palette.
*/
  __pyx_t_9 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 853, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_color_index, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(1, 853, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_int_None) < (0)) __PYX_ERR(1, 853, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_21color_palette_color_get_name_id, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Face_color_palette_color_get_nam, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[76])); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 853, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_9);
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, __pyx_mstate_global->__pyx_n_u_color_palette_color_get_name_id, __pyx_t_5) < (0)) __PYX_ERR(1, 853, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_face.pxi":880
 *         return hb_ot_color_has_paint(self._hb_face)
 * 
 *     def glyph_has_color_paint(self, glyph: int) -> bool:             # <<<<<<<<<<<<<<
 *         """Tests whether the face includes COLRv1 paint data for ``glyph``.
 * 
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 880, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(1, 880, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(1, 880, __pyx_L1_error)
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_23glyph_has_color_paint, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Face_glyph_has_color_paint, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[77])); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 880, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_9, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, __pyx_mstate_global->__pyx_n_u_glyph_has_color_paint, __pyx_t_9) < (0)) __PYX_ERR(1, 880, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":901
 *         return hb_ot_color_has_svg(self._hb_face)
 * 
 *     def get_glyph_color_svg(self, glyph: int) -> Blob:             # <<<<<<<<<<<<<<
 *         """Fetches the SVG document for a glyph. The blob may be either
 *         plain text or gzip-encoded.
*/
  __pyx_t_9 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 901, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(1, 901, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_Blob) < (0)) __PYX_ERR(1, 901, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_25get_glyph_color_svg, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Face_get_glyph_color_svg, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[78])); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 901, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_9);
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, __pyx_mstate_global->__pyx_n_u_get_glyph_color_svg, __pyx_t_5) < (0)) __PYX_ERR(1, 901, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_face.pxi":939
 *         return hb_ot_layout_has_glyph_classes(self._hb_face)
 * 
 *     def get_layout_glyph_class(self, glyph: int) -> OTLayoutGlyphClass:             # <<<<<<<<<<<<<<
 *         """Fetches the GDEF class of the requested glyph.
 * 
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 939, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(1, 939, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_OTLayoutGlyphClass) < (0)) __PYX_ERR(1, 939, __pyx_L1_error)
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_27get_layout_glyph_class, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Face_get_layout_glyph_class, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[79])); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 939, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_9, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, __pyx_mstate_global->__pyx_n_u_get_layout_glyph_class, __pyx_t_9) < (0)) __PYX_ERR(1, 939, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":970
 *         return hb_ot_layout_has_substitution(self._hb_face)
 * 
 *     def get_lookup_glyph_alternates(self, lookup_index: int, glyph: int) -> List[int]:             # <<<<<<<<<<<<<<
 *         """Fetches alternates of a glyph from a given GSUB lookup index.
 * 
*/
  __pyx_t_9 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 970, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_lookup_index, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(1, 970, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(1, 970, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_List_int) < (0)) __PYX_ERR(1, 970, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_29get_lookup_glyph_alternates, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Face_get_lookup_glyph_alternates, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[80])); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 970, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_9);
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, __pyx_mstate_global->__pyx_n_u_get_lookup_glyph_alternates, __pyx_t_5) < (0)) __PYX_ERR(1, 970, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_face.pxi":994
 *         return alternates
 * 
 *     def get_language_feature_tags(self,             # <<<<<<<<<<<<<<
 *                                   tag: str,
 *                                   script_index: int = 0,
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 994, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_tag, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(1, 994, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_script_index, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(1, 994, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_language_index, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(1, 994, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_List_str) < (0)) __PYX_ERR(1, 994, __pyx_L1_error)
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_31get_language_feature_tags, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Face_get_language_feature_tags, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[81])); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 994, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_9, __pyx_mstate_global->__pyx_tuple[4]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_9, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, __pyx_mstate_global->__pyx_n_u_get_language_feature_tags, __pyx_t_9) < (0)) __PYX_ERR(1, 994, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":1033
 *         return tags
 * 
 *     def get_script_language_tags(self, tag: str, script_index: int = 0) -> List[str]:             # <<<<<<<<<<<<<<
 *         """Fetches a list of language tags in the face's GSUB or GPOS table,
 *         underneath the specified script index.
*/
  __pyx_t_9 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 1033, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_tag, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(1, 1033, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_script_index, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(1, 1033, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_List_str) < (0)) __PYX_ERR(1, 1033, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_33get_script_language_tags, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Face_get_script_language_tags, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[82])); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 1033, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[2]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_9);
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, __pyx_mstate_global->__pyx_n_u_get_script_language_tags, __pyx_t_5) < (0)) __PYX_ERR(1, 1033, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_face.pxi":1069
 *         return tags
 * 
 *     def get_table_script_tags(self, tag: str) -> List[str]:             # <<<<<<<<<<<<<<
 *         """Fetches a list of all scripts enumerated in the specified face's
 *         GSUB or GPOS table.
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 1069, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_tag, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(1, 1069, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_List_str) < (0)) __PYX_ERR(1, 1069, __pyx_L1_error)
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_35get_table_script_tags, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Face_get_table_script_tags, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[83])); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 1069, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_9, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, __pyx_mstate_global->__pyx_n_u_get_table_script_tags, __pyx_t_9) < (0)) __PYX_ERR(1, 1069, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_face.pxi":1103
 *         return tags
 * 
 *     def list_names(self) -> List[OTNameEntry]:             # <<<<<<<<<<<<<<
 *         """Enumerates all available name IDs and language combinations.
 * 
*/
  __pyx_t_9 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 1103, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_List_OTNameEntry) < (0)) __PYX_ERR(1, 1103, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_37list_names, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Face_list_names, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[84])); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 1103, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_9);
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, __pyx_mstate_global->__pyx_n_u_list_names, __pyx_t_5) < (0)) __PYX_ERR(1, 1103, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_face.pxi":1133
 *         return ret
 * 
 *     def get_name(self, name_id: OTNameIdPredefined | int, language: str | None = None) -> str | None:             # <<<<<<<<<<<<<<
 *         """Fetches a font name from the OpenType ``name`` table.
 * 
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 1133, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_name_id, __pyx_mstate_global->__pyx_kp_u_OTNameIdPredefined_int) < (0)) __PYX_ERR(1, 1133, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_language, __pyx_mstate_global->__pyx_kp_u_str_None) < (0)) __PYX_ERR(1, 1133, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_str_None) < (0)) __PYX_ERR(1, 1133, __pyx_L1_error)
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_39get_name, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Face_get_name, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[85])); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 1133, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_9, __pyx_mstate_global->__pyx_tuple[3]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_9, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Face, __pyx_mstate_global->__pyx_n_u_get_name, __pyx_t_9) < (0)) __PYX_ERR(1, 1133, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_41__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Face___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[86])); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_9) < (0)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Face_43__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Face___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[87])); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_9) < (0)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_draw.pxi":65
 *         hb_draw_funcs_destroy(self._hb_drawfuncs)
 * 
 *     @deprecated("Font.draw_glyph()", since="0.34.0")             # <<<<<<<<<<<<<<
 *     def get_glyph_shape(self, font: Font, gid: int):
 *         font.draw_glyph(gid, self)
*/
  __pyx_t_9 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(8, 65, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_font, __pyx_mstate_global->__pyx_n_u_Font) < (0)) __PYX_ERR(8, 65, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_gid, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(8, 65, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_9DrawFuncs_5get_glyph_shape, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_DrawFuncs_get_glyph_shape, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[88])); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 65, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_9);
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_DrawFuncs, __pyx_mstate_global->__pyx_n_u_get_glyph_shape, __pyx_t_5) < (0)) __PYX_ERR(8, 65, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_9 = NULL;
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 65, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_Font_draw_glyph};
    __pyx_t_6 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 65, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_34_0, __pyx_t_6, __pyx_callargs+2, 0) < (0)) __PYX_ERR(8, 65, __pyx_L1_error)
    __pyx_t_10 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_6);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_10)) __PYX_ERR(8, 65, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
  }
  __Pyx_GetNameInClass(__pyx_t_7, (PyObject*)__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_DrawFuncs, __pyx_mstate_global->__pyx_n_u_get_glyph_shape); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 65, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_7};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_10, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 65, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_DrawFuncs, __pyx_mstate_global->__pyx_n_u_get_glyph_shape, __pyx_t_5) < (0)) __PYX_ERR(8, 65, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_draw.pxi":69
 *         font.draw_glyph(gid, self)
 * 
 *     @deprecated("Font.draw_glyph()", since="0.34.0")             # <<<<<<<<<<<<<<
 *     def draw_glyph(self, font: Font, gid: int, draw_data: object = None):
 *         font.draw_glyph(gid, self, draw_data)
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 69, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_font, __pyx_mstate_global->__pyx_n_u_Font) < (0)) __PYX_ERR(8, 69, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gid, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(8, 69, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_draw_data, __pyx_mstate_global->__pyx_n_u_object) < (0)) __PYX_ERR(8, 69, __pyx_L1_error)
  __pyx_t_10 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_9DrawFuncs_7draw_glyph, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_DrawFuncs_draw_glyph, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[89])); if (unlikely(!__pyx_t_10)) __PYX_ERR(8, 69, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_10);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_10, __pyx_mstate_global->__pyx_tuple[3]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_10, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_DrawFuncs, __pyx_mstate_global->__pyx_n_u_draw_glyph, __pyx_t_10) < (0)) __PYX_ERR(8, 69, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  __pyx_t_5 = NULL;
  __pyx_t_9 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 69, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_9, __pyx_mstate_global->__pyx_kp_u_Font_draw_glyph};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 69, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_34_0, __pyx_t_2, __pyx_callargs+2, 0) < (0)) __PYX_ERR(8, 69, __pyx_L1_error)
    __pyx_t_7 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 69, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
  }
  __Pyx_GetNameInClass(__pyx_t_6, (PyObject*)__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_DrawFuncs, __pyx_mstate_global->__pyx_n_u_draw_glyph); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 69, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_6};
    __pyx_t_10 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_10)) __PYX_ERR(8, 69, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
  }
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_DrawFuncs, __pyx_mstate_global->__pyx_n_u_draw_glyph, __pyx_t_10) < (0)) __PYX_ERR(8, 69, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_draw.pxi":73
 *         font.draw_glyph(gid, self, draw_data)
 * 
 *     def set_move_to_func(self,             # <<<<<<<<<<<<<<
 *                          func: Callable[[
 *                              float,
*/
  __pyx_t_10 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_10)) __PYX_ERR(8, 73, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (PyDict_SetItem(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_func, __pyx_mstate_global->__pyx_kp_u_Callable_float_float_object_None) < (0)) __PYX_ERR(8, 73, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_user_data, __pyx_mstate_global->__pyx_n_u_object) < (0)) __PYX_ERR(8, 73, __pyx_L1_error)
  __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_9DrawFuncs_9set_move_to_func, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_DrawFuncs_set_move_to_func, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[90])); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 73, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_7);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_7, __pyx_mstate_global->__pyx_tuple[3]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_7, __pyx_t_10);
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_DrawFuncs, __pyx_mstate_global->__pyx_n_u_set_move_to_func, __pyx_t_7) < (0)) __PYX_ERR(8, 73, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_draw.pxi":97
 *             self._hb_drawfuncs, func_p, user_data_p, NULL)
 * 
 *     def set_line_to_func(self,             # <<<<<<<<<<<<<<
 *                          func: Callable[[
 *                              float,
*/
  __pyx_t_7 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 97, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (PyDict_SetItem(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_func, __pyx_mstate_global->__pyx_kp_u_Callable_float_float_object_None) < (0)) __PYX_ERR(8, 97, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_user_data, __pyx_mstate_global->__pyx_n_u_object) < (0)) __PYX_ERR(8, 97, __pyx_L1_error)
  __pyx_t_10 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_9DrawFuncs_11set_line_to_func, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_DrawFuncs_set_line_to_func, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[91])); if (unlikely(!__pyx_t_10)) __PYX_ERR(8, 97, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_10);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_10, __pyx_mstate_global->__pyx_tuple[3]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_10, __pyx_t_7);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_DrawFuncs, __pyx_mstate_global->__pyx_n_u_set_line_to_func, __pyx_t_10) < (0)) __PYX_ERR(8, 97, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_draw.pxi":121
 *             self._hb_drawfuncs, func_p, user_data_p, NULL)
 * 
 *     def set_cubic_to_func(self,             # <<<<<<<<<<<<<<
 *                           func: Callable[[
 *                              float,
*/
  __pyx_t_10 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_10)) __PYX_ERR(8, 121, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (PyDict_SetItem(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_func, __pyx_mstate_global->__pyx_kp_u_Callable_float_float_float_float) < (0)) __PYX_ERR(8, 121, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_user_data, __pyx_mstate_global->__pyx_n_u_object) < (0)) __PYX_ERR(8, 121, __pyx_L1_error)
  __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_9DrawFuncs_13set_cubic_to_func, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_DrawFuncs_set_cubic_to_func, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[92])); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 121, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_7);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_7, __pyx_mstate_global->__pyx_tuple[3]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_7, __pyx_t_10);
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_DrawFuncs, __pyx_mstate_global->__pyx_n_u_set_cubic_to_func, __pyx_t_7) < (0)) __PYX_ERR(8, 121, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_draw.pxi":149
 *             self._hb_drawfuncs, func_p, user_data_p, NULL)
 * 
 *     def set_quadratic_to_func(self,             # <<<<<<<<<<<<<<
 *                               func: Callable[[
 *                                  float,
*/
  __pyx_t_7 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 149, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (PyDict_SetItem(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_func, __pyx_mstate_global->__pyx_kp_u_Callable_float_float_float_float_2) < (0)) __PYX_ERR(8, 149, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_user_data, __pyx_mstate_global->__pyx_n_u_object) < (0)) __PYX_ERR(8, 149, __pyx_L1_error)
  __pyx_t_10 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_9DrawFuncs_15set_quadratic_to_func, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_DrawFuncs_set_quadratic_to_func, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[93])); if (unlikely(!__pyx_t_10)) __PYX_ERR(8, 149, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_10);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_10, __pyx_mstate_global->__pyx_tuple[3]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_10, __pyx_t_7);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_DrawFuncs, __pyx_mstate_global->__pyx_n_u_set_quadratic_to_func, __pyx_t_10) < (0)) __PYX_ERR(8, 149, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_draw.pxi":175
 *             self._hb_drawfuncs, func_p, user_data_p, NULL)
 * 
 *     def set_close_path_func(self,             # <<<<<<<<<<<<<<
 *                             func: Callable[[
 *                                 object
*/
  __pyx_t_10 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_10)) __PYX_ERR(8, 175, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (PyDict_SetItem(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_func, __pyx_mstate_global->__pyx_kp_u_Callable_object_None) < (0)) __PYX_ERR(8, 175, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_user_data, __pyx_mstate_global->__pyx_n_u_object) < (0)) __PYX_ERR(8, 175, __pyx_L1_error)
  __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_9DrawFuncs_17set_close_path_func, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_DrawFuncs_set_close_path_func, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[94])); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 175, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_7);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_7, __pyx_mstate_global->__pyx_tuple[3]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_7, __pyx_t_10);
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_DrawFuncs, __pyx_mstate_global->__pyx_n_u_set_close_path_func, __pyx_t_7) < (0)) __PYX_ERR(8, 175, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_9DrawFuncs_19__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_DrawFuncs___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[95])); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_7);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_7) < (0)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_9DrawFuncs_21__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_DrawFuncs___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[96])); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_7);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_7) < (0)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_paint.pxi":1
 * class PaintCompositeMode(IntEnum):             # <<<<<<<<<<<<<<
 *     """The values of this enumeration describe the compositing modes that can
 *     be used when combining temporary redirected drawing with the backdrop.
*/
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_10 = PyTuple_Pack(1, __pyx_t_7); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PEP560_update_bases(__pyx_t_10); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_6 = __Pyx_CalculateMetaclass(NULL, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_6, __pyx_t_7, __pyx_mstate_global->__pyx_n_u_PaintCompositeMode, __pyx_mstate_global->__pyx_n_u_PaintCompositeMode, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_The_values_of_this_enumeration_d); if (unlikely(!__pyx_t_5)) __PYX_ERR(9, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__pyx_t_7 != __pyx_t_10) {
    if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_10) < 0))) __PYX_ERR(9, 1, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":137
 *     <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-composite-mode-t>`_.
 *     """
 *     CLEAR = HB_PAINT_COMPOSITE_MODE_CLEAR             # <<<<<<<<<<<<<<
 *     SRC = HB_PAINT_COMPOSITE_MODE_SRC
 *     DEST = HB_PAINT_COMPOSITE_MODE_DEST
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_paint_composite_mode_t(HB_PAINT_COMPOSITE_MODE_CLEAR); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 137, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_CLEAR, __pyx_t_10) < (0)) __PYX_ERR(9, 137, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":138
 *     """
 *     CLEAR = HB_PAINT_COMPOSITE_MODE_CLEAR
 *     SRC = HB_PAINT_COMPOSITE_MODE_SRC             # <<<<<<<<<<<<<<
 *     DEST = HB_PAINT_COMPOSITE_MODE_DEST
 *     SRC_OVER = HB_PAINT_COMPOSITE_MODE_SRC_OVER
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_paint_composite_mode_t(HB_PAINT_COMPOSITE_MODE_SRC); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 138, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_SRC, __pyx_t_10) < (0)) __PYX_ERR(9, 138, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":139
 *     CLEAR = HB_PAINT_COMPOSITE_MODE_CLEAR
 *     SRC = HB_PAINT_COMPOSITE_MODE_SRC
 *     DEST = HB_PAINT_COMPOSITE_MODE_DEST             # <<<<<<<<<<<<<<
 *     SRC_OVER = HB_PAINT_COMPOSITE_MODE_SRC_OVER
 *     DEST_OVER = HB_PAINT_COMPOSITE_MODE_DEST_OVER
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_paint_composite_mode_t(HB_PAINT_COMPOSITE_MODE_DEST); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 139, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_DEST, __pyx_t_10) < (0)) __PYX_ERR(9, 139, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":140
 *     SRC = HB_PAINT_COMPOSITE_MODE_SRC
 *     DEST = HB_PAINT_COMPOSITE_MODE_DEST
 *     SRC_OVER = HB_PAINT_COMPOSITE_MODE_SRC_OVER             # <<<<<<<<<<<<<<
 *     DEST_OVER = HB_PAINT_COMPOSITE_MODE_DEST_OVER
 *     SRC_IN = HB_PAINT_COMPOSITE_MODE_SRC_IN
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_paint_composite_mode_t(HB_PAINT_COMPOSITE_MODE_SRC_OVER); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_SRC_OVER, __pyx_t_10) < (0)) __PYX_ERR(9, 140, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":141
 *     DEST = HB_PAINT_COMPOSITE_MODE_DEST
 *     SRC_OVER = HB_PAINT_COMPOSITE_MODE_SRC_OVER
 *     DEST_OVER = HB_PAINT_COMPOSITE_MODE_DEST_OVER             # <<<<<<<<<<<<<<
 *     SRC_IN = HB_PAINT_COMPOSITE_MODE_SRC_IN
 *     DEST_IN = HB_PAINT_COMPOSITE_MODE_DEST_IN
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_paint_composite_mode_t(HB_PAINT_COMPOSITE_MODE_DEST_OVER); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 141, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_DEST_OVER, __pyx_t_10) < (0)) __PYX_ERR(9, 141, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":142
 *     SRC_OVER = HB_PAINT_COMPOSITE_MODE_SRC_OVER
 *     DEST_OVER = HB_PAINT_COMPOSITE_MODE_DEST_OVER
 *     SRC_IN = HB_PAINT_COMPOSITE_MODE_SRC_IN             # <<<<<<<<<<<<<<
 *     DEST_IN = HB_PAINT_COMPOSITE_MODE_DEST_IN
 *     SRC_OUT = HB_PAINT_COMPOSITE_MODE_SRC_OUT
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_paint_composite_mode_t(HB_PAINT_COMPOSITE_MODE_SRC_IN); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 142, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_SRC_IN, __pyx_t_10) < (0)) __PYX_ERR(9, 142, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":143
 *     DEST_OVER = HB_PAINT_COMPOSITE_MODE_DEST_OVER
 *     SRC_IN = HB_PAINT_COMPOSITE_MODE_SRC_IN
 *     DEST_IN = HB_PAINT_COMPOSITE_MODE_DEST_IN             # <<<<<<<<<<<<<<
 *     SRC_OUT = HB_PAINT_COMPOSITE_MODE_SRC_OUT
 *     DEST_OUT = HB_PAINT_COMPOSITE_MODE_DEST_OUT
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_paint_composite_mode_t(HB_PAINT_COMPOSITE_MODE_DEST_IN); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 143, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_DEST_IN, __pyx_t_10) < (0)) __PYX_ERR(9, 143, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":144
 *     SRC_IN = HB_PAINT_COMPOSITE_MODE_SRC_IN
 *     DEST_IN = HB_PAINT_COMPOSITE_MODE_DEST_IN
 *     SRC_OUT = HB_PAINT_COMPOSITE_MODE_SRC_OUT             # <<<<<<<<<<<<<<
 *     DEST_OUT = HB_PAINT_COMPOSITE_MODE_DEST_OUT
 *     SRC_ATOP = HB_PAINT_COMPOSITE_MODE_SRC_ATOP
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_paint_composite_mode_t(HB_PAINT_COMPOSITE_MODE_SRC_OUT); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 144, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_SRC_OUT, __pyx_t_10) < (0)) __PYX_ERR(9, 144, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":145
 *     DEST_IN = HB_PAINT_COMPOSITE_MODE_DEST_IN
 *     SRC_OUT = HB_PAINT_COMPOSITE_MODE_SRC_OUT
 *     DEST_OUT = HB_PAINT_COMPOSITE_MODE_DEST_OUT             # <<<<<<<<<<<<<<
 *     SRC_ATOP = HB_PAINT_COMPOSITE_MODE_SRC_ATOP
 *     DEST_ATOP = HB_PAINT_COMPOSITE_MODE_DEST_ATOP
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_paint_composite_mode_t(HB_PAINT_COMPOSITE_MODE_DEST_OUT); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_DEST_OUT, __pyx_t_10) < (0)) __PYX_ERR(9, 145, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":146
 *     SRC_OUT = HB_PAINT_COMPOSITE_MODE_SRC_OUT
 *     DEST_OUT = HB_PAINT_COMPOSITE_MODE_DEST_OUT
 *     SRC_ATOP = HB_PAINT_COMPOSITE_MODE_SRC_ATOP             # <<<<<<<<<<<<<<
 *     DEST_ATOP = HB_PAINT_COMPOSITE_MODE_DEST_ATOP
 *     XOR = HB_PAINT_COMPOSITE_MODE_XOR
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_paint_composite_mode_t(HB_PAINT_COMPOSITE_MODE_SRC_ATOP); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 146, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_SRC_ATOP, __pyx_t_10) < (0)) __PYX_ERR(9, 146, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":147
 *     DEST_OUT = HB_PAINT_COMPOSITE_MODE_DEST_OUT
 *     SRC_ATOP = HB_PAINT_COMPOSITE_MODE_SRC_ATOP
 *     DEST_ATOP = HB_PAINT_COMPOSITE_MODE_DEST_ATOP             # <<<<<<<<<<<<<<
 *     XOR = HB_PAINT_COMPOSITE_MODE_XOR
 *     PLUS = HB_PAINT_COMPOSITE_MODE_PLUS
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_paint_composite_mode_t(HB_PAINT_COMPOSITE_MODE_DEST_ATOP); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 147, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_DEST_ATOP, __pyx_t_10) < (0)) __PYX_ERR(9, 147, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":148
 *     SRC_ATOP = HB_PAINT_COMPOSITE_MODE_SRC_ATOP
 *     DEST_ATOP = HB_PAINT_COMPOSITE_MODE_DEST_ATOP
 *     XOR = HB_PAINT_COMPOSITE_MODE_XOR             # <<<<<<<<<<<<<<
 *     PLUS = HB_PAINT_COMPOSITE_MODE_PLUS
 *     SCREEN = HB_PAINT_COMPOSITE_MODE_SCREEN
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_paint_composite_mode_t(HB_PAINT_COMPOSITE_MODE_XOR); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 148, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_XOR, __pyx_t_10) < (0)) __PYX_ERR(9, 148, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":149
 *     DEST_ATOP = HB_PAINT_COMPOSITE_MODE_DEST_ATOP
 *     XOR = HB_PAINT_COMPOSITE_MODE_XOR
 *     PLUS = HB_PAINT_COMPOSITE_MODE_PLUS             # <<<<<<<<<<<<<<
 *     SCREEN = HB_PAINT_COMPOSITE_MODE_SCREEN
 *     OVERLAY = HB_PAINT_COMPOSITE_MODE_OVERLAY
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_paint_composite_mode_t(HB_PAINT_COMPOSITE_MODE_PLUS); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 149, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_PLUS, __pyx_t_10) < (0)) __PYX_ERR(9, 149, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":150
 *     XOR = HB_PAINT_COMPOSITE_MODE_XOR
 *     PLUS = HB_PAINT_COMPOSITE_MODE_PLUS
 *     SCREEN = HB_PAINT_COMPOSITE_MODE_SCREEN             # <<<<<<<<<<<<<<
 *     OVERLAY = HB_PAINT_COMPOSITE_MODE_OVERLAY
 *     DARKEN = HB_PAINT_COMPOSITE_MODE_DARKEN
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_paint_composite_mode_t(HB_PAINT_COMPOSITE_MODE_SCREEN); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 150, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_SCREEN, __pyx_t_10) < (0)) __PYX_ERR(9, 150, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":151
 *     PLUS = HB_PAINT_COMPOSITE_MODE_PLUS
 *     SCREEN = HB_PAINT_COMPOSITE_MODE_SCREEN
 *     OVERLAY = HB_PAINT_COMPOSITE_MODE_OVERLAY             # <<<<<<<<<<<<<<
 *     DARKEN = HB_PAINT_COMPOSITE_MODE_DARKEN
 *     LIGHTEN = HB_PAINT_COMPOSITE_MODE_LIGHTEN
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_paint_composite_mode_t(HB_PAINT_COMPOSITE_MODE_OVERLAY); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 151, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_OVERLAY, __pyx_t_10) < (0)) __PYX_ERR(9, 151, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":152
 *     SCREEN = HB_PAINT_COMPOSITE_MODE_SCREEN
 *     OVERLAY = HB_PAINT_COMPOSITE_MODE_OVERLAY
 *     DARKEN = HB_PAINT_COMPOSITE_MODE_DARKEN             # <<<<<<<<<<<<<<
 *     LIGHTEN = HB_PAINT_COMPOSITE_MODE_LIGHTEN
 *     COLOR_DODGE = HB_PAINT_COMPOSITE_MODE_COLOR_DODGE
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_paint_composite_mode_t(HB_PAINT_COMPOSITE_MODE_DARKEN); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 152, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_DARKEN, __pyx_t_10) < (0)) __PYX_ERR(9, 152, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":153
 *     OVERLAY = HB_PAINT_COMPOSITE_MODE_OVERLAY
 *     DARKEN = HB_PAINT_COMPOSITE_MODE_DARKEN
 *     LIGHTEN = HB_PAINT_COMPOSITE_MODE_LIGHTEN             # <<<<<<<<<<<<<<
 *     COLOR_DODGE = HB_PAINT_COMPOSITE_MODE_COLOR_DODGE
 *     COLOR_BURN = HB_PAINT_COMPOSITE_MODE_COLOR_BURN
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_paint_composite_mode_t(HB_PAINT_COMPOSITE_MODE_LIGHTEN); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 153, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_LIGHTEN, __pyx_t_10) < (0)) __PYX_ERR(9, 153, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":154
 *     DARKEN = HB_PAINT_COMPOSITE_MODE_DARKEN
 *     LIGHTEN = HB_PAINT_COMPOSITE_MODE_LIGHTEN
 *     COLOR_DODGE = HB_PAINT_COMPOSITE_MODE_COLOR_DODGE             # <<<<<<<<<<<<<<
 *     COLOR_BURN = HB_PAINT_COMPOSITE_MODE_COLOR_BURN
 *     HARD_LIGHT = HB_PAINT_COMPOSITE_MODE_HARD_LIGHT
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_paint_composite_mode_t(HB_PAINT_COMPOSITE_MODE_COLOR_DODGE); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 154, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_COLOR_DODGE, __pyx_t_10) < (0)) __PYX_ERR(9, 154, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":155
 *     LIGHTEN = HB_PAINT_COMPOSITE_MODE_LIGHTEN
 *     COLOR_DODGE = HB_PAINT_COMPOSITE_MODE_COLOR_DODGE
 *     COLOR_BURN = HB_PAINT_COMPOSITE_MODE_COLOR_BURN             # <<<<<<<<<<<<<<
 *     HARD_LIGHT = HB_PAINT_COMPOSITE_MODE_HARD_LIGHT
 *     SOFT_LIGHT = HB_PAINT_COMPOSITE_MODE_SOFT_LIGHT
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_paint_composite_mode_t(HB_PAINT_COMPOSITE_MODE_COLOR_BURN); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 155, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_COLOR_BURN, __pyx_t_10) < (0)) __PYX_ERR(9, 155, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":156
 *     COLOR_DODGE = HB_PAINT_COMPOSITE_MODE_COLOR_DODGE
 *     COLOR_BURN = HB_PAINT_COMPOSITE_MODE_COLOR_BURN
 *     HARD_LIGHT = HB_PAINT_COMPOSITE_MODE_HARD_LIGHT             # <<<<<<<<<<<<<<
 *     SOFT_LIGHT = HB_PAINT_COMPOSITE_MODE_SOFT_LIGHT
 *     DIFFERENCE = HB_PAINT_COMPOSITE_MODE_DIFFERENCE
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_paint_composite_mode_t(HB_PAINT_COMPOSITE_MODE_HARD_LIGHT); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 156, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_HARD_LIGHT, __pyx_t_10) < (0)) __PYX_ERR(9, 156, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":157
 *     COLOR_BURN = HB_PAINT_COMPOSITE_MODE_COLOR_BURN
 *     HARD_LIGHT = HB_PAINT_COMPOSITE_MODE_HARD_LIGHT
 *     SOFT_LIGHT = HB_PAINT_COMPOSITE_MODE_SOFT_LIGHT             # <<<<<<<<<<<<<<
 *     DIFFERENCE = HB_PAINT_COMPOSITE_MODE_DIFFERENCE
 *     EXCLUSION = HB_PAINT_COMPOSITE_MODE_EXCLUSION
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_paint_composite_mode_t(HB_PAINT_COMPOSITE_MODE_SOFT_LIGHT); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 157, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_SOFT_LIGHT, __pyx_t_10) < (0)) __PYX_ERR(9, 157, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":158
 *     HARD_LIGHT = HB_PAINT_COMPOSITE_MODE_HARD_LIGHT
 *     SOFT_LIGHT = HB_PAINT_COMPOSITE_MODE_SOFT_LIGHT
 *     DIFFERENCE = HB_PAINT_COMPOSITE_MODE_DIFFERENCE             # <<<<<<<<<<<<<<
 *     EXCLUSION = HB_PAINT_COMPOSITE_MODE_EXCLUSION
 *     MULTIPLY = HB_PAINT_COMPOSITE_MODE_MULTIPLY
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_paint_composite_mode_t(HB_PAINT_COMPOSITE_MODE_DIFFERENCE); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_DIFFERENCE, __pyx_t_10) < (0)) __PYX_ERR(9, 158, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":159
 *     SOFT_LIGHT = HB_PAINT_COMPOSITE_MODE_SOFT_LIGHT
 *     DIFFERENCE = HB_PAINT_COMPOSITE_MODE_DIFFERENCE
 *     EXCLUSION = HB_PAINT_COMPOSITE_MODE_EXCLUSION             # <<<<<<<<<<<<<<
 *     MULTIPLY = HB_PAINT_COMPOSITE_MODE_MULTIPLY
 *     HSL_HUE = HB_PAINT_COMPOSITE_MODE_HSL_HUE
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_paint_composite_mode_t(HB_PAINT_COMPOSITE_MODE_EXCLUSION); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 159, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_EXCLUSION, __pyx_t_10) < (0)) __PYX_ERR(9, 159, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":160
 *     DIFFERENCE = HB_PAINT_COMPOSITE_MODE_DIFFERENCE
 *     EXCLUSION = HB_PAINT_COMPOSITE_MODE_EXCLUSION
 *     MULTIPLY = HB_PAINT_COMPOSITE_MODE_MULTIPLY             # <<<<<<<<<<<<<<
 *     HSL_HUE = HB_PAINT_COMPOSITE_MODE_HSL_HUE
 *     HSL_SATURATION = HB_PAINT_COMPOSITE_MODE_HSL_SATURATION
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_paint_composite_mode_t(HB_PAINT_COMPOSITE_MODE_MULTIPLY); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 160, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_MULTIPLY, __pyx_t_10) < (0)) __PYX_ERR(9, 160, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":161
 *     EXCLUSION = HB_PAINT_COMPOSITE_MODE_EXCLUSION
 *     MULTIPLY = HB_PAINT_COMPOSITE_MODE_MULTIPLY
 *     HSL_HUE = HB_PAINT_COMPOSITE_MODE_HSL_HUE             # <<<<<<<<<<<<<<
 *     HSL_SATURATION = HB_PAINT_COMPOSITE_MODE_HSL_SATURATION
 *     HSL_COLOR = HB_PAINT_COMPOSITE_MODE_HSL_COLOR
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_paint_composite_mode_t(HB_PAINT_COMPOSITE_MODE_HSL_HUE); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 161, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_HSL_HUE, __pyx_t_10) < (0)) __PYX_ERR(9, 161, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":162
 *     MULTIPLY = HB_PAINT_COMPOSITE_MODE_MULTIPLY
 *     HSL_HUE = HB_PAINT_COMPOSITE_MODE_HSL_HUE
 *     HSL_SATURATION = HB_PAINT_COMPOSITE_MODE_HSL_SATURATION             # <<<<<<<<<<<<<<
 *     HSL_COLOR = HB_PAINT_COMPOSITE_MODE_HSL_COLOR
 *     HSL_LUMINOSITY = HB_PAINT_COMPOSITE_MODE_HSL_LUMINOSITY
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_paint_composite_mode_t(HB_PAINT_COMPOSITE_MODE_HSL_SATURATION); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 162, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_HSL_SATURATION, __pyx_t_10) < (0)) __PYX_ERR(9, 162, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":163
 *     HSL_HUE = HB_PAINT_COMPOSITE_MODE_HSL_HUE
 *     HSL_SATURATION = HB_PAINT_COMPOSITE_MODE_HSL_SATURATION
 *     HSL_COLOR = HB_PAINT_COMPOSITE_MODE_HSL_COLOR             # <<<<<<<<<<<<<<
 *     HSL_LUMINOSITY = HB_PAINT_COMPOSITE_MODE_HSL_LUMINOSITY
 * 
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_paint_composite_mode_t(HB_PAINT_COMPOSITE_MODE_HSL_COLOR); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 163, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_HSL_COLOR, __pyx_t_10) < (0)) __PYX_ERR(9, 163, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":164
 *     HSL_SATURATION = HB_PAINT_COMPOSITE_MODE_HSL_SATURATION
 *     HSL_COLOR = HB_PAINT_COMPOSITE_MODE_HSL_COLOR
 *     HSL_LUMINOSITY = HB_PAINT_COMPOSITE_MODE_HSL_LUMINOSITY             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_paint_composite_mode_t(HB_PAINT_COMPOSITE_MODE_HSL_LUMINOSITY); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 164, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_HSL_LUMINOSITY, __pyx_t_10) < (0)) __PYX_ERR(9, 164, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":1
 * class PaintCompositeMode(IntEnum):             # <<<<<<<<<<<<<<
 *     """The values of this enumeration describe the compositing modes that can
 *     be used when combining temporary redirected drawing with the backdrop.
*/
  __pyx_t_10 = __Pyx_Py3ClassCreate(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_PaintCompositeMode, __pyx_t_7, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_10);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_PaintCompositeMode, __pyx_t_10) < (0)) __PYX_ERR(9, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_paint.pxi":167
 * 
 * 
 * class ColorStop(NamedTuple):             # <<<<<<<<<<<<<<
 *     """Information about a color stop on a color line.
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_NamedTuple); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_6 = PyTuple_Pack(1, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PEP560_update_bases(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(9, 167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_10 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_7, __pyx_mstate_global->__pyx_n_u_ColorStop, __pyx_mstate_global->__pyx_n_u_ColorStop, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_Information_about_a_color_stop_o); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__pyx_t_7 != __pyx_t_6) {
    if (unlikely((PyDict_SetItemString(__pyx_t_10, "__orig_bases__", __pyx_t_6) < 0))) __PYX_ERR(9, 167, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_offset, __pyx_mstate_global->__pyx_n_u_float) < (0)) __PYX_ERR(9, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_is_foreground, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(9, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_color, __pyx_mstate_global->__pyx_n_u_Color) < (0)) __PYX_ERR(9, 167, __pyx_L1_error)
  if (__Pyx_SetNameInClass(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_annotations, __pyx_t_6) < (0)) __PYX_ERR(9, 167, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_paint.pxi":191
 *     """Whether the color is the foreground."""
 *     color: Color
 *     """The color, unpremultiplied."""             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_6 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_ColorStop, __pyx_t_7, __pyx_t_10, NULL, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ColorStop, __pyx_t_6) < (0)) __PYX_ERR(9, 167, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_paint.pxi":194
 * 
 * 
 * class PaintExtend(IntEnum):             # <<<<<<<<<<<<<<
 *     """The values of this enumeration determine how color values outside the
 *     minimum and maximum defined offset on a :class:`ColorLine` are
*/
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 194, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_5 = PyTuple_Pack(1, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(9, 194, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 194, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_10 = __Pyx_CalculateMetaclass(NULL, __pyx_t_7); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 194, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_6 = __Pyx_Py3MetaclassPrepare(__pyx_t_10, __pyx_t_7, __pyx_mstate_global->__pyx_n_u_PaintExtend, __pyx_mstate_global->__pyx_n_u_PaintExtend, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_The_values_of_this_enumeration_d_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 194, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__pyx_t_7 != __pyx_t_5) {
    if (unlikely((PyDict_SetItemString(__pyx_t_6, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(9, 194, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_paint.pxi":222
 *     <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-extend-t>`_.
 *     """
 *     PAD = HB_PAINT_EXTEND_PAD             # <<<<<<<<<<<<<<
 *     REPEAT = HB_PAINT_EXTEND_REPEAT
 *     REFLECT = HB_PAINT_EXTEND_REFLECT
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_paint_extend_t(HB_PAINT_EXTEND_PAD); if (unlikely(!__pyx_t_5)) __PYX_ERR(9, 222, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_PAD, __pyx_t_5) < (0)) __PYX_ERR(9, 222, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_paint.pxi":223
 *     """
 *     PAD = HB_PAINT_EXTEND_PAD
 *     REPEAT = HB_PAINT_EXTEND_REPEAT             # <<<<<<<<<<<<<<
 *     REFLECT = HB_PAINT_EXTEND_REFLECT
 * 
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_paint_extend_t(HB_PAINT_EXTEND_REPEAT); if (unlikely(!__pyx_t_5)) __PYX_ERR(9, 223, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_REPEAT, __pyx_t_5) < (0)) __PYX_ERR(9, 223, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_paint.pxi":224
 *     PAD = HB_PAINT_EXTEND_PAD
 *     REPEAT = HB_PAINT_EXTEND_REPEAT
 *     REFLECT = HB_PAINT_EXTEND_REFLECT             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_paint_extend_t(HB_PAINT_EXTEND_REFLECT); if (unlikely(!__pyx_t_5)) __PYX_ERR(9, 224, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_REFLECT, __pyx_t_5) < (0)) __PYX_ERR(9, 224, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_paint.pxi":194
 * 
 * 
 * class PaintExtend(IntEnum):             # <<<<<<<<<<<<<<
 *     """The values of this enumeration determine how color values outside the
 *     minimum and maximum defined offset on a :class:`ColorLine` are
*/
  __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_PaintExtend, __pyx_t_7, __pyx_t_6, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(9, 194, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_PaintExtend, __pyx_t_5) < (0)) __PYX_ERR(9, 194, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_9ColorLine_3__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_ColorLine___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[97])); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_7);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_7) < (0)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_9ColorLine_5__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_ColorLine___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[98])); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_7);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_7) < (0)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_paint.pxi":508
 *         hb_paint_funcs_destroy(self._hb_paintfuncs)
 * 
 *     def set_push_transform_func(self,             # <<<<<<<<<<<<<<
 *                                 func: Callable[[
 *                                     float,  # xx
*/
  __pyx_t_7 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 508, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (PyDict_SetItem(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_func, __pyx_mstate_global->__pyx_kp_u_Callable_float_float_float_float) < (0)) __PYX_ERR(9, 508, __pyx_L1_error)
  __pyx_t_10 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_10PaintFuncs_5set_push_transform_func, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_PaintFuncs_set_push_transform_fu, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[99])); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 508, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_10);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_10, __pyx_t_7);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_PaintFuncs, __pyx_mstate_global->__pyx_n_u_set_push_transform_func, __pyx_t_10) < (0)) __PYX_ERR(9, 508, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":531
 *             self._hb_paintfuncs, _paint_push_transform_func, <void*>self, NULL)
 * 
 *     def set_pop_transform_func(self,             # <<<<<<<<<<<<<<
 *                                func: Callable[[
 *                                    object,  # paint_data
*/
  __pyx_t_10 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 531, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (PyDict_SetItem(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_func, __pyx_mstate_global->__pyx_kp_u_Callable_object_None) < (0)) __PYX_ERR(9, 531, __pyx_L1_error)
  __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_10PaintFuncs_7set_pop_transform_func, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_PaintFuncs_set_pop_transform_fun, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[100])); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 531, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_7);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_7, __pyx_t_10);
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_PaintFuncs, __pyx_mstate_global->__pyx_n_u_set_pop_transform_func, __pyx_t_7) < (0)) __PYX_ERR(9, 531, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_paint.pxi":547
 *             self._hb_paintfuncs, _paint_pop_transform_func, <void*>self, NULL)
 * 
 *     def set_color_glyph_func(self,             # <<<<<<<<<<<<<<
 *                              func: Callable[[
 *                                  int,  # gid
*/
  __pyx_t_7 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 547, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (PyDict_SetItem(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_func, __pyx_mstate_global->__pyx_kp_u_Callable_int_object_bool) < (0)) __PYX_ERR(9, 547, __pyx_L1_error)
  __pyx_t_10 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_10PaintFuncs_9set_color_glyph_func, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_PaintFuncs_set_color_glyph_func, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[101])); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 547, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_10);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_10, __pyx_t_7);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_PaintFuncs, __pyx_mstate_global->__pyx_n_u_set_color_glyph_func, __pyx_t_10) < (0)) __PYX_ERR(9, 547, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":564
 *             self._hb_paintfuncs, _paint_color_glyph_func, <void*>self, NULL)
 * 
 *     def set_push_clip_glyph_func(self,             # <<<<<<<<<<<<<<
 *                                  func: Callable[[
 *                                      int,  # gid
*/
  __pyx_t_10 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 564, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (PyDict_SetItem(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_func, __pyx_mstate_global->__pyx_kp_u_Callable_int_object_None) < (0)) __PYX_ERR(9, 564, __pyx_L1_error)
  __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_10PaintFuncs_11set_push_clip_glyph_func, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_PaintFuncs_set_push_clip_glyph_f, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[102])); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 564, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_7);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_7, __pyx_t_10);
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_PaintFuncs, __pyx_mstate_global->__pyx_n_u_set_push_clip_glyph_func, __pyx_t_7) < (0)) __PYX_ERR(9, 564, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_paint.pxi":583
 *             self._hb_paintfuncs, _paint_push_clip_glyph_func, <void*>self, NULL)
 * 
 *     def set_push_clip_rectangle_func(self,             # <<<<<<<<<<<<<<
 *                                      func: Callable[[
 *                                          float,  # xmin
*/
  __pyx_t_7 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 583, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (PyDict_SetItem(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_func, __pyx_mstate_global->__pyx_kp_u_Callable_float_float_float_float_2) < (0)) __PYX_ERR(9, 583, __pyx_L1_error)
  __pyx_t_10 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_10PaintFuncs_13set_push_clip_rectangle_func, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_PaintFuncs_set_push_clip_rectang, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[103])); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 583, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_10);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_10, __pyx_t_7);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_PaintFuncs, __pyx_mstate_global->__pyx_n_u_set_push_clip_rectangle_func, __pyx_t_10) < (0)) __PYX_ERR(9, 583, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":607
 *             self._hb_paintfuncs, _paint_push_clip_rectangle_func, <void*>self, NULL)
 * 
 *     def set_pop_clip_func(self,             # <<<<<<<<<<<<<<
 *                           func: Callable[[
 *                               object,  # paint_data
*/
  __pyx_t_10 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 607, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (PyDict_SetItem(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_func, __pyx_mstate_global->__pyx_kp_u_Callable_object_None) < (0)) __PYX_ERR(9, 607, __pyx_L1_error)
  __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_10PaintFuncs_15set_pop_clip_func, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_PaintFuncs_set_pop_clip_func, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[104])); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 607, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_7);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_7, __pyx_t_10);
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_PaintFuncs, __pyx_mstate_global->__pyx_n_u_set_pop_clip_func, __pyx_t_7) < (0)) __PYX_ERR(9, 607, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_paint.pxi":623
 *             self._hb_paintfuncs, _paint_pop_clip_func, <void*>self, NULL)
 * 
 *     def set_color_func(self,             # <<<<<<<<<<<<<<
 *                        func: Callable[[
 *                            Color,  # color
*/
  __pyx_t_7 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 623, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (PyDict_SetItem(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_func, __pyx_mstate_global->__pyx_kp_u_Callable_Color_bool_object_None) < (0)) __PYX_ERR(9, 623, __pyx_L1_error)
  __pyx_t_10 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_10PaintFuncs_17set_color_func, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_PaintFuncs_set_color_func, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[105])); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 623, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_10);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_10, __pyx_t_7);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_PaintFuncs, __pyx_mstate_global->__pyx_n_u_set_color_func, __pyx_t_10) < (0)) __PYX_ERR(9, 623, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":642
 *             self._hb_paintfuncs, _paint_color_func, <void*>self, NULL)
 * 
 *     def set_image_func(self,             # <<<<<<<<<<<<<<
 *                        func: Callable[[
 *                            Blob,  # image
*/
  __pyx_t_10 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 642, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (PyDict_SetItem(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_func, __pyx_mstate_global->__pyx_kp_u_Callable_Blob_int_int_str_float) < (0)) __PYX_ERR(9, 642, __pyx_L1_error)
  __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_10PaintFuncs_19set_image_func, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_PaintFuncs_set_image_func, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[106])); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 642, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_7);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_7, __pyx_t_10);
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_PaintFuncs, __pyx_mstate_global->__pyx_n_u_set_image_func, __pyx_t_7) < (0)) __PYX_ERR(9, 642, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_paint.pxi":668
 *             self._hb_paintfuncs, _paint_image_func, <void*>self, NULL)
 * 
 *     def set_linear_gradient_func(self,             # <<<<<<<<<<<<<<
 *                                  func: Callable[[
 *                                     ColorLine,  # color_line
*/
  __pyx_t_7 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 668, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (PyDict_SetItem(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_func, __pyx_mstate_global->__pyx_kp_u_Callable_ColorLine_float_float_f) < (0)) __PYX_ERR(9, 668, __pyx_L1_error)
  __pyx_t_10 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_10PaintFuncs_21set_linear_gradient_func, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_PaintFuncs_set_linear_gradient_f, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[107])); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 668, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_10);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_10, __pyx_t_7);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_PaintFuncs, __pyx_mstate_global->__pyx_n_u_set_linear_gradient_func, __pyx_t_10) < (0)) __PYX_ERR(9, 668, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":694
 *             self._hb_paintfuncs, _paint_linear_gradient_func, <void*>self, NULL)
 * 
 *     def set_radial_gradient_func(self,             # <<<<<<<<<<<<<<
 *                                  func: Callable[[
 *                                     ColorLine,  # color_line
*/
  __pyx_t_10 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 694, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (PyDict_SetItem(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_func, __pyx_mstate_global->__pyx_kp_u_Callable_ColorLine_float_float_f) < (0)) __PYX_ERR(9, 694, __pyx_L1_error)
  __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_10PaintFuncs_23set_radial_gradient_func, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_PaintFuncs_set_radial_gradient_f, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[108])); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 694, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_7);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_7, __pyx_t_10);
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_PaintFuncs, __pyx_mstate_global->__pyx_n_u_set_radial_gradient_func, __pyx_t_7) < (0)) __PYX_ERR(9, 694, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_paint.pxi":720
 *             self._hb_paintfuncs, _paint_radial_gradient_func, <void*>self, NULL)
 * 
 *     def set_sweep_gradient_func(self,             # <<<<<<<<<<<<<<
 *                                 func: Callable[[
 *                                     ColorLine,  # color_line
*/
  __pyx_t_7 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 720, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (PyDict_SetItem(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_func, __pyx_mstate_global->__pyx_kp_u_Callable_ColorLine_float_float_f_2) < (0)) __PYX_ERR(9, 720, __pyx_L1_error)
  __pyx_t_10 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_10PaintFuncs_25set_sweep_gradient_func, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_PaintFuncs_set_sweep_gradient_fu, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[109])); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 720, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_10);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_10, __pyx_t_7);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_PaintFuncs, __pyx_mstate_global->__pyx_n_u_set_sweep_gradient_func, __pyx_t_10) < (0)) __PYX_ERR(9, 720, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":744
 *             self._hb_paintfuncs, _paint_sweep_gradient_func, <void*>self, NULL)
 * 
 *     def set_push_group_func(self,             # <<<<<<<<<<<<<<
 *                             func: Callable[[
 *                                 object,  # paint_data
*/
  __pyx_t_10 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 744, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (PyDict_SetItem(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_func, __pyx_mstate_global->__pyx_kp_u_Callable_object_None) < (0)) __PYX_ERR(9, 744, __pyx_L1_error)
  __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_10PaintFuncs_27set_push_group_func, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_PaintFuncs_set_push_group_func, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[110])); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 744, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_7);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_7, __pyx_t_10);
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_PaintFuncs, __pyx_mstate_global->__pyx_n_u_set_push_group_func, __pyx_t_7) < (0)) __PYX_ERR(9, 744, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_paint.pxi":761
 *             self._hb_paintfuncs, _paint_push_group_func, <void*>self, NULL)
 * 
 *     def set_pop_group_func(self,             # <<<<<<<<<<<<<<
 *                            func: Callable[[
 *                                PaintCompositeMode,  # mode
*/
  __pyx_t_7 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 761, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (PyDict_SetItem(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_func, __pyx_mstate_global->__pyx_kp_u_Callable_PaintCompositeMode_obje) < (0)) __PYX_ERR(9, 761, __pyx_L1_error)
  __pyx_t_10 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_10PaintFuncs_29set_pop_group_func, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_PaintFuncs_set_pop_group_func, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[111])); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 761, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_10);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_10, __pyx_t_7);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_PaintFuncs, __pyx_mstate_global->__pyx_n_u_set_pop_group_func, __pyx_t_10) < (0)) __PYX_ERR(9, 761, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_paint.pxi":780
 *             self._hb_paintfuncs, _paint_pop_group_func, <void*>self, NULL)
 * 
 *     def set_custom_palette_color_func(self,             # <<<<<<<<<<<<<<
 *                                       func: Callable[[
 *                                           int,  # color_index
*/
  __pyx_t_10 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 780, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (PyDict_SetItem(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_func, __pyx_mstate_global->__pyx_kp_u_Callable_int_object_Color) < (0)) __PYX_ERR(9, 780, __pyx_L1_error)
  __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_10PaintFuncs_31set_custom_palette_color_func, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_PaintFuncs_set_custom_palette_co, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[112])); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 780, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_7);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_7, __pyx_t_10);
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_PaintFuncs, __pyx_mstate_global->__pyx_n_u_set_custom_palette_color_func, __pyx_t_7) < (0)) __PYX_ERR(9, 780, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_10PaintFuncs_33__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_PaintFuncs___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[113])); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_7);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_7) < (0)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_10PaintFuncs_35__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_PaintFuncs___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[114])); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_7);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_7) < (0)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_font.pxi":1
 * class GlyphExtents(NamedTuple):             # <<<<<<<<<<<<<<
 *     """Glyph extent values, measured in font units.
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_NamedTuple); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_10 = PyTuple_Pack(1, __pyx_t_7); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PEP560_update_bases(__pyx_t_10); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_6 = __Pyx_CalculateMetaclass(NULL, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_6, __pyx_t_7, __pyx_mstate_global->__pyx_n_u_GlyphExtents, __pyx_mstate_global->__pyx_n_u_GlyphExtents, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_Glyph_extent_values_measured_in); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__pyx_t_7 != __pyx_t_10) {
    if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_10) < 0))) __PYX_ERR(3, 1, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  __pyx_t_10 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (PyDict_SetItem(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_x_bearing, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_y_bearing, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_width, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_height, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 1, __pyx_L1_error)
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_annotations, __pyx_t_10) < (0)) __PYX_ERR(3, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_font.pxi":16
 *     """Distance from the left extremum of the glyph to the right extremum."""
 *     height: int
 *     """Distance from the top extremum of the glyph to the bottom extremum."""             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_10 = __Pyx_Py3ClassCreate(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_GlyphExtents, __pyx_t_7, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_10);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GlyphExtents, __pyx_t_10) < (0)) __PYX_ERR(3, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_font.pxi":19
 * 
 * 
 * class FontExtents(NamedTuple):             # <<<<<<<<<<<<<<
 *     """Font-wide extent values, measured in scaled units.
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_NamedTuple); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 19, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_6 = PyTuple_Pack(1, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 19, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PEP560_update_bases(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 19, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 19, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_10 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_7, __pyx_mstate_global->__pyx_n_u_FontExtents, __pyx_mstate_global->__pyx_n_u_FontExtents, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_Font_wide_extent_values_measured); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 19, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__pyx_t_7 != __pyx_t_6) {
    if (unlikely((PyDict_SetItemString(__pyx_t_10, "__orig_bases__", __pyx_t_6) < 0))) __PYX_ERR(3, 19, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 19, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_ascender, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 19, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_descender, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 19, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_line_gap, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 19, __pyx_L1_error)
  if (__Pyx_SetNameInClass(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_annotations, __pyx_t_6) < (0)) __PYX_ERR(3, 19, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_font.pxi":33
 *     """The depth of typographic descenders."""
 *     line_gap: int
 *     """The suggested line-spacing gap."""             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_6 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_FontExtents, __pyx_t_7, __pyx_t_10, NULL, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 19, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_FontExtents, __pyx_t_6) < (0)) __PYX_ERR(3, 19, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_font.pxi":36
 * 
 * 
 * class OTMathConstant(IntEnum):             # <<<<<<<<<<<<<<
 *     """Math constants from the OpenType ``MATH`` table.
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 36, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_5 = PyTuple_Pack(1, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 36, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 36, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_10 = __Pyx_CalculateMetaclass(NULL, __pyx_t_7); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 36, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_6 = __Pyx_Py3MetaclassPrepare(__pyx_t_10, __pyx_t_7, __pyx_mstate_global->__pyx_n_u_OTMathConstant, __pyx_mstate_global->__pyx_n_u_OTMathConstant, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_Math_constants_from_the_OpenType); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 36, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__pyx_t_7 != __pyx_t_5) {
    if (unlikely((PyDict_SetItemString(__pyx_t_6, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(3, 36, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":42
 *     <https://harfbuzz.github.io/harfbuzz-hb-ot-math.html#hb-ot-math-constant-t>`_.
 *     """
 *     SCRIPT_PERCENT_SCALE_DOWN = HB_OT_MATH_CONSTANT_SCRIPT_PERCENT_SCALE_DOWN             # <<<<<<<<<<<<<<
 *     SCRIPT_SCRIPT_PERCENT_SCALE_DOWN = HB_OT_MATH_CONSTANT_SCRIPT_SCRIPT_PERCENT_SCALE_DOWN
 *     DELIMITED_SUB_FORMULA_MIN_HEIGHT = HB_OT_MATH_CONSTANT_DELIMITED_SUB_FORMULA_MIN_HEIGHT
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_SCRIPT_PERCENT_SCALE_DOWN); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 42, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_SCRIPT_PERCENT_SCALE_DOWN, __pyx_t_5) < (0)) __PYX_ERR(3, 42, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":43
 *     """
 *     SCRIPT_PERCENT_SCALE_DOWN = HB_OT_MATH_CONSTANT_SCRIPT_PERCENT_SCALE_DOWN
 *     SCRIPT_SCRIPT_PERCENT_SCALE_DOWN = HB_OT_MATH_CONSTANT_SCRIPT_SCRIPT_PERCENT_SCALE_DOWN             # <<<<<<<<<<<<<<
 *     DELIMITED_SUB_FORMULA_MIN_HEIGHT = HB_OT_MATH_CONSTANT_DELIMITED_SUB_FORMULA_MIN_HEIGHT
 *     DISPLAY_OPERATOR_MIN_HEIGHT = HB_OT_MATH_CONSTANT_DISPLAY_OPERATOR_MIN_HEIGHT
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_SCRIPT_SCRIPT_PERCENT_SCALE_DOWN); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 43, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_SCRIPT_SCRIPT_PERCENT_SCALE_DOWN, __pyx_t_5) < (0)) __PYX_ERR(3, 43, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":44
 *     SCRIPT_PERCENT_SCALE_DOWN = HB_OT_MATH_CONSTANT_SCRIPT_PERCENT_SCALE_DOWN
 *     SCRIPT_SCRIPT_PERCENT_SCALE_DOWN = HB_OT_MATH_CONSTANT_SCRIPT_SCRIPT_PERCENT_SCALE_DOWN
 *     DELIMITED_SUB_FORMULA_MIN_HEIGHT = HB_OT_MATH_CONSTANT_DELIMITED_SUB_FORMULA_MIN_HEIGHT             # <<<<<<<<<<<<<<
 *     DISPLAY_OPERATOR_MIN_HEIGHT = HB_OT_MATH_CONSTANT_DISPLAY_OPERATOR_MIN_HEIGHT
 *     MATH_LEADING = HB_OT_MATH_CONSTANT_MATH_LEADING
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_DELIMITED_SUB_FORMULA_MIN_HEIGHT); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 44, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_DELIMITED_SUB_FORMULA_MIN_HEIGHT, __pyx_t_5) < (0)) __PYX_ERR(3, 44, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":45
 *     SCRIPT_SCRIPT_PERCENT_SCALE_DOWN = HB_OT_MATH_CONSTANT_SCRIPT_SCRIPT_PERCENT_SCALE_DOWN
 *     DELIMITED_SUB_FORMULA_MIN_HEIGHT = HB_OT_MATH_CONSTANT_DELIMITED_SUB_FORMULA_MIN_HEIGHT
 *     DISPLAY_OPERATOR_MIN_HEIGHT = HB_OT_MATH_CONSTANT_DISPLAY_OPERATOR_MIN_HEIGHT             # <<<<<<<<<<<<<<
 *     MATH_LEADING = HB_OT_MATH_CONSTANT_MATH_LEADING
 *     AXIS_HEIGHT = HB_OT_MATH_CONSTANT_AXIS_HEIGHT
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_DISPLAY_OPERATOR_MIN_HEIGHT); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 45, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_DISPLAY_OPERATOR_MIN_HEIGHT, __pyx_t_5) < (0)) __PYX_ERR(3, 45, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":46
 *     DELIMITED_SUB_FORMULA_MIN_HEIGHT = HB_OT_MATH_CONSTANT_DELIMITED_SUB_FORMULA_MIN_HEIGHT
 *     DISPLAY_OPERATOR_MIN_HEIGHT = HB_OT_MATH_CONSTANT_DISPLAY_OPERATOR_MIN_HEIGHT
 *     MATH_LEADING = HB_OT_MATH_CONSTANT_MATH_LEADING             # <<<<<<<<<<<<<<
 *     AXIS_HEIGHT = HB_OT_MATH_CONSTANT_AXIS_HEIGHT
 *     ACCENT_BASE_HEIGHT = HB_OT_MATH_CONSTANT_ACCENT_BASE_HEIGHT
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_MATH_LEADING); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 46, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_MATH_LEADING, __pyx_t_5) < (0)) __PYX_ERR(3, 46, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":47
 *     DISPLAY_OPERATOR_MIN_HEIGHT = HB_OT_MATH_CONSTANT_DISPLAY_OPERATOR_MIN_HEIGHT
 *     MATH_LEADING = HB_OT_MATH_CONSTANT_MATH_LEADING
 *     AXIS_HEIGHT = HB_OT_MATH_CONSTANT_AXIS_HEIGHT             # <<<<<<<<<<<<<<
 *     ACCENT_BASE_HEIGHT = HB_OT_MATH_CONSTANT_ACCENT_BASE_HEIGHT
 *     FLATTENED_ACCENT_BASE_HEIGHT = HB_OT_MATH_CONSTANT_FLATTENED_ACCENT_BASE_HEIGHT
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_AXIS_HEIGHT); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 47, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_AXIS_HEIGHT, __pyx_t_5) < (0)) __PYX_ERR(3, 47, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":48
 *     MATH_LEADING = HB_OT_MATH_CONSTANT_MATH_LEADING
 *     AXIS_HEIGHT = HB_OT_MATH_CONSTANT_AXIS_HEIGHT
 *     ACCENT_BASE_HEIGHT = HB_OT_MATH_CONSTANT_ACCENT_BASE_HEIGHT             # <<<<<<<<<<<<<<
 *     FLATTENED_ACCENT_BASE_HEIGHT = HB_OT_MATH_CONSTANT_FLATTENED_ACCENT_BASE_HEIGHT
 *     SUBSCRIPT_SHIFT_DOWN = HB_OT_MATH_CONSTANT_SUBSCRIPT_SHIFT_DOWN
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_ACCENT_BASE_HEIGHT); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 48, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_ACCENT_BASE_HEIGHT, __pyx_t_5) < (0)) __PYX_ERR(3, 48, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":49
 *     AXIS_HEIGHT = HB_OT_MATH_CONSTANT_AXIS_HEIGHT
 *     ACCENT_BASE_HEIGHT = HB_OT_MATH_CONSTANT_ACCENT_BASE_HEIGHT
 *     FLATTENED_ACCENT_BASE_HEIGHT = HB_OT_MATH_CONSTANT_FLATTENED_ACCENT_BASE_HEIGHT             # <<<<<<<<<<<<<<
 *     SUBSCRIPT_SHIFT_DOWN = HB_OT_MATH_CONSTANT_SUBSCRIPT_SHIFT_DOWN
 *     SUBSCRIPT_TOP_MAX = HB_OT_MATH_CONSTANT_SUBSCRIPT_TOP_MAX
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_FLATTENED_ACCENT_BASE_HEIGHT); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 49, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_FLATTENED_ACCENT_BASE_HEIGHT, __pyx_t_5) < (0)) __PYX_ERR(3, 49, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":50
 *     ACCENT_BASE_HEIGHT = HB_OT_MATH_CONSTANT_ACCENT_BASE_HEIGHT
 *     FLATTENED_ACCENT_BASE_HEIGHT = HB_OT_MATH_CONSTANT_FLATTENED_ACCENT_BASE_HEIGHT
 *     SUBSCRIPT_SHIFT_DOWN = HB_OT_MATH_CONSTANT_SUBSCRIPT_SHIFT_DOWN             # <<<<<<<<<<<<<<
 *     SUBSCRIPT_TOP_MAX = HB_OT_MATH_CONSTANT_SUBSCRIPT_TOP_MAX
 *     SUBSCRIPT_BASELINE_DROP_MIN = HB_OT_MATH_CONSTANT_SUBSCRIPT_BASELINE_DROP_MIN
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_SUBSCRIPT_SHIFT_DOWN); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 50, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_SUBSCRIPT_SHIFT_DOWN, __pyx_t_5) < (0)) __PYX_ERR(3, 50, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":51
 *     FLATTENED_ACCENT_BASE_HEIGHT = HB_OT_MATH_CONSTANT_FLATTENED_ACCENT_BASE_HEIGHT
 *     SUBSCRIPT_SHIFT_DOWN = HB_OT_MATH_CONSTANT_SUBSCRIPT_SHIFT_DOWN
 *     SUBSCRIPT_TOP_MAX = HB_OT_MATH_CONSTANT_SUBSCRIPT_TOP_MAX             # <<<<<<<<<<<<<<
 *     SUBSCRIPT_BASELINE_DROP_MIN = HB_OT_MATH_CONSTANT_SUBSCRIPT_BASELINE_DROP_MIN
 *     SUPERSCRIPT_SHIFT_UP = HB_OT_MATH_CONSTANT_SUPERSCRIPT_SHIFT_UP
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_SUBSCRIPT_TOP_MAX); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 51, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_SUBSCRIPT_TOP_MAX, __pyx_t_5) < (0)) __PYX_ERR(3, 51, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":52
 *     SUBSCRIPT_SHIFT_DOWN = HB_OT_MATH_CONSTANT_SUBSCRIPT_SHIFT_DOWN
 *     SUBSCRIPT_TOP_MAX = HB_OT_MATH_CONSTANT_SUBSCRIPT_TOP_MAX
 *     SUBSCRIPT_BASELINE_DROP_MIN = HB_OT_MATH_CONSTANT_SUBSCRIPT_BASELINE_DROP_MIN             # <<<<<<<<<<<<<<
 *     SUPERSCRIPT_SHIFT_UP = HB_OT_MATH_CONSTANT_SUPERSCRIPT_SHIFT_UP
 *     SUPERSCRIPT_SHIFT_UP_CRAMPED = HB_OT_MATH_CONSTANT_SUPERSCRIPT_SHIFT_UP_CRAMPED
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_SUBSCRIPT_BASELINE_DROP_MIN); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 52, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_SUBSCRIPT_BASELINE_DROP_MIN, __pyx_t_5) < (0)) __PYX_ERR(3, 52, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":53
 *     SUBSCRIPT_TOP_MAX = HB_OT_MATH_CONSTANT_SUBSCRIPT_TOP_MAX
 *     SUBSCRIPT_BASELINE_DROP_MIN = HB_OT_MATH_CONSTANT_SUBSCRIPT_BASELINE_DROP_MIN
 *     SUPERSCRIPT_SHIFT_UP = HB_OT_MATH_CONSTANT_SUPERSCRIPT_SHIFT_UP             # <<<<<<<<<<<<<<
 *     SUPERSCRIPT_SHIFT_UP_CRAMPED = HB_OT_MATH_CONSTANT_SUPERSCRIPT_SHIFT_UP_CRAMPED
 *     SUPERSCRIPT_BOTTOM_MIN = HB_OT_MATH_CONSTANT_SUPERSCRIPT_BOTTOM_MIN
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_SUPERSCRIPT_SHIFT_UP); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 53, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_SUPERSCRIPT_SHIFT_UP, __pyx_t_5) < (0)) __PYX_ERR(3, 53, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":54
 *     SUBSCRIPT_BASELINE_DROP_MIN = HB_OT_MATH_CONSTANT_SUBSCRIPT_BASELINE_DROP_MIN
 *     SUPERSCRIPT_SHIFT_UP = HB_OT_MATH_CONSTANT_SUPERSCRIPT_SHIFT_UP
 *     SUPERSCRIPT_SHIFT_UP_CRAMPED = HB_OT_MATH_CONSTANT_SUPERSCRIPT_SHIFT_UP_CRAMPED             # <<<<<<<<<<<<<<
 *     SUPERSCRIPT_BOTTOM_MIN = HB_OT_MATH_CONSTANT_SUPERSCRIPT_BOTTOM_MIN
 *     SUPERSCRIPT_BASELINE_DROP_MAX = HB_OT_MATH_CONSTANT_SUPERSCRIPT_BASELINE_DROP_MAX
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_SUPERSCRIPT_SHIFT_UP_CRAMPED); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 54, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_SUPERSCRIPT_SHIFT_UP_CRAMPED, __pyx_t_5) < (0)) __PYX_ERR(3, 54, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":55
 *     SUPERSCRIPT_SHIFT_UP = HB_OT_MATH_CONSTANT_SUPERSCRIPT_SHIFT_UP
 *     SUPERSCRIPT_SHIFT_UP_CRAMPED = HB_OT_MATH_CONSTANT_SUPERSCRIPT_SHIFT_UP_CRAMPED
 *     SUPERSCRIPT_BOTTOM_MIN = HB_OT_MATH_CONSTANT_SUPERSCRIPT_BOTTOM_MIN             # <<<<<<<<<<<<<<
 *     SUPERSCRIPT_BASELINE_DROP_MAX = HB_OT_MATH_CONSTANT_SUPERSCRIPT_BASELINE_DROP_MAX
 *     SUB_SUPERSCRIPT_GAP_MIN = HB_OT_MATH_CONSTANT_SUB_SUPERSCRIPT_GAP_MIN
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_SUPERSCRIPT_BOTTOM_MIN); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 55, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_SUPERSCRIPT_BOTTOM_MIN, __pyx_t_5) < (0)) __PYX_ERR(3, 55, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":56
 *     SUPERSCRIPT_SHIFT_UP_CRAMPED = HB_OT_MATH_CONSTANT_SUPERSCRIPT_SHIFT_UP_CRAMPED
 *     SUPERSCRIPT_BOTTOM_MIN = HB_OT_MATH_CONSTANT_SUPERSCRIPT_BOTTOM_MIN
 *     SUPERSCRIPT_BASELINE_DROP_MAX = HB_OT_MATH_CONSTANT_SUPERSCRIPT_BASELINE_DROP_MAX             # <<<<<<<<<<<<<<
 *     SUB_SUPERSCRIPT_GAP_MIN = HB_OT_MATH_CONSTANT_SUB_SUPERSCRIPT_GAP_MIN
 *     SUPERSCRIPT_BOTTOM_MAX_WITH_SUBSCRIPT = HB_OT_MATH_CONSTANT_SUPERSCRIPT_BOTTOM_MAX_WITH_SUBSCRIPT
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_SUPERSCRIPT_BASELINE_DROP_MAX); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 56, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_SUPERSCRIPT_BASELINE_DROP_MAX, __pyx_t_5) < (0)) __PYX_ERR(3, 56, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":57
 *     SUPERSCRIPT_BOTTOM_MIN = HB_OT_MATH_CONSTANT_SUPERSCRIPT_BOTTOM_MIN
 *     SUPERSCRIPT_BASELINE_DROP_MAX = HB_OT_MATH_CONSTANT_SUPERSCRIPT_BASELINE_DROP_MAX
 *     SUB_SUPERSCRIPT_GAP_MIN = HB_OT_MATH_CONSTANT_SUB_SUPERSCRIPT_GAP_MIN             # <<<<<<<<<<<<<<
 *     SUPERSCRIPT_BOTTOM_MAX_WITH_SUBSCRIPT = HB_OT_MATH_CONSTANT_SUPERSCRIPT_BOTTOM_MAX_WITH_SUBSCRIPT
 *     SPACE_AFTER_SCRIPT = HB_OT_MATH_CONSTANT_SPACE_AFTER_SCRIPT
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_SUB_SUPERSCRIPT_GAP_MIN); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 57, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_SUB_SUPERSCRIPT_GAP_MIN, __pyx_t_5) < (0)) __PYX_ERR(3, 57, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":58
 *     SUPERSCRIPT_BASELINE_DROP_MAX = HB_OT_MATH_CONSTANT_SUPERSCRIPT_BASELINE_DROP_MAX
 *     SUB_SUPERSCRIPT_GAP_MIN = HB_OT_MATH_CONSTANT_SUB_SUPERSCRIPT_GAP_MIN
 *     SUPERSCRIPT_BOTTOM_MAX_WITH_SUBSCRIPT = HB_OT_MATH_CONSTANT_SUPERSCRIPT_BOTTOM_MAX_WITH_SUBSCRIPT             # <<<<<<<<<<<<<<
 *     SPACE_AFTER_SCRIPT = HB_OT_MATH_CONSTANT_SPACE_AFTER_SCRIPT
 *     UPPER_LIMIT_GAP_MIN = HB_OT_MATH_CONSTANT_UPPER_LIMIT_GAP_MIN
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_SUPERSCRIPT_BOTTOM_MAX_WITH_SUBSCRIPT); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 58, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_SUPERSCRIPT_BOTTOM_MAX_WITH_SUBS, __pyx_t_5) < (0)) __PYX_ERR(3, 58, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":59
 *     SUB_SUPERSCRIPT_GAP_MIN = HB_OT_MATH_CONSTANT_SUB_SUPERSCRIPT_GAP_MIN
 *     SUPERSCRIPT_BOTTOM_MAX_WITH_SUBSCRIPT = HB_OT_MATH_CONSTANT_SUPERSCRIPT_BOTTOM_MAX_WITH_SUBSCRIPT
 *     SPACE_AFTER_SCRIPT = HB_OT_MATH_CONSTANT_SPACE_AFTER_SCRIPT             # <<<<<<<<<<<<<<
 *     UPPER_LIMIT_GAP_MIN = HB_OT_MATH_CONSTANT_UPPER_LIMIT_GAP_MIN
 *     UPPER_LIMIT_BASELINE_RISE_MIN = HB_OT_MATH_CONSTANT_UPPER_LIMIT_BASELINE_RISE_MIN
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_SPACE_AFTER_SCRIPT); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 59, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_SPACE_AFTER_SCRIPT, __pyx_t_5) < (0)) __PYX_ERR(3, 59, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":60
 *     SUPERSCRIPT_BOTTOM_MAX_WITH_SUBSCRIPT = HB_OT_MATH_CONSTANT_SUPERSCRIPT_BOTTOM_MAX_WITH_SUBSCRIPT
 *     SPACE_AFTER_SCRIPT = HB_OT_MATH_CONSTANT_SPACE_AFTER_SCRIPT
 *     UPPER_LIMIT_GAP_MIN = HB_OT_MATH_CONSTANT_UPPER_LIMIT_GAP_MIN             # <<<<<<<<<<<<<<
 *     UPPER_LIMIT_BASELINE_RISE_MIN = HB_OT_MATH_CONSTANT_UPPER_LIMIT_BASELINE_RISE_MIN
 *     LOWER_LIMIT_GAP_MIN = HB_OT_MATH_CONSTANT_LOWER_LIMIT_GAP_MIN
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_UPPER_LIMIT_GAP_MIN); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 60, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_UPPER_LIMIT_GAP_MIN, __pyx_t_5) < (0)) __PYX_ERR(3, 60, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":61
 *     SPACE_AFTER_SCRIPT = HB_OT_MATH_CONSTANT_SPACE_AFTER_SCRIPT
 *     UPPER_LIMIT_GAP_MIN = HB_OT_MATH_CONSTANT_UPPER_LIMIT_GAP_MIN
 *     UPPER_LIMIT_BASELINE_RISE_MIN = HB_OT_MATH_CONSTANT_UPPER_LIMIT_BASELINE_RISE_MIN             # <<<<<<<<<<<<<<
 *     LOWER_LIMIT_GAP_MIN = HB_OT_MATH_CONSTANT_LOWER_LIMIT_GAP_MIN
 *     LOWER_LIMIT_BASELINE_DROP_MIN = HB_OT_MATH_CONSTANT_LOWER_LIMIT_BASELINE_DROP_MIN
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_UPPER_LIMIT_BASELINE_RISE_MIN); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 61, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_UPPER_LIMIT_BASELINE_RISE_MIN, __pyx_t_5) < (0)) __PYX_ERR(3, 61, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":62
 *     UPPER_LIMIT_GAP_MIN = HB_OT_MATH_CONSTANT_UPPER_LIMIT_GAP_MIN
 *     UPPER_LIMIT_BASELINE_RISE_MIN = HB_OT_MATH_CONSTANT_UPPER_LIMIT_BASELINE_RISE_MIN
 *     LOWER_LIMIT_GAP_MIN = HB_OT_MATH_CONSTANT_LOWER_LIMIT_GAP_MIN             # <<<<<<<<<<<<<<
 *     LOWER_LIMIT_BASELINE_DROP_MIN = HB_OT_MATH_CONSTANT_LOWER_LIMIT_BASELINE_DROP_MIN
 *     STACK_TOP_SHIFT_UP = HB_OT_MATH_CONSTANT_STACK_TOP_SHIFT_UP
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_LOWER_LIMIT_GAP_MIN); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 62, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_LOWER_LIMIT_GAP_MIN, __pyx_t_5) < (0)) __PYX_ERR(3, 62, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":63
 *     UPPER_LIMIT_BASELINE_RISE_MIN = HB_OT_MATH_CONSTANT_UPPER_LIMIT_BASELINE_RISE_MIN
 *     LOWER_LIMIT_GAP_MIN = HB_OT_MATH_CONSTANT_LOWER_LIMIT_GAP_MIN
 *     LOWER_LIMIT_BASELINE_DROP_MIN = HB_OT_MATH_CONSTANT_LOWER_LIMIT_BASELINE_DROP_MIN             # <<<<<<<<<<<<<<
 *     STACK_TOP_SHIFT_UP = HB_OT_MATH_CONSTANT_STACK_TOP_SHIFT_UP
 *     STACK_TOP_DISPLAY_STYLE_SHIFT_UP = HB_OT_MATH_CONSTANT_STACK_TOP_DISPLAY_STYLE_SHIFT_UP
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_LOWER_LIMIT_BASELINE_DROP_MIN); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 63, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_LOWER_LIMIT_BASELINE_DROP_MIN, __pyx_t_5) < (0)) __PYX_ERR(3, 63, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":64
 *     LOWER_LIMIT_GAP_MIN = HB_OT_MATH_CONSTANT_LOWER_LIMIT_GAP_MIN
 *     LOWER_LIMIT_BASELINE_DROP_MIN = HB_OT_MATH_CONSTANT_LOWER_LIMIT_BASELINE_DROP_MIN
 *     STACK_TOP_SHIFT_UP = HB_OT_MATH_CONSTANT_STACK_TOP_SHIFT_UP             # <<<<<<<<<<<<<<
 *     STACK_TOP_DISPLAY_STYLE_SHIFT_UP = HB_OT_MATH_CONSTANT_STACK_TOP_DISPLAY_STYLE_SHIFT_UP
 *     STACK_BOTTOM_SHIFT_DOWN = HB_OT_MATH_CONSTANT_STACK_BOTTOM_SHIFT_DOWN
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_STACK_TOP_SHIFT_UP); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 64, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_STACK_TOP_SHIFT_UP, __pyx_t_5) < (0)) __PYX_ERR(3, 64, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":65
 *     LOWER_LIMIT_BASELINE_DROP_MIN = HB_OT_MATH_CONSTANT_LOWER_LIMIT_BASELINE_DROP_MIN
 *     STACK_TOP_SHIFT_UP = HB_OT_MATH_CONSTANT_STACK_TOP_SHIFT_UP
 *     STACK_TOP_DISPLAY_STYLE_SHIFT_UP = HB_OT_MATH_CONSTANT_STACK_TOP_DISPLAY_STYLE_SHIFT_UP             # <<<<<<<<<<<<<<
 *     STACK_BOTTOM_SHIFT_DOWN = HB_OT_MATH_CONSTANT_STACK_BOTTOM_SHIFT_DOWN
 *     STACK_BOTTOM_DISPLAY_STYLE_SHIFT_DOWN = HB_OT_MATH_CONSTANT_STACK_BOTTOM_DISPLAY_STYLE_SHIFT_DOWN
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_STACK_TOP_DISPLAY_STYLE_SHIFT_UP); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 65, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_STACK_TOP_DISPLAY_STYLE_SHIFT_UP, __pyx_t_5) < (0)) __PYX_ERR(3, 65, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":66
 *     STACK_TOP_SHIFT_UP = HB_OT_MATH_CONSTANT_STACK_TOP_SHIFT_UP
 *     STACK_TOP_DISPLAY_STYLE_SHIFT_UP = HB_OT_MATH_CONSTANT_STACK_TOP_DISPLAY_STYLE_SHIFT_UP
 *     STACK_BOTTOM_SHIFT_DOWN = HB_OT_MATH_CONSTANT_STACK_BOTTOM_SHIFT_DOWN             # <<<<<<<<<<<<<<
 *     STACK_BOTTOM_DISPLAY_STYLE_SHIFT_DOWN = HB_OT_MATH_CONSTANT_STACK_BOTTOM_DISPLAY_STYLE_SHIFT_DOWN
 *     STACK_GAP_MIN = HB_OT_MATH_CONSTANT_STACK_GAP_MIN
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_STACK_BOTTOM_SHIFT_DOWN); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 66, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_STACK_BOTTOM_SHIFT_DOWN, __pyx_t_5) < (0)) __PYX_ERR(3, 66, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":67
 *     STACK_TOP_DISPLAY_STYLE_SHIFT_UP = HB_OT_MATH_CONSTANT_STACK_TOP_DISPLAY_STYLE_SHIFT_UP
 *     STACK_BOTTOM_SHIFT_DOWN = HB_OT_MATH_CONSTANT_STACK_BOTTOM_SHIFT_DOWN
 *     STACK_BOTTOM_DISPLAY_STYLE_SHIFT_DOWN = HB_OT_MATH_CONSTANT_STACK_BOTTOM_DISPLAY_STYLE_SHIFT_DOWN             # <<<<<<<<<<<<<<
 *     STACK_GAP_MIN = HB_OT_MATH_CONSTANT_STACK_GAP_MIN
 *     STACK_DISPLAY_STYLE_GAP_MIN = HB_OT_MATH_CONSTANT_STACK_DISPLAY_STYLE_GAP_MIN
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_STACK_BOTTOM_DISPLAY_STYLE_SHIFT_DOWN); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 67, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_STACK_BOTTOM_DISPLAY_STYLE_SHIFT, __pyx_t_5) < (0)) __PYX_ERR(3, 67, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":68
 *     STACK_BOTTOM_SHIFT_DOWN = HB_OT_MATH_CONSTANT_STACK_BOTTOM_SHIFT_DOWN
 *     STACK_BOTTOM_DISPLAY_STYLE_SHIFT_DOWN = HB_OT_MATH_CONSTANT_STACK_BOTTOM_DISPLAY_STYLE_SHIFT_DOWN
 *     STACK_GAP_MIN = HB_OT_MATH_CONSTANT_STACK_GAP_MIN             # <<<<<<<<<<<<<<
 *     STACK_DISPLAY_STYLE_GAP_MIN = HB_OT_MATH_CONSTANT_STACK_DISPLAY_STYLE_GAP_MIN
 *     STRETCH_STACK_TOP_SHIFT_UP = HB_OT_MATH_CONSTANT_STRETCH_STACK_TOP_SHIFT_UP
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_STACK_GAP_MIN); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 68, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_STACK_GAP_MIN, __pyx_t_5) < (0)) __PYX_ERR(3, 68, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":69
 *     STACK_BOTTOM_DISPLAY_STYLE_SHIFT_DOWN = HB_OT_MATH_CONSTANT_STACK_BOTTOM_DISPLAY_STYLE_SHIFT_DOWN
 *     STACK_GAP_MIN = HB_OT_MATH_CONSTANT_STACK_GAP_MIN
 *     STACK_DISPLAY_STYLE_GAP_MIN = HB_OT_MATH_CONSTANT_STACK_DISPLAY_STYLE_GAP_MIN             # <<<<<<<<<<<<<<
 *     STRETCH_STACK_TOP_SHIFT_UP = HB_OT_MATH_CONSTANT_STRETCH_STACK_TOP_SHIFT_UP
 *     STRETCH_STACK_BOTTOM_SHIFT_DOWN = HB_OT_MATH_CONSTANT_STRETCH_STACK_BOTTOM_SHIFT_DOWN
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_STACK_DISPLAY_STYLE_GAP_MIN); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 69, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_STACK_DISPLAY_STYLE_GAP_MIN, __pyx_t_5) < (0)) __PYX_ERR(3, 69, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":70
 *     STACK_GAP_MIN = HB_OT_MATH_CONSTANT_STACK_GAP_MIN
 *     STACK_DISPLAY_STYLE_GAP_MIN = HB_OT_MATH_CONSTANT_STACK_DISPLAY_STYLE_GAP_MIN
 *     STRETCH_STACK_TOP_SHIFT_UP = HB_OT_MATH_CONSTANT_STRETCH_STACK_TOP_SHIFT_UP             # <<<<<<<<<<<<<<
 *     STRETCH_STACK_BOTTOM_SHIFT_DOWN = HB_OT_MATH_CONSTANT_STRETCH_STACK_BOTTOM_SHIFT_DOWN
 *     STRETCH_STACK_GAP_ABOVE_MIN = HB_OT_MATH_CONSTANT_STRETCH_STACK_GAP_ABOVE_MIN
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_STRETCH_STACK_TOP_SHIFT_UP); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 70, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_STRETCH_STACK_TOP_SHIFT_UP, __pyx_t_5) < (0)) __PYX_ERR(3, 70, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":71
 *     STACK_DISPLAY_STYLE_GAP_MIN = HB_OT_MATH_CONSTANT_STACK_DISPLAY_STYLE_GAP_MIN
 *     STRETCH_STACK_TOP_SHIFT_UP = HB_OT_MATH_CONSTANT_STRETCH_STACK_TOP_SHIFT_UP
 *     STRETCH_STACK_BOTTOM_SHIFT_DOWN = HB_OT_MATH_CONSTANT_STRETCH_STACK_BOTTOM_SHIFT_DOWN             # <<<<<<<<<<<<<<
 *     STRETCH_STACK_GAP_ABOVE_MIN = HB_OT_MATH_CONSTANT_STRETCH_STACK_GAP_ABOVE_MIN
 *     STRETCH_STACK_GAP_BELOW_MIN = HB_OT_MATH_CONSTANT_STRETCH_STACK_GAP_BELOW_MIN
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_STRETCH_STACK_BOTTOM_SHIFT_DOWN); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 71, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_STRETCH_STACK_BOTTOM_SHIFT_DOWN, __pyx_t_5) < (0)) __PYX_ERR(3, 71, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":72
 *     STRETCH_STACK_TOP_SHIFT_UP = HB_OT_MATH_CONSTANT_STRETCH_STACK_TOP_SHIFT_UP
 *     STRETCH_STACK_BOTTOM_SHIFT_DOWN = HB_OT_MATH_CONSTANT_STRETCH_STACK_BOTTOM_SHIFT_DOWN
 *     STRETCH_STACK_GAP_ABOVE_MIN = HB_OT_MATH_CONSTANT_STRETCH_STACK_GAP_ABOVE_MIN             # <<<<<<<<<<<<<<
 *     STRETCH_STACK_GAP_BELOW_MIN = HB_OT_MATH_CONSTANT_STRETCH_STACK_GAP_BELOW_MIN
 *     FRACTION_NUMERATOR_SHIFT_UP = HB_OT_MATH_CONSTANT_FRACTION_NUMERATOR_SHIFT_UP
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_STRETCH_STACK_GAP_ABOVE_MIN); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 72, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_STRETCH_STACK_GAP_ABOVE_MIN, __pyx_t_5) < (0)) __PYX_ERR(3, 72, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":73
 *     STRETCH_STACK_BOTTOM_SHIFT_DOWN = HB_OT_MATH_CONSTANT_STRETCH_STACK_BOTTOM_SHIFT_DOWN
 *     STRETCH_STACK_GAP_ABOVE_MIN = HB_OT_MATH_CONSTANT_STRETCH_STACK_GAP_ABOVE_MIN
 *     STRETCH_STACK_GAP_BELOW_MIN = HB_OT_MATH_CONSTANT_STRETCH_STACK_GAP_BELOW_MIN             # <<<<<<<<<<<<<<
 *     FRACTION_NUMERATOR_SHIFT_UP = HB_OT_MATH_CONSTANT_FRACTION_NUMERATOR_SHIFT_UP
 *     FRACTION_NUMERATOR_DISPLAY_STYLE_SHIFT_UP = HB_OT_MATH_CONSTANT_FRACTION_NUMERATOR_DISPLAY_STYLE_SHIFT_UP
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_STRETCH_STACK_GAP_BELOW_MIN); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 73, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_STRETCH_STACK_GAP_BELOW_MIN, __pyx_t_5) < (0)) __PYX_ERR(3, 73, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":74
 *     STRETCH_STACK_GAP_ABOVE_MIN = HB_OT_MATH_CONSTANT_STRETCH_STACK_GAP_ABOVE_MIN
 *     STRETCH_STACK_GAP_BELOW_MIN = HB_OT_MATH_CONSTANT_STRETCH_STACK_GAP_BELOW_MIN
 *     FRACTION_NUMERATOR_SHIFT_UP = HB_OT_MATH_CONSTANT_FRACTION_NUMERATOR_SHIFT_UP             # <<<<<<<<<<<<<<
 *     FRACTION_NUMERATOR_DISPLAY_STYLE_SHIFT_UP = HB_OT_MATH_CONSTANT_FRACTION_NUMERATOR_DISPLAY_STYLE_SHIFT_UP
 *     FRACTION_DENOMINATOR_SHIFT_DOWN = HB_OT_MATH_CONSTANT_FRACTION_DENOMINATOR_SHIFT_DOWN
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_FRACTION_NUMERATOR_SHIFT_UP); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 74, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_FRACTION_NUMERATOR_SHIFT_UP, __pyx_t_5) < (0)) __PYX_ERR(3, 74, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":75
 *     STRETCH_STACK_GAP_BELOW_MIN = HB_OT_MATH_CONSTANT_STRETCH_STACK_GAP_BELOW_MIN
 *     FRACTION_NUMERATOR_SHIFT_UP = HB_OT_MATH_CONSTANT_FRACTION_NUMERATOR_SHIFT_UP
 *     FRACTION_NUMERATOR_DISPLAY_STYLE_SHIFT_UP = HB_OT_MATH_CONSTANT_FRACTION_NUMERATOR_DISPLAY_STYLE_SHIFT_UP             # <<<<<<<<<<<<<<
 *     FRACTION_DENOMINATOR_SHIFT_DOWN = HB_OT_MATH_CONSTANT_FRACTION_DENOMINATOR_SHIFT_DOWN
 *     FRACTION_DENOMINATOR_DISPLAY_STYLE_SHIFT_DOWN = HB_OT_MATH_CONSTANT_FRACTION_DENOMINATOR_DISPLAY_STYLE_SHIFT_DOWN
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_FRACTION_NUMERATOR_DISPLAY_STYLE_SHIFT_UP); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 75, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_FRACTION_NUMERATOR_DISPLAY_STYLE, __pyx_t_5) < (0)) __PYX_ERR(3, 75, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":76
 *     FRACTION_NUMERATOR_SHIFT_UP = HB_OT_MATH_CONSTANT_FRACTION_NUMERATOR_SHIFT_UP
 *     FRACTION_NUMERATOR_DISPLAY_STYLE_SHIFT_UP = HB_OT_MATH_CONSTANT_FRACTION_NUMERATOR_DISPLAY_STYLE_SHIFT_UP
 *     FRACTION_DENOMINATOR_SHIFT_DOWN = HB_OT_MATH_CONSTANT_FRACTION_DENOMINATOR_SHIFT_DOWN             # <<<<<<<<<<<<<<
 *     FRACTION_DENOMINATOR_DISPLAY_STYLE_SHIFT_DOWN = HB_OT_MATH_CONSTANT_FRACTION_DENOMINATOR_DISPLAY_STYLE_SHIFT_DOWN
 *     FRACTION_NUMERATOR_GAP_MIN = HB_OT_MATH_CONSTANT_FRACTION_NUMERATOR_GAP_MIN
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_FRACTION_DENOMINATOR_SHIFT_DOWN); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 76, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_FRACTION_DENOMINATOR_SHIFT_DOWN, __pyx_t_5) < (0)) __PYX_ERR(3, 76, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":77
 *     FRACTION_NUMERATOR_DISPLAY_STYLE_SHIFT_UP = HB_OT_MATH_CONSTANT_FRACTION_NUMERATOR_DISPLAY_STYLE_SHIFT_UP
 *     FRACTION_DENOMINATOR_SHIFT_DOWN = HB_OT_MATH_CONSTANT_FRACTION_DENOMINATOR_SHIFT_DOWN
 *     FRACTION_DENOMINATOR_DISPLAY_STYLE_SHIFT_DOWN = HB_OT_MATH_CONSTANT_FRACTION_DENOMINATOR_DISPLAY_STYLE_SHIFT_DOWN             # <<<<<<<<<<<<<<
 *     FRACTION_NUMERATOR_GAP_MIN = HB_OT_MATH_CONSTANT_FRACTION_NUMERATOR_GAP_MIN
 *     FRACTION_NUM_DISPLAY_STYLE_GAP_MIN = HB_OT_MATH_CONSTANT_FRACTION_NUM_DISPLAY_STYLE_GAP_MIN
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_FRACTION_DENOMINATOR_DISPLAY_STYLE_SHIFT_DOWN); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 77, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_FRACTION_DENOMINATOR_DISPLAY_STY, __pyx_t_5) < (0)) __PYX_ERR(3, 77, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":78
 *     FRACTION_DENOMINATOR_SHIFT_DOWN = HB_OT_MATH_CONSTANT_FRACTION_DENOMINATOR_SHIFT_DOWN
 *     FRACTION_DENOMINATOR_DISPLAY_STYLE_SHIFT_DOWN = HB_OT_MATH_CONSTANT_FRACTION_DENOMINATOR_DISPLAY_STYLE_SHIFT_DOWN
 *     FRACTION_NUMERATOR_GAP_MIN = HB_OT_MATH_CONSTANT_FRACTION_NUMERATOR_GAP_MIN             # <<<<<<<<<<<<<<
 *     FRACTION_NUM_DISPLAY_STYLE_GAP_MIN = HB_OT_MATH_CONSTANT_FRACTION_NUM_DISPLAY_STYLE_GAP_MIN
 *     FRACTION_RULE_THICKNESS = HB_OT_MATH_CONSTANT_FRACTION_RULE_THICKNESS
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_FRACTION_NUMERATOR_GAP_MIN); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 78, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_FRACTION_NUMERATOR_GAP_MIN, __pyx_t_5) < (0)) __PYX_ERR(3, 78, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":79
 *     FRACTION_DENOMINATOR_DISPLAY_STYLE_SHIFT_DOWN = HB_OT_MATH_CONSTANT_FRACTION_DENOMINATOR_DISPLAY_STYLE_SHIFT_DOWN
 *     FRACTION_NUMERATOR_GAP_MIN = HB_OT_MATH_CONSTANT_FRACTION_NUMERATOR_GAP_MIN
 *     FRACTION_NUM_DISPLAY_STYLE_GAP_MIN = HB_OT_MATH_CONSTANT_FRACTION_NUM_DISPLAY_STYLE_GAP_MIN             # <<<<<<<<<<<<<<
 *     FRACTION_RULE_THICKNESS = HB_OT_MATH_CONSTANT_FRACTION_RULE_THICKNESS
 *     FRACTION_DENOMINATOR_GAP_MIN = HB_OT_MATH_CONSTANT_FRACTION_DENOMINATOR_GAP_MIN
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_FRACTION_NUM_DISPLAY_STYLE_GAP_MIN); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 79, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_FRACTION_NUM_DISPLAY_STYLE_GAP_M, __pyx_t_5) < (0)) __PYX_ERR(3, 79, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":80
 *     FRACTION_NUMERATOR_GAP_MIN = HB_OT_MATH_CONSTANT_FRACTION_NUMERATOR_GAP_MIN
 *     FRACTION_NUM_DISPLAY_STYLE_GAP_MIN = HB_OT_MATH_CONSTANT_FRACTION_NUM_DISPLAY_STYLE_GAP_MIN
 *     FRACTION_RULE_THICKNESS = HB_OT_MATH_CONSTANT_FRACTION_RULE_THICKNESS             # <<<<<<<<<<<<<<
 *     FRACTION_DENOMINATOR_GAP_MIN = HB_OT_MATH_CONSTANT_FRACTION_DENOMINATOR_GAP_MIN
 *     FRACTION_DENOM_DISPLAY_STYLE_GAP_MIN = HB_OT_MATH_CONSTANT_FRACTION_DENOM_DISPLAY_STYLE_GAP_MIN
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_FRACTION_RULE_THICKNESS); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 80, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_FRACTION_RULE_THICKNESS, __pyx_t_5) < (0)) __PYX_ERR(3, 80, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":81
 *     FRACTION_NUM_DISPLAY_STYLE_GAP_MIN = HB_OT_MATH_CONSTANT_FRACTION_NUM_DISPLAY_STYLE_GAP_MIN
 *     FRACTION_RULE_THICKNESS = HB_OT_MATH_CONSTANT_FRACTION_RULE_THICKNESS
 *     FRACTION_DENOMINATOR_GAP_MIN = HB_OT_MATH_CONSTANT_FRACTION_DENOMINATOR_GAP_MIN             # <<<<<<<<<<<<<<
 *     FRACTION_DENOM_DISPLAY_STYLE_GAP_MIN = HB_OT_MATH_CONSTANT_FRACTION_DENOM_DISPLAY_STYLE_GAP_MIN
 *     SKEWED_FRACTION_HORIZONTAL_GAP = HB_OT_MATH_CONSTANT_SKEWED_FRACTION_HORIZONTAL_GAP
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_FRACTION_DENOMINATOR_GAP_MIN); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 81, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_FRACTION_DENOMINATOR_GAP_MIN, __pyx_t_5) < (0)) __PYX_ERR(3, 81, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":82
 *     FRACTION_RULE_THICKNESS = HB_OT_MATH_CONSTANT_FRACTION_RULE_THICKNESS
 *     FRACTION_DENOMINATOR_GAP_MIN = HB_OT_MATH_CONSTANT_FRACTION_DENOMINATOR_GAP_MIN
 *     FRACTION_DENOM_DISPLAY_STYLE_GAP_MIN = HB_OT_MATH_CONSTANT_FRACTION_DENOM_DISPLAY_STYLE_GAP_MIN             # <<<<<<<<<<<<<<
 *     SKEWED_FRACTION_HORIZONTAL_GAP = HB_OT_MATH_CONSTANT_SKEWED_FRACTION_HORIZONTAL_GAP
 *     SKEWED_FRACTION_VERTICAL_GAP = HB_OT_MATH_CONSTANT_SKEWED_FRACTION_VERTICAL_GAP
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_FRACTION_DENOM_DISPLAY_STYLE_GAP_MIN); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 82, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_FRACTION_DENOM_DISPLAY_STYLE_GAP, __pyx_t_5) < (0)) __PYX_ERR(3, 82, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":83
 *     FRACTION_DENOMINATOR_GAP_MIN = HB_OT_MATH_CONSTANT_FRACTION_DENOMINATOR_GAP_MIN
 *     FRACTION_DENOM_DISPLAY_STYLE_GAP_MIN = HB_OT_MATH_CONSTANT_FRACTION_DENOM_DISPLAY_STYLE_GAP_MIN
 *     SKEWED_FRACTION_HORIZONTAL_GAP = HB_OT_MATH_CONSTANT_SKEWED_FRACTION_HORIZONTAL_GAP             # <<<<<<<<<<<<<<
 *     SKEWED_FRACTION_VERTICAL_GAP = HB_OT_MATH_CONSTANT_SKEWED_FRACTION_VERTICAL_GAP
 *     OVERBAR_VERTICAL_GAP = HB_OT_MATH_CONSTANT_OVERBAR_VERTICAL_GAP
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_SKEWED_FRACTION_HORIZONTAL_GAP); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 83, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_SKEWED_FRACTION_HORIZONTAL_GAP, __pyx_t_5) < (0)) __PYX_ERR(3, 83, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":84
 *     FRACTION_DENOM_DISPLAY_STYLE_GAP_MIN = HB_OT_MATH_CONSTANT_FRACTION_DENOM_DISPLAY_STYLE_GAP_MIN
 *     SKEWED_FRACTION_HORIZONTAL_GAP = HB_OT_MATH_CONSTANT_SKEWED_FRACTION_HORIZONTAL_GAP
 *     SKEWED_FRACTION_VERTICAL_GAP = HB_OT_MATH_CONSTANT_SKEWED_FRACTION_VERTICAL_GAP             # <<<<<<<<<<<<<<
 *     OVERBAR_VERTICAL_GAP = HB_OT_MATH_CONSTANT_OVERBAR_VERTICAL_GAP
 *     OVERBAR_RULE_THICKNESS = HB_OT_MATH_CONSTANT_OVERBAR_RULE_THICKNESS
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_SKEWED_FRACTION_VERTICAL_GAP); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 84, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_SKEWED_FRACTION_VERTICAL_GAP, __pyx_t_5) < (0)) __PYX_ERR(3, 84, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":85
 *     SKEWED_FRACTION_HORIZONTAL_GAP = HB_OT_MATH_CONSTANT_SKEWED_FRACTION_HORIZONTAL_GAP
 *     SKEWED_FRACTION_VERTICAL_GAP = HB_OT_MATH_CONSTANT_SKEWED_FRACTION_VERTICAL_GAP
 *     OVERBAR_VERTICAL_GAP = HB_OT_MATH_CONSTANT_OVERBAR_VERTICAL_GAP             # <<<<<<<<<<<<<<
 *     OVERBAR_RULE_THICKNESS = HB_OT_MATH_CONSTANT_OVERBAR_RULE_THICKNESS
 *     OVERBAR_EXTRA_ASCENDER = HB_OT_MATH_CONSTANT_OVERBAR_EXTRA_ASCENDER
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_OVERBAR_VERTICAL_GAP); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 85, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_OVERBAR_VERTICAL_GAP, __pyx_t_5) < (0)) __PYX_ERR(3, 85, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":86
 *     SKEWED_FRACTION_VERTICAL_GAP = HB_OT_MATH_CONSTANT_SKEWED_FRACTION_VERTICAL_GAP
 *     OVERBAR_VERTICAL_GAP = HB_OT_MATH_CONSTANT_OVERBAR_VERTICAL_GAP
 *     OVERBAR_RULE_THICKNESS = HB_OT_MATH_CONSTANT_OVERBAR_RULE_THICKNESS             # <<<<<<<<<<<<<<
 *     OVERBAR_EXTRA_ASCENDER = HB_OT_MATH_CONSTANT_OVERBAR_EXTRA_ASCENDER
 *     UNDERBAR_VERTICAL_GAP = HB_OT_MATH_CONSTANT_UNDERBAR_VERTICAL_GAP
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_OVERBAR_RULE_THICKNESS); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 86, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_OVERBAR_RULE_THICKNESS, __pyx_t_5) < (0)) __PYX_ERR(3, 86, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":87
 *     OVERBAR_VERTICAL_GAP = HB_OT_MATH_CONSTANT_OVERBAR_VERTICAL_GAP
 *     OVERBAR_RULE_THICKNESS = HB_OT_MATH_CONSTANT_OVERBAR_RULE_THICKNESS
 *     OVERBAR_EXTRA_ASCENDER = HB_OT_MATH_CONSTANT_OVERBAR_EXTRA_ASCENDER             # <<<<<<<<<<<<<<
 *     UNDERBAR_VERTICAL_GAP = HB_OT_MATH_CONSTANT_UNDERBAR_VERTICAL_GAP
 *     UNDERBAR_RULE_THICKNESS = HB_OT_MATH_CONSTANT_UNDERBAR_RULE_THICKNESS
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_OVERBAR_EXTRA_ASCENDER); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 87, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_OVERBAR_EXTRA_ASCENDER, __pyx_t_5) < (0)) __PYX_ERR(3, 87, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":88
 *     OVERBAR_RULE_THICKNESS = HB_OT_MATH_CONSTANT_OVERBAR_RULE_THICKNESS
 *     OVERBAR_EXTRA_ASCENDER = HB_OT_MATH_CONSTANT_OVERBAR_EXTRA_ASCENDER
 *     UNDERBAR_VERTICAL_GAP = HB_OT_MATH_CONSTANT_UNDERBAR_VERTICAL_GAP             # <<<<<<<<<<<<<<
 *     UNDERBAR_RULE_THICKNESS = HB_OT_MATH_CONSTANT_UNDERBAR_RULE_THICKNESS
 *     UNDERBAR_EXTRA_DESCENDER = HB_OT_MATH_CONSTANT_UNDERBAR_EXTRA_DESCENDER
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_UNDERBAR_VERTICAL_GAP); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 88, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_UNDERBAR_VERTICAL_GAP, __pyx_t_5) < (0)) __PYX_ERR(3, 88, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":89
 *     OVERBAR_EXTRA_ASCENDER = HB_OT_MATH_CONSTANT_OVERBAR_EXTRA_ASCENDER
 *     UNDERBAR_VERTICAL_GAP = HB_OT_MATH_CONSTANT_UNDERBAR_VERTICAL_GAP
 *     UNDERBAR_RULE_THICKNESS = HB_OT_MATH_CONSTANT_UNDERBAR_RULE_THICKNESS             # <<<<<<<<<<<<<<
 *     UNDERBAR_EXTRA_DESCENDER = HB_OT_MATH_CONSTANT_UNDERBAR_EXTRA_DESCENDER
 *     RADICAL_VERTICAL_GAP = HB_OT_MATH_CONSTANT_RADICAL_VERTICAL_GAP
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_UNDERBAR_RULE_THICKNESS); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 89, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_UNDERBAR_RULE_THICKNESS, __pyx_t_5) < (0)) __PYX_ERR(3, 89, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":90
 *     UNDERBAR_VERTICAL_GAP = HB_OT_MATH_CONSTANT_UNDERBAR_VERTICAL_GAP
 *     UNDERBAR_RULE_THICKNESS = HB_OT_MATH_CONSTANT_UNDERBAR_RULE_THICKNESS
 *     UNDERBAR_EXTRA_DESCENDER = HB_OT_MATH_CONSTANT_UNDERBAR_EXTRA_DESCENDER             # <<<<<<<<<<<<<<
 *     RADICAL_VERTICAL_GAP = HB_OT_MATH_CONSTANT_RADICAL_VERTICAL_GAP
 *     RADICAL_DISPLAY_STYLE_VERTICAL_GAP = HB_OT_MATH_CONSTANT_RADICAL_DISPLAY_STYLE_VERTICAL_GAP
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_UNDERBAR_EXTRA_DESCENDER); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 90, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_UNDERBAR_EXTRA_DESCENDER, __pyx_t_5) < (0)) __PYX_ERR(3, 90, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":91
 *     UNDERBAR_RULE_THICKNESS = HB_OT_MATH_CONSTANT_UNDERBAR_RULE_THICKNESS
 *     UNDERBAR_EXTRA_DESCENDER = HB_OT_MATH_CONSTANT_UNDERBAR_EXTRA_DESCENDER
 *     RADICAL_VERTICAL_GAP = HB_OT_MATH_CONSTANT_RADICAL_VERTICAL_GAP             # <<<<<<<<<<<<<<
 *     RADICAL_DISPLAY_STYLE_VERTICAL_GAP = HB_OT_MATH_CONSTANT_RADICAL_DISPLAY_STYLE_VERTICAL_GAP
 *     RADICAL_RULE_THICKNESS = HB_OT_MATH_CONSTANT_RADICAL_RULE_THICKNESS
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_RADICAL_VERTICAL_GAP); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 91, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_RADICAL_VERTICAL_GAP, __pyx_t_5) < (0)) __PYX_ERR(3, 91, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":92
 *     UNDERBAR_EXTRA_DESCENDER = HB_OT_MATH_CONSTANT_UNDERBAR_EXTRA_DESCENDER
 *     RADICAL_VERTICAL_GAP = HB_OT_MATH_CONSTANT_RADICAL_VERTICAL_GAP
 *     RADICAL_DISPLAY_STYLE_VERTICAL_GAP = HB_OT_MATH_CONSTANT_RADICAL_DISPLAY_STYLE_VERTICAL_GAP             # <<<<<<<<<<<<<<
 *     RADICAL_RULE_THICKNESS = HB_OT_MATH_CONSTANT_RADICAL_RULE_THICKNESS
 *     RADICAL_EXTRA_ASCENDER = HB_OT_MATH_CONSTANT_RADICAL_EXTRA_ASCENDER
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_RADICAL_DISPLAY_STYLE_VERTICAL_GAP); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 92, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_RADICAL_DISPLAY_STYLE_VERTICAL_G, __pyx_t_5) < (0)) __PYX_ERR(3, 92, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":93
 *     RADICAL_VERTICAL_GAP = HB_OT_MATH_CONSTANT_RADICAL_VERTICAL_GAP
 *     RADICAL_DISPLAY_STYLE_VERTICAL_GAP = HB_OT_MATH_CONSTANT_RADICAL_DISPLAY_STYLE_VERTICAL_GAP
 *     RADICAL_RULE_THICKNESS = HB_OT_MATH_CONSTANT_RADICAL_RULE_THICKNESS             # <<<<<<<<<<<<<<
 *     RADICAL_EXTRA_ASCENDER = HB_OT_MATH_CONSTANT_RADICAL_EXTRA_ASCENDER
 *     RADICAL_KERN_BEFORE_DEGREE = HB_OT_MATH_CONSTANT_RADICAL_KERN_BEFORE_DEGREE
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_RADICAL_RULE_THICKNESS); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 93, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_RADICAL_RULE_THICKNESS, __pyx_t_5) < (0)) __PYX_ERR(3, 93, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":94
 *     RADICAL_DISPLAY_STYLE_VERTICAL_GAP = HB_OT_MATH_CONSTANT_RADICAL_DISPLAY_STYLE_VERTICAL_GAP
 *     RADICAL_RULE_THICKNESS = HB_OT_MATH_CONSTANT_RADICAL_RULE_THICKNESS
 *     RADICAL_EXTRA_ASCENDER = HB_OT_MATH_CONSTANT_RADICAL_EXTRA_ASCENDER             # <<<<<<<<<<<<<<
 *     RADICAL_KERN_BEFORE_DEGREE = HB_OT_MATH_CONSTANT_RADICAL_KERN_BEFORE_DEGREE
 *     RADICAL_KERN_AFTER_DEGREE = HB_OT_MATH_CONSTANT_RADICAL_KERN_AFTER_DEGREE
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_RADICAL_EXTRA_ASCENDER); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 94, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_RADICAL_EXTRA_ASCENDER, __pyx_t_5) < (0)) __PYX_ERR(3, 94, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":95
 *     RADICAL_RULE_THICKNESS = HB_OT_MATH_CONSTANT_RADICAL_RULE_THICKNESS
 *     RADICAL_EXTRA_ASCENDER = HB_OT_MATH_CONSTANT_RADICAL_EXTRA_ASCENDER
 *     RADICAL_KERN_BEFORE_DEGREE = HB_OT_MATH_CONSTANT_RADICAL_KERN_BEFORE_DEGREE             # <<<<<<<<<<<<<<
 *     RADICAL_KERN_AFTER_DEGREE = HB_OT_MATH_CONSTANT_RADICAL_KERN_AFTER_DEGREE
 *     RADICAL_DEGREE_BOTTOM_RAISE_PERCENT = HB_OT_MATH_CONSTANT_RADICAL_DEGREE_BOTTOM_RAISE_PERCENT
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_RADICAL_KERN_BEFORE_DEGREE); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 95, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_RADICAL_KERN_BEFORE_DEGREE, __pyx_t_5) < (0)) __PYX_ERR(3, 95, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":96
 *     RADICAL_EXTRA_ASCENDER = HB_OT_MATH_CONSTANT_RADICAL_EXTRA_ASCENDER
 *     RADICAL_KERN_BEFORE_DEGREE = HB_OT_MATH_CONSTANT_RADICAL_KERN_BEFORE_DEGREE
 *     RADICAL_KERN_AFTER_DEGREE = HB_OT_MATH_CONSTANT_RADICAL_KERN_AFTER_DEGREE             # <<<<<<<<<<<<<<
 *     RADICAL_DEGREE_BOTTOM_RAISE_PERCENT = HB_OT_MATH_CONSTANT_RADICAL_DEGREE_BOTTOM_RAISE_PERCENT
 * 
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_RADICAL_KERN_AFTER_DEGREE); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 96, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_RADICAL_KERN_AFTER_DEGREE, __pyx_t_5) < (0)) __PYX_ERR(3, 96, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":97
 *     RADICAL_KERN_BEFORE_DEGREE = HB_OT_MATH_CONSTANT_RADICAL_KERN_BEFORE_DEGREE
 *     RADICAL_KERN_AFTER_DEGREE = HB_OT_MATH_CONSTANT_RADICAL_KERN_AFTER_DEGREE
 *     RADICAL_DEGREE_BOTTOM_RAISE_PERCENT = HB_OT_MATH_CONSTANT_RADICAL_DEGREE_BOTTOM_RAISE_PERCENT             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_math_constant_t(HB_OT_MATH_CONSTANT_RADICAL_DEGREE_BOTTOM_RAISE_PERCENT); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 97, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_RADICAL_DEGREE_BOTTOM_RAISE_PERC, __pyx_t_5) < (0)) __PYX_ERR(3, 97, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":36
 * 
 * 
 * class OTMathConstant(IntEnum):             # <<<<<<<<<<<<<<
 *     """Math constants from the OpenType ``MATH`` table.
 * 
*/
  __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_OTMathConstant, __pyx_t_7, __pyx_t_6, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 36, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_OTMathConstant, __pyx_t_5) < (0)) __PYX_ERR(3, 36, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_font.pxi":100
 * 
 * 
 * class OTMathKernEntry(NamedTuple):             # <<<<<<<<<<<<<<
 *     """Math kerning (cut-in) information for a glyph.
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_NamedTuple); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_10 = PyTuple_Pack(1, __pyx_t_7); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PEP560_update_bases(__pyx_t_10); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_6 = __Pyx_CalculateMetaclass(NULL, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_6, __pyx_t_7, __pyx_mstate_global->__pyx_n_u_OTMathKernEntry, __pyx_mstate_global->__pyx_n_u_OTMathKernEntry, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_Math_kerning_cut_in_information); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__pyx_t_7 != __pyx_t_10) {
    if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_10) < 0))) __PYX_ERR(3, 100, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  __pyx_t_10 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (PyDict_SetItem(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_max_correction_height, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 100, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_kern_value, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 100, __pyx_L1_error)
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_annotations, __pyx_t_10) < (0)) __PYX_ERR(3, 100, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_font.pxi":109
 *     """The maximum height at which this entry should be used."""
 *     kern_value: int
 *     """The kern value of the entry."""             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_10 = __Pyx_Py3ClassCreate(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_OTMathKernEntry, __pyx_t_7, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_10);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_OTMathKernEntry, __pyx_t_10) < (0)) __PYX_ERR(3, 100, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_font.pxi":112
 * 
 * 
 * class OTMathKern(IntEnum):             # <<<<<<<<<<<<<<
 *     """The math kerning-table types defined for the four corners of a glyph.
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 112, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_6 = PyTuple_Pack(1, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 112, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PEP560_update_bases(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 112, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 112, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_10 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_7, __pyx_mstate_global->__pyx_n_u_OTMathKern, __pyx_mstate_global->__pyx_n_u_OTMathKern, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_The_math_kerning_table_types_def); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 112, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__pyx_t_7 != __pyx_t_6) {
    if (unlikely((PyDict_SetItemString(__pyx_t_10, "__orig_bases__", __pyx_t_6) < 0))) __PYX_ERR(3, 112, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_font.pxi":138
 *     <https://harfbuzz.github.io/harfbuzz-hb-ot-math.html#hb-ot-math-kern-t>`_.
 *     """
 *     TOP_RIGHT = HB_OT_MATH_KERN_TOP_RIGHT             # <<<<<<<<<<<<<<
 *     TOP_LEFT = HB_OT_MATH_KERN_TOP_LEFT
 *     BOTTOM_RIGHT = HB_OT_MATH_KERN_BOTTOM_RIGHT
*/
  __pyx_t_6 = __Pyx_PyLong_From_hb_ot_math_kern_t(HB_OT_MATH_KERN_TOP_RIGHT); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 138, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__Pyx_SetNameInClass(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_TOP_RIGHT, __pyx_t_6) < (0)) __PYX_ERR(3, 138, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_font.pxi":139
 *     """
 *     TOP_RIGHT = HB_OT_MATH_KERN_TOP_RIGHT
 *     TOP_LEFT = HB_OT_MATH_KERN_TOP_LEFT             # <<<<<<<<<<<<<<
 *     BOTTOM_RIGHT = HB_OT_MATH_KERN_BOTTOM_RIGHT
 *     BOTTOM_LEFT = HB_OT_MATH_KERN_BOTTOM_LEFT
*/
  __pyx_t_6 = __Pyx_PyLong_From_hb_ot_math_kern_t(HB_OT_MATH_KERN_TOP_LEFT); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 139, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__Pyx_SetNameInClass(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_TOP_LEFT, __pyx_t_6) < (0)) __PYX_ERR(3, 139, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_font.pxi":140
 *     TOP_RIGHT = HB_OT_MATH_KERN_TOP_RIGHT
 *     TOP_LEFT = HB_OT_MATH_KERN_TOP_LEFT
 *     BOTTOM_RIGHT = HB_OT_MATH_KERN_BOTTOM_RIGHT             # <<<<<<<<<<<<<<
 *     BOTTOM_LEFT = HB_OT_MATH_KERN_BOTTOM_LEFT
 * 
*/
  __pyx_t_6 = __Pyx_PyLong_From_hb_ot_math_kern_t(HB_OT_MATH_KERN_BOTTOM_RIGHT); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__Pyx_SetNameInClass(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_BOTTOM_RIGHT, __pyx_t_6) < (0)) __PYX_ERR(3, 140, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_font.pxi":141
 *     TOP_LEFT = HB_OT_MATH_KERN_TOP_LEFT
 *     BOTTOM_RIGHT = HB_OT_MATH_KERN_BOTTOM_RIGHT
 *     BOTTOM_LEFT = HB_OT_MATH_KERN_BOTTOM_LEFT             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_6 = __Pyx_PyLong_From_hb_ot_math_kern_t(HB_OT_MATH_KERN_BOTTOM_LEFT); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 141, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__Pyx_SetNameInClass(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_BOTTOM_LEFT, __pyx_t_6) < (0)) __PYX_ERR(3, 141, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_font.pxi":112
 * 
 * 
 * class OTMathKern(IntEnum):             # <<<<<<<<<<<<<<
 *     """The math kerning-table types defined for the four corners of a glyph.
 * 
*/
  __pyx_t_6 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_OTMathKern, __pyx_t_7, __pyx_t_10, NULL, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 112, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_OTMathKern, __pyx_t_6) < (0)) __PYX_ERR(3, 112, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_font.pxi":144
 * 
 * 
 * class OTMathGlyphVariant(NamedTuple):             # <<<<<<<<<<<<<<
 *     """Math-variant information for a glyph.
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_NamedTuple); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 144, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_5 = PyTuple_Pack(1, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 144, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 144, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_10 = __Pyx_CalculateMetaclass(NULL, __pyx_t_7); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 144, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_6 = __Pyx_Py3MetaclassPrepare(__pyx_t_10, __pyx_t_7, __pyx_mstate_global->__pyx_n_u_OTMathGlyphVariant, __pyx_mstate_global->__pyx_n_u_OTMathGlyphVariant, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_Math_variant_information_for_a_g); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 144, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__pyx_t_7 != __pyx_t_5) {
    if (unlikely((PyDict_SetItemString(__pyx_t_6, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(3, 144, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 144, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 144, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_advance, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 144, __pyx_L1_error)
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_annotations, __pyx_t_5) < (0)) __PYX_ERR(3, 144, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":153
 *     """The glyph index of the variant."""
 *     advance: int
 *     """The advance width of the variant."""             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_OTMathGlyphVariant, __pyx_t_7, __pyx_t_6, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 144, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_OTMathGlyphVariant, __pyx_t_5) < (0)) __PYX_ERR(3, 144, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_font.pxi":156
 * 
 * 
 * class OTMathGlyphPartFlags(IntFlag):             # <<<<<<<<<<<<<<
 *     """Flags for math glyph parts.
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_IntFlag); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 156, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_10 = PyTuple_Pack(1, __pyx_t_7); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 156, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PEP560_update_bases(__pyx_t_10); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 156, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_6 = __Pyx_CalculateMetaclass(NULL, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 156, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_6, __pyx_t_7, __pyx_mstate_global->__pyx_n_u_OTMathGlyphPartFlags, __pyx_mstate_global->__pyx_n_u_OTMathGlyphPartFlags, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_Flags_for_math_glyph_parts_attri); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 156, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__pyx_t_7 != __pyx_t_10) {
    if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_10) < 0))) __PYX_ERR(3, 156, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_font.pxi":168
 *     <https://harfbuzz.github.io/harfbuzz-hb-ot-math.html#hb-ot-math-glyph-part-flags-t>`_.
 *     """
 *     EXTENDER = HB_OT_MATH_GLYPH_PART_FLAG_EXTENDER             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_ot_math_glyph_part_flags_t(HB_OT_MATH_GLYPH_PART_FLAG_EXTENDER); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 168, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_EXTENDER, __pyx_t_10) < (0)) __PYX_ERR(3, 168, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_font.pxi":156
 * 
 * 
 * class OTMathGlyphPartFlags(IntFlag):             # <<<<<<<<<<<<<<
 *     """Flags for math glyph parts.
 * 
*/
  __pyx_t_10 = __Pyx_Py3ClassCreate(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_OTMathGlyphPartFlags, __pyx_t_7, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 156, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_10);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_OTMathGlyphPartFlags, __pyx_t_10) < (0)) __PYX_ERR(3, 156, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_font.pxi":171
 * 
 * 
 * class OTMathGlyphPart(NamedTuple):             # <<<<<<<<<<<<<<
 *     """Information for a "part" component of a math-variant glyph. Large
 *     variants for stretchable math glyphs (such as parentheses) can be
*/
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_NamedTuple); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 171, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_6 = PyTuple_Pack(1, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 171, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PEP560_update_bases(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 171, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 171, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_10 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_7, __pyx_mstate_global->__pyx_n_u_OTMathGlyphPart, __pyx_mstate_global->__pyx_n_u_OTMathGlyphPart, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_Information_for_a_part_component); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 171, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__pyx_t_7 != __pyx_t_6) {
    if (unlikely((PyDict_SetItemString(__pyx_t_10, "__orig_bases__", __pyx_t_6) < 0))) __PYX_ERR(3, 171, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_PyDict_NewPresized(5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 171, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 171, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_start_connector_length, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 171, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_end_connector_length, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 171, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_full_advance, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 171, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_flags, __pyx_mstate_global->__pyx_n_u_OTMathGlyphPartFlags) < (0)) __PYX_ERR(3, 171, __pyx_L1_error)
  if (__Pyx_SetNameInClass(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_annotations, __pyx_t_6) < (0)) __PYX_ERR(3, 171, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_font.pxi":188
 *     """The total advance of the part."""
 *     flags: OTMathGlyphPartFlags
 *     """:class:`OTMathGlyphPartFlags` flags for the part."""             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_6 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_OTMathGlyphPart, __pyx_t_7, __pyx_t_10, NULL, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 171, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_OTMathGlyphPart, __pyx_t_6) < (0)) __PYX_ERR(3, 171, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_font.pxi":191
 * 
 * 
 * class OTMetricsTag(IntEnum):             # <<<<<<<<<<<<<<
 *     """Metric tags corresponding to `MVAR Value Tags
 *     <https://docs.microsoft.com/en-us/typography/opentype/spec/mvar#value-tags>`_.
*/
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 191, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_5 = PyTuple_Pack(1, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 191, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 191, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_10 = __Pyx_CalculateMetaclass(NULL, __pyx_t_7); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 191, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_6 = __Pyx_Py3MetaclassPrepare(__pyx_t_10, __pyx_t_7, __pyx_mstate_global->__pyx_n_u_OTMetricsTag, __pyx_mstate_global->__pyx_n_u_OTMetricsTag, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_Metric_tags_corresponding_to_MVA); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 191, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__pyx_t_7 != __pyx_t_5) {
    if (unlikely((PyDict_SetItemString(__pyx_t_6, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(3, 191, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":198
 *     <https://harfbuzz.github.io/harfbuzz-hb-ot-metrics.html#hb-ot-metrics-tag-t>`_.
 *     """
 *     HORIZONTAL_ASCENDER = HB_OT_METRICS_TAG_HORIZONTAL_ASCENDER             # <<<<<<<<<<<<<<
 *     HORIZONTAL_DESCENDER = HB_OT_METRICS_TAG_HORIZONTAL_DESCENDER
 *     HORIZONTAL_LINE_GAP = HB_OT_METRICS_TAG_HORIZONTAL_LINE_GAP
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_metrics_tag_t(HB_OT_METRICS_TAG_HORIZONTAL_ASCENDER); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 198, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_HORIZONTAL_ASCENDER, __pyx_t_5) < (0)) __PYX_ERR(3, 198, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":199
 *     """
 *     HORIZONTAL_ASCENDER = HB_OT_METRICS_TAG_HORIZONTAL_ASCENDER
 *     HORIZONTAL_DESCENDER = HB_OT_METRICS_TAG_HORIZONTAL_DESCENDER             # <<<<<<<<<<<<<<
 *     HORIZONTAL_LINE_GAP = HB_OT_METRICS_TAG_HORIZONTAL_LINE_GAP
 *     HORIZONTAL_CLIPPING_ASCENT = HB_OT_METRICS_TAG_HORIZONTAL_CLIPPING_ASCENT
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_metrics_tag_t(HB_OT_METRICS_TAG_HORIZONTAL_DESCENDER); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 199, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_HORIZONTAL_DESCENDER, __pyx_t_5) < (0)) __PYX_ERR(3, 199, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":200
 *     HORIZONTAL_ASCENDER = HB_OT_METRICS_TAG_HORIZONTAL_ASCENDER
 *     HORIZONTAL_DESCENDER = HB_OT_METRICS_TAG_HORIZONTAL_DESCENDER
 *     HORIZONTAL_LINE_GAP = HB_OT_METRICS_TAG_HORIZONTAL_LINE_GAP             # <<<<<<<<<<<<<<
 *     HORIZONTAL_CLIPPING_ASCENT = HB_OT_METRICS_TAG_HORIZONTAL_CLIPPING_ASCENT
 *     HORIZONTAL_CLIPPING_DESCENT = HB_OT_METRICS_TAG_HORIZONTAL_CLIPPING_DESCENT
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_metrics_tag_t(HB_OT_METRICS_TAG_HORIZONTAL_LINE_GAP); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 200, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_HORIZONTAL_LINE_GAP, __pyx_t_5) < (0)) __PYX_ERR(3, 200, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":201
 *     HORIZONTAL_DESCENDER = HB_OT_METRICS_TAG_HORIZONTAL_DESCENDER
 *     HORIZONTAL_LINE_GAP = HB_OT_METRICS_TAG_HORIZONTAL_LINE_GAP
 *     HORIZONTAL_CLIPPING_ASCENT = HB_OT_METRICS_TAG_HORIZONTAL_CLIPPING_ASCENT             # <<<<<<<<<<<<<<
 *     HORIZONTAL_CLIPPING_DESCENT = HB_OT_METRICS_TAG_HORIZONTAL_CLIPPING_DESCENT
 *     VERTICAL_ASCENDER = HB_OT_METRICS_TAG_VERTICAL_ASCENDER
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_metrics_tag_t(HB_OT_METRICS_TAG_HORIZONTAL_CLIPPING_ASCENT); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 201, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_HORIZONTAL_CLIPPING_ASCENT, __pyx_t_5) < (0)) __PYX_ERR(3, 201, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":202
 *     HORIZONTAL_LINE_GAP = HB_OT_METRICS_TAG_HORIZONTAL_LINE_GAP
 *     HORIZONTAL_CLIPPING_ASCENT = HB_OT_METRICS_TAG_HORIZONTAL_CLIPPING_ASCENT
 *     HORIZONTAL_CLIPPING_DESCENT = HB_OT_METRICS_TAG_HORIZONTAL_CLIPPING_DESCENT             # <<<<<<<<<<<<<<
 *     VERTICAL_ASCENDER = HB_OT_METRICS_TAG_VERTICAL_ASCENDER
 *     VERTICAL_DESCENDER = HB_OT_METRICS_TAG_VERTICAL_DESCENDER
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_metrics_tag_t(HB_OT_METRICS_TAG_HORIZONTAL_CLIPPING_DESCENT); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 202, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_HORIZONTAL_CLIPPING_DESCENT, __pyx_t_5) < (0)) __PYX_ERR(3, 202, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":203
 *     HORIZONTAL_CLIPPING_ASCENT = HB_OT_METRICS_TAG_HORIZONTAL_CLIPPING_ASCENT
 *     HORIZONTAL_CLIPPING_DESCENT = HB_OT_METRICS_TAG_HORIZONTAL_CLIPPING_DESCENT
 *     VERTICAL_ASCENDER = HB_OT_METRICS_TAG_VERTICAL_ASCENDER             # <<<<<<<<<<<<<<
 *     VERTICAL_DESCENDER = HB_OT_METRICS_TAG_VERTICAL_DESCENDER
 *     VERTICAL_LINE_GAP = HB_OT_METRICS_TAG_VERTICAL_LINE_GAP
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_metrics_tag_t(HB_OT_METRICS_TAG_VERTICAL_ASCENDER); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 203, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_VERTICAL_ASCENDER, __pyx_t_5) < (0)) __PYX_ERR(3, 203, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":204
 *     HORIZONTAL_CLIPPING_DESCENT = HB_OT_METRICS_TAG_HORIZONTAL_CLIPPING_DESCENT
 *     VERTICAL_ASCENDER = HB_OT_METRICS_TAG_VERTICAL_ASCENDER
 *     VERTICAL_DESCENDER = HB_OT_METRICS_TAG_VERTICAL_DESCENDER             # <<<<<<<<<<<<<<
 *     VERTICAL_LINE_GAP = HB_OT_METRICS_TAG_VERTICAL_LINE_GAP
 *     HORIZONTAL_CARET_RISE = HB_OT_METRICS_TAG_HORIZONTAL_CARET_RISE
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_metrics_tag_t(HB_OT_METRICS_TAG_VERTICAL_DESCENDER); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 204, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_VERTICAL_DESCENDER, __pyx_t_5) < (0)) __PYX_ERR(3, 204, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":205
 *     VERTICAL_ASCENDER = HB_OT_METRICS_TAG_VERTICAL_ASCENDER
 *     VERTICAL_DESCENDER = HB_OT_METRICS_TAG_VERTICAL_DESCENDER
 *     VERTICAL_LINE_GAP = HB_OT_METRICS_TAG_VERTICAL_LINE_GAP             # <<<<<<<<<<<<<<
 *     HORIZONTAL_CARET_RISE = HB_OT_METRICS_TAG_HORIZONTAL_CARET_RISE
 *     HORIZONTAL_CARET_RUN = HB_OT_METRICS_TAG_HORIZONTAL_CARET_RUN
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_metrics_tag_t(HB_OT_METRICS_TAG_VERTICAL_LINE_GAP); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 205, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_VERTICAL_LINE_GAP, __pyx_t_5) < (0)) __PYX_ERR(3, 205, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":206
 *     VERTICAL_DESCENDER = HB_OT_METRICS_TAG_VERTICAL_DESCENDER
 *     VERTICAL_LINE_GAP = HB_OT_METRICS_TAG_VERTICAL_LINE_GAP
 *     HORIZONTAL_CARET_RISE = HB_OT_METRICS_TAG_HORIZONTAL_CARET_RISE             # <<<<<<<<<<<<<<
 *     HORIZONTAL_CARET_RUN = HB_OT_METRICS_TAG_HORIZONTAL_CARET_RUN
 *     HORIZONTAL_CARET_OFFSET = HB_OT_METRICS_TAG_HORIZONTAL_CARET_OFFSET
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_metrics_tag_t(HB_OT_METRICS_TAG_HORIZONTAL_CARET_RISE); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 206, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_HORIZONTAL_CARET_RISE, __pyx_t_5) < (0)) __PYX_ERR(3, 206, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":207
 *     VERTICAL_LINE_GAP = HB_OT_METRICS_TAG_VERTICAL_LINE_GAP
 *     HORIZONTAL_CARET_RISE = HB_OT_METRICS_TAG_HORIZONTAL_CARET_RISE
 *     HORIZONTAL_CARET_RUN = HB_OT_METRICS_TAG_HORIZONTAL_CARET_RUN             # <<<<<<<<<<<<<<
 *     HORIZONTAL_CARET_OFFSET = HB_OT_METRICS_TAG_HORIZONTAL_CARET_OFFSET
 *     VERTICAL_CARET_RISE = HB_OT_METRICS_TAG_VERTICAL_CARET_RISE
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_metrics_tag_t(HB_OT_METRICS_TAG_HORIZONTAL_CARET_RUN); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 207, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_HORIZONTAL_CARET_RUN, __pyx_t_5) < (0)) __PYX_ERR(3, 207, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":208
 *     HORIZONTAL_CARET_RISE = HB_OT_METRICS_TAG_HORIZONTAL_CARET_RISE
 *     HORIZONTAL_CARET_RUN = HB_OT_METRICS_TAG_HORIZONTAL_CARET_RUN
 *     HORIZONTAL_CARET_OFFSET = HB_OT_METRICS_TAG_HORIZONTAL_CARET_OFFSET             # <<<<<<<<<<<<<<
 *     VERTICAL_CARET_RISE = HB_OT_METRICS_TAG_VERTICAL_CARET_RISE
 *     VERTICAL_CARET_RUN = HB_OT_METRICS_TAG_VERTICAL_CARET_RUN
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_metrics_tag_t(HB_OT_METRICS_TAG_HORIZONTAL_CARET_OFFSET); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 208, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_HORIZONTAL_CARET_OFFSET, __pyx_t_5) < (0)) __PYX_ERR(3, 208, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":209
 *     HORIZONTAL_CARET_RUN = HB_OT_METRICS_TAG_HORIZONTAL_CARET_RUN
 *     HORIZONTAL_CARET_OFFSET = HB_OT_METRICS_TAG_HORIZONTAL_CARET_OFFSET
 *     VERTICAL_CARET_RISE = HB_OT_METRICS_TAG_VERTICAL_CARET_RISE             # <<<<<<<<<<<<<<
 *     VERTICAL_CARET_RUN = HB_OT_METRICS_TAG_VERTICAL_CARET_RUN
 *     VERTICAL_CARET_OFFSET = HB_OT_METRICS_TAG_VERTICAL_CARET_OFFSET
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_metrics_tag_t(HB_OT_METRICS_TAG_VERTICAL_CARET_RISE); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 209, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_VERTICAL_CARET_RISE, __pyx_t_5) < (0)) __PYX_ERR(3, 209, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":210
 *     HORIZONTAL_CARET_OFFSET = HB_OT_METRICS_TAG_HORIZONTAL_CARET_OFFSET
 *     VERTICAL_CARET_RISE = HB_OT_METRICS_TAG_VERTICAL_CARET_RISE
 *     VERTICAL_CARET_RUN = HB_OT_METRICS_TAG_VERTICAL_CARET_RUN             # <<<<<<<<<<<<<<
 *     VERTICAL_CARET_OFFSET = HB_OT_METRICS_TAG_VERTICAL_CARET_OFFSET
 *     X_HEIGHT = HB_OT_METRICS_TAG_X_HEIGHT
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_metrics_tag_t(HB_OT_METRICS_TAG_VERTICAL_CARET_RUN); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 210, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_VERTICAL_CARET_RUN, __pyx_t_5) < (0)) __PYX_ERR(3, 210, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":211
 *     VERTICAL_CARET_RISE = HB_OT_METRICS_TAG_VERTICAL_CARET_RISE
 *     VERTICAL_CARET_RUN = HB_OT_METRICS_TAG_VERTICAL_CARET_RUN
 *     VERTICAL_CARET_OFFSET = HB_OT_METRICS_TAG_VERTICAL_CARET_OFFSET             # <<<<<<<<<<<<<<
 *     X_HEIGHT = HB_OT_METRICS_TAG_X_HEIGHT
 *     CAP_HEIGHT = HB_OT_METRICS_TAG_CAP_HEIGHT
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_metrics_tag_t(HB_OT_METRICS_TAG_VERTICAL_CARET_OFFSET); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 211, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_VERTICAL_CARET_OFFSET, __pyx_t_5) < (0)) __PYX_ERR(3, 211, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":212
 *     VERTICAL_CARET_RUN = HB_OT_METRICS_TAG_VERTICAL_CARET_RUN
 *     VERTICAL_CARET_OFFSET = HB_OT_METRICS_TAG_VERTICAL_CARET_OFFSET
 *     X_HEIGHT = HB_OT_METRICS_TAG_X_HEIGHT             # <<<<<<<<<<<<<<
 *     CAP_HEIGHT = HB_OT_METRICS_TAG_CAP_HEIGHT
 *     SUBSCRIPT_EM_X_SIZE = HB_OT_METRICS_TAG_SUBSCRIPT_EM_X_SIZE
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_metrics_tag_t(HB_OT_METRICS_TAG_X_HEIGHT); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 212, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_X_HEIGHT, __pyx_t_5) < (0)) __PYX_ERR(3, 212, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":213
 *     VERTICAL_CARET_OFFSET = HB_OT_METRICS_TAG_VERTICAL_CARET_OFFSET
 *     X_HEIGHT = HB_OT_METRICS_TAG_X_HEIGHT
 *     CAP_HEIGHT = HB_OT_METRICS_TAG_CAP_HEIGHT             # <<<<<<<<<<<<<<
 *     SUBSCRIPT_EM_X_SIZE = HB_OT_METRICS_TAG_SUBSCRIPT_EM_X_SIZE
 *     SUBSCRIPT_EM_Y_SIZE = HB_OT_METRICS_TAG_SUBSCRIPT_EM_Y_SIZE
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_metrics_tag_t(HB_OT_METRICS_TAG_CAP_HEIGHT); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 213, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_CAP_HEIGHT, __pyx_t_5) < (0)) __PYX_ERR(3, 213, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":214
 *     X_HEIGHT = HB_OT_METRICS_TAG_X_HEIGHT
 *     CAP_HEIGHT = HB_OT_METRICS_TAG_CAP_HEIGHT
 *     SUBSCRIPT_EM_X_SIZE = HB_OT_METRICS_TAG_SUBSCRIPT_EM_X_SIZE             # <<<<<<<<<<<<<<
 *     SUBSCRIPT_EM_Y_SIZE = HB_OT_METRICS_TAG_SUBSCRIPT_EM_Y_SIZE
 *     SUBSCRIPT_EM_X_OFFSET = HB_OT_METRICS_TAG_SUBSCRIPT_EM_X_OFFSET
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_metrics_tag_t(HB_OT_METRICS_TAG_SUBSCRIPT_EM_X_SIZE); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 214, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_SUBSCRIPT_EM_X_SIZE, __pyx_t_5) < (0)) __PYX_ERR(3, 214, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":215
 *     CAP_HEIGHT = HB_OT_METRICS_TAG_CAP_HEIGHT
 *     SUBSCRIPT_EM_X_SIZE = HB_OT_METRICS_TAG_SUBSCRIPT_EM_X_SIZE
 *     SUBSCRIPT_EM_Y_SIZE = HB_OT_METRICS_TAG_SUBSCRIPT_EM_Y_SIZE             # <<<<<<<<<<<<<<
 *     SUBSCRIPT_EM_X_OFFSET = HB_OT_METRICS_TAG_SUBSCRIPT_EM_X_OFFSET
 *     SUBSCRIPT_EM_Y_OFFSET = HB_OT_METRICS_TAG_SUBSCRIPT_EM_Y_OFFSET
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_metrics_tag_t(HB_OT_METRICS_TAG_SUBSCRIPT_EM_Y_SIZE); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 215, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_SUBSCRIPT_EM_Y_SIZE, __pyx_t_5) < (0)) __PYX_ERR(3, 215, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":216
 *     SUBSCRIPT_EM_X_SIZE = HB_OT_METRICS_TAG_SUBSCRIPT_EM_X_SIZE
 *     SUBSCRIPT_EM_Y_SIZE = HB_OT_METRICS_TAG_SUBSCRIPT_EM_Y_SIZE
 *     SUBSCRIPT_EM_X_OFFSET = HB_OT_METRICS_TAG_SUBSCRIPT_EM_X_OFFSET             # <<<<<<<<<<<<<<
 *     SUBSCRIPT_EM_Y_OFFSET = HB_OT_METRICS_TAG_SUBSCRIPT_EM_Y_OFFSET
 *     SUPERSCRIPT_EM_X_SIZE = HB_OT_METRICS_TAG_SUPERSCRIPT_EM_X_SIZE
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_metrics_tag_t(HB_OT_METRICS_TAG_SUBSCRIPT_EM_X_OFFSET); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 216, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_SUBSCRIPT_EM_X_OFFSET, __pyx_t_5) < (0)) __PYX_ERR(3, 216, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":217
 *     SUBSCRIPT_EM_Y_SIZE = HB_OT_METRICS_TAG_SUBSCRIPT_EM_Y_SIZE
 *     SUBSCRIPT_EM_X_OFFSET = HB_OT_METRICS_TAG_SUBSCRIPT_EM_X_OFFSET
 *     SUBSCRIPT_EM_Y_OFFSET = HB_OT_METRICS_TAG_SUBSCRIPT_EM_Y_OFFSET             # <<<<<<<<<<<<<<
 *     SUPERSCRIPT_EM_X_SIZE = HB_OT_METRICS_TAG_SUPERSCRIPT_EM_X_SIZE
 *     SUPERSCRIPT_EM_Y_SIZE = HB_OT_METRICS_TAG_SUPERSCRIPT_EM_Y_SIZE
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_metrics_tag_t(HB_OT_METRICS_TAG_SUBSCRIPT_EM_Y_OFFSET); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 217, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_SUBSCRIPT_EM_Y_OFFSET, __pyx_t_5) < (0)) __PYX_ERR(3, 217, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":218
 *     SUBSCRIPT_EM_X_OFFSET = HB_OT_METRICS_TAG_SUBSCRIPT_EM_X_OFFSET
 *     SUBSCRIPT_EM_Y_OFFSET = HB_OT_METRICS_TAG_SUBSCRIPT_EM_Y_OFFSET
 *     SUPERSCRIPT_EM_X_SIZE = HB_OT_METRICS_TAG_SUPERSCRIPT_EM_X_SIZE             # <<<<<<<<<<<<<<
 *     SUPERSCRIPT_EM_Y_SIZE = HB_OT_METRICS_TAG_SUPERSCRIPT_EM_Y_SIZE
 *     SUPERSCRIPT_EM_X_OFFSET = HB_OT_METRICS_TAG_SUPERSCRIPT_EM_X_OFFSET
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_metrics_tag_t(HB_OT_METRICS_TAG_SUPERSCRIPT_EM_X_SIZE); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 218, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_SUPERSCRIPT_EM_X_SIZE, __pyx_t_5) < (0)) __PYX_ERR(3, 218, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":219
 *     SUBSCRIPT_EM_Y_OFFSET = HB_OT_METRICS_TAG_SUBSCRIPT_EM_Y_OFFSET
 *     SUPERSCRIPT_EM_X_SIZE = HB_OT_METRICS_TAG_SUPERSCRIPT_EM_X_SIZE
 *     SUPERSCRIPT_EM_Y_SIZE = HB_OT_METRICS_TAG_SUPERSCRIPT_EM_Y_SIZE             # <<<<<<<<<<<<<<
 *     SUPERSCRIPT_EM_X_OFFSET = HB_OT_METRICS_TAG_SUPERSCRIPT_EM_X_OFFSET
 *     SUPERSCRIPT_EM_Y_OFFSET = HB_OT_METRICS_TAG_SUPERSCRIPT_EM_Y_OFFSET
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_metrics_tag_t(HB_OT_METRICS_TAG_SUPERSCRIPT_EM_Y_SIZE); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_SUPERSCRIPT_EM_Y_SIZE, __pyx_t_5) < (0)) __PYX_ERR(3, 219, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":220
 *     SUPERSCRIPT_EM_X_SIZE = HB_OT_METRICS_TAG_SUPERSCRIPT_EM_X_SIZE
 *     SUPERSCRIPT_EM_Y_SIZE = HB_OT_METRICS_TAG_SUPERSCRIPT_EM_Y_SIZE
 *     SUPERSCRIPT_EM_X_OFFSET = HB_OT_METRICS_TAG_SUPERSCRIPT_EM_X_OFFSET             # <<<<<<<<<<<<<<
 *     SUPERSCRIPT_EM_Y_OFFSET = HB_OT_METRICS_TAG_SUPERSCRIPT_EM_Y_OFFSET
 *     STRIKEOUT_SIZE = HB_OT_METRICS_TAG_STRIKEOUT_SIZE
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_metrics_tag_t(HB_OT_METRICS_TAG_SUPERSCRIPT_EM_X_OFFSET); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 220, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_SUPERSCRIPT_EM_X_OFFSET, __pyx_t_5) < (0)) __PYX_ERR(3, 220, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":221
 *     SUPERSCRIPT_EM_Y_SIZE = HB_OT_METRICS_TAG_SUPERSCRIPT_EM_Y_SIZE
 *     SUPERSCRIPT_EM_X_OFFSET = HB_OT_METRICS_TAG_SUPERSCRIPT_EM_X_OFFSET
 *     SUPERSCRIPT_EM_Y_OFFSET = HB_OT_METRICS_TAG_SUPERSCRIPT_EM_Y_OFFSET             # <<<<<<<<<<<<<<
 *     STRIKEOUT_SIZE = HB_OT_METRICS_TAG_STRIKEOUT_SIZE
 *     STRIKEOUT_OFFSET = HB_OT_METRICS_TAG_STRIKEOUT_OFFSET
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_metrics_tag_t(HB_OT_METRICS_TAG_SUPERSCRIPT_EM_Y_OFFSET); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 221, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_SUPERSCRIPT_EM_Y_OFFSET, __pyx_t_5) < (0)) __PYX_ERR(3, 221, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":222
 *     SUPERSCRIPT_EM_X_OFFSET = HB_OT_METRICS_TAG_SUPERSCRIPT_EM_X_OFFSET
 *     SUPERSCRIPT_EM_Y_OFFSET = HB_OT_METRICS_TAG_SUPERSCRIPT_EM_Y_OFFSET
 *     STRIKEOUT_SIZE = HB_OT_METRICS_TAG_STRIKEOUT_SIZE             # <<<<<<<<<<<<<<
 *     STRIKEOUT_OFFSET = HB_OT_METRICS_TAG_STRIKEOUT_OFFSET
 *     UNDERLINE_SIZE = HB_OT_METRICS_TAG_UNDERLINE_SIZE
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_metrics_tag_t(HB_OT_METRICS_TAG_STRIKEOUT_SIZE); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 222, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_STRIKEOUT_SIZE, __pyx_t_5) < (0)) __PYX_ERR(3, 222, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":223
 *     SUPERSCRIPT_EM_Y_OFFSET = HB_OT_METRICS_TAG_SUPERSCRIPT_EM_Y_OFFSET
 *     STRIKEOUT_SIZE = HB_OT_METRICS_TAG_STRIKEOUT_SIZE
 *     STRIKEOUT_OFFSET = HB_OT_METRICS_TAG_STRIKEOUT_OFFSET             # <<<<<<<<<<<<<<
 *     UNDERLINE_SIZE = HB_OT_METRICS_TAG_UNDERLINE_SIZE
 *     UNDERLINE_OFFSET = HB_OT_METRICS_TAG_UNDERLINE_OFFSET
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_metrics_tag_t(HB_OT_METRICS_TAG_STRIKEOUT_OFFSET); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 223, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_STRIKEOUT_OFFSET, __pyx_t_5) < (0)) __PYX_ERR(3, 223, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":224
 *     STRIKEOUT_SIZE = HB_OT_METRICS_TAG_STRIKEOUT_SIZE
 *     STRIKEOUT_OFFSET = HB_OT_METRICS_TAG_STRIKEOUT_OFFSET
 *     UNDERLINE_SIZE = HB_OT_METRICS_TAG_UNDERLINE_SIZE             # <<<<<<<<<<<<<<
 *     UNDERLINE_OFFSET = HB_OT_METRICS_TAG_UNDERLINE_OFFSET
 * 
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_metrics_tag_t(HB_OT_METRICS_TAG_UNDERLINE_SIZE); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 224, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_UNDERLINE_SIZE, __pyx_t_5) < (0)) __PYX_ERR(3, 224, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":225
 *     STRIKEOUT_OFFSET = HB_OT_METRICS_TAG_STRIKEOUT_OFFSET
 *     UNDERLINE_SIZE = HB_OT_METRICS_TAG_UNDERLINE_SIZE
 *     UNDERLINE_OFFSET = HB_OT_METRICS_TAG_UNDERLINE_OFFSET             # <<<<<<<<<<<<<<
 * 
 * class StyleTag(IntEnum):
*/
  __pyx_t_5 = __Pyx_PyLong_From_hb_ot_metrics_tag_t(HB_OT_METRICS_TAG_UNDERLINE_OFFSET); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 225, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_UNDERLINE_OFFSET, __pyx_t_5) < (0)) __PYX_ERR(3, 225, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":191
 * 
 * 
 * class OTMetricsTag(IntEnum):             # <<<<<<<<<<<<<<
 *     """Metric tags corresponding to `MVAR Value Tags
 *     <https://docs.microsoft.com/en-us/typography/opentype/spec/mvar#value-tags>`_.
*/
  __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_OTMetricsTag, __pyx_t_7, __pyx_t_6, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 191, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_OTMetricsTag, __pyx_t_5) < (0)) __PYX_ERR(3, 191, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_font.pxi":227
 *     UNDERLINE_OFFSET = HB_OT_METRICS_TAG_UNDERLINE_OFFSET
 * 
 * class StyleTag(IntEnum):             # <<<<<<<<<<<<<<
 *     """Style tags defined by `OpenType Design-Variation Axis Tag Registry
 *     <https://docs.microsoft.com/en-us/typography/opentype/spec/dvaraxisreg>`_.
*/
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 227, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_10 = PyTuple_Pack(1, __pyx_t_7); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 227, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PEP560_update_bases(__pyx_t_10); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 227, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_6 = __Pyx_CalculateMetaclass(NULL, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 227, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_6, __pyx_t_7, __pyx_mstate_global->__pyx_n_u_StyleTag, __pyx_mstate_global->__pyx_n_u_StyleTag, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_Style_tags_defined_by_OpenType_D); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 227, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__pyx_t_7 != __pyx_t_10) {
    if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_10) < 0))) __PYX_ERR(3, 227, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_font.pxi":273
 *     <https://harfbuzz.github.io/harfbuzz-hb-style.html#hb-style-tag-t>`_.
 *     """
 *     ITALIC = HB_STYLE_TAG_ITALIC             # <<<<<<<<<<<<<<
 *     OPTICAL_SIZE = HB_STYLE_TAG_OPTICAL_SIZE
 *     SLANT_ANGLE = HB_STYLE_TAG_SLANT_ANGLE
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_style_tag_t(HB_STYLE_TAG_ITALIC); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 273, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_ITALIC, __pyx_t_10) < (0)) __PYX_ERR(3, 273, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_font.pxi":274
 *     """
 *     ITALIC = HB_STYLE_TAG_ITALIC
 *     OPTICAL_SIZE = HB_STYLE_TAG_OPTICAL_SIZE             # <<<<<<<<<<<<<<
 *     SLANT_ANGLE = HB_STYLE_TAG_SLANT_ANGLE
 *     SLANT_RATIO = HB_STYLE_TAG_SLANT_RATIO
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_style_tag_t(HB_STYLE_TAG_OPTICAL_SIZE); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 274, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_OPTICAL_SIZE, __pyx_t_10) < (0)) __PYX_ERR(3, 274, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_font.pxi":275
 *     ITALIC = HB_STYLE_TAG_ITALIC
 *     OPTICAL_SIZE = HB_STYLE_TAG_OPTICAL_SIZE
 *     SLANT_ANGLE = HB_STYLE_TAG_SLANT_ANGLE             # <<<<<<<<<<<<<<
 *     SLANT_RATIO = HB_STYLE_TAG_SLANT_RATIO
 *     WIDTH = HB_STYLE_TAG_WIDTH
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_style_tag_t(HB_STYLE_TAG_SLANT_ANGLE); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_SLANT_ANGLE, __pyx_t_10) < (0)) __PYX_ERR(3, 275, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_font.pxi":276
 *     OPTICAL_SIZE = HB_STYLE_TAG_OPTICAL_SIZE
 *     SLANT_ANGLE = HB_STYLE_TAG_SLANT_ANGLE
 *     SLANT_RATIO = HB_STYLE_TAG_SLANT_RATIO             # <<<<<<<<<<<<<<
 *     WIDTH = HB_STYLE_TAG_WIDTH
 *     WEIGHT = HB_STYLE_TAG_WEIGHT
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_style_tag_t(HB_STYLE_TAG_SLANT_RATIO); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 276, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_SLANT_RATIO, __pyx_t_10) < (0)) __PYX_ERR(3, 276, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_font.pxi":277
 *     SLANT_ANGLE = HB_STYLE_TAG_SLANT_ANGLE
 *     SLANT_RATIO = HB_STYLE_TAG_SLANT_RATIO
 *     WIDTH = HB_STYLE_TAG_WIDTH             # <<<<<<<<<<<<<<
 *     WEIGHT = HB_STYLE_TAG_WEIGHT
 * 
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_style_tag_t(HB_STYLE_TAG_WIDTH); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_WIDTH, __pyx_t_10) < (0)) __PYX_ERR(3, 277, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_font.pxi":278
 *     SLANT_RATIO = HB_STYLE_TAG_SLANT_RATIO
 *     WIDTH = HB_STYLE_TAG_WIDTH
 *     WEIGHT = HB_STYLE_TAG_WEIGHT             # <<<<<<<<<<<<<<
 * 
 * cdef class Font:
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_style_tag_t(HB_STYLE_TAG_WEIGHT); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 278, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_WEIGHT, __pyx_t_10) < (0)) __PYX_ERR(3, 278, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_font.pxi":227
 *     UNDERLINE_OFFSET = HB_OT_METRICS_TAG_UNDERLINE_OFFSET
 * 
 * class StyleTag(IntEnum):             # <<<<<<<<<<<<<<
 *     """Style tags defined by `OpenType Design-Variation Axis Tag Registry
 *     <https://docs.microsoft.com/en-us/typography/opentype/spec/dvaraxisreg>`_.
*/
  __pyx_t_10 = __Pyx_Py3ClassCreate(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_StyleTag, __pyx_t_7, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 227, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_10);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_StyleTag, __pyx_t_10) < (0)) __PYX_ERR(3, 227, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_font.pxi":336
 *         return wrapper
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     @deprecated("Font()", since="0.10.0")
 *     def create(cls, face: Face) -> Font:
*/
  __pyx_t_7 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 336, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (PyDict_SetItem(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_face, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(3, 336, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_Font) < (0)) __PYX_ERR(3, 336, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_5create, __Pyx_CYFUNCTION_CLASSMETHOD | __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_create, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[115])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 336, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_7);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_create, __pyx_t_6) < (0)) __PYX_ERR(3, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_font.pxi":337
 * 
 *     @classmethod
 *     @deprecated("Font()", since="0.10.0")             # <<<<<<<<<<<<<<
 *     def create(cls, face: Face) -> Font:
 *         cdef Font inst = cls(face)
*/
  __pyx_t_7 = NULL;
  __pyx_t_10 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 337, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_10, __pyx_mstate_global->__pyx_kp_u_Font_2};
    __pyx_t_9 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 337, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_10_0, __pyx_t_9, __pyx_callargs+2, 0) < (0)) __PYX_ERR(3, 337, __pyx_L1_error)
    __pyx_t_5 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_9);
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 337, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }

  /* "src/uharfbuzz/_font.pxi":336
 *         return wrapper
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     @deprecated("Font()", since="0.10.0")
 *     def create(cls, face: Face) -> Font:
*/
  __Pyx_GetNameInClass(__pyx_t_2, (PyObject*)__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_create); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 336, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_2};
    __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 337, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  __pyx_t_5 = __Pyx_Method_ClassMethod(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 336, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_create, __pyx_t_5) < (0)) __PYX_ERR(3, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":537
 *         hb_font_set_var_named_instance(self._hb_font, value)
 * 
 *     def set_variations(self, variations: Dict[str, float]):             # <<<<<<<<<<<<<<
 *         """Applies a list of font-variation settings to the font.
 * 
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 537, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_variations, __pyx_mstate_global->__pyx_kp_u_Dict_str_float) < (0)) __PYX_ERR(3, 537, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_7set_variations, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_set_variations, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[116])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 537, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_set_variations, __pyx_t_6) < (0)) __PYX_ERR(3, 537, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_font.pxi":568
 *             free(hb_variations)
 * 
 *     def set_variation(self, name: str, value: float):             # <<<<<<<<<<<<<<
 *         """Change the value of one variation axis on the font.
 * 
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 568, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_name_2, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(3, 568, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_value, __pyx_mstate_global->__pyx_n_u_float) < (0)) __PYX_ERR(3, 568, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_9set_variation, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_set_variation, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[117])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 568, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_set_variation, __pyx_t_5) < (0)) __PYX_ERR(3, 568, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":585
 *         hb_font_set_variation(self._hb_font, tag, value)
 * 
 *     def get_glyph_name(self, gid: int) -> str | None:             # <<<<<<<<<<<<<<
 *         """Fetches the glyph-name string for a glyph ID in the font.
 * 
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 585, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gid, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 585, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_str_None) < (0)) __PYX_ERR(3, 585, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_11get_glyph_name, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_get_glyph_name, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[118])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 585, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_get_glyph_name, __pyx_t_6) < (0)) __PYX_ERR(3, 585, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_font.pxi":608
 *             return None
 * 
 *     def get_glyph_from_name(self, name: str) -> int | None:             # <<<<<<<<<<<<<<
 *         """Fetches the glyph ID that corresponds to a name string in the
 *         font.
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 608, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_name_2, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(3, 608, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_int_None) < (0)) __PYX_ERR(3, 608, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_13get_glyph_from_name, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_get_glyph_from_name, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[119])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 608, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_get_glyph_from_name, __pyx_t_5) < (0)) __PYX_ERR(3, 608, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":625
 *         return gid if success else None
 * 
 *     def get_glyph_extents(self, gid: int) -> GlyphExtents:             # <<<<<<<<<<<<<<
 *         """Fetches the :class:`GlyphExtents` data for a glyph ID.
 * 
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 625, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gid, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 625, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_GlyphExtents) < (0)) __PYX_ERR(3, 625, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_15get_glyph_extents, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_get_glyph_extents, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[120])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 625, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_get_glyph_extents, __pyx_t_6) < (0)) __PYX_ERR(3, 625, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_font.pxi":648
 *             return None
 * 
 *     def get_glyph_h_advance(self, gid: int) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches the advance for a glyph ID, for horizontal text segments.
 * 
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 648, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_gid, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 648, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 648, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_17get_glyph_h_advance, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_get_glyph_h_advance, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[121])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 648, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_get_glyph_h_advance, __pyx_t_5) < (0)) __PYX_ERR(3, 648, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":656
 *         return hb_font_get_glyph_h_advance(self._hb_font, gid)
 * 
 *     def get_glyph_v_advance(self, gid: int) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches the advance for a glyph ID, for vertical text segments.
 * 
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 656, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gid, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 656, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 656, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_19get_glyph_v_advance, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_get_glyph_v_advance, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[122])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 656, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_get_glyph_v_advance, __pyx_t_6) < (0)) __PYX_ERR(3, 656, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_font.pxi":664
 *         return hb_font_get_glyph_v_advance(self._hb_font, gid)
 * 
 *     def get_glyph_h_origin(self, gid: int) -> Tuple[int, int] | None:             # <<<<<<<<<<<<<<
 *         """Fetches the (X, Y) coordinates of the origin for a glyph ID, for
 *         horizontal text segments.
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 664, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_gid, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 664, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_Tuple_int_int_None) < (0)) __PYX_ERR(3, 664, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_21get_glyph_h_origin, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_get_glyph_h_origin, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[123])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 664, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_get_glyph_h_origin, __pyx_t_5) < (0)) __PYX_ERR(3, 664, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":678
 *         return (x, y) if success else None
 * 
 *     def get_glyph_v_origin(self, gid: int) -> Tuple[int, int] | None:             # <<<<<<<<<<<<<<
 *         """Fetches the (X, Y) coordinates of the origin for a glyph ID, for
 *         vertical text segments.
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 678, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gid, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 678, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_Tuple_int_int_None) < (0)) __PYX_ERR(3, 678, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_23get_glyph_v_origin, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_get_glyph_v_origin, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[124])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 678, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_get_glyph_v_origin, __pyx_t_6) < (0)) __PYX_ERR(3, 678, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_font.pxi":692
 *         return (x, y) if success else None
 * 
 *     def get_font_extents(self, direction: str) -> FontExtents:             # <<<<<<<<<<<<<<
 *         """Fetches the extents for a font in a text segment of the
 *         specified direction.
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 692, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_direction, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(3, 692, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_FontExtents) < (0)) __PYX_ERR(3, 692, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_25get_font_extents, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_get_font_extents, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[125])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 692, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_get_font_extents, __pyx_t_5) < (0)) __PYX_ERR(3, 692, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":720
 *         )
 * 
 *     def get_variation_glyph(self, unicode: int, variation_selector: int) -> int | None:             # <<<<<<<<<<<<<<
 *         """Fetches the glyph ID for a Unicode code point when followed by
 *         the specified variation-selector code point.
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 720, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_unicode, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 720, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_variation_selector, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 720, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_int_None) < (0)) __PYX_ERR(3, 720, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_27get_variation_glyph, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_get_variation_glyph, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[126])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 720, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_get_variation_glyph, __pyx_t_6) < (0)) __PYX_ERR(3, 720, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_font.pxi":733
 *         return gid if success else None
 * 
 *     def get_nominal_glyph(self, unicode: int) -> int | None:             # <<<<<<<<<<<<<<
 *         """Fetches the nominal glyph ID for a Unicode code point.
 * 
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 733, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_unicode, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 733, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_int_None) < (0)) __PYX_ERR(3, 733, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_29get_nominal_glyph, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_get_nominal_glyph, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[127])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 733, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_get_nominal_glyph, __pyx_t_5) < (0)) __PYX_ERR(3, 733, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":745
 *         return gid if success else None
 * 
 *     def get_var_coords_normalized(self) -> List[float]:             # <<<<<<<<<<<<<<
 *         """Fetches the list of normalized variation coordinates currently
 *         set on the font.
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 745, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_List_float) < (0)) __PYX_ERR(3, 745, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_31get_var_coords_normalized, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_get_var_coords_normalized, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[128])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 745, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_get_var_coords_normalized, __pyx_t_6) < (0)) __PYX_ERR(3, 745, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_font.pxi":760
 *         return [coords[i] / 0x4000 for i in range(length)]
 * 
 *     def set_var_coords_normalized(self, coords: List[float]):             # <<<<<<<<<<<<<<
 *         """Applies a list of variation coordinates (in normalized units) to
 *         the font.
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_coords, __pyx_mstate_global->__pyx_kp_u_List_float) < (0)) __PYX_ERR(3, 760, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_33set_var_coords_normalized, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_set_var_coords_normalized, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[129])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_set_var_coords_normalized, __pyx_t_5) < (0)) __PYX_ERR(3, 760, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":785
 *             free(coords_2dot14)
 * 
 *     def get_var_coords_design(self):             # <<<<<<<<<<<<<<
 *         """Fetches the list of variation coordinates (in design-space
 *         units) currently set on the font.
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_35get_var_coords_design, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_get_var_coords_design, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[130])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 785, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_get_var_coords_design, __pyx_t_5) < (0)) __PYX_ERR(3, 785, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":797
 *         return [coords[i] for i in range(length)]
 * 
 *     def set_var_coords_design(self, coords: List[float]):             # <<<<<<<<<<<<<<
 *         """Applies a list of variation coordinates (in design-space units)
 *         to the font.
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 797, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_coords, __pyx_mstate_global->__pyx_kp_u_List_float) < (0)) __PYX_ERR(3, 797, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_37set_var_coords_design, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_set_var_coords_design, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[131])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 797, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_set_var_coords_design, __pyx_t_6) < (0)) __PYX_ERR(3, 797, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_font.pxi":821
 *             free(c_coords)
 * 
 *     def glyph_to_string(self, gid: int) -> str:             # <<<<<<<<<<<<<<
 *         """Fetches the name of the specified glyph ID.
 * 
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 821, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_gid, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 821, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(3, 821, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_39glyph_to_string, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_glyph_to_string, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[132])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 821, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_glyph_to_string, __pyx_t_5) < (0)) __PYX_ERR(3, 821, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":836
 *         return packed.decode()
 * 
 *     def glyph_from_string(self, string: str) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches the glyph ID that matches the specified string.
 * 
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 836, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_string, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(3, 836, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 836, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_41glyph_from_string, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_glyph_from_string, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[133])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 836, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_glyph_from_string, __pyx_t_6) < (0)) __PYX_ERR(3, 836, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_font.pxi":854
 *         return gid if success else None
 * 
 *     def draw_glyph(self, gid: int, draw_funcs: DrawFuncs, draw_state: object = None):             # <<<<<<<<<<<<<<
 *         """Draws the outline that corresponds to a glyph in the font.
 * 
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 854, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_gid, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 854, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_draw_funcs, __pyx_mstate_global->__pyx_n_u_DrawFuncs) < (0)) __PYX_ERR(3, 854, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_draw_state, __pyx_mstate_global->__pyx_n_u_object) < (0)) __PYX_ERR(3, 854, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_43draw_glyph, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_draw_glyph_2, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[134])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 854, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[3]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_draw_glyph, __pyx_t_5) < (0)) __PYX_ERR(3, 854, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":872
 *         hb_font_draw_glyph(self._hb_font, gid, draw_funcs._hb_drawfuncs, draw_state_p);
 * 
 *     def paint_glyph(self, gid: int,             # <<<<<<<<<<<<<<
 *                     paint_funcs: PaintFuncs,
 *                     paint_state: object = None,
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(5); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 872, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gid, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 872, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_paint_funcs, __pyx_mstate_global->__pyx_n_u_PaintFuncs) < (0)) __PYX_ERR(3, 872, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_paint_state, __pyx_mstate_global->__pyx_n_u_object) < (0)) __PYX_ERR(3, 872, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_palette_index, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 872, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_foreground, __pyx_mstate_global->__pyx_kp_u_Color_None) < (0)) __PYX_ERR(3, 872, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_45paint_glyph, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_paint_glyph, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[135])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 872, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_6, __pyx_mstate_global->__pyx_tuple[5]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_paint_glyph, __pyx_t_6) < (0)) __PYX_ERR(3, 872, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_font.pxi":904
 *                             c_foreground)
 * 
 *     def draw_glyph_with_pen(self, gid: int, pen):             # <<<<<<<<<<<<<<
 *         """Draws the outline of a glyph using a fontTools-style pen.
 * 
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 904, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_gid, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 904, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_47draw_glyph_with_pen, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_draw_glyph_with_pen, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[136])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 904, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_draw_glyph_with_pen, __pyx_t_5) < (0)) __PYX_ERR(3, 904, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":937
 * 
 *     # math
 *     def get_math_constant(self, constant: OTMathConstant) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches the specified math constant.
 * 
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 937, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_constant, __pyx_mstate_global->__pyx_n_u_OTMathConstant) < (0)) __PYX_ERR(3, 937, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 937, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_49get_math_constant, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_get_math_constant, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[137])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 937, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_get_math_constant, __pyx_t_6) < (0)) __PYX_ERR(3, 937, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_font.pxi":958
 *         return hb_ot_math_get_constant(self._hb_font, constant)
 * 
 *     def get_math_glyph_italics_correction(self, glyph: int) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches an italics-correction value (if one exists) for the
 *         specified glyph index.
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 958, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 958, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 958, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_51get_math_glyph_italics_correction, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_get_math_glyph_italics_corr, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[138])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 958, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_get_math_glyph_italics_correctio, __pyx_t_5) < (0)) __PYX_ERR(3, 958, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":967
 *         return hb_ot_math_get_glyph_italics_correction(self._hb_font, glyph)
 * 
 *     def get_math_glyph_top_accent_attachment(self, glyph: int) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches a top-accent-attachment value (if one exists) for the
 *         specified glyph index.
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 967, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 967, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 967, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_53get_math_glyph_top_accent_attachment, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_get_math_glyph_top_accent_a, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[139])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 967, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_get_math_glyph_top_accent_attach, __pyx_t_6) < (0)) __PYX_ERR(3, 967, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_font.pxi":976
 *         return hb_ot_math_get_glyph_top_accent_attachment(self._hb_font, glyph)
 * 
 *     def get_math_min_connector_overlap(self, direction: str) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches the MathVariants table for the font and returns the
 *         minimum overlap of connecting glyphs that are required to draw a
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 976, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_direction, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(3, 976, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 976, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_55get_math_min_connector_overlap, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_get_math_min_connector_over, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[140])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 976, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_get_math_min_connector_overlap, __pyx_t_5) < (0)) __PYX_ERR(3, 976, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":989
 *         return hb_ot_math_get_min_connector_overlap(self._hb_font, hb_direction)
 * 
 *     def get_math_glyph_kerning(self, glyph: int, kern: OTMathKern, correction_height: int) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches the math kerning (cut-ins) value for the specified font,
 *         glyph index, and ``kern``.
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 989, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 989, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_kern, __pyx_mstate_global->__pyx_n_u_OTMathKern) < (0)) __PYX_ERR(3, 989, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_correction_height, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 989, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 989, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_57get_math_glyph_kerning, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_get_math_glyph_kerning, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[141])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 989, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_get_math_glyph_kerning, __pyx_t_6) < (0)) __PYX_ERR(3, 989, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_font.pxi":1002
 *         return hb_ot_math_get_glyph_kerning(self._hb_font, glyph, kern, correction_height)
 * 
 *     def get_math_glyph_kernings(self, glyph: int, kern: OTMathKern) -> List[OTMathKernEntry]:             # <<<<<<<<<<<<<<
 *         """Fetches the raw MathKern (cut-in) data for the specified font,
 *         glyph index, and ``kern``.
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1002, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 1002, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_kern, __pyx_mstate_global->__pyx_n_u_OTMathKern) < (0)) __PYX_ERR(3, 1002, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_List_OTMathKernEntry) < (0)) __PYX_ERR(3, 1002, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_59get_math_glyph_kernings, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_get_math_glyph_kernings, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[142])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1002, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_get_math_glyph_kernings, __pyx_t_5) < (0)) __PYX_ERR(3, 1002, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":1026
 *         return kerns
 * 
 *     def get_math_glyph_variants(self, glyph: int, direction: str) -> List[OTMathGlyphVariant]:             # <<<<<<<<<<<<<<
 *         """Fetches the MathGlyphConstruction for the specified font, glyph
 *         index, and direction.
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1026, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 1026, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_direction, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(3, 1026, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_List_OTMathGlyphVariant) < (0)) __PYX_ERR(3, 1026, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_61get_math_glyph_variants, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_get_math_glyph_variants, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[143])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1026, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_get_math_glyph_variants, __pyx_t_6) < (0)) __PYX_ERR(3, 1026, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_font.pxi":1049
 *         return variants
 * 
 *     def get_math_glyph_assembly(self, glyph: int, direction: str) -> Tuple[List[OTMathGlyphPart], int]:             # <<<<<<<<<<<<<<
 *         """Fetches the GlyphAssembly for the specified font, glyph index,
 *         and direction.
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1049, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 1049, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_direction, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(3, 1049, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_Tuple_List_OTMathGlyphPart_int) < (0)) __PYX_ERR(3, 1049, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_63get_math_glyph_assembly, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_get_math_glyph_assembly, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[144])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1049, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_get_math_glyph_assembly, __pyx_t_5) < (0)) __PYX_ERR(3, 1049, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":1082
 * 
 *     # metrics
 *     def get_metric_position(self, tag: OTMetricsTag) -> int | None:             # <<<<<<<<<<<<<<
 *         """Fetches metrics value corresponding to ``tag`` from the font.
 * 
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1082, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_tag, __pyx_mstate_global->__pyx_n_u_OTMetricsTag) < (0)) __PYX_ERR(3, 1082, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_int_None) < (0)) __PYX_ERR(3, 1082, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_65get_metric_position, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_get_metric_position, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[145])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1082, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_get_metric_position, __pyx_t_6) < (0)) __PYX_ERR(3, 1082, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_font.pxi":1096
 *         return None
 * 
 *     def get_metric_position_with_fallback(self, tag: OTMetricsTag) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches metrics value corresponding to ``tag`` from the font, and
 *         synthesizes a value if the value is missing in the font.
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1096, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_tag, __pyx_mstate_global->__pyx_n_u_OTMetricsTag) < (0)) __PYX_ERR(3, 1096, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 1096, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_67get_metric_position_with_fallback, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_get_metric_position_with_fa, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[146])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1096, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_get_metric_position_with_fallbac, __pyx_t_5) < (0)) __PYX_ERR(3, 1096, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":1107
 *         return position
 * 
 *     def get_metric_variation(self, tag: OTMetricsTag) -> float:             # <<<<<<<<<<<<<<
 *         """Fetches metrics value corresponding to ``tag`` from the font with
 *         the current font variation settings applied.
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1107, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_tag, __pyx_mstate_global->__pyx_n_u_OTMetricsTag) < (0)) __PYX_ERR(3, 1107, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_float) < (0)) __PYX_ERR(3, 1107, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_69get_metric_variation, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_get_metric_variation, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[147])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1107, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_get_metric_variation, __pyx_t_6) < (0)) __PYX_ERR(3, 1107, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_font.pxi":1116
 *         return hb_ot_metrics_get_variation(self._hb_font, tag)
 * 
 *     def get_metric_x_variation(self, tag: OTMetricsTag) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches horizontal metrics value corresponding to ``tag`` from
 *         the font with the current font variation settings applied.
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1116, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_tag, __pyx_mstate_global->__pyx_n_u_OTMetricsTag) < (0)) __PYX_ERR(3, 1116, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 1116, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_71get_metric_x_variation, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_get_metric_x_variation, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[148])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1116, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_get_metric_x_variation, __pyx_t_5) < (0)) __PYX_ERR(3, 1116, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":1125
 *         return hb_ot_metrics_get_x_variation(self._hb_font, tag)
 * 
 *     def get_metric_y_variation(self, tag: OTMetricsTag) -> int:             # <<<<<<<<<<<<<<
 *         """Fetches vertical metrics value corresponding to ``tag`` from the
 *         font with the current font variation settings applied.
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1125, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_tag, __pyx_mstate_global->__pyx_n_u_OTMetricsTag) < (0)) __PYX_ERR(3, 1125, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 1125, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_73get_metric_y_variation, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_get_metric_y_variation, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[149])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1125, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_get_metric_y_variation, __pyx_t_6) < (0)) __PYX_ERR(3, 1125, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_font.pxi":1135
 * 
 *     # color
 *     def get_glyph_color_png(self, glyph: int) -> Blob:             # <<<<<<<<<<<<<<
 *         """Fetches the PNG image for a glyph. This function takes a font
 *         object, not a face object, as input. To get an optimally sized PNG
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1135, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 1135, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_Blob) < (0)) __PYX_ERR(3, 1135, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_75get_glyph_color_png, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_get_glyph_color_png, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[150])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1135, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_get_glyph_color_png, __pyx_t_5) < (0)) __PYX_ERR(3, 1135, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":1151
 * 
 *     #layout
 *     def get_layout_baseline(self,             # <<<<<<<<<<<<<<
 *                            baseline_tag: str,
 *                            direction: str,
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(5); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1151, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_baseline_tag, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(3, 1151, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_direction, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(3, 1151, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_script_tag, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(3, 1151, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_language_tag, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(3, 1151, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(3, 1151, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_77get_layout_baseline, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_get_layout_baseline, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[151])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1151, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_get_layout_baseline, __pyx_t_6) < (0)) __PYX_ERR(3, 1151, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_font.pxi":1212
 * 
 *     # style
 *     def get_style_value(self, tag: StyleTag) -> float:             # <<<<<<<<<<<<<<
 *         """Searches variation axes of the font for a specific axis first; if
 *         not set, first tries to get default style values in the ``STAT``
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1212, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_tag, __pyx_mstate_global->__pyx_n_u_StyleTag) < (0)) __PYX_ERR(3, 1212, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_float) < (0)) __PYX_ERR(3, 1212, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_79get_style_value, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font_get_style_value, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[152])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1212, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_Font, __pyx_mstate_global->__pyx_n_u_get_style_value, __pyx_t_5) < (0)) __PYX_ERR(3, 1212, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_81__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[153])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_5) < (0)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_4Font_83__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Font___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[154])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_5) < (0)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_font.pxi":1231
 *     void *closePath
 * 
 * cdef hb_draw_funcs_t* drawfuncs = NULL             # <<<<<<<<<<<<<<
 * 
 * cdef void _pen_move_to_func(hb_draw_funcs_t *dfuncs,
*/
  __pyx_v_9uharfbuzz_9_harfbuzz_drawfuncs = NULL;

  /* "src/uharfbuzz/_font.pxi":1399
 *         hb_font_funcs_destroy(self._hb_ffuncs)
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     @deprecated("FontFuncs()", since="0.10.0")
 *     def create(cls) -> FontFuncs:
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1399, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_FontFuncs) < (0)) __PYX_ERR(3, 1399, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_9FontFuncs_5create, __Pyx_CYFUNCTION_CLASSMETHOD | __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_FontFuncs_create, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[155])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1399, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_FontFuncs, __pyx_mstate_global->__pyx_n_u_create, __pyx_t_6) < (0)) __PYX_ERR(3, 1399, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_font.pxi":1400
 * 
 *     @classmethod
 *     @deprecated("FontFuncs()", since="0.10.0")             # <<<<<<<<<<<<<<
 *     def create(cls) -> FontFuncs:
 *         cdef FontFuncs inst = cls()
*/
  __pyx_t_5 = NULL;
  __pyx_t_7 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1400, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_7, __pyx_mstate_global->__pyx_kp_u_FontFuncs_2};
    __pyx_t_10 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 1400, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_10_0, __pyx_t_10, __pyx_callargs+2, 0) < (0)) __PYX_ERR(3, 1400, __pyx_L1_error)
    __pyx_t_2 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_9, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_10);
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1400, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }

  /* "src/uharfbuzz/_font.pxi":1399
 *         hb_font_funcs_destroy(self._hb_ffuncs)
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     @deprecated("FontFuncs()", since="0.10.0")
 *     def create(cls) -> FontFuncs:
*/
  __Pyx_GetNameInClass(__pyx_t_9, (PyObject*)__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_FontFuncs, __pyx_mstate_global->__pyx_n_u_create); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1399, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_9};
    __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1400, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  __pyx_t_2 = __Pyx_Method_ClassMethod(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1399, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_FontFuncs, __pyx_mstate_global->__pyx_n_u_create, __pyx_t_2) < (0)) __PYX_ERR(3, 1399, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_font.pxi":1405
 *         return inst
 * 
 *     def set_glyph_h_advance_func(self,             # <<<<<<<<<<<<<<
 *                                  func: Callable[[
 *                                      Font,
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1405, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_func, __pyx_mstate_global->__pyx_kp_u_Callable_Font_int_object_int) < (0)) __PYX_ERR(3, 1405, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_user_data, __pyx_mstate_global->__pyx_n_u_object) < (0)) __PYX_ERR(3, 1405, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_9FontFuncs_7set_glyph_h_advance_func, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_FontFuncs_set_glyph_h_advance_fu, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[156])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1405, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_6, __pyx_mstate_global->__pyx_tuple[3]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_FontFuncs, __pyx_mstate_global->__pyx_n_u_set_glyph_h_advance_func, __pyx_t_6) < (0)) __PYX_ERR(3, 1405, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_font.pxi":1422
 *         self._glyph_h_advance_func = func
 * 
 *     def set_glyph_v_advance_func(self,             # <<<<<<<<<<<<<<
 *                                  func: Callable[[
 *                                      Font,
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1422, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_func, __pyx_mstate_global->__pyx_kp_u_Callable_Font_int_object_int) < (0)) __PYX_ERR(3, 1422, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_user_data, __pyx_mstate_global->__pyx_n_u_object) < (0)) __PYX_ERR(3, 1422, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_9FontFuncs_9set_glyph_v_advance_func, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_FontFuncs_set_glyph_v_advance_fu, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[157])); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1422, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[3]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_FontFuncs, __pyx_mstate_global->__pyx_n_u_set_glyph_v_advance_func, __pyx_t_2) < (0)) __PYX_ERR(3, 1422, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_font.pxi":1439
 *         self._glyph_v_advance_func = func
 * 
 *     def set_glyph_v_origin_func(self,             # <<<<<<<<<<<<<<
 *                                 func: Callable[[
 *                                     Font,
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1439, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_func, __pyx_mstate_global->__pyx_kp_u_Callable_Font_int_object_int_int) < (0)) __PYX_ERR(3, 1439, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_user_data, __pyx_mstate_global->__pyx_n_u_object) < (0)) __PYX_ERR(3, 1439, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_9FontFuncs_11set_glyph_v_origin_func, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_FontFuncs_set_glyph_v_origin_fun, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[158])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1439, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_6, __pyx_mstate_global->__pyx_tuple[3]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_FontFuncs, __pyx_mstate_global->__pyx_n_u_set_glyph_v_origin_func, __pyx_t_6) < (0)) __PYX_ERR(3, 1439, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_font.pxi":1456
 *         self._glyph_v_origin_func = func
 * 
 *     def set_glyph_name_func(self,             # <<<<<<<<<<<<<<
 *                             func: Callable[[
 *                                 Font,
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1456, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_func, __pyx_mstate_global->__pyx_kp_u_Callable_Font_int_object_str) < (0)) __PYX_ERR(3, 1456, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_user_data, __pyx_mstate_global->__pyx_n_u_object) < (0)) __PYX_ERR(3, 1456, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_9FontFuncs_13set_glyph_name_func, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_FontFuncs_set_glyph_name_func, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[159])); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1456, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[3]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_FontFuncs, __pyx_mstate_global->__pyx_n_u_set_glyph_name_func, __pyx_t_2) < (0)) __PYX_ERR(3, 1456, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_font.pxi":1472
 *         self._glyph_name_func = func
 * 
 *     def set_nominal_glyph_func(self,             # <<<<<<<<<<<<<<
 *                                func: Callable[[
 *                                    Font,
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1472, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_func, __pyx_mstate_global->__pyx_kp_u_Callable_Font_int_object_int) < (0)) __PYX_ERR(3, 1472, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_user_data, __pyx_mstate_global->__pyx_n_u_object) < (0)) __PYX_ERR(3, 1472, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_9FontFuncs_15set_nominal_glyph_func, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_FontFuncs_set_nominal_glyph_func, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[160])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1472, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_6, __pyx_mstate_global->__pyx_tuple[3]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_FontFuncs, __pyx_mstate_global->__pyx_n_u_set_nominal_glyph_func, __pyx_t_6) < (0)) __PYX_ERR(3, 1472, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_font.pxi":1488
 *         self._nominal_glyph_func = func
 * 
 *     def set_variation_glyph_func(self,             # <<<<<<<<<<<<<<
 *                                func: Callable[[
 *                                    Font,
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1488, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_func, __pyx_mstate_global->__pyx_kp_u_Callable_Font_int_int_object_int) < (0)) __PYX_ERR(3, 1488, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_user_data, __pyx_mstate_global->__pyx_n_u_object) < (0)) __PYX_ERR(3, 1488, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_9FontFuncs_17set_variation_glyph_func, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_FontFuncs_set_variation_glyph_fu, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[161])); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1488, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[3]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_FontFuncs, __pyx_mstate_global->__pyx_n_u_set_variation_glyph_func, __pyx_t_2) < (0)) __PYX_ERR(3, 1488, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_font.pxi":1506
 *         self._variation_glyph_func = func
 * 
 *     def set_font_h_extents_func(self,             # <<<<<<<<<<<<<<
 *                                 func: Callable[[
 *                                     Font,
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1506, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_func, __pyx_mstate_global->__pyx_kp_u_Callable_Font_object_FontExtents) < (0)) __PYX_ERR(3, 1506, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_user_data, __pyx_mstate_global->__pyx_n_u_object) < (0)) __PYX_ERR(3, 1506, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_9FontFuncs_19set_font_h_extents_func, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_FontFuncs_set_font_h_extents_fun, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[162])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1506, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_6, __pyx_mstate_global->__pyx_tuple[3]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_FontFuncs, __pyx_mstate_global->__pyx_n_u_set_font_h_extents_func, __pyx_t_6) < (0)) __PYX_ERR(3, 1506, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_font.pxi":1522
 *         self._font_h_extents_func = func
 * 
 *     def set_font_v_extents_func(self,             # <<<<<<<<<<<<<<
 *                                 func: Callable[[
 *                                     Font,
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1522, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_func, __pyx_mstate_global->__pyx_kp_u_Callable_Font_object_FontExtents) < (0)) __PYX_ERR(3, 1522, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_user_data, __pyx_mstate_global->__pyx_n_u_object) < (0)) __PYX_ERR(3, 1522, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_9FontFuncs_21set_font_v_extents_func, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_FontFuncs_set_font_v_extents_fun, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[163])); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1522, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[3]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_FontFuncs, __pyx_mstate_global->__pyx_n_u_set_font_v_extents_func, __pyx_t_2) < (0)) __PYX_ERR(3, 1522, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_9FontFuncs_23__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_FontFuncs___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[164])); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_2) < (0)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_9FontFuncs_25__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_FontFuncs___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[165])); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_2) < (0)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_raster.pxi":1
 * class RasterFormat(IntEnum):             # <<<<<<<<<<<<<<
 *     """Pixel format for raster images.
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = PyTuple_Pack(1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_9 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(10, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_9, __pyx_t_2, __pyx_mstate_global->__pyx_n_u_RasterFormat, __pyx_mstate_global->__pyx_n_u_RasterFormat, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_Pixel_format_for_raster_images_a); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__pyx_t_2 != __pyx_t_6) {
    if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_6) < 0))) __PYX_ERR(10, 1, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_raster.pxi":15
 *     <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-format-t>`_.
 *     """
 *     A8 = HB_RASTER_FORMAT_A8             # <<<<<<<<<<<<<<
 *     BGRA32 = HB_RASTER_FORMAT_BGRA32
 * 
*/
  __pyx_t_6 = __Pyx_PyLong_From_hb_raster_format_t(HB_RASTER_FORMAT_A8); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 15, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_A8, __pyx_t_6) < (0)) __PYX_ERR(10, 15, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_raster.pxi":16
 *     """
 *     A8 = HB_RASTER_FORMAT_A8
 *     BGRA32 = HB_RASTER_FORMAT_BGRA32             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_6 = __Pyx_PyLong_From_hb_raster_format_t(HB_RASTER_FORMAT_BGRA32); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 16, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_BGRA32, __pyx_t_6) < (0)) __PYX_ERR(10, 16, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "src/uharfbuzz/_raster.pxi":1
 * class RasterFormat(IntEnum):             # <<<<<<<<<<<<<<
 *     """Pixel format for raster images.
 * 
*/
  __pyx_t_6 = __Pyx_Py3ClassCreate(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_RasterFormat, __pyx_t_2, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_RasterFormat, __pyx_t_6) < (0)) __PYX_ERR(10, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_raster.pxi":19
 * 
 * 
 * class RasterExtents(NamedTuple):             # <<<<<<<<<<<<<<
 *     """Pixel-buffer extents for raster operations.
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_NamedTuple); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 19, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_9 = PyTuple_Pack(1, __pyx_t_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(10, 19, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_9); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 19, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 19, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_mstate_global->__pyx_n_u_RasterExtents, __pyx_mstate_global->__pyx_n_u_RasterExtents, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_Pixel_buffer_extents_for_raster); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 19, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__pyx_t_2 != __pyx_t_9) {
    if (unlikely((PyDict_SetItemString(__pyx_t_6, "__orig_bases__", __pyx_t_9) < 0))) __PYX_ERR(10, 19, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __pyx_t_9 = __Pyx_PyDict_NewPresized(5); if (unlikely(!__pyx_t_9)) __PYX_ERR(10, 19, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_x_origin, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(10, 19, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_y_origin, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(10, 19, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_width, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(10, 19, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_height, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(10, 19, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_stride, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(10, 19, __pyx_L1_error)
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_annotations, __pyx_t_9) < (0)) __PYX_ERR(10, 19, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "src/uharfbuzz/_raster.pxi":25
 *     <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-extents-t>`_.
 *     """
 *     x_origin: int = 0             # <<<<<<<<<<<<<<
 *     """X coordinate of the left edge of the image in glyph space."""
 *     y_origin: int = 0
*/
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_x_origin, __pyx_mstate_global->__pyx_int_0) < (0)) __PYX_ERR(10, 25, __pyx_L1_error)

  /* "src/uharfbuzz/_raster.pxi":27
 *     x_origin: int = 0
 *     """X coordinate of the left edge of the image in glyph space."""
 *     y_origin: int = 0             # <<<<<<<<<<<<<<
 *     """Y coordinate of the bottom edge of the image in glyph space."""
 *     width: int = 0
*/
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_y_origin, __pyx_mstate_global->__pyx_int_0) < (0)) __PYX_ERR(10, 27, __pyx_L1_error)

  /* "src/uharfbuzz/_raster.pxi":29
 *     y_origin: int = 0
 *     """Y coordinate of the bottom edge of the image in glyph space."""
 *     width: int = 0             # <<<<<<<<<<<<<<
 *     """Width in pixels."""
 *     height: int = 0
*/
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_width, __pyx_mstate_global->__pyx_int_0) < (0)) __PYX_ERR(10, 29, __pyx_L1_error)

  /* "src/uharfbuzz/_raster.pxi":31
 *     width: int = 0
 *     """Width in pixels."""
 *     height: int = 0             # <<<<<<<<<<<<<<
 *     """Height in pixels."""
 *     stride: int = 0
*/
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_height, __pyx_mstate_global->__pyx_int_0) < (0)) __PYX_ERR(10, 31, __pyx_L1_error)

  /* "src/uharfbuzz/_raster.pxi":33
 *     height: int = 0
 *     """Height in pixels."""
 *     stride: int = 0             # <<<<<<<<<<<<<<
 *     """Bytes per row; 0 means auto-calculate on input, filled on output."""
 * 
*/
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_stride, __pyx_mstate_global->__pyx_int_0) < (0)) __PYX_ERR(10, 33, __pyx_L1_error)

  /* "src/uharfbuzz/_raster.pxi":19
 * 
 * 
 * class RasterExtents(NamedTuple):             # <<<<<<<<<<<<<<
 *     """Pixel-buffer extents for raster operations.
 * 
*/
  __pyx_t_9 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_RasterExtents, __pyx_t_2, __pyx_t_6, NULL, 0, 0); if (unlikely(!__pyx_t_9)) __PYX_ERR(10, 19, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_RasterExtents, __pyx_t_9) < (0)) __PYX_ERR(10, 19, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_raster.pxi":66
 *         return wrapper
 * 
 *     def configure(self, format: RasterFormat,             # <<<<<<<<<<<<<<
 *                   extents: RasterExtents | None = None) -> bool:
 *         """Configures this image's format and extents together, resizing
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 66, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_format, __pyx_mstate_global->__pyx_n_u_RasterFormat) < (0)) __PYX_ERR(10, 66, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_extents, __pyx_mstate_global->__pyx_kp_u_RasterExtents_None) < (0)) __PYX_ERR(10, 66, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(10, 66, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_11RasterImage_7configure, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_RasterImage_configure, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[166])); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 66, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[3]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterImage, __pyx_mstate_global->__pyx_n_u_configure, __pyx_t_5) < (0)) __PYX_ERR(10, 66, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_raster.pxi":92
 *         return hb_raster_image_configure(self._hb_raster_image, format, c_extents_ptr)
 * 
 *     def clear(self):             # <<<<<<<<<<<<<<
 *         """Clears this image's pixels to zero while keeping current extents
 *         and format.
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_11RasterImage_9clear, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_RasterImage_clear, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[167])); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 92, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterImage, __pyx_mstate_global->__pyx_n_u_clear, __pyx_t_5) < (0)) __PYX_ERR(10, 92, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_11RasterImage_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_RasterImage___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[168])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_5) < (0)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_11RasterImage_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_RasterImage___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[169])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_5) < (0)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_raster.pxi":246
 *         hb_raster_draw_set_extents(self._hb_raster_draw, &c_extents)
 * 
 *     def set_glyph_extents(self, extents: GlyphExtents) -> bool:             # <<<<<<<<<<<<<<
 *         """Transforms ``extents`` with the rasterizer's current transform
 *         and sets the resulting pixel extents for the next render.
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 246, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_extents, __pyx_mstate_global->__pyx_n_u_GlyphExtents) < (0)) __PYX_ERR(10, 246, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(10, 246, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_10RasterDraw_5set_glyph_extents, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_RasterDraw_set_glyph_extents, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[170])); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 246, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterDraw, __pyx_mstate_global->__pyx_n_u_set_glyph_extents, __pyx_t_2) < (0)) __PYX_ERR(10, 246, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_raster.pxi":266
 *         return hb_raster_draw_set_glyph_extents(self._hb_raster_draw, &c_extents)
 * 
 *     def draw_glyph(self, font: Font, glyph: int):             # <<<<<<<<<<<<<<
 *         """Draws one glyph into this rasterizer using the current transform.
 *         Equivalent to :meth:`draw_glyph_or_fail` with the return value
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 266, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_font, __pyx_mstate_global->__pyx_n_u_Font) < (0)) __PYX_ERR(10, 266, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(10, 266, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_10RasterDraw_7draw_glyph, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_RasterDraw_draw_glyph, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[171])); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 266, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterDraw, __pyx_mstate_global->__pyx_n_u_draw_glyph, __pyx_t_5) < (0)) __PYX_ERR(10, 266, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_raster.pxi":276
 *         hb_raster_draw_glyph(self._hb_raster_draw, font._hb_font, glyph)
 * 
 *     def draw_glyph_or_fail(self, font: Font, glyph: int) -> bool:             # <<<<<<<<<<<<<<
 *         """Convenience to draw one glyph.
 * 
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 276, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_font, __pyx_mstate_global->__pyx_n_u_Font) < (0)) __PYX_ERR(10, 276, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(10, 276, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(10, 276, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_10RasterDraw_9draw_glyph_or_fail, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_RasterDraw_draw_glyph_or_fail, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[172])); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 276, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterDraw, __pyx_mstate_global->__pyx_n_u_draw_glyph_or_fail, __pyx_t_2) < (0)) __PYX_ERR(10, 276, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_raster.pxi":287
 *         return hb_raster_draw_glyph_or_fail(self._hb_raster_draw, font._hb_font, glyph)
 * 
 *     def render(self) -> RasterImage | None:             # <<<<<<<<<<<<<<
 *         """Rasterizes the accumulated outline geometry into a new
 *         :class:`RasterImage`. After rendering, the accumulated edges are
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 287, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_RasterImage_None) < (0)) __PYX_ERR(10, 287, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_10RasterDraw_11render, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_RasterDraw_render, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[173])); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 287, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterDraw, __pyx_mstate_global->__pyx_n_u_render, __pyx_t_5) < (0)) __PYX_ERR(10, 287, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_raster.pxi":305
 *         return RasterImage.from_ptr(img)
 * 
 *     def clear(self):             # <<<<<<<<<<<<<<
 *         """Discards accumulated geometry and extents so this rasterizer can
 *         be reused for another render. User configuration (transform, scale
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_10RasterDraw_13clear, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_RasterDraw_clear, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[174])); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 305, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterDraw, __pyx_mstate_global->__pyx_n_u_clear, __pyx_t_5) < (0)) __PYX_ERR(10, 305, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_raster.pxi":316
 *         hb_raster_draw_clear(self._hb_raster_draw)
 * 
 *     def reset(self):             # <<<<<<<<<<<<<<
 *         """Resets this rasterizer to its initial state, clearing all
 *         accumulated geometry, the transform, and fixed extents. The object
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_10RasterDraw_15reset, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_RasterDraw_reset, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[175])); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 316, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterDraw, __pyx_mstate_global->__pyx_n_u_reset, __pyx_t_5) < (0)) __PYX_ERR(10, 316, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_10RasterDraw_17__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_RasterDraw___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[176])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_5) < (0)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_10RasterDraw_19__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_RasterDraw___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[177])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_5) < (0)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_raster.pxi":422
 *         hb_raster_paint_set_extents(self._hb_raster_paint, &c_extents)
 * 
 *     def set_glyph_extents(self, extents: GlyphExtents) -> bool:             # <<<<<<<<<<<<<<
 *         """Transforms ``extents`` with the paint context's base transform
 *         and sets the resulting output image extents.
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 422, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_extents, __pyx_mstate_global->__pyx_n_u_GlyphExtents) < (0)) __PYX_ERR(10, 422, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(10, 422, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_11RasterPaint_5set_glyph_extents, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_RasterPaint_set_glyph_extents, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[178])); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 422, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterPaint, __pyx_mstate_global->__pyx_n_u_set_glyph_extents, __pyx_t_2) < (0)) __PYX_ERR(10, 422, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_raster.pxi":498
 *         hb_raster_paint_set_palette(self._hb_raster_paint, value)
 * 
 *     def set_custom_palette_color(self, color_index: int, color: Color) -> bool:             # <<<<<<<<<<<<<<
 *         """Overrides one font palette color entry for subsequent paint
 *         operations. Overrides are keyed by ``color_index`` and persist on
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 498, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_color_index, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(10, 498, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_color, __pyx_mstate_global->__pyx_n_u_Color) < (0)) __PYX_ERR(10, 498, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(10, 498, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_11RasterPaint_7set_custom_palette_color, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_RasterPaint_set_custom_palette_c, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[179])); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 498, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterPaint, __pyx_mstate_global->__pyx_n_u_set_custom_palette_color, __pyx_t_5) < (0)) __PYX_ERR(10, 498, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_raster.pxi":515
 *             self._hb_raster_paint, color_index, color.to_int())
 * 
 *     def clear_custom_palette_colors(self):             # <<<<<<<<<<<<<<
 *         """Clears all custom palette color overrides previously set on this
 *         paint context.
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_11RasterPaint_9clear_custom_palette_colors, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_RasterPaint_clear_custom_palette, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[180])); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 515, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterPaint, __pyx_mstate_global->__pyx_n_u_clear_custom_palette_colors, __pyx_t_5) < (0)) __PYX_ERR(10, 515, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_raster.pxi":527
 *         hb_raster_paint_clear_custom_palette_colors(self._hb_raster_paint)
 * 
 *     def paint_glyph(self, font: Font, glyph: int):             # <<<<<<<<<<<<<<
 *         """Paints one glyph into this paint context. Unlike
 *         :meth:`paint_glyph_or_fail`, glyphs with no color paint data fall
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 527, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_font, __pyx_mstate_global->__pyx_n_u_Font) < (0)) __PYX_ERR(10, 527, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(10, 527, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_11RasterPaint_11paint_glyph, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_RasterPaint_paint_glyph, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[181])); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 527, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterPaint, __pyx_mstate_global->__pyx_n_u_paint_glyph, __pyx_t_2) < (0)) __PYX_ERR(10, 527, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_raster.pxi":538
 *         hb_raster_paint_glyph(self._hb_raster_paint, font._hb_font, glyph)
 * 
 *     def paint_glyph_or_fail(self, font: Font, glyph: int) -> bool:             # <<<<<<<<<<<<<<
 *         """Convenience to paint one color glyph.
 * 
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 538, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_font, __pyx_mstate_global->__pyx_n_u_Font) < (0)) __PYX_ERR(10, 538, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(10, 538, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(10, 538, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_11RasterPaint_13paint_glyph_or_fail, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_RasterPaint_paint_glyph_or_fail, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[182])); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 538, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterPaint, __pyx_mstate_global->__pyx_n_u_paint_glyph_or_fail, __pyx_t_5) < (0)) __PYX_ERR(10, 538, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_raster.pxi":548
 *         return hb_raster_paint_glyph_or_fail(self._hb_raster_paint, font._hb_font, glyph)
 * 
 *     def render(self) -> RasterImage | None:             # <<<<<<<<<<<<<<
 *         """Extracts the rendered image after painting has completed. The
 *         paint context's surface stack is consumed and the result returned
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_RasterImage_None) < (0)) __PYX_ERR(10, 548, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_11RasterPaint_15render, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_RasterPaint_render, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[183])); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterPaint, __pyx_mstate_global->__pyx_n_u_render, __pyx_t_2) < (0)) __PYX_ERR(10, 548, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_raster.pxi":572
 *         return RasterImage.from_ptr(img)
 * 
 *     def clear(self):             # <<<<<<<<<<<<<<
 *         """Discards accumulated paint output so this paint context can be
 *         reused for another render. User configuration (base transform,
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_11RasterPaint_17clear, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_RasterPaint_clear, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[184])); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 572, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterPaint, __pyx_mstate_global->__pyx_n_u_clear, __pyx_t_2) < (0)) __PYX_ERR(10, 572, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_raster.pxi":583
 *         hb_raster_paint_clear(self._hb_raster_paint)
 * 
 *     def reset(self):             # <<<<<<<<<<<<<<
 *         """Resets this paint context to its initial state, clearing all
 *         configuration while preserving internal image caches.
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_11RasterPaint_19reset, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_RasterPaint_reset, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[185])); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 583, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_RasterPaint, __pyx_mstate_global->__pyx_n_u_reset, __pyx_t_2) < (0)) __PYX_ERR(10, 583, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_11RasterPaint_21__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_RasterPaint___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[186])); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_2) < (0)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_11RasterPaint_23__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_RasterPaint___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[187])); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_2) < (0)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_8HBObject_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HBObject___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[188])); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_2) < (0)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_8HBObject_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HBObject___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[189])); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_2) < (0)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_serialize.pxi":66
 *             l[i].objidx = links[i][2]
 * 
 * class SerializerError(Exception):             # <<<<<<<<<<<<<<
 *     pass
 * 
*/
  __pyx_t_2 = PyTuple_Pack(1, ((PyObject *)(((PyTypeObject*)PyExc_Exception)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 66, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PEP560_update_bases(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 66, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_CalculateMetaclass(NULL, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(11, 66, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_9 = __Pyx_Py3MetaclassPrepare(__pyx_t_6, __pyx_t_5, __pyx_mstate_global->__pyx_n_u_SerializerError, __pyx_mstate_global->__pyx_n_u_SerializerError, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, (PyObject *) NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(11, 66, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  if (__pyx_t_5 != __pyx_t_2) {
    if (unlikely((PyDict_SetItemString(__pyx_t_9, "__orig_bases__", __pyx_t_2) < 0))) __PYX_ERR(11, 66, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_Py3ClassCreate(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_SerializerError, __pyx_t_5, __pyx_t_9, NULL, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 66, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_SerializerError, __pyx_t_2) < (0)) __PYX_ERR(11, 66, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_serialize.pxi":69
 *     pass
 * 
 * class RepackerError(SerializerError):             # <<<<<<<<<<<<<<
 *     pass
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_SerializerError); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 69, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_Pack(1, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(11, 69, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PEP560_update_bases(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 69, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_9 = __Pyx_CalculateMetaclass(NULL, __pyx_t_5); if (unlikely(!__pyx_t_9)) __PYX_ERR(11, 69, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_2 = __Pyx_Py3MetaclassPrepare(__pyx_t_9, __pyx_t_5, __pyx_mstate_global->__pyx_n_u_RepackerError, __pyx_mstate_global->__pyx_n_u_RepackerError, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, (PyObject *) NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 69, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__pyx_t_5 != __pyx_t_6) {
    if (unlikely((PyDict_SetItemString(__pyx_t_2, "__orig_bases__", __pyx_t_6) < 0))) __PYX_ERR(11, 69, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_Py3ClassCreate(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_RepackerError, __pyx_t_5, __pyx_t_2, NULL, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(11, 69, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_RepackerError, __pyx_t_6) < (0)) __PYX_ERR(11, 69, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_serialize.pxi":73
 * 
 * 
 * @deprecated("serialize()", since="0.45.0")             # <<<<<<<<<<<<<<
 * def repack(subtables, graphnodes):
 *     return serialize(subtables, graphnodes)
*/
  __pyx_t_9 = NULL;
  __pyx_t_6 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_10)) __PYX_ERR(11, 73, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_6, __pyx_mstate_global->__pyx_kp_u_serialize_2};
    __pyx_t_7 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(11, 73, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_45_0, __pyx_t_7, __pyx_callargs+2, 0) < (0)) __PYX_ERR(11, 73, __pyx_L1_error)
    __pyx_t_2 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_10, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_7);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 73, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_10 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_5repack, 0, __pyx_mstate_global->__pyx_n_u_repack, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[190])); if (unlikely(!__pyx_t_10)) __PYX_ERR(11, 73, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_10);
  #endif
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_10};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 73, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_repack, __pyx_t_5) < (0)) __PYX_ERR(11, 73, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_serialize.pxi":78
 * 
 * 
 * @deprecated("serialize_with_tag()", since="0.45.0")             # <<<<<<<<<<<<<<
 * def repack_with_tag(tag, subtables, graphnodes):
 *     return serialize_with_tag(tag, subtables, graphnodes)
*/
  __pyx_t_2 = NULL;
  __pyx_t_9 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(11, 78, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_9, __pyx_mstate_global->__pyx_kp_u_serialize_with_tag_2};
    __pyx_t_6 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(11, 78, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_45_0, __pyx_t_6, __pyx_callargs+2, 0) < (0)) __PYX_ERR(11, 78, __pyx_L1_error)
    __pyx_t_10 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_6);
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_10)) __PYX_ERR(11, 78, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
  }
  __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_7repack_with_tag, 0, __pyx_mstate_global->__pyx_n_u_repack_with_tag, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[191])); if (unlikely(!__pyx_t_7)) __PYX_ERR(11, 78, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_7);
  #endif
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_7};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_10, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 78, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_repack_with_tag, __pyx_t_5) < (0)) __PYX_ERR(11, 78, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_serialize.pxi":83
 * 
 * 
 * def serialize(subtables: List[bytes],             # <<<<<<<<<<<<<<
 *               graphnodes: List[Tuple[List[Tuple[int, int, int]],
 *                                      List[Tuple[int, int, int]]
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 83, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_subtables, __pyx_mstate_global->__pyx_kp_u_List_bytes) < (0)) __PYX_ERR(11, 83, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_graphnodes, __pyx_mstate_global->__pyx_kp_u_List_Tuple_List_Tuple_int_int_in) < (0)) __PYX_ERR(11, 83, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bytes) < (0)) __PYX_ERR(11, 83, __pyx_L1_error)
  __pyx_t_10 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_9serialize, 0, __pyx_mstate_global->__pyx_n_u_serialize, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[192])); if (unlikely(!__pyx_t_10)) __PYX_ERR(11, 83, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_10);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_10, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_serialize, __pyx_t_10) < (0)) __PYX_ERR(11, 83, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_serialize.pxi":93
 * 
 * 
 * def serialize_with_tag(tag: str,             # <<<<<<<<<<<<<<
 *                        subtables: List[bytes],
 *                        graphnodes: List[Tuple[List[Tuple[int, int, int]],
*/
  __pyx_t_10 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_10)) __PYX_ERR(11, 93, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (PyDict_SetItem(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_tag, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(11, 93, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_subtables, __pyx_mstate_global->__pyx_kp_u_List_bytes) < (0)) __PYX_ERR(11, 93, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_graphnodes, __pyx_mstate_global->__pyx_kp_u_List_Tuple_List_Tuple_int_int_in) < (0)) __PYX_ERR(11, 93, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bytes) < (0)) __PYX_ERR(11, 93, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_11serialize_with_tag, 0, __pyx_mstate_global->__pyx_n_u_serialize_with_tag, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[193])); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 93, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_10);
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_serialize_with_tag, __pyx_t_5) < (0)) __PYX_ERR(11, 93, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_subset.pxi":1
 * def subset_preprocess(face: Face) -> Face:             # <<<<<<<<<<<<<<
 *     """Preprocesses the face and attaches data that will be needed by the
 *     subsetter. Future subsetting operations can then use the precomputed
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(12, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_face, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(12, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(12, 1, __pyx_L1_error)
  __pyx_t_10 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_13subset_preprocess, 0, __pyx_mstate_global->__pyx_n_u_subset_preprocess, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[194])); if (unlikely(!__pyx_t_10)) __PYX_ERR(12, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_10);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_10, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_subset_preprocess, __pyx_t_10) < (0)) __PYX_ERR(12, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_subset.pxi":23
 *     return Face.from_ptr(new_face)
 * 
 * def subset(face: Face, input: SubsetInput) -> Face:             # <<<<<<<<<<<<<<
 *     """Subsets a font according to provided input.
 * 
*/
  __pyx_t_10 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_10)) __PYX_ERR(12, 23, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (PyDict_SetItem(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_face, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(12, 23, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_input, __pyx_mstate_global->__pyx_n_u_SubsetInput) < (0)) __PYX_ERR(12, 23, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(12, 23, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_15subset, 0, __pyx_mstate_global->__pyx_n_u_subset, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[195])); if (unlikely(!__pyx_t_5)) __PYX_ERR(12, 23, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_10);
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_subset, __pyx_t_5) < (0)) __PYX_ERR(12, 23, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_subset.pxi":37
 *     return Face.from_ptr(new_face)
 * 
 * class SubsetInputSets(IntEnum):             # <<<<<<<<<<<<<<
 *     """List of sets that can be configured on the subset input.
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_5)) __PYX_ERR(12, 37, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_10 = PyTuple_Pack(1, __pyx_t_5); if (unlikely(!__pyx_t_10)) __PYX_ERR(12, 37, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PEP560_update_bases(__pyx_t_10); if (unlikely(!__pyx_t_5)) __PYX_ERR(12, 37, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_7 = __Pyx_CalculateMetaclass(NULL, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(12, 37, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_2 = __Pyx_Py3MetaclassPrepare(__pyx_t_7, __pyx_t_5, __pyx_mstate_global->__pyx_n_u_SubsetInputSets, __pyx_mstate_global->__pyx_n_u_SubsetInputSets, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_List_of_sets_that_can_be_configu); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 37, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__pyx_t_5 != __pyx_t_10) {
    if (unlikely((PyDict_SetItemString(__pyx_t_2, "__orig_bases__", __pyx_t_10) < 0))) __PYX_ERR(12, 37, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_subset.pxi":78
 *     <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-sets-t>`_.
 *     """
 *     GLYPH_INDEX = HB_SUBSET_SETS_GLYPH_INDEX             # <<<<<<<<<<<<<<
 *     UNICODE = HB_SUBSET_SETS_UNICODE
 *     NO_SUBSET_TABLE_TAG = HB_SUBSET_SETS_NO_SUBSET_TABLE_TAG
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_subset_sets_t(HB_SUBSET_SETS_GLYPH_INDEX); if (unlikely(!__pyx_t_10)) __PYX_ERR(12, 78, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_GLYPH_INDEX, __pyx_t_10) < (0)) __PYX_ERR(12, 78, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_subset.pxi":79
 *     """
 *     GLYPH_INDEX = HB_SUBSET_SETS_GLYPH_INDEX
 *     UNICODE = HB_SUBSET_SETS_UNICODE             # <<<<<<<<<<<<<<
 *     NO_SUBSET_TABLE_TAG = HB_SUBSET_SETS_NO_SUBSET_TABLE_TAG
 *     DROP_TABLE_TAG = HB_SUBSET_SETS_DROP_TABLE_TAG
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_subset_sets_t(HB_SUBSET_SETS_UNICODE); if (unlikely(!__pyx_t_10)) __PYX_ERR(12, 79, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_UNICODE, __pyx_t_10) < (0)) __PYX_ERR(12, 79, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_subset.pxi":80
 *     GLYPH_INDEX = HB_SUBSET_SETS_GLYPH_INDEX
 *     UNICODE = HB_SUBSET_SETS_UNICODE
 *     NO_SUBSET_TABLE_TAG = HB_SUBSET_SETS_NO_SUBSET_TABLE_TAG             # <<<<<<<<<<<<<<
 *     DROP_TABLE_TAG = HB_SUBSET_SETS_DROP_TABLE_TAG
 *     NAME_ID = HB_SUBSET_SETS_NAME_ID
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_subset_sets_t(HB_SUBSET_SETS_NO_SUBSET_TABLE_TAG); if (unlikely(!__pyx_t_10)) __PYX_ERR(12, 80, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_NO_SUBSET_TABLE_TAG, __pyx_t_10) < (0)) __PYX_ERR(12, 80, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_subset.pxi":81
 *     UNICODE = HB_SUBSET_SETS_UNICODE
 *     NO_SUBSET_TABLE_TAG = HB_SUBSET_SETS_NO_SUBSET_TABLE_TAG
 *     DROP_TABLE_TAG = HB_SUBSET_SETS_DROP_TABLE_TAG             # <<<<<<<<<<<<<<
 *     NAME_ID = HB_SUBSET_SETS_NAME_ID
 *     NAME_LANG_ID = HB_SUBSET_SETS_NAME_LANG_ID
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_subset_sets_t(HB_SUBSET_SETS_DROP_TABLE_TAG); if (unlikely(!__pyx_t_10)) __PYX_ERR(12, 81, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_DROP_TABLE_TAG, __pyx_t_10) < (0)) __PYX_ERR(12, 81, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_subset.pxi":82
 *     NO_SUBSET_TABLE_TAG = HB_SUBSET_SETS_NO_SUBSET_TABLE_TAG
 *     DROP_TABLE_TAG = HB_SUBSET_SETS_DROP_TABLE_TAG
 *     NAME_ID = HB_SUBSET_SETS_NAME_ID             # <<<<<<<<<<<<<<
 *     NAME_LANG_ID = HB_SUBSET_SETS_NAME_LANG_ID
 *     LAYOUT_FEATURE_TAG = HB_SUBSET_SETS_LAYOUT_FEATURE_TAG
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_subset_sets_t(HB_SUBSET_SETS_NAME_ID); if (unlikely(!__pyx_t_10)) __PYX_ERR(12, 82, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_NAME_ID, __pyx_t_10) < (0)) __PYX_ERR(12, 82, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_subset.pxi":83
 *     DROP_TABLE_TAG = HB_SUBSET_SETS_DROP_TABLE_TAG
 *     NAME_ID = HB_SUBSET_SETS_NAME_ID
 *     NAME_LANG_ID = HB_SUBSET_SETS_NAME_LANG_ID             # <<<<<<<<<<<<<<
 *     LAYOUT_FEATURE_TAG = HB_SUBSET_SETS_LAYOUT_FEATURE_TAG
 *     LAYOUT_SCRIPT_TAG = HB_SUBSET_SETS_LAYOUT_SCRIPT_TAG
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_subset_sets_t(HB_SUBSET_SETS_NAME_LANG_ID); if (unlikely(!__pyx_t_10)) __PYX_ERR(12, 83, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_NAME_LANG_ID, __pyx_t_10) < (0)) __PYX_ERR(12, 83, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_subset.pxi":84
 *     NAME_ID = HB_SUBSET_SETS_NAME_ID
 *     NAME_LANG_ID = HB_SUBSET_SETS_NAME_LANG_ID
 *     LAYOUT_FEATURE_TAG = HB_SUBSET_SETS_LAYOUT_FEATURE_TAG             # <<<<<<<<<<<<<<
 *     LAYOUT_SCRIPT_TAG = HB_SUBSET_SETS_LAYOUT_SCRIPT_TAG
 * 
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_subset_sets_t(HB_SUBSET_SETS_LAYOUT_FEATURE_TAG); if (unlikely(!__pyx_t_10)) __PYX_ERR(12, 84, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_LAYOUT_FEATURE_TAG, __pyx_t_10) < (0)) __PYX_ERR(12, 84, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_subset.pxi":85
 *     NAME_LANG_ID = HB_SUBSET_SETS_NAME_LANG_ID
 *     LAYOUT_FEATURE_TAG = HB_SUBSET_SETS_LAYOUT_FEATURE_TAG
 *     LAYOUT_SCRIPT_TAG = HB_SUBSET_SETS_LAYOUT_SCRIPT_TAG             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_10 = __Pyx_PyLong_From_hb_subset_sets_t(HB_SUBSET_SETS_LAYOUT_SCRIPT_TAG); if (unlikely(!__pyx_t_10)) __PYX_ERR(12, 85, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_LAYOUT_SCRIPT_TAG, __pyx_t_10) < (0)) __PYX_ERR(12, 85, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "src/uharfbuzz/_subset.pxi":37
 *     return Face.from_ptr(new_face)
 * 
 * class SubsetInputSets(IntEnum):             # <<<<<<<<<<<<<<
 *     """List of sets that can be configured on the subset input.
 * 
*/
  __pyx_t_10 = __Pyx_Py3ClassCreate(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_SubsetInputSets, __pyx_t_5, __pyx_t_2, NULL, 0, 0); if (unlikely(!__pyx_t_10)) __PYX_ERR(12, 37, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_10);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_SubsetInputSets, __pyx_t_10) < (0)) __PYX_ERR(12, 37, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_subset.pxi":88
 * 
 * 
 * class SubsetFlags(IntFlag):             # <<<<<<<<<<<<<<
 *     """List of boolean properties that can be configured on the subset input.
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_IntFlag); if (unlikely(!__pyx_t_5)) __PYX_ERR(12, 88, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_7 = PyTuple_Pack(1, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(12, 88, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PEP560_update_bases(__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(12, 88, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_CalculateMetaclass(NULL, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 88, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_10 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_n_u_SubsetFlags, __pyx_mstate_global->__pyx_n_u_SubsetFlags, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_kp_u_List_of_boolean_properties_that); if (unlikely(!__pyx_t_10)) __PYX_ERR(12, 88, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (__pyx_t_5 != __pyx_t_7) {
    if (unlikely((PyDict_SetItemString(__pyx_t_10, "__orig_bases__", __pyx_t_7) < 0))) __PYX_ERR(12, 88, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_subset.pxi":146
 *     <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-flags-t>`_.
 *     """
 *     DEFAULT = HB_SUBSET_FLAGS_DEFAULT             # <<<<<<<<<<<<<<
 *     NO_HINTING = HB_SUBSET_FLAGS_NO_HINTING
 *     RETAIN_GIDS = HB_SUBSET_FLAGS_RETAIN_GIDS
*/
  __pyx_t_7 = __Pyx_PyLong_From_hb_subset_flags_t(HB_SUBSET_FLAGS_DEFAULT); if (unlikely(!__pyx_t_7)) __PYX_ERR(12, 146, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (__Pyx_SetNameInClass(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_DEFAULT, __pyx_t_7) < (0)) __PYX_ERR(12, 146, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_subset.pxi":147
 *     """
 *     DEFAULT = HB_SUBSET_FLAGS_DEFAULT
 *     NO_HINTING = HB_SUBSET_FLAGS_NO_HINTING             # <<<<<<<<<<<<<<
 *     RETAIN_GIDS = HB_SUBSET_FLAGS_RETAIN_GIDS
 *     DESUBROUTINIZE = HB_SUBSET_FLAGS_DESUBROUTINIZE
*/
  __pyx_t_7 = __Pyx_PyLong_From_hb_subset_flags_t(HB_SUBSET_FLAGS_NO_HINTING); if (unlikely(!__pyx_t_7)) __PYX_ERR(12, 147, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (__Pyx_SetNameInClass(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_NO_HINTING, __pyx_t_7) < (0)) __PYX_ERR(12, 147, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_subset.pxi":148
 *     DEFAULT = HB_SUBSET_FLAGS_DEFAULT
 *     NO_HINTING = HB_SUBSET_FLAGS_NO_HINTING
 *     RETAIN_GIDS = HB_SUBSET_FLAGS_RETAIN_GIDS             # <<<<<<<<<<<<<<
 *     DESUBROUTINIZE = HB_SUBSET_FLAGS_DESUBROUTINIZE
 *     NAME_LEGACY = HB_SUBSET_FLAGS_NAME_LEGACY
*/
  __pyx_t_7 = __Pyx_PyLong_From_hb_subset_flags_t(HB_SUBSET_FLAGS_RETAIN_GIDS); if (unlikely(!__pyx_t_7)) __PYX_ERR(12, 148, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (__Pyx_SetNameInClass(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_RETAIN_GIDS, __pyx_t_7) < (0)) __PYX_ERR(12, 148, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_subset.pxi":149
 *     NO_HINTING = HB_SUBSET_FLAGS_NO_HINTING
 *     RETAIN_GIDS = HB_SUBSET_FLAGS_RETAIN_GIDS
 *     DESUBROUTINIZE = HB_SUBSET_FLAGS_DESUBROUTINIZE             # <<<<<<<<<<<<<<
 *     NAME_LEGACY = HB_SUBSET_FLAGS_NAME_LEGACY
 *     SET_OVERLAPS_FLAG = HB_SUBSET_FLAGS_SET_OVERLAPS_FLAG
*/
  __pyx_t_7 = __Pyx_PyLong_From_hb_subset_flags_t(HB_SUBSET_FLAGS_DESUBROUTINIZE); if (unlikely(!__pyx_t_7)) __PYX_ERR(12, 149, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (__Pyx_SetNameInClass(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_DESUBROUTINIZE, __pyx_t_7) < (0)) __PYX_ERR(12, 149, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_subset.pxi":150
 *     RETAIN_GIDS = HB_SUBSET_FLAGS_RETAIN_GIDS
 *     DESUBROUTINIZE = HB_SUBSET_FLAGS_DESUBROUTINIZE
 *     NAME_LEGACY = HB_SUBSET_FLAGS_NAME_LEGACY             # <<<<<<<<<<<<<<
 *     SET_OVERLAPS_FLAG = HB_SUBSET_FLAGS_SET_OVERLAPS_FLAG
 *     PASSTHROUGH_UNRECOGNIZED = HB_SUBSET_FLAGS_PASSTHROUGH_UNRECOGNIZED
*/
  __pyx_t_7 = __Pyx_PyLong_From_hb_subset_flags_t(HB_SUBSET_FLAGS_NAME_LEGACY); if (unlikely(!__pyx_t_7)) __PYX_ERR(12, 150, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (__Pyx_SetNameInClass(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_NAME_LEGACY, __pyx_t_7) < (0)) __PYX_ERR(12, 150, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_subset.pxi":151
 *     DESUBROUTINIZE = HB_SUBSET_FLAGS_DESUBROUTINIZE
 *     NAME_LEGACY = HB_SUBSET_FLAGS_NAME_LEGACY
 *     SET_OVERLAPS_FLAG = HB_SUBSET_FLAGS_SET_OVERLAPS_FLAG             # <<<<<<<<<<<<<<
 *     PASSTHROUGH_UNRECOGNIZED = HB_SUBSET_FLAGS_PASSTHROUGH_UNRECOGNIZED
 *     NOTDEF_OUTLINE = HB_SUBSET_FLAGS_NOTDEF_OUTLINE
*/
  __pyx_t_7 = __Pyx_PyLong_From_hb_subset_flags_t(HB_SUBSET_FLAGS_SET_OVERLAPS_FLAG); if (unlikely(!__pyx_t_7)) __PYX_ERR(12, 151, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (__Pyx_SetNameInClass(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_SET_OVERLAPS_FLAG, __pyx_t_7) < (0)) __PYX_ERR(12, 151, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_subset.pxi":152
 *     NAME_LEGACY = HB_SUBSET_FLAGS_NAME_LEGACY
 *     SET_OVERLAPS_FLAG = HB_SUBSET_FLAGS_SET_OVERLAPS_FLAG
 *     PASSTHROUGH_UNRECOGNIZED = HB_SUBSET_FLAGS_PASSTHROUGH_UNRECOGNIZED             # <<<<<<<<<<<<<<
 *     NOTDEF_OUTLINE = HB_SUBSET_FLAGS_NOTDEF_OUTLINE
 *     GLYPH_NAMES = HB_SUBSET_FLAGS_GLYPH_NAMES
*/
  __pyx_t_7 = __Pyx_PyLong_From_hb_subset_flags_t(HB_SUBSET_FLAGS_PASSTHROUGH_UNRECOGNIZED); if (unlikely(!__pyx_t_7)) __PYX_ERR(12, 152, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (__Pyx_SetNameInClass(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_PASSTHROUGH_UNRECOGNIZED, __pyx_t_7) < (0)) __PYX_ERR(12, 152, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_subset.pxi":153
 *     SET_OVERLAPS_FLAG = HB_SUBSET_FLAGS_SET_OVERLAPS_FLAG
 *     PASSTHROUGH_UNRECOGNIZED = HB_SUBSET_FLAGS_PASSTHROUGH_UNRECOGNIZED
 *     NOTDEF_OUTLINE = HB_SUBSET_FLAGS_NOTDEF_OUTLINE             # <<<<<<<<<<<<<<
 *     GLYPH_NAMES = HB_SUBSET_FLAGS_GLYPH_NAMES
 *     NO_PRUNE_UNICODE_RANGES = HB_SUBSET_FLAGS_NO_PRUNE_UNICODE_RANGES
*/
  __pyx_t_7 = __Pyx_PyLong_From_hb_subset_flags_t(HB_SUBSET_FLAGS_NOTDEF_OUTLINE); if (unlikely(!__pyx_t_7)) __PYX_ERR(12, 153, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (__Pyx_SetNameInClass(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_NOTDEF_OUTLINE, __pyx_t_7) < (0)) __PYX_ERR(12, 153, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_subset.pxi":154
 *     PASSTHROUGH_UNRECOGNIZED = HB_SUBSET_FLAGS_PASSTHROUGH_UNRECOGNIZED
 *     NOTDEF_OUTLINE = HB_SUBSET_FLAGS_NOTDEF_OUTLINE
 *     GLYPH_NAMES = HB_SUBSET_FLAGS_GLYPH_NAMES             # <<<<<<<<<<<<<<
 *     NO_PRUNE_UNICODE_RANGES = HB_SUBSET_FLAGS_NO_PRUNE_UNICODE_RANGES
 *     NO_LAYOUT_CLOSURE = HB_SUBSET_FLAGS_NO_LAYOUT_CLOSURE
*/
  __pyx_t_7 = __Pyx_PyLong_From_hb_subset_flags_t(HB_SUBSET_FLAGS_GLYPH_NAMES); if (unlikely(!__pyx_t_7)) __PYX_ERR(12, 154, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (__Pyx_SetNameInClass(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_GLYPH_NAMES, __pyx_t_7) < (0)) __PYX_ERR(12, 154, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_subset.pxi":155
 *     NOTDEF_OUTLINE = HB_SUBSET_FLAGS_NOTDEF_OUTLINE
 *     GLYPH_NAMES = HB_SUBSET_FLAGS_GLYPH_NAMES
 *     NO_PRUNE_UNICODE_RANGES = HB_SUBSET_FLAGS_NO_PRUNE_UNICODE_RANGES             # <<<<<<<<<<<<<<
 *     NO_LAYOUT_CLOSURE = HB_SUBSET_FLAGS_NO_LAYOUT_CLOSURE
 * 
*/
  __pyx_t_7 = __Pyx_PyLong_From_hb_subset_flags_t(HB_SUBSET_FLAGS_NO_PRUNE_UNICODE_RANGES); if (unlikely(!__pyx_t_7)) __PYX_ERR(12, 155, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (__Pyx_SetNameInClass(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_NO_PRUNE_UNICODE_RANGES, __pyx_t_7) < (0)) __PYX_ERR(12, 155, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_subset.pxi":156
 *     GLYPH_NAMES = HB_SUBSET_FLAGS_GLYPH_NAMES
 *     NO_PRUNE_UNICODE_RANGES = HB_SUBSET_FLAGS_NO_PRUNE_UNICODE_RANGES
 *     NO_LAYOUT_CLOSURE = HB_SUBSET_FLAGS_NO_LAYOUT_CLOSURE             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_7 = __Pyx_PyLong_From_hb_subset_flags_t(HB_SUBSET_FLAGS_NO_LAYOUT_CLOSURE); if (unlikely(!__pyx_t_7)) __PYX_ERR(12, 156, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (__Pyx_SetNameInClass(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_NO_LAYOUT_CLOSURE, __pyx_t_7) < (0)) __PYX_ERR(12, 156, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "src/uharfbuzz/_subset.pxi":88
 * 
 * 
 * class SubsetFlags(IntFlag):             # <<<<<<<<<<<<<<
 *     """List of boolean properties that can be configured on the subset input.
 * 
*/
  __pyx_t_7 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_SubsetFlags, __pyx_t_5, __pyx_t_10, NULL, 0, 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(12, 88, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_7);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_SubsetFlags, __pyx_t_7) < (0)) __PYX_ERR(12, 88, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_subset.pxi":177
 *             hb_subset_input_destroy(self._hb_input)
 * 
 *     def subset(self, source: Face) -> Face:             # <<<<<<<<<<<<<<
 *         """Subsets ``source`` according to this input. Equivalent to calling
 *         :func:`subset` with ``source`` and this input.
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(12, 177, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_source, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(12, 177, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(12, 177, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_11SubsetInput_5subset, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SubsetInput_subset, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[196])); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 177, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetInput, __pyx_mstate_global->__pyx_n_u_subset, __pyx_t_2) < (0)) __PYX_ERR(12, 177, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_subset.pxi":183
 *         return subset(source, self)
 * 
 *     def keep_everything(self):             # <<<<<<<<<<<<<<
 *         """Configure input object to keep everything in the font face. That
 *         is, all Unicodes, glyphs, names, layout items, glyph names, etc.
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_11SubsetInput_7keep_everything, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SubsetInput_keep_everything, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[197])); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 183, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetInput, __pyx_mstate_global->__pyx_n_u_keep_everything, __pyx_t_2) < (0)) __PYX_ERR(12, 183, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_subset.pxi":194
 *         hb_subset_input_keep_everything(self._hb_input)
 * 
 *     def pin_all_axes_to_default(self, face: Face) -> bool:             # <<<<<<<<<<<<<<
 *         """Pin all axes to default locations in this subset input object.
 * 
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 194, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_face, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(12, 194, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(12, 194, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_11SubsetInput_9pin_all_axes_to_default, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SubsetInput_pin_all_axes_to_defa, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[198])); if (unlikely(!__pyx_t_5)) __PYX_ERR(12, 194, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetInput, __pyx_mstate_global->__pyx_n_u_pin_all_axes_to_default, __pyx_t_5) < (0)) __PYX_ERR(12, 194, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_subset.pxi":207
 *         return hb_subset_input_pin_all_axes_to_default(self._hb_input, face._hb_face)
 * 
 *     def pin_axis_to_default(self, face: Face, tag: str) -> bool:             # <<<<<<<<<<<<<<
 *         """Pin an axis to its default location in this subset input object.
 * 
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(12, 207, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_face, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(12, 207, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_tag, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(12, 207, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(12, 207, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_11SubsetInput_11pin_axis_to_default, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SubsetInput_pin_axis_to_default, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[199])); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 207, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetInput, __pyx_mstate_global->__pyx_n_u_pin_axis_to_default, __pyx_t_2) < (0)) __PYX_ERR(12, 207, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_subset.pxi":225
 *         )
 * 
 *     def pin_axis_location(self, face: Face, tag: str, value: float) -> bool:             # <<<<<<<<<<<<<<
 *         """Pin an axis to a fixed location in this subset input object.
 * 
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 225, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_face, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(12, 225, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_tag, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(12, 225, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_value, __pyx_mstate_global->__pyx_n_u_float) < (0)) __PYX_ERR(12, 225, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(12, 225, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_11SubsetInput_13pin_axis_location, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SubsetInput_pin_axis_location, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[200])); if (unlikely(!__pyx_t_5)) __PYX_ERR(12, 225, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetInput, __pyx_mstate_global->__pyx_n_u_pin_axis_location, __pyx_t_5) < (0)) __PYX_ERR(12, 225, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_subset.pxi":244
 *         )
 * 
 *     def set_axis_range(self,             # <<<<<<<<<<<<<<
 *                        face: Face,
 *                        tag: str,
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(6); if (unlikely(!__pyx_t_5)) __PYX_ERR(12, 244, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_face, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(12, 244, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_tag, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(12, 244, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_min_value, __pyx_mstate_global->__pyx_kp_u_float_None) < (0)) __PYX_ERR(12, 244, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_max_value, __pyx_mstate_global->__pyx_kp_u_float_None) < (0)) __PYX_ERR(12, 244, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_def_value, __pyx_mstate_global->__pyx_kp_u_float_None) < (0)) __PYX_ERR(12, 244, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(12, 244, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_11SubsetInput_15set_axis_range, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SubsetInput_set_axis_range, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[201])); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 244, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[6]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetInput, __pyx_mstate_global->__pyx_n_u_set_axis_range, __pyx_t_2) < (0)) __PYX_ERR(12, 244, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_subset.pxi":283
 *         )
 * 
 *     def get_axis_range(self, tag: str) -> Tuple[float | None, float | None, float | None] | None:             # <<<<<<<<<<<<<<
 *         """Gets the axis range assigned by previous calls to
 *         :meth:`set_axis_range`.
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 283, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_tag, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(12, 283, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_Tuple_float_None_float_None_floa) < (0)) __PYX_ERR(12, 283, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_11SubsetInput_17get_axis_range, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SubsetInput_get_axis_range, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[202])); if (unlikely(!__pyx_t_5)) __PYX_ERR(12, 283, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetInput, __pyx_mstate_global->__pyx_n_u_get_axis_range, __pyx_t_5) < (0)) __PYX_ERR(12, 283, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_subset.pxi":331
 *         return Set.from_ptr(hb_set_reference (hb_subset_input_glyph_set(self._hb_input)))
 * 
 *     def sets(self, set_type : SubsetInputSets) -> Set:             # <<<<<<<<<<<<<<
 *         """Gets the set of the specified type.
 * 
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(12, 331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_set_type, __pyx_mstate_global->__pyx_n_u_SubsetInputSets) < (0)) __PYX_ERR(12, 331, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_Set_2) < (0)) __PYX_ERR(12, 331, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_11SubsetInput_19sets, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SubsetInput_sets, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[203])); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetInput, __pyx_mstate_global->__pyx_n_u_sets, __pyx_t_2) < (0)) __PYX_ERR(12, 331, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_11SubsetInput_21__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SubsetInput___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[204])); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_2) < (0)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_11SubsetInput_23__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SubsetInput___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[205])); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_2) < (0)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_subset.pxi":430
 *             hb_subset_plan_destroy(self._hb_plan)
 * 
 *     def execute(self) -> Face:             # <<<<<<<<<<<<<<
 *         """Executes this subsetting plan.
 * 
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 430, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(12, 430, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_10SubsetPlan_5execute, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SubsetPlan_execute, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[206])); if (unlikely(!__pyx_t_5)) __PYX_ERR(12, 430, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_9uharfbuzz_9_harfbuzz_SubsetPlan, __pyx_mstate_global->__pyx_n_u_execute, __pyx_t_5) < (0)) __PYX_ERR(12, 430, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_10SubsetPlan_7__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SubsetPlan___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[207])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_5) < (0)) __PYX_ERR(4, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_10SubsetPlan_9__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SubsetPlan___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[208])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_5) < (0)) __PYX_ERR(4, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":2
 * # Generated by setup.py; do not edit.
 * OTVarAxisInfo.axis_index.__doc__ = 'Index of the axis in the variation-axis array.'             # <<<<<<<<<<<<<<
 * OTVarAxisInfo.tag.__doc__ = 'The tag identifying the design variation of the axis.'
 * OTVarAxisInfo.name_id.__doc__ = 'The ``name`` table Name ID that provides display names for the axis.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_OTVarAxisInfo); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_axis_index); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_Index_of_the_axis_in_the_variati) < (0)) __PYX_ERR(13, 2, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":3
 * # Generated by setup.py; do not edit.
 * OTVarAxisInfo.axis_index.__doc__ = 'Index of the axis in the variation-axis array.'
 * OTVarAxisInfo.tag.__doc__ = 'The tag identifying the design variation of the axis.'             # <<<<<<<<<<<<<<
 * OTVarAxisInfo.name_id.__doc__ = 'The ``name`` table Name ID that provides display names for the axis.'
 * OTVarAxisInfo.flags.__doc__ = 'The :class:`OTVarAxisFlags` flags for the axis.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_OTVarAxisInfo); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_tag); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_The_tag_identifying_the_design_v) < (0)) __PYX_ERR(13, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":4
 * OTVarAxisInfo.axis_index.__doc__ = 'Index of the axis in the variation-axis array.'
 * OTVarAxisInfo.tag.__doc__ = 'The tag identifying the design variation of the axis.'
 * OTVarAxisInfo.name_id.__doc__ = 'The ``name`` table Name ID that provides display names for the axis.'             # <<<<<<<<<<<<<<
 * OTVarAxisInfo.flags.__doc__ = 'The :class:`OTVarAxisFlags` flags for the axis.'
 * OTVarAxisInfo.min_value.__doc__ = 'The minimum value on the variation axis that the font covers.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_OTVarAxisInfo); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_name_id); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_The_name_table_Name_ID_that_prov) < (0)) __PYX_ERR(13, 4, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":5
 * OTVarAxisInfo.tag.__doc__ = 'The tag identifying the design variation of the axis.'
 * OTVarAxisInfo.name_id.__doc__ = 'The ``name`` table Name ID that provides display names for the axis.'
 * OTVarAxisInfo.flags.__doc__ = 'The :class:`OTVarAxisFlags` flags for the axis.'             # <<<<<<<<<<<<<<
 * OTVarAxisInfo.min_value.__doc__ = 'The minimum value on the variation axis that the font covers.'
 * OTVarAxisInfo.default_value.__doc__ = "The position on the variation axis corresponding to the font's defaults."
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_OTVarAxisInfo); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_flags); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_The_class_OTVarAxisFlags_flags_f) < (0)) __PYX_ERR(13, 5, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":6
 * OTVarAxisInfo.name_id.__doc__ = 'The ``name`` table Name ID that provides display names for the axis.'
 * OTVarAxisInfo.flags.__doc__ = 'The :class:`OTVarAxisFlags` flags for the axis.'
 * OTVarAxisInfo.min_value.__doc__ = 'The minimum value on the variation axis that the font covers.'             # <<<<<<<<<<<<<<
 * OTVarAxisInfo.default_value.__doc__ = "The position on the variation axis corresponding to the font's defaults."
 * OTVarAxisInfo.max_value.__doc__ = 'The maximum value on the variation axis that the font covers.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_OTVarAxisInfo); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_min_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_The_minimum_value_on_the_variati) < (0)) __PYX_ERR(13, 6, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":7
 * OTVarAxisInfo.flags.__doc__ = 'The :class:`OTVarAxisFlags` flags for the axis.'
 * OTVarAxisInfo.min_value.__doc__ = 'The minimum value on the variation axis that the font covers.'
 * OTVarAxisInfo.default_value.__doc__ = "The position on the variation axis corresponding to the font's defaults."             # <<<<<<<<<<<<<<
 * OTVarAxisInfo.max_value.__doc__ = 'The maximum value on the variation axis that the font covers.'
 * OTVarNamedInstance.subfamily_name_id.__doc__ = 'The ``name`` table Name ID that provides display names for the "Subfamily name" defined for the given named instance.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_OTVarAxisInfo); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_default_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_The_position_on_the_variation_ax) < (0)) __PYX_ERR(13, 7, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":8
 * OTVarAxisInfo.min_value.__doc__ = 'The minimum value on the variation axis that the font covers.'
 * OTVarAxisInfo.default_value.__doc__ = "The position on the variation axis corresponding to the font's defaults."
 * OTVarAxisInfo.max_value.__doc__ = 'The maximum value on the variation axis that the font covers.'             # <<<<<<<<<<<<<<
 * OTVarNamedInstance.subfamily_name_id.__doc__ = 'The ``name`` table Name ID that provides display names for the "Subfamily name" defined for the given named instance.'
 * OTVarNamedInstance.postscript_name_id.__doc__ = 'The ``name`` table Name ID that provides display names for the "PostScript name" defined for the given named instance.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_OTVarAxisInfo); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 8, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_max_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 8, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_The_maximum_value_on_the_variati) < (0)) __PYX_ERR(13, 8, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":9
 * OTVarAxisInfo.default_value.__doc__ = "The position on the variation axis corresponding to the font's defaults."
 * OTVarAxisInfo.max_value.__doc__ = 'The maximum value on the variation axis that the font covers.'
 * OTVarNamedInstance.subfamily_name_id.__doc__ = 'The ``name`` table Name ID that provides display names for the "Subfamily name" defined for the given named instance.'             # <<<<<<<<<<<<<<
 * OTVarNamedInstance.postscript_name_id.__doc__ = 'The ``name`` table Name ID that provides display names for the "PostScript name" defined for the given named instance.'
 * OTVarNamedInstance.design_coords.__doc__ = 'The design-space coordinates corresponding to the named instance.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_OTVarNamedInstance); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 9, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_subfamily_name_id); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 9, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_The_name_table_Name_ID_that_prov_2) < (0)) __PYX_ERR(13, 9, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":10
 * OTVarAxisInfo.max_value.__doc__ = 'The maximum value on the variation axis that the font covers.'
 * OTVarNamedInstance.subfamily_name_id.__doc__ = 'The ``name`` table Name ID that provides display names for the "Subfamily name" defined for the given named instance.'
 * OTVarNamedInstance.postscript_name_id.__doc__ = 'The ``name`` table Name ID that provides display names for the "PostScript name" defined for the given named instance.'             # <<<<<<<<<<<<<<
 * OTVarNamedInstance.design_coords.__doc__ = 'The design-space coordinates corresponding to the named instance.'
 * Color.red.__doc__ = 'Red channel value.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_OTVarNamedInstance); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 10, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_postscript_name_id); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 10, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_The_name_table_Name_ID_that_prov_3) < (0)) __PYX_ERR(13, 10, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":11
 * OTVarNamedInstance.subfamily_name_id.__doc__ = 'The ``name`` table Name ID that provides display names for the "Subfamily name" defined for the given named instance.'
 * OTVarNamedInstance.postscript_name_id.__doc__ = 'The ``name`` table Name ID that provides display names for the "PostScript name" defined for the given named instance.'
 * OTVarNamedInstance.design_coords.__doc__ = 'The design-space coordinates corresponding to the named instance.'             # <<<<<<<<<<<<<<
 * Color.red.__doc__ = 'Red channel value.'
 * Color.green.__doc__ = 'Green channel value.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_OTVarNamedInstance); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 11, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_design_coords); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 11, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_The_design_space_coordinates_cor) < (0)) __PYX_ERR(13, 11, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":12
 * OTVarNamedInstance.postscript_name_id.__doc__ = 'The ``name`` table Name ID that provides display names for the "PostScript name" defined for the given named instance.'
 * OTVarNamedInstance.design_coords.__doc__ = 'The design-space coordinates corresponding to the named instance.'
 * Color.red.__doc__ = 'Red channel value.'             # <<<<<<<<<<<<<<
 * Color.green.__doc__ = 'Green channel value.'
 * Color.blue.__doc__ = 'Blue channel value.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_Color); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_red); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_Red_channel_value) < (0)) __PYX_ERR(13, 12, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":13
 * OTVarNamedInstance.design_coords.__doc__ = 'The design-space coordinates corresponding to the named instance.'
 * Color.red.__doc__ = 'Red channel value.'
 * Color.green.__doc__ = 'Green channel value.'             # <<<<<<<<<<<<<<
 * Color.blue.__doc__ = 'Blue channel value.'
 * Color.alpha.__doc__ = 'Alpha channel value.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_Color); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 13, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_green); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 13, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_Green_channel_value) < (0)) __PYX_ERR(13, 13, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":14
 * Color.red.__doc__ = 'Red channel value.'
 * Color.green.__doc__ = 'Green channel value.'
 * Color.blue.__doc__ = 'Blue channel value.'             # <<<<<<<<<<<<<<
 * Color.alpha.__doc__ = 'Alpha channel value.'
 * OTColorPalette.colors.__doc__ = 'The colors that make up the palette.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_Color); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 14, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_blue); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 14, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_Blue_channel_value) < (0)) __PYX_ERR(13, 14, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":15
 * Color.green.__doc__ = 'Green channel value.'
 * Color.blue.__doc__ = 'Blue channel value.'
 * Color.alpha.__doc__ = 'Alpha channel value.'             # <<<<<<<<<<<<<<
 * OTColorPalette.colors.__doc__ = 'The colors that make up the palette.'
 * OTColorPalette.name_id.__doc__ = 'The ``name`` table Name ID that provides display names for the palette, or ``None`` if no name is associated.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_Color); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 15, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_alpha); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 15, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_Alpha_channel_value) < (0)) __PYX_ERR(13, 15, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":16
 * Color.blue.__doc__ = 'Blue channel value.'
 * Color.alpha.__doc__ = 'Alpha channel value.'
 * OTColorPalette.colors.__doc__ = 'The colors that make up the palette.'             # <<<<<<<<<<<<<<
 * OTColorPalette.name_id.__doc__ = 'The ``name`` table Name ID that provides display names for the palette, or ``None`` if no name is associated.'
 * OTColorPalette.flags.__doc__ = 'The :class:`OTColorPaletteFlags` flags for the palette.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_OTColorPalette); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 16, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_colors); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 16, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_The_colors_that_make_up_the_pale) < (0)) __PYX_ERR(13, 16, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":17
 * Color.alpha.__doc__ = 'Alpha channel value.'
 * OTColorPalette.colors.__doc__ = 'The colors that make up the palette.'
 * OTColorPalette.name_id.__doc__ = 'The ``name`` table Name ID that provides display names for the palette, or ``None`` if no name is associated.'             # <<<<<<<<<<<<<<
 * OTColorPalette.flags.__doc__ = 'The :class:`OTColorPaletteFlags` flags for the palette.'
 * OTColorLayer.glyph.__doc__ = 'The glyph ID of the layer.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_OTColorPalette); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_name_id); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_The_name_table_Name_ID_that_prov_4) < (0)) __PYX_ERR(13, 17, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":18
 * OTColorPalette.colors.__doc__ = 'The colors that make up the palette.'
 * OTColorPalette.name_id.__doc__ = 'The ``name`` table Name ID that provides display names for the palette, or ``None`` if no name is associated.'
 * OTColorPalette.flags.__doc__ = 'The :class:`OTColorPaletteFlags` flags for the palette.'             # <<<<<<<<<<<<<<
 * OTColorLayer.glyph.__doc__ = 'The glyph ID of the layer.'
 * OTColorLayer.color_index.__doc__ = 'The palette color index of the layer.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_OTColorPalette); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 18, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_flags); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 18, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_The_class_OTColorPaletteFlags_fl) < (0)) __PYX_ERR(13, 18, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":19
 * OTColorPalette.name_id.__doc__ = 'The ``name`` table Name ID that provides display names for the palette, or ``None`` if no name is associated.'
 * OTColorPalette.flags.__doc__ = 'The :class:`OTColorPaletteFlags` flags for the palette.'
 * OTColorLayer.glyph.__doc__ = 'The glyph ID of the layer.'             # <<<<<<<<<<<<<<
 * OTColorLayer.color_index.__doc__ = 'The palette color index of the layer.'
 * OTNameEntry.name_id.__doc__ = 'The name ID, as an :class:`OTNameIdPredefined` value or a raw :class:`int` if it does not match any of the predefined ones.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_OTColorLayer); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 19, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_glyph); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 19, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_The_glyph_ID_of_the_layer) < (0)) __PYX_ERR(13, 19, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":20
 * OTColorPalette.flags.__doc__ = 'The :class:`OTColorPaletteFlags` flags for the palette.'
 * OTColorLayer.glyph.__doc__ = 'The glyph ID of the layer.'
 * OTColorLayer.color_index.__doc__ = 'The palette color index of the layer.'             # <<<<<<<<<<<<<<
 * OTNameEntry.name_id.__doc__ = 'The name ID, as an :class:`OTNameIdPredefined` value or a raw :class:`int` if it does not match any of the predefined ones.'
 * OTNameEntry.language.__doc__ = 'The BCP 47 language tag, or ``None`` if the language cannot be determined.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_OTColorLayer); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 20, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_color_index); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 20, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_The_palette_color_index_of_the_l) < (0)) __PYX_ERR(13, 20, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":21
 * OTColorLayer.glyph.__doc__ = 'The glyph ID of the layer.'
 * OTColorLayer.color_index.__doc__ = 'The palette color index of the layer.'
 * OTNameEntry.name_id.__doc__ = 'The name ID, as an :class:`OTNameIdPredefined` value or a raw :class:`int` if it does not match any of the predefined ones.'             # <<<<<<<<<<<<<<
 * OTNameEntry.language.__doc__ = 'The BCP 47 language tag, or ``None`` if the language cannot be determined.'
 * GlyphExtents.x_bearing.__doc__ = 'Distance from the x-origin to the left extremum of the glyph.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_OTNameEntry); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 21, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_name_id); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 21, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_The_name_ID_as_an_class_OTNameId) < (0)) __PYX_ERR(13, 21, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":22
 * OTColorLayer.color_index.__doc__ = 'The palette color index of the layer.'
 * OTNameEntry.name_id.__doc__ = 'The name ID, as an :class:`OTNameIdPredefined` value or a raw :class:`int` if it does not match any of the predefined ones.'
 * OTNameEntry.language.__doc__ = 'The BCP 47 language tag, or ``None`` if the language cannot be determined.'             # <<<<<<<<<<<<<<
 * GlyphExtents.x_bearing.__doc__ = 'Distance from the x-origin to the left extremum of the glyph.'
 * GlyphExtents.y_bearing.__doc__ = 'Distance from the top extremum of the glyph to the y-origin.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_OTNameEntry); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 22, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_language); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 22, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_The_BCP_47_language_tag_or_None) < (0)) __PYX_ERR(13, 22, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":23
 * OTNameEntry.name_id.__doc__ = 'The name ID, as an :class:`OTNameIdPredefined` value or a raw :class:`int` if it does not match any of the predefined ones.'
 * OTNameEntry.language.__doc__ = 'The BCP 47 language tag, or ``None`` if the language cannot be determined.'
 * GlyphExtents.x_bearing.__doc__ = 'Distance from the x-origin to the left extremum of the glyph.'             # <<<<<<<<<<<<<<
 * GlyphExtents.y_bearing.__doc__ = 'Distance from the top extremum of the glyph to the y-origin.'
 * GlyphExtents.width.__doc__ = 'Distance from the left extremum of the glyph to the right extremum.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_GlyphExtents); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 23, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_x_bearing); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 23, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_Distance_from_the_x_origin_to_th) < (0)) __PYX_ERR(13, 23, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":24
 * OTNameEntry.language.__doc__ = 'The BCP 47 language tag, or ``None`` if the language cannot be determined.'
 * GlyphExtents.x_bearing.__doc__ = 'Distance from the x-origin to the left extremum of the glyph.'
 * GlyphExtents.y_bearing.__doc__ = 'Distance from the top extremum of the glyph to the y-origin.'             # <<<<<<<<<<<<<<
 * GlyphExtents.width.__doc__ = 'Distance from the left extremum of the glyph to the right extremum.'
 * GlyphExtents.height.__doc__ = 'Distance from the top extremum of the glyph to the bottom extremum.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GlyphExtents); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 24, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_y_bearing); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 24, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_Distance_from_the_top_extremum_o) < (0)) __PYX_ERR(13, 24, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":25
 * GlyphExtents.x_bearing.__doc__ = 'Distance from the x-origin to the left extremum of the glyph.'
 * GlyphExtents.y_bearing.__doc__ = 'Distance from the top extremum of the glyph to the y-origin.'
 * GlyphExtents.width.__doc__ = 'Distance from the left extremum of the glyph to the right extremum.'             # <<<<<<<<<<<<<<
 * GlyphExtents.height.__doc__ = 'Distance from the top extremum of the glyph to the bottom extremum.'
 * FontExtents.ascender.__doc__ = 'The height of typographic ascenders.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_GlyphExtents); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 25, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_width); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 25, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_Distance_from_the_left_extremum) < (0)) __PYX_ERR(13, 25, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":26
 * GlyphExtents.y_bearing.__doc__ = 'Distance from the top extremum of the glyph to the y-origin.'
 * GlyphExtents.width.__doc__ = 'Distance from the left extremum of the glyph to the right extremum.'
 * GlyphExtents.height.__doc__ = 'Distance from the top extremum of the glyph to the bottom extremum.'             # <<<<<<<<<<<<<<
 * FontExtents.ascender.__doc__ = 'The height of typographic ascenders.'
 * FontExtents.descender.__doc__ = 'The depth of typographic descenders.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GlyphExtents); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 26, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_height); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 26, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_Distance_from_the_top_extremum_o_2) < (0)) __PYX_ERR(13, 26, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":27
 * GlyphExtents.width.__doc__ = 'Distance from the left extremum of the glyph to the right extremum.'
 * GlyphExtents.height.__doc__ = 'Distance from the top extremum of the glyph to the bottom extremum.'
 * FontExtents.ascender.__doc__ = 'The height of typographic ascenders.'             # <<<<<<<<<<<<<<
 * FontExtents.descender.__doc__ = 'The depth of typographic descenders.'
 * FontExtents.line_gap.__doc__ = 'The suggested line-spacing gap.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_FontExtents); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 27, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_ascender); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 27, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_The_height_of_typographic_ascend) < (0)) __PYX_ERR(13, 27, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":28
 * GlyphExtents.height.__doc__ = 'Distance from the top extremum of the glyph to the bottom extremum.'
 * FontExtents.ascender.__doc__ = 'The height of typographic ascenders.'
 * FontExtents.descender.__doc__ = 'The depth of typographic descenders.'             # <<<<<<<<<<<<<<
 * FontExtents.line_gap.__doc__ = 'The suggested line-spacing gap.'
 * OTMathKernEntry.max_correction_height.__doc__ = 'The maximum height at which this entry should be used.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_FontExtents); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 28, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_descender); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 28, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_The_depth_of_typographic_descend) < (0)) __PYX_ERR(13, 28, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":29
 * FontExtents.ascender.__doc__ = 'The height of typographic ascenders.'
 * FontExtents.descender.__doc__ = 'The depth of typographic descenders.'
 * FontExtents.line_gap.__doc__ = 'The suggested line-spacing gap.'             # <<<<<<<<<<<<<<
 * OTMathKernEntry.max_correction_height.__doc__ = 'The maximum height at which this entry should be used.'
 * OTMathKernEntry.kern_value.__doc__ = 'The kern value of the entry.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_FontExtents); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 29, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_line_gap); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 29, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_The_suggested_line_spacing_gap) < (0)) __PYX_ERR(13, 29, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":30
 * FontExtents.descender.__doc__ = 'The depth of typographic descenders.'
 * FontExtents.line_gap.__doc__ = 'The suggested line-spacing gap.'
 * OTMathKernEntry.max_correction_height.__doc__ = 'The maximum height at which this entry should be used.'             # <<<<<<<<<<<<<<
 * OTMathKernEntry.kern_value.__doc__ = 'The kern value of the entry.'
 * OTMathGlyphVariant.glyph.__doc__ = 'The glyph index of the variant.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_OTMathKernEntry); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 30, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_max_correction_height); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 30, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_The_maximum_height_at_which_this) < (0)) __PYX_ERR(13, 30, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":31
 * FontExtents.line_gap.__doc__ = 'The suggested line-spacing gap.'
 * OTMathKernEntry.max_correction_height.__doc__ = 'The maximum height at which this entry should be used.'
 * OTMathKernEntry.kern_value.__doc__ = 'The kern value of the entry.'             # <<<<<<<<<<<<<<
 * OTMathGlyphVariant.glyph.__doc__ = 'The glyph index of the variant.'
 * OTMathGlyphVariant.advance.__doc__ = 'The advance width of the variant.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_OTMathKernEntry); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 31, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_kern_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 31, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_The_kern_value_of_the_entry) < (0)) __PYX_ERR(13, 31, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":32
 * OTMathKernEntry.max_correction_height.__doc__ = 'The maximum height at which this entry should be used.'
 * OTMathKernEntry.kern_value.__doc__ = 'The kern value of the entry.'
 * OTMathGlyphVariant.glyph.__doc__ = 'The glyph index of the variant.'             # <<<<<<<<<<<<<<
 * OTMathGlyphVariant.advance.__doc__ = 'The advance width of the variant.'
 * OTMathGlyphPart.glyph.__doc__ = 'The glyph index of the variant part.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_OTMathGlyphVariant); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 32, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_glyph); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 32, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_The_glyph_index_of_the_variant) < (0)) __PYX_ERR(13, 32, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":33
 * OTMathKernEntry.kern_value.__doc__ = 'The kern value of the entry.'
 * OTMathGlyphVariant.glyph.__doc__ = 'The glyph index of the variant.'
 * OTMathGlyphVariant.advance.__doc__ = 'The advance width of the variant.'             # <<<<<<<<<<<<<<
 * OTMathGlyphPart.glyph.__doc__ = 'The glyph index of the variant part.'
 * OTMathGlyphPart.start_connector_length.__doc__ = 'The length of the connector on the starting side of the variant part.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_OTMathGlyphVariant); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 33, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_advance); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 33, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_The_advance_width_of_the_variant) < (0)) __PYX_ERR(13, 33, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":34
 * OTMathGlyphVariant.glyph.__doc__ = 'The glyph index of the variant.'
 * OTMathGlyphVariant.advance.__doc__ = 'The advance width of the variant.'
 * OTMathGlyphPart.glyph.__doc__ = 'The glyph index of the variant part.'             # <<<<<<<<<<<<<<
 * OTMathGlyphPart.start_connector_length.__doc__ = 'The length of the connector on the starting side of the variant part.'
 * OTMathGlyphPart.end_connector_length.__doc__ = 'The length of the connector on the ending side of the variant part.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_OTMathGlyphPart); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 34, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_glyph); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 34, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_The_glyph_index_of_the_variant_p) < (0)) __PYX_ERR(13, 34, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":35
 * OTMathGlyphVariant.advance.__doc__ = 'The advance width of the variant.'
 * OTMathGlyphPart.glyph.__doc__ = 'The glyph index of the variant part.'
 * OTMathGlyphPart.start_connector_length.__doc__ = 'The length of the connector on the starting side of the variant part.'             # <<<<<<<<<<<<<<
 * OTMathGlyphPart.end_connector_length.__doc__ = 'The length of the connector on the ending side of the variant part.'
 * OTMathGlyphPart.full_advance.__doc__ = 'The total advance of the part.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_OTMathGlyphPart); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 35, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_start_connector_length); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 35, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_The_length_of_the_connector_on_t) < (0)) __PYX_ERR(13, 35, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":36
 * OTMathGlyphPart.glyph.__doc__ = 'The glyph index of the variant part.'
 * OTMathGlyphPart.start_connector_length.__doc__ = 'The length of the connector on the starting side of the variant part.'
 * OTMathGlyphPart.end_connector_length.__doc__ = 'The length of the connector on the ending side of the variant part.'             # <<<<<<<<<<<<<<
 * OTMathGlyphPart.full_advance.__doc__ = 'The total advance of the part.'
 * OTMathGlyphPart.flags.__doc__ = ':class:`OTMathGlyphPartFlags` flags for the part.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_OTMathGlyphPart); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 36, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_end_connector_length); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 36, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_The_length_of_the_connector_on_t_2) < (0)) __PYX_ERR(13, 36, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":37
 * OTMathGlyphPart.start_connector_length.__doc__ = 'The length of the connector on the starting side of the variant part.'
 * OTMathGlyphPart.end_connector_length.__doc__ = 'The length of the connector on the ending side of the variant part.'
 * OTMathGlyphPart.full_advance.__doc__ = 'The total advance of the part.'             # <<<<<<<<<<<<<<
 * OTMathGlyphPart.flags.__doc__ = ':class:`OTMathGlyphPartFlags` flags for the part.'
 * ColorStop.offset.__doc__ = 'The offset of the color stop.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_OTMathGlyphPart); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 37, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_full_advance); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 37, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_The_total_advance_of_the_part) < (0)) __PYX_ERR(13, 37, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":38
 * OTMathGlyphPart.end_connector_length.__doc__ = 'The length of the connector on the ending side of the variant part.'
 * OTMathGlyphPart.full_advance.__doc__ = 'The total advance of the part.'
 * OTMathGlyphPart.flags.__doc__ = ':class:`OTMathGlyphPartFlags` flags for the part.'             # <<<<<<<<<<<<<<
 * ColorStop.offset.__doc__ = 'The offset of the color stop.'
 * ColorStop.is_foreground.__doc__ = 'Whether the color is the foreground.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_OTMathGlyphPart); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 38, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_flags); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 38, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_class_OTMathGlyphPartFlags_flag) < (0)) __PYX_ERR(13, 38, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":39
 * OTMathGlyphPart.full_advance.__doc__ = 'The total advance of the part.'
 * OTMathGlyphPart.flags.__doc__ = ':class:`OTMathGlyphPartFlags` flags for the part.'
 * ColorStop.offset.__doc__ = 'The offset of the color stop.'             # <<<<<<<<<<<<<<
 * ColorStop.is_foreground.__doc__ = 'Whether the color is the foreground.'
 * ColorStop.color.__doc__ = 'The color, unpremultiplied.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_ColorStop); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 39, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_offset); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 39, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_The_offset_of_the_color_stop) < (0)) __PYX_ERR(13, 39, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":40
 * OTMathGlyphPart.flags.__doc__ = ':class:`OTMathGlyphPartFlags` flags for the part.'
 * ColorStop.offset.__doc__ = 'The offset of the color stop.'
 * ColorStop.is_foreground.__doc__ = 'Whether the color is the foreground.'             # <<<<<<<<<<<<<<
 * ColorStop.color.__doc__ = 'The color, unpremultiplied.'
 * RasterExtents.x_origin.__doc__ = 'X coordinate of the left edge of the image in glyph space.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_ColorStop); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 40, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_is_foreground); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 40, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_Whether_the_color_is_the_foregro) < (0)) __PYX_ERR(13, 40, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":41
 * ColorStop.offset.__doc__ = 'The offset of the color stop.'
 * ColorStop.is_foreground.__doc__ = 'Whether the color is the foreground.'
 * ColorStop.color.__doc__ = 'The color, unpremultiplied.'             # <<<<<<<<<<<<<<
 * RasterExtents.x_origin.__doc__ = 'X coordinate of the left edge of the image in glyph space.'
 * RasterExtents.y_origin.__doc__ = 'Y coordinate of the bottom edge of the image in glyph space.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_ColorStop); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 41, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_color); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 41, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_The_color_unpremultiplied) < (0)) __PYX_ERR(13, 41, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":42
 * ColorStop.is_foreground.__doc__ = 'Whether the color is the foreground.'
 * ColorStop.color.__doc__ = 'The color, unpremultiplied.'
 * RasterExtents.x_origin.__doc__ = 'X coordinate of the left edge of the image in glyph space.'             # <<<<<<<<<<<<<<
 * RasterExtents.y_origin.__doc__ = 'Y coordinate of the bottom edge of the image in glyph space.'
 * RasterExtents.width.__doc__ = 'Width in pixels.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_RasterExtents); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 42, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_x_origin); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 42, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_X_coordinate_of_the_left_edge_of) < (0)) __PYX_ERR(13, 42, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":43
 * ColorStop.color.__doc__ = 'The color, unpremultiplied.'
 * RasterExtents.x_origin.__doc__ = 'X coordinate of the left edge of the image in glyph space.'
 * RasterExtents.y_origin.__doc__ = 'Y coordinate of the bottom edge of the image in glyph space.'             # <<<<<<<<<<<<<<
 * RasterExtents.width.__doc__ = 'Width in pixels.'
 * RasterExtents.height.__doc__ = 'Height in pixels.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_RasterExtents); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 43, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_y_origin); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 43, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_Y_coordinate_of_the_bottom_edge) < (0)) __PYX_ERR(13, 43, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":44
 * RasterExtents.x_origin.__doc__ = 'X coordinate of the left edge of the image in glyph space.'
 * RasterExtents.y_origin.__doc__ = 'Y coordinate of the bottom edge of the image in glyph space.'
 * RasterExtents.width.__doc__ = 'Width in pixels.'             # <<<<<<<<<<<<<<
 * RasterExtents.height.__doc__ = 'Height in pixels.'
 * RasterExtents.stride.__doc__ = 'Bytes per row; 0 means auto-calculate on input, filled on output.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_RasterExtents); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 44, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_width); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 44, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_Width_in_pixels) < (0)) __PYX_ERR(13, 44, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":45
 * RasterExtents.y_origin.__doc__ = 'Y coordinate of the bottom edge of the image in glyph space.'
 * RasterExtents.width.__doc__ = 'Width in pixels.'
 * RasterExtents.height.__doc__ = 'Height in pixels.'             # <<<<<<<<<<<<<<
 * RasterExtents.stride.__doc__ = 'Bytes per row; 0 means auto-calculate on input, filled on output.'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_RasterExtents); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 45, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_height); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 45, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_Height_in_pixels) < (0)) __PYX_ERR(13, 45, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/uharfbuzz/_generated_docs.pxi":46
 * RasterExtents.width.__doc__ = 'Width in pixels.'
 * RasterExtents.height.__doc__ = 'Height in pixels.'
 * RasterExtents.stride.__doc__ = 'Bytes per row; 0 means auto-calculate on input, filled on output.'             # <<<<<<<<<<<<<<
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_RasterExtents); if (unlikely(!__pyx_t_5)) __PYX_ERR(13, 46, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_stride); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 46, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_doc, __pyx_mstate_global->__pyx_kp_u_Bytes_per_row_0_means_auto_calcu) < (0)) __PYX_ERR(13, 46, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":96
 * include "_generated_docs.pxi"
 * 
 * def shape(font: Font, buffer: Buffer,             # <<<<<<<<<<<<<<
 *         features: Dict[str,Union[int,bool,Sequence[Tuple[int,int,Union[int,bool]]]]] | None = None,
 *         shapers: List[str] | None = None):
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 96, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_font, __pyx_mstate_global->__pyx_n_u_Font) < (0)) __PYX_ERR(0, 96, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_buffer, __pyx_mstate_global->__pyx_n_u_Buffer) < (0)) __PYX_ERR(0, 96, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_features, __pyx_mstate_global->__pyx_kp_u_Dict_str_Union_int_bool_Sequence) < (0)) __PYX_ERR(0, 96, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_shapers, __pyx_mstate_global->__pyx_kp_u_List_str_None) < (0)) __PYX_ERR(0, 96, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_17shape, 0, __pyx_mstate_global->__pyx_n_u_shape, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[209])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 96, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[7]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_shape, __pyx_t_5) < (0)) __PYX_ERR(0, 96, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":177
 * 
 * 
 * def ot_tag_to_script(tag: str) -> str:             # <<<<<<<<<<<<<<
 *     """Converts a script tag to a script.
 * 
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 177, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_tag, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(0, 177, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(0, 177, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_19ot_tag_to_script, 0, __pyx_mstate_global->__pyx_n_u_ot_tag_to_script, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[210])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 177, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_tag_to_script, __pyx_t_2) < (0)) __PYX_ERR(0, 177, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":197
 * 
 * 
 * def ot_tag_to_language(tag: str) -> str:             # <<<<<<<<<<<<<<
 *     """Converts a language tag to a language.
 * 
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 197, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_tag, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(0, 197, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(0, 197, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_21ot_tag_to_language, 0, __pyx_mstate_global->__pyx_n_u_ot_tag_to_language, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[211])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 197, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_tag_to_language, __pyx_t_5) < (0)) __PYX_ERR(0, 197, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":217
 * 
 * 
 * @deprecated("Face.get_lookup_glyph_alternates()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_layout_lookup_get_glyph_alternates(
 *         face: Face, lookup_index : int, glyph : hb_codepoint_t) -> List[int]:
*/
  __pyx_t_2 = NULL;
  __pyx_t_7 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 217, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_7, __pyx_mstate_global->__pyx_kp_u_Face_get_lookup_glyph_alternates_2};
    __pyx_t_9 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 217, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_9, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 217, __pyx_L1_error)
    __pyx_t_10 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_9);
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 217, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 217, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_face, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(0, 217, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_lookup_index, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 217, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_hb_codepoint_t) < (0)) __PYX_ERR(0, 217, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_List_int) < (0)) __PYX_ERR(0, 217, __pyx_L1_error)
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_23ot_layout_lookup_get_glyph_alternates, 0, __pyx_mstate_global->__pyx_n_u_ot_layout_lookup_get_glyph_alter, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[212])); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 217, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_9, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_9};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_10, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 217, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_layout_lookup_get_glyph_alter, __pyx_t_5) < (0)) __PYX_ERR(0, 217, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":223
 * 
 * 
 * @deprecated("Face.get_language_feature_tags()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_layout_language_get_feature_tags(
 *         face: Face, tag: str, script_index: int = 0,
*/
  __pyx_t_10 = NULL;
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 223, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_Face_get_language_feature_tags_2};
    __pyx_t_7 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 223, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_7, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 223, __pyx_L1_error)
    __pyx_t_9 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_7);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 223, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 223, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_face, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(0, 223, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_tag, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(0, 223, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_script_index, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 223, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_language_index, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 223, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_List_str) < (0)) __PYX_ERR(0, 223, __pyx_L1_error)
  __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_25ot_layout_language_get_feature_tags, 0, __pyx_mstate_global->__pyx_n_u_ot_layout_language_get_feature_t, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[213])); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 223, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_7);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_7, __pyx_mstate_global->__pyx_tuple[4]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_7, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_t_7};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_9, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 223, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_layout_language_get_feature_t, __pyx_t_5) < (0)) __PYX_ERR(0, 223, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":230
 * 
 * 
 * @deprecated("Face.get_script_language_tags()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_layout_script_get_language_tags(
 *         face: Face, tag: str, script_index: int = 0) -> List[str]:
*/
  __pyx_t_9 = NULL;
  __pyx_t_10 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 230, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_10, __pyx_mstate_global->__pyx_kp_u_Face_get_script_language_tags_2};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 230, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_2, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 230, __pyx_L1_error)
    __pyx_t_7 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 230, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 230, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_face, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(0, 230, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_tag, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(0, 230, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_script_index, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 230, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_List_str) < (0)) __PYX_ERR(0, 230, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_27ot_layout_script_get_language_tags, 0, __pyx_mstate_global->__pyx_n_u_ot_layout_script_get_language_ta, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[214])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 230, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[2]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_2};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 230, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_layout_script_get_language_ta, __pyx_t_5) < (0)) __PYX_ERR(0, 230, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":235
 *     return face.get_script_language_tags(tag, script_index)
 * 
 * @deprecated("Face.get_table_script_tags()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_layout_table_get_script_tags(face: Face, tag: str) -> List[str]:
 *     return face.get_table_script_tags(tag)
*/
  __pyx_t_7 = NULL;
  __pyx_t_9 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 235, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_9, __pyx_mstate_global->__pyx_kp_u_Face_get_table_script_tags_2};
    __pyx_t_10 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 235, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_10, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 235, __pyx_L1_error)
    __pyx_t_2 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_10);
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 235, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 235, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_face, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(0, 235, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_tag, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(0, 235, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_List_str) < (0)) __PYX_ERR(0, 235, __pyx_L1_error)
  __pyx_t_10 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_29ot_layout_table_get_script_tags, 0, __pyx_mstate_global->__pyx_n_u_ot_layout_table_get_script_tags, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[215])); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 235, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_10);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_10, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_10};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 235, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_layout_table_get_script_tags, __pyx_t_5) < (0)) __PYX_ERR(0, 235, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":239
 *     return face.get_table_script_tags(tag)
 * 
 * @deprecated("Face.get_layout_baseline()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_layout_get_baseline(font: Font,
 *                            baseline_tag: str,
*/
  __pyx_t_2 = NULL;
  __pyx_t_7 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 239, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_7, __pyx_mstate_global->__pyx_kp_u_Face_get_layout_baseline};
    __pyx_t_9 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 239, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_9, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 239, __pyx_L1_error)
    __pyx_t_10 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_9);
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 239, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 239, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_font, __pyx_mstate_global->__pyx_n_u_Font) < (0)) __PYX_ERR(0, 239, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_baseline_tag, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(0, 239, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_direction, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(0, 239, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_script_tag, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(0, 239, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_language_tag, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(0, 239, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 239, __pyx_L1_error)
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_31ot_layout_get_baseline, 0, __pyx_mstate_global->__pyx_n_u_ot_layout_get_baseline, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[216])); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 239, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_9, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_9};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_10, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 239, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_layout_get_baseline, __pyx_t_5) < (0)) __PYX_ERR(0, 239, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":247
 *     return font.get_layout_baseline(baseline_tag, direction, script_tag, language_tag)
 * 
 * @deprecated("Face.face.has_layout_glyph_classes", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_layout_has_glyph_classes(face: Face) -> bool:
 *     return face.has_layout_glyph_classes
*/
  __pyx_t_10 = NULL;
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 247, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_Face_face_has_layout_glyph_class};
    __pyx_t_7 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 247, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_7, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 247, __pyx_L1_error)
    __pyx_t_9 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_7);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 247, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 247, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_face, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(0, 247, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(0, 247, __pyx_L1_error)
  __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_33ot_layout_has_glyph_classes, 0, __pyx_mstate_global->__pyx_n_u_ot_layout_has_glyph_classes, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[217])); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 247, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_7);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_7, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_t_7};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_9, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 247, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_layout_has_glyph_classes, __pyx_t_5) < (0)) __PYX_ERR(0, 247, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":251
 *     return face.has_layout_glyph_classes
 * 
 * @deprecated("Face.has_layout_positioning", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_layout_has_positioning(face: Face) -> bool:
 *     return face.has_layout_positioning
*/
  __pyx_t_9 = NULL;
  __pyx_t_10 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 251, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_10, __pyx_mstate_global->__pyx_kp_u_Face_has_layout_positioning};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 251, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_2, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 251, __pyx_L1_error)
    __pyx_t_7 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 251, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 251, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_face, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(0, 251, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(0, 251, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_35ot_layout_has_positioning, 0, __pyx_mstate_global->__pyx_n_u_ot_layout_has_positioning, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[218])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 251, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_2};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 251, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_layout_has_positioning, __pyx_t_5) < (0)) __PYX_ERR(0, 251, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":255
 *     return face.has_layout_positioning
 * 
 * @deprecated("Face.has_layout_substitution", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_layout_has_substitution(face: Face) -> bool:
 *     return face.has_layout_substitution
*/
  __pyx_t_7 = NULL;
  __pyx_t_9 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 255, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_9, __pyx_mstate_global->__pyx_kp_u_Face_has_layout_substitution};
    __pyx_t_10 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 255, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_10, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 255, __pyx_L1_error)
    __pyx_t_2 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_10);
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 255, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 255, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_face, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(0, 255, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(0, 255, __pyx_L1_error)
  __pyx_t_10 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_37ot_layout_has_substitution, 0, __pyx_mstate_global->__pyx_n_u_ot_layout_has_substitution, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[219])); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 255, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_10);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_10, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_10};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 255, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_layout_has_substitution, __pyx_t_5) < (0)) __PYX_ERR(0, 255, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":259
 *     return face.has_layout_substitution
 * 
 * @deprecated("Face.get_layout_glyph_class()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_layout_get_glyph_class(face: Face, glyph: int) -> OTLayoutGlyphClass:
 *     return face.get_layout_glyph_class(glyph)
*/
  __pyx_t_2 = NULL;
  __pyx_t_7 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 259, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_7, __pyx_mstate_global->__pyx_kp_u_Face_get_layout_glyph_class_2};
    __pyx_t_9 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 259, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_9, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 259, __pyx_L1_error)
    __pyx_t_10 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_9);
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 259, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 259, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_face, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(0, 259, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 259, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_OTLayoutGlyphClass) < (0)) __PYX_ERR(0, 259, __pyx_L1_error)
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_39ot_layout_get_glyph_class, 0, __pyx_mstate_global->__pyx_n_u_ot_layout_get_glyph_class, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[220])); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 259, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_9, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_9};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_10, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 259, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_layout_get_glyph_class, __pyx_t_5) < (0)) __PYX_ERR(0, 259, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":263
 *     return face.get_layout_glyph_class(glyph)
 * 
 * @deprecated("Face.has_color_palettes", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_has_palettes(face: Face) -> bool:
 *     return face.has_color_palettes
*/
  __pyx_t_10 = NULL;
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_Face_has_color_palettes};
    __pyx_t_7 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 263, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_7, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 263, __pyx_L1_error)
    __pyx_t_9 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_7);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 263, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_face, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(0, 263, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(0, 263, __pyx_L1_error)
  __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_41ot_color_has_palettes, 0, __pyx_mstate_global->__pyx_n_u_ot_color_has_palettes, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[221])); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_7);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_7, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_t_7};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_9, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 263, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_color_has_palettes, __pyx_t_5) < (0)) __PYX_ERR(0, 263, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":267
 *     return face.has_color_palettes
 * 
 * @deprecated("Face.color_palettes", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_palette_get_count(face: Face) -> int:
 *     return hb_ot_color_palette_get_count(face._hb_face)
*/
  __pyx_t_9 = NULL;
  __pyx_t_10 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 267, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_10, __pyx_mstate_global->__pyx_kp_u_Face_color_palettes};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 267, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_2, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 267, __pyx_L1_error)
    __pyx_t_7 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 267, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 267, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_face, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(0, 267, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 267, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_43ot_color_palette_get_count, 0, __pyx_mstate_global->__pyx_n_u_ot_color_palette_get_count, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[222])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 267, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_2};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 267, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_color_palette_get_count, __pyx_t_5) < (0)) __PYX_ERR(0, 267, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":271
 *     return hb_ot_color_palette_get_count(face._hb_face)
 * 
 * @deprecated("Face.get_color_palette()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_palette_get_flags(face: Face, palette_index: int) -> OTColorPaletteFlags:
 *     return OTColorPaletteFlags(hb_ot_color_palette_get_flags(face._hb_face, palette_index))
*/
  __pyx_t_7 = NULL;
  __pyx_t_9 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 271, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_9, __pyx_mstate_global->__pyx_kp_u_Face_get_color_palette_2};
    __pyx_t_10 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 271, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_10, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 271, __pyx_L1_error)
    __pyx_t_2 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_10);
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 271, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 271, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_face, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(0, 271, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_palette_index, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 271, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_OTColorPaletteFlags) < (0)) __PYX_ERR(0, 271, __pyx_L1_error)
  __pyx_t_10 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_45ot_color_palette_get_flags, 0, __pyx_mstate_global->__pyx_n_u_ot_color_palette_get_flags, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[223])); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 271, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_10);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_10, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_10};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 271, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_color_palette_get_flags, __pyx_t_5) < (0)) __PYX_ERR(0, 271, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":275
 *     return OTColorPaletteFlags(hb_ot_color_palette_get_flags(face._hb_face, palette_index))
 * 
 * @deprecated("Face.get_color_palette()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_palette_get_colors(face: Face, palette_index: int) -> List[Color]:
 *     cdef list ret = []
*/
  __pyx_t_2 = NULL;
  __pyx_t_7 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_7, __pyx_mstate_global->__pyx_kp_u_Face_get_color_palette_2};
    __pyx_t_9 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 275, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_9, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 275, __pyx_L1_error)
    __pyx_t_10 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_9);
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 275, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_face, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(0, 275, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_palette_index, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 275, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_List_Color) < (0)) __PYX_ERR(0, 275, __pyx_L1_error)
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_47ot_color_palette_get_colors, 0, __pyx_mstate_global->__pyx_n_u_ot_color_palette_get_colors, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[224])); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_9, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_9};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_10, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 275, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_color_palette_get_colors, __pyx_t_5) < (0)) __PYX_ERR(0, 275, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":288
 *     return ret
 * 
 * @deprecated("Face.get_color_palette()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_palette_get_name_id(face: Face, palette_index: int) -> int | None:
 *     cdef hb_ot_name_id_t name_id
*/
  __pyx_t_10 = NULL;
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 288, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_Face_get_color_palette_2};
    __pyx_t_7 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 288, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_7, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 288, __pyx_L1_error)
    __pyx_t_9 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_7);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 288, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 288, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_face, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(0, 288, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_palette_index, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 288, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_int_None) < (0)) __PYX_ERR(0, 288, __pyx_L1_error)
  __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_49ot_color_palette_get_name_id, 0, __pyx_mstate_global->__pyx_n_u_ot_color_palette_get_name_id, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[225])); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 288, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_7);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_7, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_t_7};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_9, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 288, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_color_palette_get_name_id, __pyx_t_5) < (0)) __PYX_ERR(0, 288, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":296
 *     return name_id
 * 
 * @deprecated("Face.color_palette_color_get_name_id()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_palette_color_get_name_id(face: Face, color_index: int) -> int | None:
 *     return face.color_palette_color_get_name_id(color_index)
*/
  __pyx_t_9 = NULL;
  __pyx_t_10 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 296, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_10, __pyx_mstate_global->__pyx_kp_u_Face_color_palette_color_get_nam_2};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 296, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_2, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 296, __pyx_L1_error)
    __pyx_t_7 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 296, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 296, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_face, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(0, 296, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_color_index, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 296, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_int_None) < (0)) __PYX_ERR(0, 296, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_51ot_color_palette_color_get_name_id, 0, __pyx_mstate_global->__pyx_n_u_ot_color_palette_color_get_name, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[226])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 296, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_2};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 296, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_color_palette_color_get_name, __pyx_t_5) < (0)) __PYX_ERR(0, 296, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":300
 *     return face.color_palette_color_get_name_id(color_index)
 * 
 * @deprecated("Face.has_color_layers", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_has_layers(face: Face) -> bool:
 *     return face.has_color_layers
*/
  __pyx_t_7 = NULL;
  __pyx_t_9 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 300, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_9, __pyx_mstate_global->__pyx_kp_u_Face_has_color_layers};
    __pyx_t_10 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 300, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_10, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 300, __pyx_L1_error)
    __pyx_t_2 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_10);
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 300, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 300, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_face, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(0, 300, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(0, 300, __pyx_L1_error)
  __pyx_t_10 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_53ot_color_has_layers, 0, __pyx_mstate_global->__pyx_n_u_ot_color_has_layers, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[227])); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 300, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_10);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_10, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_10};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 300, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_color_has_layers, __pyx_t_5) < (0)) __PYX_ERR(0, 300, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":304
 *     return face.has_color_layers
 * 
 * @deprecated("Face.get_glyph_color_layers()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_glyph_get_layers(face: Face, glyph: int) -> List[OTColorLayer]:
 *     return face.get_glyph_color_layers(glyph)
*/
  __pyx_t_2 = NULL;
  __pyx_t_7 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 304, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_7, __pyx_mstate_global->__pyx_kp_u_Face_get_glyph_color_layers_2};
    __pyx_t_9 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 304, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_9, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 304, __pyx_L1_error)
    __pyx_t_10 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_9);
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 304, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 304, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_face, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(0, 304, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 304, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_List_OTColorLayer) < (0)) __PYX_ERR(0, 304, __pyx_L1_error)
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_55ot_color_glyph_get_layers, 0, __pyx_mstate_global->__pyx_n_u_ot_color_glyph_get_layers, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[228])); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 304, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_9, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_9};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_10, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 304, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_color_glyph_get_layers, __pyx_t_5) < (0)) __PYX_ERR(0, 304, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":308
 *     return face.get_glyph_color_layers(glyph)
 * 
 * @deprecated("Face.has_color_paint", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_has_paint(face: Face) -> bool:
 *     return face.has_color_paint
*/
  __pyx_t_10 = NULL;
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_Face_has_color_paint};
    __pyx_t_7 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 308, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_7, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 308, __pyx_L1_error)
    __pyx_t_9 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_7);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 308, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_face, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(0, 308, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(0, 308, __pyx_L1_error)
  __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_57ot_color_has_paint, 0, __pyx_mstate_global->__pyx_n_u_ot_color_has_paint, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[229])); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_7);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_7, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_t_7};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_9, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 308, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_color_has_paint, __pyx_t_5) < (0)) __PYX_ERR(0, 308, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":312
 *     return face.has_color_paint
 * 
 * @deprecated("Face.glyph_has_color_paint()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_glyph_has_paint(face: Face, glyph: int) -> bool:
 *     return face.glyph_has_color_paint(glyph)
*/
  __pyx_t_9 = NULL;
  __pyx_t_10 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 312, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_10, __pyx_mstate_global->__pyx_kp_u_Face_glyph_has_color_paint_2};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 312, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_2, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 312, __pyx_L1_error)
    __pyx_t_7 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 312, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 312, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_face, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(0, 312, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 312, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(0, 312, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_59ot_color_glyph_has_paint, 0, __pyx_mstate_global->__pyx_n_u_ot_color_glyph_has_paint, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[230])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 312, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_2};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 312, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_color_glyph_has_paint, __pyx_t_5) < (0)) __PYX_ERR(0, 312, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":316
 *     return face.glyph_has_color_paint(glyph)
 * 
 * @deprecated("Face.has_color_svg", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_has_svg(face: Face) -> bool:
 *     return face.has_color_svg
*/
  __pyx_t_7 = NULL;
  __pyx_t_9 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 316, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_9, __pyx_mstate_global->__pyx_kp_u_Face_has_color_svg};
    __pyx_t_10 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 316, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_10, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 316, __pyx_L1_error)
    __pyx_t_2 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_10);
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 316, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 316, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_face, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(0, 316, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(0, 316, __pyx_L1_error)
  __pyx_t_10 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_61ot_color_has_svg, 0, __pyx_mstate_global->__pyx_n_u_ot_color_has_svg, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[231])); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 316, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_10);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_10, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_10};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 316, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_color_has_svg, __pyx_t_5) < (0)) __PYX_ERR(0, 316, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":320
 *     return face.has_color_svg
 * 
 * @deprecated("Face.get_glyph_color_svg()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_glyph_get_svg(face: Face, glyph: int) -> Blob:
 *     return face.get_glyph_color_svg(glyph)
*/
  __pyx_t_2 = NULL;
  __pyx_t_7 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 320, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_7, __pyx_mstate_global->__pyx_kp_u_Face_get_glyph_color_svg_2};
    __pyx_t_9 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 320, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_9, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 320, __pyx_L1_error)
    __pyx_t_10 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_9);
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 320, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 320, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_face, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(0, 320, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 320, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_Blob) < (0)) __PYX_ERR(0, 320, __pyx_L1_error)
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_63ot_color_glyph_get_svg, 0, __pyx_mstate_global->__pyx_n_u_ot_color_glyph_get_svg, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[232])); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 320, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_9, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_9};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_10, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 320, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_color_glyph_get_svg, __pyx_t_5) < (0)) __PYX_ERR(0, 320, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":324
 *     return face.get_glyph_color_svg(glyph)
 * 
 * @deprecated("Face.has_color_png", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_has_png(face: Face) -> bool:
 *     return face.has_color_png
*/
  __pyx_t_10 = NULL;
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 324, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_Face_has_color_png};
    __pyx_t_7 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 324, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_7, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 324, __pyx_L1_error)
    __pyx_t_9 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_7);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 324, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 324, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_face, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(0, 324, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(0, 324, __pyx_L1_error)
  __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_65ot_color_has_png, 0, __pyx_mstate_global->__pyx_n_u_ot_color_has_png, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[233])); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 324, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_7);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_7, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_t_7};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_9, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 324, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_color_has_png, __pyx_t_5) < (0)) __PYX_ERR(0, 324, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":328
 *     return face.has_color_png
 * 
 * @deprecated("Font.get_glyph_color_png()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_color_glyph_get_png(font: Font, glyph: int) -> Blob:
 *     return font.get_glyph_color_png(glyph)
*/
  __pyx_t_9 = NULL;
  __pyx_t_10 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 328, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_10, __pyx_mstate_global->__pyx_kp_u_Font_get_glyph_color_png_2};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 328, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_2, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 328, __pyx_L1_error)
    __pyx_t_7 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 328, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 328, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_font, __pyx_mstate_global->__pyx_n_u_Font) < (0)) __PYX_ERR(0, 328, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 328, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_Blob) < (0)) __PYX_ERR(0, 328, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_67ot_color_glyph_get_png, 0, __pyx_mstate_global->__pyx_n_u_ot_color_glyph_get_png, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[234])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 328, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_2};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 328, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_color_glyph_get_png, __pyx_t_5) < (0)) __PYX_ERR(0, 328, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":333
 * 
 * 
 * @deprecated("Face.has_math_data", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_math_has_data(face: Face) -> bool:
 *     return face.has_math_data
*/
  __pyx_t_7 = NULL;
  __pyx_t_9 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 333, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_9, __pyx_mstate_global->__pyx_kp_u_Face_has_math_data};
    __pyx_t_10 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 333, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_10, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 333, __pyx_L1_error)
    __pyx_t_2 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_10);
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 333, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 333, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_face, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(0, 333, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(0, 333, __pyx_L1_error)
  __pyx_t_10 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_69ot_math_has_data, 0, __pyx_mstate_global->__pyx_n_u_ot_math_has_data, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[235])); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 333, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_10);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_10, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_10};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 333, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_math_has_data, __pyx_t_5) < (0)) __PYX_ERR(0, 333, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":337
 *     return face.has_math_data
 * 
 * @deprecated("Font.get_math_constant()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_math_get_constant(font: Font, constant: OTMathConstant) -> int:
 *     return font.get_math_constant(constant)
*/
  __pyx_t_2 = NULL;
  __pyx_t_7 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 337, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_7, __pyx_mstate_global->__pyx_kp_u_Font_get_math_constant_2};
    __pyx_t_9 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 337, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_9, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 337, __pyx_L1_error)
    __pyx_t_10 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_9);
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 337, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 337, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_font, __pyx_mstate_global->__pyx_n_u_Font) < (0)) __PYX_ERR(0, 337, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_constant, __pyx_mstate_global->__pyx_n_u_OTMathConstant) < (0)) __PYX_ERR(0, 337, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 337, __pyx_L1_error)
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_71ot_math_get_constant, 0, __pyx_mstate_global->__pyx_n_u_ot_math_get_constant, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[236])); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 337, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_9, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_9};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_10, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 337, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_math_get_constant, __pyx_t_5) < (0)) __PYX_ERR(0, 337, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":341
 *     return font.get_math_constant(constant)
 * 
 * @deprecated("Font.get_math_glyph_italics_correction()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_math_get_glyph_italics_correction(font: Font, glyph: int) -> int:
 *     return font.get_math_glyph_italics_correction(glyph)
*/
  __pyx_t_10 = NULL;
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 341, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_Font_get_math_glyph_italics_corr_2};
    __pyx_t_7 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 341, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_7, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 341, __pyx_L1_error)
    __pyx_t_9 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_7);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 341, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 341, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_font, __pyx_mstate_global->__pyx_n_u_Font) < (0)) __PYX_ERR(0, 341, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 341, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 341, __pyx_L1_error)
  __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_73ot_math_get_glyph_italics_correction, 0, __pyx_mstate_global->__pyx_n_u_ot_math_get_glyph_italics_correc, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[237])); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 341, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_7);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_7, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_t_7};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_9, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 341, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_math_get_glyph_italics_correc, __pyx_t_5) < (0)) __PYX_ERR(0, 341, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":345
 *     return font.get_math_glyph_italics_correction(glyph)
 * 
 * @deprecated("Font.get_math_glyph_top_accent_attachment()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_math_get_glyph_top_accent_attachment(font: Font, glyph: int) -> int:
 *     return font.get_math_glyph_top_accent_attachment(glyph)
*/
  __pyx_t_9 = NULL;
  __pyx_t_10 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 345, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_10, __pyx_mstate_global->__pyx_kp_u_Font_get_math_glyph_top_accent_a_2};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 345, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_2, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 345, __pyx_L1_error)
    __pyx_t_7 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 345, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 345, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_font, __pyx_mstate_global->__pyx_n_u_Font) < (0)) __PYX_ERR(0, 345, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 345, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 345, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_75ot_math_get_glyph_top_accent_attachment, 0, __pyx_mstate_global->__pyx_n_u_ot_math_get_glyph_top_accent_att, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[238])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 345, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_2};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 345, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_math_get_glyph_top_accent_att, __pyx_t_5) < (0)) __PYX_ERR(0, 345, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":349
 *     return font.get_math_glyph_top_accent_attachment(glyph)
 * 
 * @deprecated("Face.is_glyph_extended_math_shape()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_math_is_glyph_extended_shape(face: Face, glyph: int) -> bool:
 *     return face.is_glyph_extended_math_shape(glyph)
*/
  __pyx_t_7 = NULL;
  __pyx_t_9 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 349, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_9, __pyx_mstate_global->__pyx_kp_u_Face_is_glyph_extended_math_shap_2};
    __pyx_t_10 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 349, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_10, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 349, __pyx_L1_error)
    __pyx_t_2 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_10);
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 349, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 349, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_face, __pyx_mstate_global->__pyx_n_u_Face) < (0)) __PYX_ERR(0, 349, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 349, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(0, 349, __pyx_L1_error)
  __pyx_t_10 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_77ot_math_is_glyph_extended_shape, 0, __pyx_mstate_global->__pyx_n_u_ot_math_is_glyph_extended_shape, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[239])); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 349, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_10);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_10, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_10};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 349, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_math_is_glyph_extended_shape, __pyx_t_5) < (0)) __PYX_ERR(0, 349, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":353
 *     return face.is_glyph_extended_math_shape(glyph)
 * 
 * @deprecated("Font.get_math_min_connector_overlap()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_math_get_min_connector_overlap(font: Font, direction: str) -> int:
 *     return font.get_math_min_connector_overlap(direction)
*/
  __pyx_t_2 = NULL;
  __pyx_t_7 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 353, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_7, __pyx_mstate_global->__pyx_kp_u_Font_get_math_min_connector_over_2};
    __pyx_t_9 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 353, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_9, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 353, __pyx_L1_error)
    __pyx_t_10 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_9);
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 353, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 353, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_font, __pyx_mstate_global->__pyx_n_u_Font) < (0)) __PYX_ERR(0, 353, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_direction, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(0, 353, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 353, __pyx_L1_error)
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_79ot_math_get_min_connector_overlap, 0, __pyx_mstate_global->__pyx_n_u_ot_math_get_min_connector_overla, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[240])); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 353, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_9, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_9};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_10, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 353, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_math_get_min_connector_overla, __pyx_t_5) < (0)) __PYX_ERR(0, 353, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":357
 *     return font.get_math_min_connector_overlap(direction)
 * 
 * @deprecated("Font.get_math_glyph_kerning()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_math_get_glyph_kerning(font: Font,
 *                               glyph: int,
*/
  __pyx_t_10 = NULL;
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 357, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_Font_get_math_glyph_kerning_2};
    __pyx_t_7 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 357, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_7, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 357, __pyx_L1_error)
    __pyx_t_9 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_7);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 357, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 357, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_font, __pyx_mstate_global->__pyx_n_u_Font) < (0)) __PYX_ERR(0, 357, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 357, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_kern, __pyx_mstate_global->__pyx_n_u_OTMathKern) < (0)) __PYX_ERR(0, 357, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 357, __pyx_L1_error)
  __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_81ot_math_get_glyph_kerning, 0, __pyx_mstate_global->__pyx_n_u_ot_math_get_glyph_kerning, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[241])); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 357, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_7);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_7, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_t_7};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_9, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 357, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_math_get_glyph_kerning, __pyx_t_5) < (0)) __PYX_ERR(0, 357, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":364
 *     return font.get_math_glyph_kerning(glyph, kern, correction_height)
 * 
 * @deprecated("Font.get_math_glyph_kernings()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_math_get_glyph_kernings(font: Font,
 *                                glyph: int,
*/
  __pyx_t_9 = NULL;
  __pyx_t_10 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 364, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_10, __pyx_mstate_global->__pyx_kp_u_Font_get_math_glyph_kernings_2};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 364, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_2, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 364, __pyx_L1_error)
    __pyx_t_7 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 364, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 364, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_font, __pyx_mstate_global->__pyx_n_u_Font) < (0)) __PYX_ERR(0, 364, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 364, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_kern, __pyx_mstate_global->__pyx_n_u_OTMathKern) < (0)) __PYX_ERR(0, 364, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_List_OTMathKernEntry) < (0)) __PYX_ERR(0, 364, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_83ot_math_get_glyph_kernings, 0, __pyx_mstate_global->__pyx_n_u_ot_math_get_glyph_kernings, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[242])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 364, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_2};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 364, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_math_get_glyph_kernings, __pyx_t_5) < (0)) __PYX_ERR(0, 364, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":370
 *     return font.get_math_glyph_kernings(glyph, kern)
 * 
 * @deprecated("Font.get_math_glyph_variants()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_math_get_glyph_variants(font: Font, glyph: int, direction: str) -> List[OTMathGlyphVariant]:
 *     return font.get_math_glyph_variants(glyph, direction)
*/
  __pyx_t_7 = NULL;
  __pyx_t_9 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 370, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_9, __pyx_mstate_global->__pyx_kp_u_Font_get_math_glyph_variants_2};
    __pyx_t_10 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 370, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_10, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 370, __pyx_L1_error)
    __pyx_t_2 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_10);
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 370, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 370, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_font, __pyx_mstate_global->__pyx_n_u_Font) < (0)) __PYX_ERR(0, 370, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 370, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_direction, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(0, 370, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_List_OTMathGlyphVariant) < (0)) __PYX_ERR(0, 370, __pyx_L1_error)
  __pyx_t_10 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_85ot_math_get_glyph_variants, 0, __pyx_mstate_global->__pyx_n_u_ot_math_get_glyph_variants, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[243])); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 370, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_10);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_10, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_10};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 370, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_math_get_glyph_variants, __pyx_t_5) < (0)) __PYX_ERR(0, 370, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":374
 *     return font.get_math_glyph_variants(glyph, direction)
 * 
 * @deprecated("Font.get_math_glyph_assembly()", since="0.40.0")             # <<<<<<<<<<<<<<
 * def ot_math_get_glyph_assembly(font: Font,
 *                                glyph: int,
*/
  __pyx_t_2 = NULL;
  __pyx_t_7 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_deprecated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_7, __pyx_mstate_global->__pyx_kp_u_Font_get_math_glyph_assembly_2};
    __pyx_t_9 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 374, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_since, __pyx_mstate_global->__pyx_kp_u_0_40_0, __pyx_t_9, __pyx_callargs+2, 0) < (0)) __PYX_ERR(0, 374, __pyx_L1_error)
    __pyx_t_10 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_9);
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 374, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
  }
  __pyx_t_6 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_font, __pyx_mstate_global->__pyx_n_u_Font) < (0)) __PYX_ERR(0, 374, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_glyph, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(0, 374, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_direction, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(0, 374, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_Tuple_List_OTMathGlyphPart_int) < (0)) __PYX_ERR(0, 374, __pyx_L1_error)
  __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_87ot_math_get_glyph_assembly, 0, __pyx_mstate_global->__pyx_n_u_ot_math_get_glyph_assembly, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[244])); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_9);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_9, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_9};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_10, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 374, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_math_get_glyph_assembly, __pyx_t_5) < (0)) __PYX_ERR(0, 374, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":381
 * 
 * 
 * def ot_font_set_funcs(font: Font):             # <<<<<<<<<<<<<<
 *     """Sets the font functions to use when working with ``font`` to the
 *     HarfBuzz's native implementation. This is the default for fonts newly
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 381, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_font, __pyx_mstate_global->__pyx_n_u_Font) < (0)) __PYX_ERR(0, 381, __pyx_L1_error)
  __pyx_t_10 = __Pyx_CyFunction_New(&__pyx_mdef_9uharfbuzz_9_harfbuzz_89ot_font_set_funcs, 0, __pyx_mstate_global->__pyx_n_u_ot_font_set_funcs, NULL, __pyx_mstate_global->__pyx_n_u_uharfbuzz__harfbuzz, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[245])); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 381, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_10);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_10, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ot_font_set_funcs, __pyx_t_10) < (0)) __PYX_ERR(0, 381, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "uharfbuzz/_harfbuzz.pyx":1
 * #cython: language_level=3             # <<<<<<<<<<<<<<
 * cimport cython
 * import os
*/
  __pyx_t_10 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_test, __pyx_t_10) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /*--- Wrapped vars code ---*/

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  if (__pyx_m) {
    if (__pyx_mstate->__pyx_d && stringtab_initialized) {
      __Pyx_AddTraceback("init uharfbuzz._harfbuzz", __pyx_clineno, __pyx_lineno, __pyx_filename);
    }
    #if !CYTHON_USE_MODULE_STATE
    Py_CLEAR(__pyx_m);
    #else
    Py_DECREF(__pyx_m);
    if (pystate_addmodule_run) {
      PyObject *tp, *value, *tb;
      PyErr_Fetch(&tp, &value, &tb);
      PyState_RemoveModule(&__pyx_moduledef);
      PyErr_Restore(tp, value, tb);
    }
    #endif
  } else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_ImportError, "init uharfbuzz._harfbuzz");
  }
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  return (__pyx_m != NULL) ? 0 : -1;
  #else
  return __pyx_m;
  #endif
}
/* #### Code section: pystring_table ### */
/* #### Code section: cached_builtins ### */

static int __Pyx_InitCachedBuiltins(__pyx_mstatetype *__pyx_mstate) {
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __pyx_builtin_staticmethod = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_staticmethod); if (!__pyx_builtin_staticmethod) __PYX_ERR(1, 69, __pyx_L1_error)
  __pyx_builtin_NotImplemented = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_NotImplemented); if (!__pyx_builtin_NotImplemented) __PYX_ERR(2, 156, __pyx_L1_error)
  __pyx_builtin_enumerate = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_enumerate); if (!__pyx_builtin_enumerate) __PYX_ERR(3, 559, __pyx_L1_error)
  __pyx_builtin_round = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_round); if (!__pyx_builtin_round) __PYX_ERR(3, 780, __pyx_L1_error)

  /* Cached unbound methods */
  __pyx_mstate->__pyx_umethod_PyDict_Type_items.type = (PyObject*)&PyDict_Type;
  __pyx_mstate->__pyx_umethod_PyDict_Type_items.method_name = &__pyx_mstate->__pyx_n_u_items;
  __pyx_mstate->__pyx_umethod_PyDict_Type_pop.type = (PyObject*)&PyDict_Type;
  __pyx_mstate->__pyx_umethod_PyDict_Type_pop.method_name = &__pyx_mstate->__pyx_n_u_pop;
  __pyx_mstate->__pyx_umethod_PyDict_Type_values.type = (PyObject*)&PyDict_Type;
  __pyx_mstate->__pyx_umethod_PyDict_Type_values.method_name = &__pyx_mstate->__pyx_n_u_values;
  return 0;
  __pyx_L1_error:;
  return -1;
}
/* #### Code section: cached_constants ### */

static int __Pyx_InitCachedConstants(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);

  /* "uharfbuzz/_harfbuzz.pyx":48
 * 
 * 
 * def deprecated(replacement=None, since=""):             # <<<<<<<<<<<<<<
 *     """Decorator to raise a warning when a deprecated function is called.
 * 
*/
  __pyx_mstate_global->__pyx_tuple[0] = PyTuple_Pack(2, Py_None, ((PyObject*)__pyx_mstate_global->__pyx_kp_u_)); if (unlikely(!__pyx_mstate_global->__pyx_tuple[0])) __PYX_ERR(0, 48, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[0]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[0]);

  /* "src/uharfbuzz/_buffer.pxi":775
 *             self._hb_buffer, hb_ot_tag_to_script(hb_tag_from_string(cstr, -1)))
 * 
 *     def add_codepoints(self, codepoints: List[int],             # <<<<<<<<<<<<<<
 *                        item_offset: int = 0, item_length: int = -1):
 *         """Appends characters from ``codepoints`` to the buffer.
*/
  __pyx_mstate_global->__pyx_tuple[1] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_neg_1); if (unlikely(!__pyx_mstate_global->__pyx_tuple[1])) __PYX_ERR(7, 775, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[1]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[1]);

  /* "src/uharfbuzz/_face.pxi":434
 *         return wrapper
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     @deprecated("Face()", since="0.10.0")
 *     def create(cls, blob: bytes, index: int = 0) -> Face:
*/
  __pyx_mstate_global->__pyx_tuple[2] = PyTuple_Pack(1, __pyx_mstate_global->__pyx_int_0); if (unlikely(!__pyx_mstate_global->__pyx_tuple[2])) __PYX_ERR(1, 434, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[2]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[2]);

  /* "src/uharfbuzz/_face.pxi":570
 *         return Blob.from_ptr(blob)
 * 
 *     def set_get_table_tags_func(self,             # <<<<<<<<<<<<<<
 *                                 func: Callable[[Face, object], List[str]],
 *                                 user_data: object = None):
*/
  __pyx_mstate_global->__pyx_tuple[3] = PyTuple_Pack(1, Py_None); if (unlikely(!__pyx_mstate_global->__pyx_tuple[3])) __PYX_ERR(1, 570, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[3]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[3]);

  /* "src/uharfbuzz/_face.pxi":994
 *         return alternates
 * 
 *     def get_language_feature_tags(self,             # <<<<<<<<<<<<<<
 *                                   tag: str,
 *                                   script_index: int = 0,
*/
  __pyx_mstate_global->__pyx_tuple[4] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_65535); if (unlikely(!__pyx_mstate_global->__pyx_tuple[4])) __PYX_ERR(1, 994, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[4]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[4]);

  /* "src/uharfbuzz/_font.pxi":872
 *         hb_font_draw_glyph(self._hb_font, gid, draw_funcs._hb_drawfuncs, draw_state_p);
 * 
 *     def paint_glyph(self, gid: int,             # <<<<<<<<<<<<<<
 *                     paint_funcs: PaintFuncs,
 *                     paint_state: object = None,
*/
  __pyx_mstate_global->__pyx_tuple[5] = PyTuple_Pack(3, Py_None, __pyx_mstate_global->__pyx_int_0, Py_None); if (unlikely(!__pyx_mstate_global->__pyx_tuple[5])) __PYX_ERR(3, 872, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[5]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[5]);

  /* "src/uharfbuzz/_subset.pxi":244
 *         )
 * 
 *     def set_axis_range(self,             # <<<<<<<<<<<<<<
 *                        face: Face,
 *                        tag: str,
*/
  __pyx_mstate_global->__pyx_tuple[6] = PyTuple_Pack(3, Py_None, Py_None, Py_None); if (unlikely(!__pyx_mstate_global->__pyx_tuple[6])) __PYX_ERR(12, 244, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[6]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[6]);

  /* "uharfbuzz/_harfbuzz.pyx":96
 * include "_generated_docs.pxi"
 * 
 * def shape(font: Font, buffer: Buffer,             # <<<<<<<<<<<<<<
 *         features: Dict[str,Union[int,bool,Sequence[Tuple[int,int,Union[int,bool]]]]] | None = None,
 *         shapers: List[str] | None = None):
*/
  __pyx_mstate_global->__pyx_tuple[7] = PyTuple_Pack(2, Py_None, Py_None); if (unlikely(!__pyx_mstate_global->__pyx_tuple[7])) __PYX_ERR(0, 96, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[7]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[7]);
  #if CYTHON_IMMORTAL_CONSTANTS
  {
    PyObject **table = __pyx_mstate->__pyx_tuple;
    for (Py_ssize_t i=0; i<8; ++i) {
      #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
      #if PY_VERSION_HEX < 0x030E0000
      if (_Py_IsOwnedByCurrentThread(table[i]) && Py_REFCNT(table[i]) == 1)
      #else
      if (PyUnstable_Object_IsUniquelyReferenced(table[i]))
      #endif
      {
        Py_SET_REFCNT(table[i], _Py_IMMORTAL_REFCNT_LOCAL);
      }
      #else
      Py_SET_REFCNT(table[i], _Py_IMMORTAL_INITIAL_REFCNT);
      #endif
    }
  }
  #endif
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}
/* #### Code section: init_constants ### */

static int __Pyx_InitConstants(__pyx_mstatetype *__pyx_mstate) {
  CYTHON_UNUSED_VAR(__pyx_mstate);
  {
    const struct { const unsigned int length: 12; } index[] = {{0},{6},{6},{6},{6},{76},{45},{182},{54},{279},{18},{20},{19},{8},{65},{66},{77},{63},{37},{35},{36},{39},{34},{46},{34},{37},{44},{66},{52},{38},{30},{29},{29},{24},{13},{12},{2484},{165},{79},{16},{67},{60},{67},{61},{6},{38},{19},{34},{24},{29},{26},{32},{26},{29},{34},{31},{28},{28},{21},{20},{23},{18},{18},{27},{28},{18},{35},{16},{2654},{3867},{271},{310},{1295},{744},{11},{6},{17},{26},{24},{30},{40},{29},{30},{43},{30},{37},{279},{232},{20},{17},{46},{651},{300},{23},{22},{11},{13},{18},{24},{21},{17},{67},{11},{11},{9},{1638},{1035},{9},{16},{9},{170},{172},{169},{249},{4},{179},{24},{34},{107},{111},{160},{258},{1921},{20},{18},{18},{10},{8},{9},{174},{1732},{17},{74},{711},{33},{412},{55},{47},{27},{36},{36},{65},{26},{31},{36},{36},{28},{69},{67},{551},{54},{61},{61},{123},{68},{117},{118},{109},{29},{37},{72},{31},{53},{30},{458},{3630},{857},{33},{54},{22},{16},{12},{36},{16},{58},{60},{1},{1},{1},{2},{2},{2},{1},{8},{49},{16},{7},{6},{12},{2},{45},{8},{10},{10},{22},{16},{12},{14},{9},{50},{24},{11},{20},{23},{25},{23},{23},{23},{27},{22},{24},{25},{28},{22},{25},{10},{14},{6},{2},{18},{11},{10},{6},{3},{11},{12},{4},{22},{24},{19},{6},{18},{17},{11},{20},{21},{24},{26},{21},{14},{15},{21},{13},{31},{12},{16},{31},{23},{29},{10},{10},{17},{5},{10},{11},{9},{9},{8},{5},{9},{27},{29},{9},{14},{12},{6},{15},{7},{29},{7},{32},{11},{8},{12},{4},{9},{7},{8},{9},{14},{10},{27},{27},{14},{4},{9},{27},{29},{20},{25},{29},{27},{26},{26},{31},{3},{9},{8},{28},{11},{14},{45},{28},{31},{36},{41},{26},{27},{34},{23},{9},{4},{22},{24},{36},{11},{22},{22},{27},{24},{30},{27},{32},{13},{29},{26},{26},{33},{15},{20},{28},{23},{4},{11},{9},{27},{29},{16},{33},{33},{34},{29},{34},{33},{32},{34},{22},{24},{11},{15},{24},{21},{24},{22},{24},{24},{23},{19},{24},{23},{24},{22},{28},{38},{27},{28},{41},{28},{35},{24},{38},{25},{27},{27},{22},{20},{26},{30},{24},{22},{20},{16},{26},{30},{18},{19},{6},{13},{11},{11},{11},{9},{12},{10},{9},{27},{29},{13},{31},{33},{10},{8},{26},{28},{6},{19},{23},{21},{20},{26},{27},{20},{19},{9},{7},{14},{14},{13},{7},{13},{6},{7},{7},{4},{18},{17},{7},{11},{8},{7},{16},{29},{19},{4},{13},{12},{4},{12},{19},{18},{8},{3},{7},{25},{27},{12},{21},{23},{13},{11},{9},{8},{7},{9},{8},{10},{10},{7},{12},{11},{14},{11},{11},{14},{10},{17},{12},{23},{19},{10},{14},{12},{7},{12},{14},{19},{18},{14},{15},{20},{18},{10},{15},{12},{11},{18},{14},{13},{18},{22},{22},{20},{7},{3},{24},{4},{15},{27},{30},{24},{18},{11},{10},{28},{30},{25},{31},{40},{25},{35},{28},{29},{33},{35},{39},{30},{34},{35},{34},{4},{20},{35},{34},{22},{25},{26},{22},{20},{7},{25},{6},{11},{10},{28},{30},{16},{21},{29},{17},{16},{28},{13},{12},{11},{29},{31},{17},{21},{11},{29},{31},{17},{39},{23},{31},{18},{17},{36},{29},{13},{22},{11},{6},{25},{32},{17},{30},{28},{11},{11},{10},{18},{3},{8},{6},{7},{8},{37},{23},{27},{13},{32},{18},{31},{27},{27},{26},{16},{14},{27},{21},{19},{21},{19},{20},{17},{23},{29},{37},{22},{23},{21},{23},{21},{20},{28},{8},{15},{7},{25},{27},{3},{12},{21},{23},{13},{8},{11},{7},{13},{9},{8},{13},{21},{11},{23},{10},{15},{12},{14},{10},{7},{31},{10},{8},{11},{11},{15},{29},{31},{26},{27},{35},{29},{31},{26},{16},{18},{10},{28},{30},{18},{4},{8},{9},{9},{18},{21},{5},{12},{24},{23},{21},{16},{14},{7},{9},{15},{16},{29},{19},{27},{28},{5},{20},{10},{6},{14},{17},{21},{19},{18},{18},{17},{6},{6},{5},{10},{13},{3},{8},{1},{3},{14},{9},{7},{8},{7},{5},{15},{10},{15},{4},{8},{8},{14},{18},{14},{10},{14},{14},{1},{12},{4},{9},{11},{4},{4},{6},{5},{1},{12},{8},{8},{9},{13},{12},{9},{6},{8},{5},{14},{27},{18},{5},{9},{3},{10},{5},{11},{11},{31},{6},{9},{8},{8},{6},{13},{4},{8},{17},{5},{6},{17},{4},{7},{4},{9},{9},{13},{9},{10},{29},{46},{9},{13},{8},{17},{9},{7},{7},{9},{10},{10},{18},{19},{10},{12},{6},{3},{20},{7},{4},{9},{7},{8},{7},{4},{12},{4},{13},{8},{8},{5},{5},{5},{4},{10},{6},{14},{8},{8},{12},{4},{8},{6},{5},{9},{1},{7},{3},{14},{17},{16},{22},{19},{19},{17},{19},{19},{18},{14},{15},{19},{18},{25},{19},{22},{27},{17},{23},{33},{22},{23},{36},{23},{30},{19},{33},{20},{22},{22},{8},{17},{24},{15},{21},{21},{25},{19},{12},{3},{5},{17},{21},{15},{10},{5},{24},{4},{16},{15},{18},{13},{13},{24},{22},{23},{13},{15},{14},{13},{12},{11},{11},{15},{11},{9},{13},{6},{13},{4},{6},{1},{4},{4},{4},{4},{3},{5},{4},{5},{4},{3},{19},{6},{13},{9},{13},{28},{11},{8},{10},{18},{11},{11},{5},{4},{1},{15},{4},{10},{5},{11},{4},{21},{6},{4},{8},{14},{14},{12},{10},{4},{11},{6},{6},{6},{8},{10},{12},{1},{8},{4},{21},{9},{7},{13},{7},{9},{10},{6},{15},{8},{4},{7},{8},{4},{4},{6},{11},{10},{9},{8},{6},{6},{2},{25},{22},{22},{24},{19},{18},{21},{16},{16},{34},{27},{26},{26},{28},{17},{22},{25},{27},{25},{26},{35},{37},{34},{31},{20},{26},{36},{25},{26},{39},{26},{33},{16},{31},{18},{16},{5},{1},{6},{11},{11},{11},{19},{11},{13},{13},{7},{3},{23},{17},{19},{3},{8},{18},{11},{11},{14},{8},{12},{1},{3},{10},{17},{13},{15},{6},{6},{6},{15},{11},{25},{5},{6},{3},{6},{4},{5},{6},{1},{12},{12},{10},{4},{4},{9},{18},{3},{4},{14},{19},{14},{20},{17},{24},{29},{23},{23},{23},{17},{24},{19},{24},{23},{14},{24},{16},{24},{16},{16},{12},{22},{17},{18},{22},{24},{28},{19},{23},{21},{24},{22},{23},{8},{21},{25},{13},{24},{14},{10},{4},{12},{19},{5},{6},{7},{5},{4},{11},{6},{5},{22},{12},{12},{3},{6},{6},{17},{6},{17},{9},{7},{27},{11},{10},{3},{10},{4},{4},{8},{4},{11},{5},{6},{6},{11},{19},{7},{7},{6},{9},{11},{1},{5},{6},{23},{8},{14},{9},{18},{18},{10},{14},{4},{8},{5},{7},{5},{1},{9},{8},{1},{9},{8},{0},{26},{21},{98},{19},{42},{36},{37},{48},{37},{21},{24},{112},{46},{26},{97},{34},{23},{27},{21},{27},{33},{33},{21},{14},{35},{18},{30},{21},{37},{74},{21},{23},{48},{23},{42},{90},{67},{25},{38},{30},{95},{49},{38},{13},{24},{23},{9},{119},{42},{158},{364},{109},{229},{76},{21},{130},{76},{25},{35},{35},{41},{130},{35},{118},{130},{17},{13},{41},{41},{39},{36},{13},{14},{61},{61},{69},{41},{41},{41},{35},{90},{62},{13},{13},{13},{25},{35},{35},{45},{34},{34},{13},{13},{16},{130},{35},{35},{13},{13},{13},{35},{130},{77},{41},{17},{27},{35},{13},{155},{18},{13},{22},{143},{44},{166},{66},{31},{21},{80},{42},{28},{101},{30},{25},{56},{9},{65},{56},{14},{35},{29},{46},{18},{25},{19},{27},{16},{51},{56},{66},{21},{31},{178},{136},{20},{37},{39},{39},{2},{2},{14},{14},{28},{32},{45},{377},{19},{55},{18},{43},{32},{32},{67},{63},{63},{21},{44},{25},{23},{52},{35},{27},{2},{14},{14},{132},{204},{81},{37},{70},{51},{123},{14},{151},{55},{23},{28},{22},{129}};
    #if (CYTHON_COMPRESS_STRINGS) == 2 /* compression: bz2 (17382 bytes) */
const char* const cstring = "BZh91AY&SY\232\203Z\303\000\030G\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\300@@@@@@@@@@@@\000@\000`T\337g\336w\324\357\276m\336\367{\313\333=\273\256\265W\263{}\362\330)%PH\001\326\202\237=\354\000\367m\275\333;\256x\340\3104/\275\3273%\353GFo\233\244t\321\365\335\2655\264'\313\013\267\321\320;7\330\3354\000k\314j\n\355\353\235\214\346\312U\037]\356\356^\331\241\262\264J\005>\326\227\271o^ \242\363S\030w\326\223\335\203t\300(5\222m\212\331\265\327\023\246\315\225\010(\021\001Q\263mS%\255\254+\353\201\333%\265d\272\371\273u\214\330\310\367\017^\364\241\022\207\254\225&\rM\276\356\235\251;\346uwE=\006\200\n\000\235\3569\364\003\313\001$B \231\030\232h\r\0324\001\014\010\014L\231O\002&\t\232\010S\3654\361\032\215\250\361#\324\323I\206C&\322\232\r4\010\320D\020\232\251\371S'\223\324z\232\232\036\240hz\203M\007\250\006\201\220\r\r\r=@\000\001\240\000\000\032i\220\211MT\375S\020\320z\231=G\250\032\000f\240\007\250<SM\224\r=@\323\324\000\001\352\006\232\036\240\000=\010\t4\221 \201\r4L\231\006\243E?B\237\252y\r\t\345\017MO)\240\364\217P\000\000\000\000\000\000\000\001\022\221\24114\010i0\202\247\224y\3514\247\231S\321\264\231\251\241\006\215\24422=\000\000\200\301=M\251\352m\001\243Hb\t\021\002\002\002&\"`\230 \nzhb\247\264\nl\246 \314\246\232\000\000\000\320\000\003@h\310\336=\317>\236\336\235\243\333\035\323f\317Q\362\330/[y\376(\217,6\375\332\322\261\352\333\331\303\277n&\370\343\325M\013\034\344\265\270\\z\306H~\305\0279\276\222\270\314D\206\221\340l]c\216\232\246\033h\030\016\226iR\243\237\223\314W\333t\343K\274\370Y%M\300\336\271\221\377h\007\rR\311|\302rNA\025>\234\024\177\246)\365dc {\226[\377\337\371\372\375\363\366y\275\346\003\210\016 y\260\"\300\261\347\r\006\2530b\363\250ef\202yZ\320\273\310\302\203\310\200\253\006:\244\010h\223!\351\203\002\004\221\027)\212#+*\224X\312T\261\344\3615\376\r\304$\202\300Y\025\240\037\302\304\222 \261\037X\252\n\010\226\331\"\305\006\332\204%J\232\206H\277\270\026\326\022\262\260T5\327\342\377\362J""\352\301\231b\307\311p\342t\016'C\221\313]'q\336\302,b\020QA\030)\005\202 \241\026@PDPP\"\310F \251 \260\2100`\2468\230\2279\006FYdk\021\003\211\206\003\205@4\000B89}\036f\361\371\331\335\377d|\262\177Oi\347\177\217R\231\023\3215\t\347\231\320\256\257\221\251\225\031\3758V\333\266/\213\325\265:\307\321\216#\1777\241\213\013\375\0023\277\203\035\234F\272\357\255d\357\252\234\214~\347q\320\021{A\3702;\213v\260\307\321|\346\343\365>G\305\036\352\000\007\344?a\357~\245^v\275D\202\177\324\002\214a\031\022*\373xD\373X\236\0373\302\217EK\371}\362\227\337\376\241\300R\n\207\365\2416\tw\020\031\237\037.\314\245&s!>T\367kY\362\357Ym\350\331\334{\025\204Y\010\260\"\305\204\030\301\r\244\271\033xw\376\377\201^\347\331\337\377O\003\235M0A\213\322-\245meGJ\177pU\037\340\367\333\233*(7\007\322.\273\264O\244\235\017\363u\260\250T\237\364\312\330\364\324%1L\243BP{\312\255\0024\224'#Nx[\213\321\260x:\247P:[\274\333\211\022]!\021`@b\220\214a\030H\276\247\2200<\201\344ks.\267V\177\204'\324\004\374I\024\214E\210\220\005$QV\013\005XA`)\005RN\326\002\014\212\202\213\"\261$d\003\3274C\0251s,\013e\252z\345\303\177\363\205CB\231\034x\242@\252\023\240\014\r\204\033\030l\320\025y(\316\210\000\241'%U\021\214\034\032E\016\372\037\223 t$\356\200\030\304\002D$X\221p\024\2212K\326\350\240ia\2622#b\205\261j\270\356\327\243(l\224\333\361q\307\330\t\224\243\020\327V\344\024\200x M \302\rL\314N\203\300\306\032\302l\265s\010Y\002\232P\224\2301\2358\266!\205\241y\270\034D\206^&\236W\214v*\254V\2044M+\210\245!7k\362\022\334F\3505:>\257\210\027\323m\014\022\267:\361K[q\212V\032J%\n-1\034G\023L\006\343X\234\3724\332\327\371\372\353x[19\204\324\233\033\010\330\331\0348\034\013\322\232\243\365H\214\024\032\032P\232M&\262\350:\"&F\032\2114JURP\033\355\335;\rL\222\311\031,\222\310\342f\263\345\277\023,\270\240\346\006\310l\266\334\233:\262\037c\031\301\226\342m\r\245\301w\3233\343\230\303*\300\317<\034\310\332\374\202;Csn\201\373|\322\341\332tQ\3135\251\260\305\324Rr\016T#\202\341\275\253\\\364O\273:\227I!q""\207\020\346\336d\034v\237/\202\032\016\300\310\371\351\000\322\375\374e\"c\266)\003\216\273\305sFh:\tg\245\216\204vk\221Q\232\007_\333\357\230\r\301\241\240h\350k\306\231E\235\255\200sT\372\316.\"}\036Y\211rrd:\037\032HHB\307BI\001\364\333\274.\346\263i\356C7Y\344g\250\350CK\231\316wAP\327?\231\306\241\037?\356\336\337\342\260%Y\200\362&\037\247}uO\256\362e\317\247\372b\234\\~\374\034~\243\355\341K^f\320\0252\244\321\212\026\365\245\022\014\025\343\"\341X\213\326EJ\024\031\246|ve\\\242\336\3439\n\245\344,\254ZbQe(\370\362(\206\341\242\177\356C\210\tu\246\226\024\3630\271\2764\034\271\320\233\333\326?j\202\276,#\253\003\235E\243*\035\271\022\037\306\272!\033k\373\007_\267\257\r|G<\322\236q[B9m\304D]J\013^\005R\341(\n| \354f\355\207\247i\362\265A\262\336|\241\347\013F\305\225G$`\340_\014\242\346\205\225\002\273\237\037\226\265\n\202g\303\265W^\014\213|\356\364\037\034\250P\215\260\315\266f\027\034:\210 \t\357m\203\316p_!$pu\302\251P\337\305o\276\301\255:\014.\021\231\343\322\000\0017+a\2147w\314v\313\262\243\333\026m\256\203Pj5\r\240!\234\025\n\316\200f\0308\340_E\007ls\325p5\306\260\203\301\367\220!\324I\321\002J7\251V.\211\034(>\372\310dQ\272\237W\243\277G\035\276o\001\212k=\273j\007k+}=\347\242\311#j\244\010\364\017)\374\332\300\242<\230S\227\r\215:\r\006#\376&\307\231yQ\330\373ge:\026\"\354\362\257\347\221n \010\001\310~\027Ozu\370\313\311Ah\345E\203\202|\373=|\317\235ag\002\027\253\2029+\345!\236\261\256\323c\020U\265\271\007s\236+\305\023\344\333i\3138%3\320\366\030\361\267m\035\3407\221\003\016\205{\233a\177\202\371\310\021>k\344|\"\315I\3713\032\345\017\205\226\300\203\330\364gam\2532\221\341\2428q\0055\1776\302\372d\221\270\315_\216\374\374\315c|h~\323+\250U\216-0\314\250\270[\t!\205\306U\236\366\333u\243f\317r\372\360k\nj\341o<\331V\365g\204B&\212\0212^\377\242\226\256\034\276P\362\276\232\035\255>\265I\"\303q\350p;\021\344R\010k\014\006\354|c\235\276\206\0250\n\017\0049&o\003\306\241\372^\356\333\n\033\272i\307\322\"N\347\256)\262\031P\363\347]\312q\225""\326Oi\004,\237\203\333S8\207\341l\325,<\372\323\0240\311v(\344\227\351\315\350P'\200\003\020\315E\376.\036\255p\362.=\026\266Pj\271\033A \276\006,\236\021\236\006\314\234\0144\212>,\212\265\006\243U\036\016\201\031\221\310w`A\203\027x\206w\\K\001\302\212P\312]\203\351\3070\271+\314\005\230\033Q\374\333\364i\035\010\3206\007#\247\214\240\310\244\334\363\227\233:\2218\261\221\003.\241\205\020a\274x\221\263\324\213\310\335(\307\262z\202\201\305\254O\016\037%\260\240\262/\231\014n1\220\326\266\275\306\254\316E\\\253\036\207k\320\200\307\246\204\260\020:\352\303v\327\214gJ\016\027\025|\355\261\300\260\345\024\005\002D\2200\314\230\233\377\261\362\020[\034\360\257\3756\\\230\207N\302 \247\350\345n\271E\231\034aj\314\312\226\2223\345\214NDi\254I7dF0c\005-\222\2708=8X=\354\271\014\245\0272\343*\266\260\\qk\026\016\314\027E\203l\213\270\200\300\342\313\024\314\036P2\207\312\332^\0243\2126\353\332\312\017O\002\221\201b\212\202\tqf\346\245\206n\314\030_\311\274Y\024\271\005F\310\225\341E;\241\260n\374\274\210\235\350H<}%\352\374k/C\332\005\033\230\336\310\212\0220\316\254\203\222\316\256\241#\313\230\235\211\240\373\272\311\030\233\300]\010\000\215`\\=\305\254\227w\014\264@&\001@)W\247\202\337\034g\3320\224^\006Y\210\200Htp\031\271\350@`\004\255\020\030\307\270\010`\347\2220q\310\315\224K\227xnV\014\216:@n\275\361\205\313\253\212G\360\206\t\320\233t\303\217p\002\030\245\364\02504\301l\374\nfV\003hy\266\245\262,+\277\306\224\035\210\034\002\206,\266\006\243dy\240\221\363\325&\302\023\004Q\030\351f\001j\016APZ\355\034\220\270w\031n\215\344\327\"\233\020\3148\365]N\357\214:`t\205K\033dz\364\263u\303Z\326L\213\243\0379/H\371\262\213\2510\016\nb\024\231,l\013T\020:\364\303\202l\307\241\004gi\242/\302rx\352IA\251/\202o\265\"\225)9(\033c\200\302\210\027\251y\210\023\023\\g#\320hdr\324C-?\216\364\310\302\366(4 \\J\206\204\000\244 \330\325C\240 \027\303\311\022(\211Q\264&2\253\232 R\303a\304\265\316T\010i\324]\335\365\217\312-\322G\013\200\355\304\335^\300\230eq\335n\310$4\014=\\\304""\351\303\225\035$fl,\350\033\227G\000\210\316\030z\001\350fv\350\355\215\343R=\321C\212\327\201I\341\227Cg\263+,\335\215^\274{\371^\275N\232\334\031\215!h<\014\321\262\005)G\276,\202\3176f\0036\307g\031\351o\221\270\016<\207Q}\213\231<Y\262u\216;\334A\242P\220z\332Y\017\227@\240\231\314\260\030\035\203\010lQ\006\366\366\2211D\372|s\320rJn\005\327\334\337L\017\327\335\345\220<\303~\375\264x6\204v\030[\375\376\364\273p\371\037\266&\004^V\n\305\350\363\243\262\205L_!x\235\3360\274h\225\250@\205\310\341\271\300\243U\311\2627\r\260\344]\230\230\232\264\215\021e:3k\307\0313\205\251eq\360\273\336j\336\\\323\016)\371\211\362z\375\207\327\362\222\312\246\212\245\371Z\377\007\366\300p\262\254_\367\241\354U\002\241\234\222W0\257P^\336\341\337\r}\215\016\334|3\027\241?z\3021K\373}\356\020\266\260\022\300\261`\252W\366:\275/\257K\210\276.V2}>\322\370^6\n\310o\201\213a_\030cx\276\252\360YC\327U\337\324\260\221Q\005\3535\3508\305J\237\266\343\33663\341\027\213\013\004\267\366\013Z\250\252\215\234\264N\213\034\342\272F\025en\262\371\253\005e\204\213\212\305\322_Z\014CC\241\250\332\330,\354\027\356\373\260\325\223\365-Bh\264\360\3111q$\322>\207I\231\230\203'`\247@\304\257\223\233\215\233l\366\333=\314j\342\006:\320\310\3102\013\331\274B\361r\2308\326\363H\367rB\344\271`}\316\361\336\236\201\224v[\330!~\231\203\031P6.\253\201\225\223\231\227\222)2\351b\273(\214\031\001\220\346\221cA\213\010\275E\351p6/\225K\332\271\333P6\232]v\276\352n\271\341+\177\213\003\340\337\206\335\212\351\032\2030\327\265U\341\320]\003\021\030\202\222\225\314\203E\3663^\314\267\375\014;\031\254\202}\372/(P!\335\324\347M&\225\002\"\277\260\377\255b\246\367\336\304\265\246\337E\360h\340m%\026\211%\357(\377\333\003\232\010b\300\230\022F\346@G\014J\0348\222\223wV;\031rf\353\306\201C!\036\226\311\032\345\316vAq\272\246\221n\330\262F\373s=5^\242\252\330j\374dt\375\326\221\341\344H\375\037\227\007\220\240\302\211R\231^\245(\306\374sA\335VfJ\257\316\222M\336\n\030\300$DS\230\036\270\236\327\225\322\346\020\000\326""\305\2407\267\023Cs\016J\264\004#{\320\003\337\225\007'\333e\323\273>2&\035\207\254\002\211\022B0TL9\220t1\365\362M?\214n-\206\357\346\346e\353\353\234\0208g\026\335\243\003\006\321o\006O'\351\244\317T{\266\217NLio\303\322\343\004\344\246\030\333a\217[=u\243\236\252\262;J\260\222\304\210v\230\037i#|q\271\036\305\244\344\275\333\005\262\246p\037\347\275\232\3158T\335YU\201~\215\002}\232\013e\300\217d\212\216\272\307\027)\331\273\270\337U\266\270c\t%\270U\353N=*ji\025g\326o?\025\010n\331\2473\017\261\356jkI\246\235W\317\\R\214\270\200\000\367\r\246^\225\345\256\000\004\247\357=/\245\275L\212\305\217\023\341\335\341\261\367X\366\355\3559\327/\024@\315\\\016\3613\016tr\352\353#\367\2530Yf\333\361m\321s\351\271\226]}\\\240\315\351;5:\265Z\255e\n7\320\361\206\230$Q\"s\030f`\300.v\332\334\365\002\001\021\200\367\271\257\226\265\035ylQ\021\207D\261A\204\025\024gl\2224x\260\030U\030\370\023z4hKN\364\351$\230Y\315oY\310\3217\313\267\215ru\224\353n\335[br\202\315k2\032E\220[\024\036giS\301\330;\375\016\373\034\314\265bj\232\372s\361\352yA\007\305\363\233\227\014\020Z\013\372\r\224\213\211%\001\001\014\244`\243\025\020\005\334\3019\260OY\201\r\254\023\342\362\341\355\3671z\032\375.\035xRQ\220\361o\352\311\243\014\230\311m,\324\310S\362\\\201\375\247\233$\034\005\265\205\177e\354\370s\277\367*\260R\031\206c\345/J\277\327R\370\355cw\276~\360\334\262v3B(]\221\006w\312f\340\354f\236H:2\267\274\032^c\"=\336|p\027\215`#\003\002\326\0031\030`FR\2653E\347j\006#\240\314f\246\215\271\007T\010\305B\215hU\0271v0\332R\210\220\231\200\314a\001\261\251\322n\322\214\326\034&0i\201\331\350\364H$\213\234\354\211d\231&\201\013\212~;\340\245om\315\017\351r\336\264q\355\341\035}\037\r5d\363\263Z\326\263q\031\n\342\321\277\277\371\2653\3650\013\377\006R\261\323\271\225\375\254\222\326\263\263\233tK\005\030\"\301\r\021at\314+Wna\313\237#\014\273\210\257RK\017\251~@+\326\\\306\235\312\\\366\245D\242\250\230\006\006\026\006\263V\243X\2745\026\245\212\245@\250+\025U\332\226lX\252\252\225so\214\354\252""\332\222\355\230%z\350\256\032\177Ez\333M^\271^\226&=\371\204^\243\010/\257\260n\007R\265\351{\243\245\273\237\241\272\0028D\203\264\301%I$WA\001\000\003\370\036?\261\371\307`\212\014\032\207\347\016\032Y\2143x\030vAI\221\004\320@\214,$\261\221\207\207\205\270g\341\302\344;\226I\255\030\005B\245\345\341\277\226\312\233\027\226\302\330]\234\277\262\010:B\265T\253\201y\247k\261Z\254(W5lD\326\317%\374\257q\305\203qsC\205$\252X\301\275\252a\332\264`W\347a\227\345\275,Z'\360\272B\017<F\030^\240\356\207\027=\276_7\354\002a\023\200{O\270\374\t\242\203%\372\035\222D\353\320\006'\034\007\373L?\352F\252\252*E\005\206\037\210C0o\304\274\241\213\212\344X\246{\"Z@\312!Mx{\251\014\250\244\301\375q\214?\363\310Z\241\201\221\304\317#\006\313\375\243\300r\206\306iMA\357\213\322%qD\256\204\364\324\350\n\t\257\3605\266a\201\236\031z\274\344\371\327ABH\221{\204{\003\346\017G\253#\363\332+v\357\214\246k\377\033\302\260\252\3136\365\306\354\333\253\024\335\315\346\246P\266[\312\340r\207\014\024\220\337-\357k\315\340'2\321t<\320\347\305\340\256\363\331\356\003\310\210y\275t\251\373\204\345\335\361'\317\223\314\351\335\317,\246P\t\3010\313\362\364@\237\003\t\265\"j\342i>\303J\251\r}\275\312\036\251\246\2409\304+\363_ \310\310\255\263\261\323\305\273\225\217\251\2460\"\326\030\265\005\351\030\352\225A\226\371\306T\257\245\035L?<\014 \304\231X\006\014E\314[\365\"\301\377\001\227\033T \255]\247\275MdQ\237\323Zh$\261k\323\000f\010\024\207\034NQ\263\373\322\014\233\227i\031:\223f\375T.\323\"=j\025\344\020\244\363F\024\350\027\224 \217\204\265\026P\214\2404\315\337\017ee\345\345c\343b>3\204\032\003$o\321\370\250\335j~\361\372\226G\333qx\003Q\230\310\013d%\001k9~w\365\226~\t\242\215c\004\020F\342\037)\345<\000-\t\022\010\201Z\273p\346\303e\321\021r\304\204\214\300\343\275y}\020d1\276\023O\343\372}\365a\036`4\357\213\2245B\324\330\341\216\272H\016\231\250c\334\270\366z\023\340l\363\333\376b\333\347D\323\313\313\235\236\177\350L\003=\207\3421CZ\230\367\365\215\0352\255Oi\370\306\305\2226I0\3720""\022k\004.\034o\370\004\334{\2252\264\006TYP\341\204\256\275 ~\366\330\275JP\272_\224\212\266\034-{\004\215Tfl\356\351\351\320\353\232\323\031\352R\232\225,\353E\\\234g\250\324\262'.e;\203\221\r\224VC\317&\2433\307k\214\214\316\326v\034\243!j\240\200\244Q\326K\005AqEh;\213@\030\306\014\245cb9i\014\214\271\242MyQq\026\233\022\206\264!\014\333\261\266\026\232=H\310\270F!6\2274\224\224V(\227\354z\233\365\177\203\326C\314vw\326Y\246is3&\373\271i\313F\026K33334P\234\211\320I5\222\350\376\r@ LN\2300\334\307\307\306\037\374Fg\266\235\256\2633\336\001%Tjb\274\0317\323\345\270~n\017\273\370\017\233\217\326_\336g\350L\255\177\022U\034j\257\316\352}\037\345y\203\356\352\375\007\331\004\026_y\007\307\367\001\2451\202Ul/\321\001\317@\263\232\341\361\311\220\344\027S\223\357\0272d\301_\227\037\310R\251{\265\002\314k5\324\354W\010\214\365\253P\356\260\314\2312f\001\231\230\006d\314u\364\203KK\254s\274[\376\336\r\225\233\230\207\347;\022\017Q\361\367\333\342.U\002\371\313\225\242p[\275\373\233m\317\347v\300|#\t\350j)\023\320u8T]@'\\\024Qs\026\225)\025}w\217\014\260\273\021\313\205\002\226@\262\003#\035\030\366\361CWS]\024\352\302\375\344\311A'\006\010\302\375\t\213>kw\314\024\244\027.\373\"\216\357\356}\250\026\014,\t\246\032\204PvF\177D}GS\332u\352{:\206\334\217\263`\366641\2668G\342\016\010a\034\3239\361A\343\251J\235\017\304E\312}Fgy\204-\212\215\235\3201\266\310\024\266\203\240\346M\037\270\t\270kFFs4\2600<8\351o\230\245\002\3404\275\232\020q_.^\302\206\026\315\264\223\030jj\tt8\231\312\306H>\032r\323\2325\010\016f\222\323K4\0372\365d1\rt#\220\256F\030\354e\254\321\241\207\026\230\026\245\237\335\333\232\222\350\316\314\314\346\206ZZ\006fb\363\376\262s\245\241\203\035\336\206\276\203\274\361\235@\243\007V\020\"\016\345\221\307#\217\374\331\205\350M{\274\341\261\262(\266)\0249y\337\301L \372bqv`p/\244\243\016g\314\224\006FA2\025\245s\227\264\212>\014\210\244\020\366r\303\341!A\274=\207\260x\026\303\316\302\342\326U\\\2605\340Hj\347,\2034\026\201p\233\330\241\214\031\300\"\006""\263|=\247\037B\206\230\277[\331\317\313'\332\301\342\262\234{\336\037\013\237Y\357\037M\375?\321\370\247\242M>\311j\252(\220=\263D\320\310z\341G\006\203\226\234\242\250\251\250\224\347\236x\322a\024\000\315\265\245P>7\302\333\257\317#\031\264r\266\360\3170\206\356t6=\301\343\375\317\272u;\237x\373A\361\005\2377\354n\312\242\261\343=\207D1X\304a\255\3030Jk.\217p{\302\206A\202\254}\310m\030CC/J\264\251v\346\2220\221A\230v\324\r\211\341\371\025^N8\274\316\022\032\352\235$\264\326`\213\024\2460\032\210\316\261\230\024\245)\3205'\035\246\303\001\201\322\036P\366^B\203+#\001i\204\255\214`\220v#\242ymvj\350\013\004\254\212\200`\0214 \220\372b>$5\316:%\330\350\007_|\n\037\275\201\365\022\302Ud\371\375\334\311\rS\006|\277\177qg?R\010\244\226\030\321\304\214\373\271\031\033\271#S\036I\361t\343\213F1\230\225\323Bf\224\033e\241\245\253\016\244'\242\005b\240\214\030\323o\266\305{\204x&5\360\007\02689\323\313+/\027l\371V~#\210\017c\274\030\304\301\241\2221Qc\337y\264A\364\037_\270\364s\343~\224\215mc\205'\212\370\004s\031\221\360\2441\261\016Lh\203%\226~s\001j\231\226\276Y\230?T\233\016\330\345\030}\236K\223s\206\201\005\t4\004\244\203H+0\301\203i\230`f.\010\267\203\207\213H\275\354![\241U\227P2a*1\326\3474\301\005l\237\232jJ7\207\266\375\026F5\366z\273\220\206\260\351\315\\\247\351\241\222R\024\350SL\265\202\021\275`e\201+GM\205\257b\023\311\224\241\202)\255\027\010\006\302(b\2213\275C\005\n\200\244\000MKb`KjA\003\000u5Y)<e\030Mn\336P6Jxl(\211\321\252\221p\3575n}\0036\326\213\024\322\0334u\014&+5\334k($\202\307\310\037)\231\232\324\363\273F\236\334\312SM\244\272\245\321\250\271T\305Y4 \370\360\233\270j\tB\262\013\010\300\256\206\3069\202d\311\037\">\223p8\225\022<\311\2103\007r\010Ftd0\310d\003\202!1\300\3775O\213\333\370#\340\353\356\371\017\214\301k\020E1B\022i\207\2656z4\177\346\206~fr\210_\341\261\210\3317\035c\343<Ko\325\302\267\225\014b\230S!\345\361\236\317\275\237gA\363w\"\253\341\277>\033\370mEUSG]:\321$N\357\000\322\272\366\201\224\330\265\201\222r\347\247L\315\020""\252@G\023c\250\014\000\236\374\037b\337(\005\324\023\242\365\377)\255\360\200qg\264\037a\331\301y\364Z9\014c6\277&\306e\024\320\320\245S\316\306\343\002\340{\010\024\r\332\260\334J\372\372eI\264;;FY\031\035\344\234\231\202M\256\036s\322\035=\207X\242\362\036\257\307\345\307%\354\212\376\243\277\325\004\272C!\272Y\277\271M4\025i\265\375\326\372\376\034\312\302\227U\241'hH\205\t\354h\255cI\032\210\217\3406F\216q\227u\2369\271\260&Yd\r\030\277~\265]\0031\014\017I\353,\202N\215d_(.\026\212%\224\3019m\036\323H\334\230\202\273\203z\030\333c\277\036\247!\303s2\273\034Z|\222=\205\216E\t\035FpH|\312\234\020\034\3040(\033q\244DA)4\223\231\317\232\312\273\201JA\034v\323\212\206ja\210\307;\326\250\314dY\020*p4\003o\302\376\215\325\013\006\327n\204\033\221\314\334T\002J\025\227\314X6.^\315\357\207`d\224/!\004\324i\301$\231!\335-\314\264\356\367\371_\207\322\327\337\366~\206\240\344*\"\220\250hL\001\0210\200\020d\246\007\335&\2637WA\224\367Ev\225%\224\262\214\243T\325]\022\334\242\364\031\010\313F\001\217\254c\230g[\034-\205\261@d\244\247\032\235\232\010\247F\363\0372J*s\321\355\" \214}\302$\366zb\372\010\203=\241\020K\033\010^\006!}'\031\274\316\304\320\003\313-Ka\273W\271\023\301\333\027\240\353\3154\304\347\313\273<\355\203M\264G\313}|\0138u*\"$\314\314\305\2326\031\024\021\321<\2212R\273t\352\206\377<\312\254S\025\346\r\350\360\254\210\001\323\025RY\315\201bn\206f_9$\256#\0000\021p\270\260U\376\235\027Y\367\327\316A\"W\3065\220\225Z\225*\005EgF\325\303R\223\243J\303\222@\322\222P%!\344 \2638\256\005\230\300\341\330no\227\305\317\326uB4\014\214\227>\357W\241>\240\372\231>\341IZ\214\201\322[\222\375&\006L\034\263\0233>\376\360\347\262\374\201\245\313\323C\347>\017\277\266\301F\200\217\255\223\357\320\372\2555\010vqQ\247\365\225\211e\307\020E\266\341\247\377$\345\277\311\343\375:y\221\356Lh\001\336\343\351h\032y\371\21330mL\350\215\321q\206fJzP\201A\312!\236T\nB\222\274 \271a\302\201b\307\312\\Xv\314\036\317o\270mxy\326\rC!\203Z\020\006\205*\347~\221\021\007\002,?\275%L\013,""\204\3653\206\363s\007\002N#E\320\364\332\244\374u\261L\312\361cy\013Vp\031tO\224\271b\205\264\344:\030\342:\234C\001b\354\013\374\260L\307KpE\314\223\036A\241\3006\241\307\341oY\2160|dCi\322\014\035\0063S\366_+\026\\\244pN\334x\272\027\025J\022Q\251\207rb]\311\035H\337v\353\3043$\n\357\264DWs\247o\004\027\330z6\r\2641v\303!\001\201\251I\360M\341\307\r\346C\207\0204G\257\257\253\343B=\215\036\346(`Y\036K\222\340\371\376r\304\345\365~U\236?_8\273?3\273#I\320\021\345\322\332<T\021\227\311o\326\r\277\201\266\351\021R\014\231\304\343\231!\220`\344`\220g\307\007\364Y\303/\345ruG\354\363\337`9\01436\276C\275\033\032\030*\234\033\024 d4uJ\267^d\331\303\340\034\202\363\230\201\307Y\322=\366t\332<\244G\002\021\211\317\363\315\253X\354\006\031f\336#\203\257n\331ap#mA\260\352\316\231\266\314\303\\@\014,\221\306\204<\030\311\0276!&\004QV\260X%B\235\201\nC&\332Ii\330\314;3\216(\333wR\353\204\244\301{\254\340\353s3{6\233Z\315\334`\2470\325\\:\235g\247\256\260o9x\211;\031\004\031\334\212o\227^M\271\223Dw\312c\0260\346\2552\2260\020rr\275\274g;i\302\303bw\371P\316+(\311\231\262\n\017Z\306\035/\\\367n\ndZ\311)\026\314\035\262\024\335\200\211\021GY\315\305\017\351\354\241\341\335C\004 x\315f\024b3Nt\241#yV\0064\273&f\214\226\026\013\314\324.\372&\372\345\260+\2036\017\314\366d\214\324eS\006\232\010\310\314\033}\234J\243k1V\241\211)}\370QQ\201\372d\201\262\235\225\" \333\007R\350\025\3059(\215\256vcq\366_\"\2208B8#n\023\372\376.\307\206\361s\246\355\355\302\306\360A\303\010\210g>RKT\031\r\235\230\354\215k\247\\\251L^\nH\236\207\216\032\325\030\366\335&\"\2364\307\005\037\021\3407\241U\346X[i\r\334\225\324\2741\263R\241Q\204\323\257X\212\322i\"*\214\341}\024B\020\201U\24111?y\250\007T\330\375\014\314\275i\331\260\0367\\\317\264\245}\023\235e\345x@\256'N=\275x\326xg\331\344~r}\203\3679\202\202\314\262\301\265\177\260\020\317;\246\334\315\205\205\023\317\337e\237\337\350\335\231\354@M\006*\315 \251\355\310sB\262\001\300\226\236\233\327\303P\246|\370{\223l\372\352\020h'\275\302\017\367f/""\220\217`Is/TA\367\223M\000K\023`\366t\177!\n8\213\341\3240Tg\314\375\252\\4\3248Ce=\246`\016\215\024\031\345\217\241\357\332-?>\265(I\220@\377J.\026\005\346d\364A7&5r|JT \2121\032Rt\345\344&fv[\rR4l\205\232\206\201\337\024H2 ,Q\214\021 \301b\223\316)\353eRg\024'\224\375@b,\210\310\t\014\022\263\210M\014J=\336O\035Y\016cg%\376\340P\240P\250d\001\232hG.m\346\221\2222\300\0130fQo,GS\353B+\311\274\355b\213\031C\223fV\216\033\352\361\314\312>\276\000H\202\302\020\201 \265\336\370\302I\340\203\316Ad,#\030\003\010\216NPk\317\257\201\252Q\002\200\337\003\321\350~ \357\363\301\214E\201\314$/)\256\205\030(,P\241\000\214\025F^Nt0+\032!\347\367\263(\230\306\335\036\254\226\322\364\\\332\256\271^\337u\210\263%\206\306\351\004\344 \204+NRP\200@\0149\213\006v\305<\203\024(\210\010<\000{a\023\271\347f\205\263\020]\263\341\024\241 \370t8\243\236Z\201\260\3206\2046-\207\246\233}o\234\020B\262\301o+Y\256=\371\354\323\032c\027\230-TE\036\351\342\234\316\217\242\322\241\330\304b\302\311'\354\275\371\366 l\322\215z\3544\007\003\357o\004\201b\2569\025\003\347BL\231/\264<3\260\020\024\361a2\t\246\023YA\030,\322T>\360Pi\"\210\250\310\031\332v\243\261\204\232\035\246\254\257\220\310.\224\2524\"F8\244\n\246d\262\316\327\226L\331\027\211P*\255\n\351\237\221\215\200\330\270\300\216d\212F\222\010\202\032\321i\242\r\244\235|\233\340\257*\221pD1\247\025S\253\201\232\025\240\034\007\240$K\0312\0030,\321\016\320\342Z(\245u\016\177\"\023\000\003\304\034\220z\022\014\314\331_\332r\0270,1\0215\271\021\376\333R1\312\333\343\347\322\203xn\016\267ft\256\014$\354\223\260\221\010t\373\234\210\\\020\016\310\016\205\310\033G\021\340\212u.\315(^/=\274\236\026\370,q{\221FH\271dX\251p\r\221\220\311 lT\242V\316\312kZ\\\275mi\213\260\364\366\211$\327\320\222\302\202H\204\202<\273\2448R\220y\230\302\033O65\277\002\252\275\362+\335#\353B\362?\002-c^\242\215\343\351C\275R\246\262\354\217\346`\"\014\001f\204)\323y\365O)\314XG\026\227\017X\306Ug\246\312\300\217\206\331$\021'\325\201\244<\350\266\014I\334O\027&\230s""\000\003z(Q\037c\271w9\307Y\271\324\r!\374V%\340\356\025\335\027\263\326\\ei!\361\322\004K9\343\205X\350\031\nW!\244\306\005\006\\\013!\331\001a\311B\272\243\253\255\364\024\261\273\314%0\306\tK\252X\242&)q\224\310\302B\266\033\002!T\234\312U\024\321;\t\330f\241y\212\335;\330\250\345\274\213^\245v\203\tL4\306\311\315\006\214\006\337\216\021kU\206T\321C]\364\0277\265\264$,0\010CW\267\017rDQ\337\306@C\341\010\372\305\017\237\345\2476M\205\236\320Z\247\274\327F\214\014E\335\232\2267\300G\022\222\314\335\014\355V\350\255\341)\022\215s\200\233\342:\316\312- \275FX\026<S\362N!\243\266'\203;x\266\n;\347CD\356\267i\311\305\345\333d\333\245\0209R\035z\024\374\257@\342\027^k&\023\261)\326\3303iu\272\203\306\021Sp\352\221\t\304\240/j6,\000-\343\201&\306M\250\310\010\213rc\t\204\230%v\310fv\033\371g\217|v\330^|\312H\204yW\254\365\371\375\271a`\337h\226\323[\262\000\211DI\206\365I\206!\215\325\010i\200\206\255Qrl\243\200Q\211\005c\023t\nC\022\032\030`\355\002\226\324\220uC\030g\347\237\027-Gt\303v\\J\216S\214\312e\365\206\353\253G\316\n\230\306\022\033\262$m4\323\273Gu\035\254\301S\273-0\224\026dQ\240\224\253\027\230\304\030\2532UR,\264\2332\3246aw\204R\210\223\227\005\247\277|\203\313T\235\306\254\246\265\220\207\026\303=\321\222\003%mT\200b\262\2236\225\006Fh\276\271\031\022\330\321:P\306\n\274\242\222\025#m\n\254\251\255\314\275\342\003\304_\362`\2462X\036\242\363\275\374\227\276pz\032\212\346rB\233s)\014\006\002\201\026l\321%\303\306\0364x\374a\036\336\034\275\376\021\353\345\312U\206\337\216\327<\325+Kx\022\254\327\337\274-/\006\032\030\324\236X\301J\001\240\250\227\242\010,\365h\213fkZ\231\260\235r-\252!\212\264\"\332^(U\030k&\010\251\266T5c*\226s\264\341\244\272\007\253\326&\002E\341YX\366\312if\366\271&NVC&*g\261M\252h\336\201\032\265\364H\324\r1K\014<\267\200\305\310!\353b\306\322&fZ\014\026o\005\361g,K&\256m\031\225t\226\334\313\005\320\335\326\255\254\271\013\220\3164\321\\[7\014&\355t\262`\210\004\016\3619\275\036\356\371E\353M\352\236\315\335]!\220\030\027(\030\302""\321\306\264`\"r\204a\224\004\310\225\342\250\206\001J\300\311\027_4~\2330\272i\251\240\267|1\026\327\340\016&Rp\003g\236\242\200Y\006g!\263\005\016\275C\3429\347Cc\230\316\2035\020\026m\035$\276\013-\220f\314UZl\213\226\276z\"o41\206P\352\243\033`\302P\207\251\254-\246}Mad\243N\013,\361\021\003M\200\030/\001\263[#\010\021\204\200\014R+[TN\013\261*\255\303\242o\035T4\005\314\3377\017\216SV\301\034\344H<\362l\252m\201)\013\303\263\216\316:\352\321\262\034o\214UUUDQQUUUU\326\363S\263q\2634\335\334PZ\260\210U\0006\344\325p\n\0069r\240\254`\340\222\204\311+\220u\013X\320\246 \203DF]\350z\005\331\006\234a\006\225\303\031H\315\213\2117\021*[|\"\301\211\270O\013\270\306\025\002\243\201\325A\222-\016t\253\\\223\341\264\027\326G\370\204\212,&\014iG\000*G\300b\360\274_\001\200WS\013\003\336X0\007\217>1\033b\262\221J\235\300.<\034\201,\035\271\014\341\331\206\256E4\\\357\315/\245\232F@\362\256\n\312%\225\310\356\260\330e\313;\320\"\025\230XVF\336\305\332\274\364\004\207\235\370\331\020\354r\317\021\254\025\272\327X\254P\005\356Z\243\356K/\274\253\024\031\030)\325\234t\203\357\215&4\331e\261\000\034\245\032w\215\035\025q]\303\226\331U\353\025\236z%\276\201\246\202\241\247f\377ds\375x\013m\306C\216\014\367\267w|\004\020\315\307\277\177\0340u\204\262\013\\\324\361\354\004\026\277B\005C\257b#\206\241\203V\020\202\206\276\035\323\rse\t\204Z=(\250\030\326\233k|im\310\330bftl\001a&\201\003\026\013#\200\010!\255\265\256\300Dm\000\254\330s\222\\]B\311\232\223$\364\301=7\212\227\202\t\230w\n\212\t\230\025,Z'\327\311\357\362\216\014\263Ll\022\335\032g\225\3154\326\374gp~\017L\340F\025!\214\2016\206\225H\323=\227\220\301u\333\327M\334?\261S~\224\033|]\352x\331@\205\345|N\274\245\202\035\250\2404\355\261\245\303\256H%\014\002\025\213\351@\2545\252n\336\333\231ED\347\323\313\235\336\334\352e\213\317\221\233\024B\"\244\030\031\362S\006\006\231\r\230\\\243\336f\"xp\254\2265v;|l\325Y\225\340\220e@0\314Y\\Z\0071\266& /\006\372\024(w\207\356\243,\214'\200^\324\234yZ\236\0107\253\345\304\254\325""\212\r\t-\005\010%\277\301B\024\355#d%\306\310\246\210\245W/\031^\353\203)@\232[@\350U\217vu\230\246_\002\355\214\253\032A90)\337\300T\002X\033*\334F\352\300\374=\325\266g\016\266x9\036\2426\031y>G<\353\032Q\235Y\204\235\213\250\200\236\331\277\251\022\331^\3459\341E^\316\357\302\302`\200\t\003\236sO{\225\270M\354r(#\342\010\213\3346\356)\002\016d-\316 \241\017h\205`2\302Q\202 \2222\322V\r\252\262$H\254da\021X\214\210\301\021\021\030\210\0102\021\031\004VDF\020A\030\214\025UQ\030r\353\260\345!\354v\223\003\215\3174\264\330\327\326\260Y(X\032\240\326*f\240I\030\020\267\266N\2273]\310\272\305X\226\347\2069*\375v\256\224d\234\314\303rN\352!\000z@;$\247\237\301\202\\\024e\021\335\033\254\032\365\276bvv\035\341:\240H\246\236\032\005\2223\316\205\302\211\006\004\255a\n\222\025$Ra\320\364\r\334\261\341\262\234\364\255h\354d\204\343#$\227(u\334\212\036\0051\270\227\204\236Yl\006\370 \302,5\002\273\000\232-\007\010\034\201\314\356\320r\000DC\356\247\254HVY\035\311\332\3543\357\245J\301@R<\2578\010\036\324\2074ND9\340HSw\230\311(\370,\005\013\215P\306\005WD#>y?F\000\236\274\222\331\034Q]X\202\2466\236\305$%\006@\031\214_Lk`uC\033\033\030\352\227\266\201\206\006H\253\001R\010*\300\024\004EX\000\210\277m+\005b\210=\351\230\260\252,;;\263\261\234M\277\035\306\017\264\241U\202\014\200\344\031O\237\333.\215X\353:!\263\331\326\235,-\262\236\204S\222\265\322\352^ne\253i\224\246\223IQN\023\356'\t\3116\233J\232\364\337\203\213\322\260\267\246S\335b\361\005 \211u{\353\341j\333\317\034\332\206C\344\034\300\0131{\251\224\232\245\t\232\257\006\246\020h\203\334\203\253\272XF\306B\220\013\025K\266\302\002\016\260\220\243\254!\034\335\222z\006\242\016~\372\215\275\000\371\266\313\213\356\337.\034\202\t\016\r\020S\263k>\320h\251\2200\242\021\233\0206\001\351d\251P\242\212I=\017\2003\364\217|\207\274\367\236\363\366\272\017\177\326\366\205P\244\024J\203\031\030\224\264\022/\242\3032\224[\001l\362\314\301A\203\004dPE \251\004\2101\010\217\234\020\r\203\003\010\311\203(\301AA\221Q\2040\260*(""\"\003\0200J*\250$\301\2205p<\363&0@\nP\007\364$\223\345d\223\225\010\341\347\351\2259^mu\251k\215|\332\223rO\245\201\370Y\000\2470\365\037\333\207\316F\"\014T\211\025\021\021\030\210\333\031\342\365\243\\A\266\260\2652\244\200Y\226\264)$\345\264\010\033cQH0Ab\302#\021\005 \210#\005\005X@bAdR#\"\n\213\030\301d\004\004\000FF\"\242\023\2178w\034\272\374\357\0019\317\002\252 \226\311:&A\223\222\007\337\302\354\226K\257~gUM\017$E\030\n,\030)\252\006\203\212ld!\330C\366\224\303\013kiA&\264Y\016\n\263\334\004,U\275.\245\311gWQ\325\337\362\376o\257\324\352\276F\210K\273\010ovI3Q\240\000?c\037\266\340\352>F@\242\255\300\267\026@\2562\320\312\374\303\241\353\306IX\301\370\211\277\274\221\361\"5WC\372CB)Dy},<\2364\273\213L\235A\254x|'\003%\320~n\204\337\240\356\365+\005\360\221\227\276\224\257mE\352C\346x\003\342\321\341\207\032=7\247\036\233\360\366\\1\272\014Q\030\320\243Ht\220;B\364g\276\256\017\245H\007\336sIY\210nh/]\304q;\006s\307M\203bNS`\217\272\234\001\361\261j1>.\004f\321\335\224xJ\256\242\334,4\241\264\201\3055\002lq\0362\362a@\303KQ\334\343\002@\365\214<\311b\035\210T\345\336\301\026$g\005\230mzx=!\313\217\036\351\206\\\203\305\306[\370\371\326KM-B\214\214L@\365%\266\313\330u*ZyZAg\362\252^\306c\206ug\203\3572\256mk\202u\232\022J\317r\364\240\351\241\002\221\332\027E\340g\313\277\226\251X(\226\254\355M\n\031\353\232}\341~\tE\214C\000=h\260\205Y\203)\016\237M0=\346\030\312\tf*S\241\021D\033\311\220\255\342\374w\276t\251\300\251\225RJ\212\257,\0009B-\",\202\367\216^\225\261\n\002\326\314]\036\236\322t\371\276I\340z\020\370\255\n\226F\014\255\211#Z\n$\021\201Q\031\351B\261\202\207\241c\345\335\350;7\263;\251\rO\"98\206)H\254>~d\203#\322\026!\366\3717|\340\342\304\273|\344\034\234\347_o\2174p\246\353\371\020yI\312\020\332\253y\2064\242\247,S\234\320\346\312\217-\003\255\256\021\235\004\312\367{\347\"\3106O\014\023f\215\020\336o8\347\354\337\025\206I\026'\256j\321\3202+\253.0\314;\013B\354`\260\263m\222\234*hyO)\3330\332^><\266Q\267\2734kTg(\315\306\252\250\222\037""\213\342\\\347\342?@\276\336\303\343\363R\300+>\264\270d\005\024QOYep;\257\276I.\016\024E\330\344\273\230MK\010|\220=\307\314\037\214\202H\250 \210\t\006F&|\341\345\3613\237\264\237\007\350a\356l\035\341\303\230\323\312\337\227\300I\264\214\352\0357\013\207\225\225\326\006\210e\tE\t\022:\005\272\254\002\205\257\035\272\200\315!\262\233{\322Q\236r\320R2\026\3224P\2115F\322^F\260\206\230\350m\311_I\251\314\3518\232\034Y\252\2628\"ar]Y\352\305\371\2744_\317\031\200\215h\270\347\031P*\017\223\366\310\263C\020\322\344\014\272\335\211Y\366\304\000\357\213\311\230&\375G\230\364pO\016\357\207\177_\023D\221\026\021\361\1775\271Y+2\323*\215#\244[&\"\277\320\030\310\037\310:\214\366\206\333\003\206H\240Tm\3445\347\244.u[d\n\024\033\341ltP\213Z(S\\EvbK?b\343\337\233bCh3-\266\215\265\335\315\307\212\21195\203\203\223\261\rqM\230p\317\216O\330@\"\260A\001b\"\020\221\030}3\351\372>\216~\n{\376\177^e\2465\211\030MS)\241\230j\017\322\340\250D\024dD\002\361n}Bh\362J\272<\212\330\305m\020x]\"\213>r)6I\014\003\266\372\3679\035\004\236\301\031\n\213\rX$Q\014Z0\201\373\016\246f h\202\301aX(\302\024f\276\264\374\231\020#q\351\350F\002\003!\024\016Op\342\026\373\257p\3029$\225\217`\353\257L\3456)b\344JeC\0332\037X\207F\206V\260\032\\\201\216\311\203\031\001\354\360<\003\303\344\271\2234\036G74!\303t\202\366\tYuf\240\026\273>\243&3\201\027\332\227\215xSZH#\245\2451\345\242\2235p\306\3000Q\306\357Y2!\246\210\237\226\330\243\246R[-(\362\314\202\231yk\236\303\2236\327L\233fe\304\342\0140v\355M\315\341F\350\260\330\232w\262XHmHot\300-\260KML\252\207\200\227!\240g%\331\350\204\027k\350E\202d Lw\014\251\020& \251\341$\016\260;q\202\350\021H\210$A\033\352\302\354\204\006\3500Ad\224J$\021\026K+\032\321\221 g\231$\312RN40\323\271\206:\3221\006\010(\306\002\250\250\240\241\020\021>\000 \036\003!\324\rWPn\216\240\2151\370\276\327/\265\276\201\215\016\016\320S-VBv\260\200}\010EXl0\222\226\035\227L\325\265Dj\222J\013 \240\"!\252/\322\033\246\325\350\267\337\004\310\234\227c\030\256\211\234\340\301\213L""\225\355`\332\026H\242Mk\263\np\217O4A\367\330j\277r\201\230Q\034X/3\016\346-\n\020Y\235(\227dA\310\313\305\"\021\227\307\341\276<x\3052\3450c&\370\223\r\236\033\342\014\342\335C\235!dQ8\004f\254\0325\241E\031b\211kG\020\\\314\007,Q\025\"\222\245\303(\255.,BADQ`\202\032h\2275\251\245PH\213\001\034\023\020\250X&JJJQ\246\016ajS\226\016\233S\002f\200)[\255Q\251\241\310f\031\255\004\315j\352\305\017\337\0034ajm\254\224eH\240Tw\ne\303\210D-\013O\244a\213\r\341\243,(=\037I\332\274\317\360V\022\017\036\333F\024I\3672\373O\323\013&2\034\313`i\t7\313\264\245\000\031\221@\243\000\225\350I\007\301\247@_c\025\235s``\322\363C?\204]\314\374p7\n\354Q\020\307\007\234\310D]f \017+\001/`3\313\274\021\272'<\275H>\303\311'\346\242Py\004\332!\347\300\217?O\026\210<P\022\021\031\030,\201\001Y\002A+\241\210hI\025\220\324\022\024\211\370\360\257\220%g$\021=\260\356\004 \244\217u\205B(,F\t'D)<\275\326\035?\0301FB\021q\010h\014 \344(\333,\207\t\216\343\032H\254\342\341\320\030'D^{\220\250\035\026\221b\005\t\035\220\nz\207\"\002\260EI \212\204\0202\006\230S\212S}\t\367\344\322\250\020N\022A\320$0\360\247]\n\251l+cp\345\2266\320\222#\022\331\004*\024vvh\302jR\302\200ZT\003|L+u\203dF\021:\322(\3300\000\270\216\363,\233Kjuk\315\223\264\227\300w\3411\242\362r\032\300\317\244*\267$^R)\212\021Sv.\021BB\\\300#\353\032m\n\341\311\024\333\n\301k\334Ij\204\272x\274\r\315!\270\340\335f\216\037ZA\\B\227o\226\225\245\035V\236\272.\004\n\336\030\214\3509\202\330\361\264Mu\rm\334:G\312\211E*\261\344B\001\2177\3047\302*t\341\201\225/\242.\r\027\235\254J\006\375'\230A`\301\305\302\361?\315\031t\254\327\333\366\374G\230\357`s\222$d\016\005\026\t<\306\264)\022\230f\026k\306OJ\336>/o\216\017\272\014=_yr\316\334\254\035\004\331\206(\000\311\242:2\305\343\304\321\363`\204\\h\276P=;\236\000\364!\271\213\t3\315\014\325\245d\226\265\2058j\361\021\347\037F\367\016;D\262\347utu\023ro\254\316i`\260\210\311\024D\332\022\214bE\"A\260\303\016\337\016\231IK\300\276$\341p\334\033\034\013\305\310\340\201\242\034\234\3118\r""\031^\333\245\232\014\3120\360\314V\260\267\216Z\3020\270\216\315(d\001\264#\206\332V2LM\232\212\313\ru\264a\270*\211oL\204\3628\221J\2602j\344\020h0\251}\022J\346\300\203\214\264n\300(\352F\222K4u\2006\303\026\021ZnR\345\360\331d\316\030\204\324Q~\017Q\351\370\351\341\205\260,\266\200\230Q/\302\"\250<\347\341V\027\330\325\030\353\n\035\212D\322\270\241r)Trs\025\002'D\0351\202J\212 \314\223\026\024\271\242\020\027:\244K\245Yz\230\275\361\027\266K\203zD\014cM61\243\254\007Y\210\230\320\315]h*\221\215\2632\027,\261\030\3070\303\020\262\2263\030\026\"\013\030 \310\304\0069F\215(\301H!\342\346\0308R\254.\024\225Q\033J\304QE\004H\260\212EJY\013\220\236\351\240\2724\300\024\210\244\312\332\021\226\243D\2550T\264\365\350\301!\253FPU\222Q$\254$A\221ER\024\362XV\300\t\341\340w\326\372\2059KVIp\330\276\261\024\357\237\025T\363\312\327<\341\222\240g\355U9Pi\254)\372\004U\2110\013k\351l9}`\235\275d\016\250\016\257\247\236\267d\261I\261 U\256\330PIQq\264\310(\035\207\326\272\333\007]\347\321\003\237\333\223\273\357\007\036\264\217T\031\276<:\016\001\266\306Plqo\230m\273XH\365\235\332j:\372\355\211\016\316\301B\354\264vYs\024\001\331R\322\247\205\361\366NTA\2535b\306z(\035\223\214\354i5\2750\355a\034#q\257a;XH\013\"E\255(vPF\212\026\021\027ar\202\030F\245oe\361\217\303\300E\257\020hJ\r\023\321!AP\361\322R4\270T\000a{\002\326#bA),\205!\331T9ca\177jz*\277\307\321\326^\003L\350\034\021]N\3246\213\2608h\360\022t\313\033\001\222.\007o\237]4M\347\341\226\315\263I\005\"\300E\030)\005\367O?\2338\204\026(3\202\224\036\031f\311\363\227\273\345\235\371\016\336}\014\242L\031\003q\020\320A\356>%\354\370\276\036\274\256\231\253\316b6\352\342)\036:\236'\371\014$\225K\006!p\267'5q\005`fl%\271\357y\352\313\312\250\320\273\r\334t\353Z0\325\017\207>\315\312\300\274A6\025N)\232(\351\017K\321\273\336aD\006Q\331z2h\031\203\312d\334\331\003\304:\324\201|P^xk*%a\203\216\"\231k\276F\315\347\313\206\373L\031%\360\215pXU\206\206 \314\006E,\252z\014\262_\032V\022\201zd=aFUj\313|3\335\241GC\014\231\225&\350n""\010\202c\326\301\305\202@$ou\255j\341\231\337>\362\260\272\220\216\n\263H\2218\273\347\2269\221\240b)\\\300F\350t\340\0106H\250\255s(/\013)\264\3010`\260r\322\272/\003\246\254\364E\354(\2436\245\317$en\354z M]\002\254\202N\233\007X\003\"\"h,5\201\310\303sC\211W\213\311.\205\375#\342\034\"-\302\026\022Ql5l\254M\t\311$\033O*\267\271a\231\371U\232m|\255U:\306\371\206\207\017\302\324J\037\035\250I13\010\246\347\274\036\325b\274)\006H`jl\270A\313D\243\002\327\323\357\234\221V\232\315?C\017\303\006\276\326~\213\311c\305\330S-\201\270k\235\221\260\300\331\266\004\022v<0\004\267\307\262\276\207i\352UM\335\345^-E\352\325UW\305\252\272\253Uwj\252\252\255\3269y=\310\236\036\366\255`\321\321\351\215\310\001<b\221\036\374p\203o\242\373\225b<\233\247P\007\031f\353\361\362\222SN\232D\224\032\243E \315\355@\t\034\rkA\014h\206\303\275\2222\312\232$\"rs\343\307\217\205C\016\331\304v?/%\033l\216\207|fU\351\326\364\226\327-D\210\216r\206[\214\257\261\rQ\236<jL\363\341=\272\207\275'\006\225P\004R|\215\001\020\355\354\241\340\315\034\036\026\227G\263c6\371\370\033\252b\010\006\221\363\3630\020\357b\0323\353\336M\373\3526\2040v\024\256\343\032\243V&\3011\215\010m\t\240\333+\002+~\320\274\334V:\275\035?\t\r\314CQ\342\223FH\331\3715\212S\301\233,\272h]kdtj\207t \202\275\236X\352\347[\357KYi;\221\221\330&\226\232\370\026\343+\202\032\371\365\352\303\023\374\217\265\337\016\372\341\021\022{\362(\035\277\302>q>\324\245\247\321\321]\2144\371\225z\226\356\341~\0332\344\027\032Tm\005P\250\244\026\315\244\007\245\030\206\233\254\311\370\204\3401L\340\3433^\306aQ@+\347\000\234B\315S\210\202\242\370\324@\272\270\222E\002\025\310?z\241J0S`@\231X-\220\333\n\222\037\220I\2278\316#\236#\202\002\246\241\\\3106\007\027\311\001\305\216\030)\353l\004\344\003\204\013XP\242frQ^)\333%\010(\244AF\270\371.\301\311{\352*\024\206\262\311\334t\336\006\272\240t\034+y'\023 \024\003\264e\203\025\345\020\257{\0246\030\202\2053\213\030\035A\230\303w*<\266\204\351x\034\334\2638\252<\370\321CW\265\272\270\3460\253\346""\205\254C\022\020R\311lbX\215\244Ju\367\311'L\356\3409\262t\243\201\001\212b\251-\035\254\241\030\210\322\241\005Z\306\243\213U\n2!e p\323\232(r3\275\316\020\344\034\342\007R\010\2213\245;\322`8\223I\243D\256\314\303\004\302$\222\210FYL\335\206d\260\330\212\311\331CL1@B#\026 \311\026\nj\320\344!\303&\307\220\222T*\"Q\235\223G\024\242,\027\0062\244\263J\022\001:\340\300x\222\335\207O\313\215\245*/D\016\376@\264\025*\360A\344h\325\212\202i\322\000<\3263\300\256\3205s~\276!\201j\261\035\203\021\2176\002R%\241*;X\301\276\212\341\350u\257.3\2170\261\232L\006`i\0240\320\000\016\214\210h\266\032e \222\n0\312s#\303\312\205\337L\351B\316\214\263\222\320K\007XM\230\244,\032M\311\"\235\240jd\213aA\221\030\002\206\263\253\024\333=b\031i\254.\2209L\2279P\317\000\244\202\310,L\275\301\352\223\000\336\2301\031d\346O\202\035\026\224Z>9a\337\003\322$^\032\361\307\230\337\017;W\261\236hd\364\3327\310~/-)\014\330\033\245'(\310\032\021B\021\216a\204E\346\210\271\343\252\373Q+\005\204E\363\"\004\254 ,\202\311\024 \032\347\353{J\235\201\260\224?\003\256t\2759\222\031\264\r\266\331\235\235\2022,\220\211+\333bRK\206\260`Y\217Jx\230A\206r\314\342v\310#\242\353a\320\202\272\345\032 \227\256y\317:j\354\003i\021'\252%\021`\240(,\341(!\224\247%hkW\001aD\022\316t\2715\230\rf[p8n\260\226H9,\202\264v\203*\3261X\261\032\240\016\355Bm\236*\302X\205h \010\300\251\016^\271=a>\177\267t5\256\227\346\022.\251R\204\2646\317\301`\202\207&&t\215\371\264b\221\333\324\324\020l\214\305\010LZ6\030\360\306U\247Ai9\306@\0004\006\034\243!\350jO\007X\260;\374\271\344-u\205\326gc\267z\244_S\340\256\214\336\020\330\254\005\207=\346\265\016\007\036,\t|\341E\003|)}\027HZ\034\300\205Q@\272&pd*\027\204v\272\354\034I4\320\221\253\263\024\337c<\272IM\364;\023\312<\257T\364\017D}G\325\365o\347~\323\345\002@\337:\025h\362BN\202\010Q\002\003\"\367\004\010\267\337\304{x3TJF\227\322\322\010\266\004T\251B\207\231\317\001\361\301 \021`\261!\014q\303\224\033p\257\360\270i!\342\232\201m\235\277\033X\364\t\203\001\230K\362\022JjVc""\001\207*@q\014\361{a\212\201\222\t\020\rh\235]\311\361\373\245\r}\224H\302\344cM\246\014>\372+\360\260l=\2249\037Z\013\234(z\301\202N\254\36248\031\013\270a\320\344}\261\331\216\210\323\342h\357}\031\r\020\305\034Y\364\201\371~0z\310\007a9|\235\263\225\265\264[R\313)]Y,Y\010)R\320\000-9KZ\355\nb\304\260\236\207x0U\214\204\206m{\253D\3214M\032\2021B\352\032\270\034,\216\004\010\220\207\000\363z;\376\237:J<~P\300\217=d\3116S\315\020f\315\245y\232\2208mY\223\217\321\340\237w\336({\2126\225NC<\300a\274\014\214\242N\263\212HJ\265\022\264\330.\031{\335\353\273\273\270\371\217\233\3552\317A\302\0304\r\202\206%\307\334q\037/m\005\353\365.\247~\212\275\314\033H%\204:D m\313'(Z!\312\261\253\251\247?e\326T\346\003\274\361C\212\361\360\375Na\325\323\177\245\002{\357\351z}\232\247\244\273\223\220:\203\372\264\"\t'\312A\302\240\326(\374H\204 \302I\"'G\233\310p8\0348\035\356\316~\341:\273\245\2723\317L\035\231~\321\227L\335\333\222Px\320Y\275\224s\034\256\014\273\265\216\250{0\373\232\321\275|\220\277\217^\255\212!}O\267G\264\316DI\346\321\305x\266\353m\025\364Z\261\203\"Z\200\016\270\215\205\200B'\247\256\356\207Q\303xhxx\010\227\360\324\362t\364\275\256\323\342\020N\342\201\234Z\035C\246\220\"p\313\014\200\243\260\242\243\020\271!S\032\220\225\344\346\006s>\2645\354\337\034>\223\377>\364\003\367\247\366\370\237\362{f\314\324\"\177\007K\345\261L\3642rX*\267\304\302r.\303\2760$\013\305)`Ixjm\345\271\231m\037\323\347\201)=\254\247\037\256\373\337\363\t\026E\214\001!\000\204\3064\223>\344\240\2206\373!\357\373\207\274\017\321}\244$H\306\021d\017\003B\207\037\177\242z\2656LE$X\036j\036\304\367\t\370?\300\036\354\323$\242\306@\366\005\313\372\231\342(y\031\367\333F\220a=\236\277l\265\244!?m\224\003\335\241\361\341\215O8\224g\355\332\177\352\377a\330n\355\322\022\241\311>\036\374\207\371\037\265\263\356h%\361<\223\251\310\302N)\277\277\240\201v\227\344\335\377\347\237\341b(\230c\303\000\202@\305\207\240@@\216\336\347\272\010^x\356\310\252\203\331\367\222\017\361\375\3550J\235!8i\235""\017\363\3555\242\230a\203\361L\314\306\264!\365m\250/\251\251\306\224\341\032\013`\353\237\211\3622\253.\233\373\240u=\021&fe?\302\224\322:\312fa\036>\374M\221\374PD\006\026\323\177\270\271\366\311B\t\301\224\306\333\317\306\357D\217\247\207\346\334\206\352ET\177vJ!\261\371\306\243\253y\222#C\027V\306\254W8\023\020\265\371\0277\227\036_Yw\004\216\250R \020}p\203\361E\034q\221\032*\007\035$\363\367\177\211\302\034\207\374c\360v?\025\010\"Qp\031\310AG\371\272v\3610\341\331\346Nv\340\243\360\237\271\002L\246M\016>N\313<\275\377\230\351\231\373\257\366\213\330\221\200\335\317\341\267\351\002\241O\364`.\260\321\362m\377k\226\304,\256O\335\250w\177\357\272\035\3317\376wb3E\204\354\242\227\350\313\232\250\177\270\022\003\231\371\246>?\007\207\341\373\375\3167\216e\017\031;\370|SB\201<\321\031\037\231\344\364O\366S\246\2400\324\271\266\034>\014\037y\344\034\360\363?\371h\304>t\322\010\204\224\037\275G\360\373\301\307\207\226\036%\344\222 \300\313\311\017\027\222-\262H\235\227\250\233\340R\212;\347\222\202\346\361s\n\013\233\304\353\376\267\3352\213\004d\266f))<?/+\267\255\327I\221\345\t?38\177o\027\312\330\221\244\360\030\221\344\236\223C{*\037\222{\236O\321\374\305\320=\257\2471\350\232@\203\245\003\352\036\331\2365\010t\304}.\347w\300\243\336n\373s\004\007\007\177\024\240P\"\340\367\344\351\242\320Py\350uQ\332n\345\216\337h\354\313\2713\007\256\003\267\254\034\2439&\203H\243;\360s\370\227[\264\313\264\307\255\334\231\223\256\317,\273D\010\251Hf\365\322\342\031\016\327\234\260\343\345%\310\356\311\2238\235\223\023\250\273r\203\356\360q\372\272b\342\344p\350/\301\321A\240\307\035\372\236\005!\201\246\001\377\3338\301M\350{\031\"\246\363\372\231\331\233\220\211\0048\320\344\341\342\240 \364\356\357q\30530\374,\216\026&\223\274\233\200\202\371\370Y\036\237\275\367\267\376\236 \362JK\2109a\351bnD\005\032QT\"\364\253S\341w\016\300\307\003?\013\263\007\366\033\226P\363\372(\316\250\362\270R)?\025\022\247\023\245\300y\234s\207\236A?\014 y\312\023L\223Pr\\oA3Kw\315I\370\335\206P""\337g\3632\214N(:v_\251\232\003\366\350'\035\333\177{\342\271\370($7\271\345\023\335.\022\023\310\344bf&\234\037zp\\\014\215\326\371\301\236\014q@\366\267\304K\315\275\357\374\230\037\354\035\333\342\360\362}\252$\033\226`\213\004\t\235\237\215Qh\361\362\360\343\3239\016\016\023\315\031\027\372\256K7j<\206\\R\301\326>A'\264>\300\236\200\361\314\300\371=\235v[\352u\300\353\375~\016<i\262\270\346!\305]\350|\344\243M\250\362\034\227\227\213\023\213\213z&\373\357\313sC{\256\317\204\375\215\325\024\333\344\216O\257ow?\366o\373\373\036\371M7\004 \317A\346h\3714Q\271\276\373\370\255\010v\017\0304\3173\350\357l\243k\324\333\3221}[\263\305\021 \037\013\246\327\253\345x'\032\323\371!\330q\207\033\260@o9\327:\355\205\330\335Q\204\227\323\322\356u\373\035\201\210v\r\330\300\223&\367O1\t\332\276o\3229\354\361\354\264\210\355ty\276\275\230l\273l\304n\016\247G\244\354\335ht\372\203\376f\313{c\325\352\035[<\330\306\326\314\357\344\234\366K\250c\354\364\337gd9\236$[e\234\177\323\247\365\241\233\255\351\331\332\366Fm\271\245;m\370:\331\233;\177#\313\337\030Kst`yC\333\002]\355\337\016f\336\331\275\236\341\003\344!C\337t\333\353\262\357\231P\214\033p\332\334\353\355\344\377Oo\034\376\334}\303p\203l\333\366ml\234\273P6`Y]/\241\272W\372\247\307\251\005\r\206\361iz\355\032\214ns\371\332:\037\257\336h\266\216\202\317\352e\271\366?k\371\274\307\352~\311\r\267\037^\026I\244oL\326L\226}~k\005Uk5X\351K\245\346e\"&\215\211\275\035\354\350<\311\322\255#st\274y\273\2771\241\271\342\307P\017\216H$\0209\002`\222\030\306\036\237\325\177\331?P?\241e\265\n\202\2262\026\324\266Q+)B\224U\333\366\331\037h\222BG\331\357\303\360\247\246\237U>o\311|\343\177k\253\350\027\340Z\302\217\320}\2470o\265\266\267Y\245\331\271\220%\365\303\023\241\261\223\320\017N\335\204\314\335c\276z\375\341O\266\037\303L\313j_\303\3458\374\376\343_\013\367,?\177\236\246\321\276\177/\217\350\347\364l}]\377\307:\207\361\357\343\362Qn\357\257\331\313{\336\3411;Gw\227\347,\257-&<~\266\363\372j\034\333g\305\230Z,g;o=\271\331\241\rX""\317%u?~\206S\313M \253\031\333\"iPl3w\326\207\367N\360\352B\267\275\310\334\315\321\272\247x\027\204\360\263\373-\204t$\346\366\202\023l;\246ER\345\321\313\211\022\036V\n\013\304\252\317\320\357\350\275\352\215\252\245\025\006\004\250\306\025\214\266*\356T\314\340\\\345\003C'A\346\263$!\200\304\202*~U*t\223\255\001(\352\2602\02096\010gxT\240@7c\002\014qW\000\221\0132Z\263\203\241U\225\203kU\247V\373\272\347\337\202\347\2120\222\026\361>&^\3704$[\234\014[\306\350XXd\202H\222&\215T\240J\220Q\002C\025\201#\231Yy2\346\246\225\2622\313\002uZs\257\007\277CU\274\020\344\355T\021\304\211\364\371\321\272\306 \200E\333q\242\005\235\022J\231!\246\300\312G\232\346.I&(\352VL\203q6\262\205\213\262\263\n@8\360\rX74aK\327\027_\217\201\330\016{\013a\235Z(\362\342\347\353\332\034l\375|\357\331\373<\336W\362%\214\374\216\377\030\352\030\272(^\267\362\032\321\227\365\2031\232\364^\232\243\343\346\355\317N\\3}\351\2446g\277{\254R\010\032\265j\2069\214`\025g)\001\214\233\001\340\217\305\373\370\212\275W\302_\254\312=\374:W^\007\341b|#\2769\325\250;\016wL\356\256\322\362\266P\014wh#p\024\005b\027\343\336\316\342\210\261\240n&\3150\262\025\260\3577e\207V\337e\213\314\243\340]\260\336~\\\323\221\007\266Z\352\376\275+\210\355\352\342[\337\310\370+\2366\304}\337\377\213\271\"\234(HMA\255a\200";
    PyObject *data = __Pyx_DecompressString(cstring, 17382, 2);
    if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error)
    const char* const bytes = __Pyx_PyBytes_AsString(data);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) }
    #endif
    #elif (CYTHON_COMPRESS_STRINGS) != 0 /* compression: zlib (18795 bytes) */
const char* const cstring = "x\332\315}\311_\033G\332\260\231\301\211\027\2221\266c;v\026\341%\206\004dc;\211cg2\257\000\2015a\225\204\227d2\242\221\032\350X\250eu\213%yg\2769\372\250\243\216:r\324\221#G\216:r\344O\310\237\360=KUu\365&\260\223\367\375\275\371\305\242\273\252\272\226\247\236z\366\252\272\233\034\275\233\274{7y\377\001\376>\240\347\007_&\357\246\022\217\212e\303q\036-\215\333e\273\266\224X\251\331\353\t#\261bW\334\333N\242\210\211\211\252Q6]\327\034N\270\366\252\351\256\231\265\304\246\345\256%,\327IT\214u\363L\002\376\313L$S\376\342\201\252\226\226\306\347S\323KK\t\327X.\233\252\360\206Q\256\233\311\004\265\356$\214\232\2310\255\32557\261\214\265W\241\251\342\232Q\251\230\345Dvj,Q-\327\241L\271\272fP\233n\315\2508U\370\246R\334N\236\241\244g5\243\nm\255-\027\250\372\202K\251\337\256\271n\325yt\347\316\232Q[Y\256\377\362Kr\025\006P_NZ\266J\032Y[\036\261\335\021\372,\271\346\256\227o@\002\275\215\270\337-\025\222TQ\212\006\\JX\025\3075*E3Q2W\254\n%$\0000\336XW6\214\2326\326\252a\325\022\366Jb\265\274]]K\030\225\222\030\275U)\231[\242\353)=\r\013/-\335\335\232\204\377\240\236\222m\002\254m7Q3W\000&\256\rp\225`\246\257\206\023\313u\036+|n\025\r\027\312\273k\206+zU3Wkv]5\353\254\331\365r)\261l&\352\216Y\n\201\316v\005\364\312\306\266\371\273a(\023F\2506\035\230\3452\364\304\200Iv\022+\206U6K)\234Z5\343\214\032c\360\023L\252\257\000\024\006\207\306\266q\230\210$5{\363q\342nb\335\004\204H\030u\327\036)\032\345b\275\014pH\330\025\200I\265\356\016'V\25424\202\tv\335\205\224\344\270Q.\343\014\375\370\343X\331^\036\206r\256\370q\\\000\351J\3316\340y\n'-\275\345\232\025\327\031N\330\313?\233E\367'\000\270m\227\177\362j \014\236\006dP\337\035\343\217\252l\326\256\230o^Y\327\317\271\207\361\205&\215\242\251\345N[\216\373#\014\373\247P\021\202\2057l\004\272^\306V@\243\037U\020\336\242\213\275A\211AK\257|\350\210\322\330\373`\t\225\211\257b\022\265B\363\006T1n\257Wm\307r\315\031\273d\306\003\354\367O\353\357\377&\256\224\037\0204\377\261\271]?\r`u\314G\004i\"%\377M9\023\206k$\334\355*\321\232""\304\232].Y\225\325\304\023 \013c@\026\220\221\000\345v\315\032\246.\233k\306\206\005\305\354\252k\331\025'\231\310\2571\017\021\205\022es\003\326:\2201\227\350\030\324\2370\234*\364\003\251\342\232\275\251*\006>\0044\304\255\231@\350*ved\331pDM@\221\214\242\213\224\245T\247V\221\320\300_A\353\036\031\256[{\264437;\227\237\233M\027\246\262\251\371'\351\231tn)a9D3\201\260\033\3652@f\331,\032@%\201\333%\326\021Y\340\237\223X6\212/7\215Z\211\033\003\3641\\k\331*[\3566\263F\000\000\214c\003\332\307\021b\267e\227\223\211Ys\023Fj\001\"&\2525{\265f\2543\251\246\272J6\221\371\212\tt\n\250\274l1\341\324\213k\252\325@\213\3104k&\244\255\233\300:\360;\252\n;\035\034\347\370\223T65\236Ogq\240\300\303L\243\204\235\323\006,\000\224L&\360S\013\270\212\371\350Q\"\014(*\205\220$\222\374(q\367\214L\311\232n\275VQ\223I\371N\002\371O\025:\267\274\r\217Fu\315\\\207D\030\034\214\321\206\021\343\034\3335\000ZRV3+\346S\237K\034\351\272Y[%\206\013\237b\277e;b\030\376Ode\304\n\253\000$\263D\214\321\\'\254\203\352,\024(\034[U\203\325#\276\000\n\326\266\023\256\265nbqY\217(\3450\342\331(\013mZ\320\3402\202\337$\034\224\3039\002\220\336L\004!9zLHF\001OAMu\330\017<\253b\271\026,b@\032\307\261VQr\2011\240l\262\031lg8\261\271f\001\322\301g\2622\304L\035\374\014PZ\323\004u\001\034\004-\201\265lo:\336Z\025h\t\377\001\307\0062\001\262a\251d!\t0\000\224\220f\0209H\224\255\227\210\3174\240\204c\276\252\203xg\322\0322J?\003C\252\270\262\236u\243\366\222\311\207`\3508\233\216\213S#\341Br\221\017O\004\024\t\225lol\200\224\025\220\027j\321\323\026?[\367\324lM\330\225\333.\317N\240\261d,2\373gA\326\324u2\216\230\205 \246&\02330J\033\260y8\016\014\301\n%\354Tw\030\265hR\005u\\\267\035W\201\314O\267\207I\274\265h.\200\004\255\324\313\310\023\274n!\341\023\262\251\244r/+@\323\261Zs\013`\023\354\"L\274i\300\330\025\350\206ee\313<\343\220^b\241\030I\0362 \321\nH\004\026\n\351j\325\256\223jaT\253\246\201r6\364t\333?\310\310\311\217\245y\367\325\334\317U\312\333\376\251w\030\363J\204\024f\005zU4\337t\265\276\021""\251\363x\010\256\260 \251\343\251s\254u\013'L\324\267X\261\212 \361$\246\004AN\214s\003\262\026\243\274j\327\200\235\255\363XxN\021[h\236`\304X\211\003\nQp\rb\031\032qI\021`\033\265\rE\033U\217<\014\361\243\306\246\001\354Q\314\250\244 \252[\000\035\030\267iT\023\326z\265\014\035\007\036\211\264C\002&n\\\336\200\242'z\"=\231Z\234\316\007\2479\202\371\2515\317L3\270\002\200h\001M\203\356\307\313\031!\245k\231\224\232\202\250\251@5\275\241\352\305U(\305\213_GD\215#T\243\246~E\313l\240\267Z\004\314\021c\013\346G\020\260\010\r\021\n\026\260H\301\002\344~s\035\021>\3275Dx\245\006G\2606\275\223 \004\376H\n\010L\252]aa\225\365\232\234`\r?\346\353\200\004?z\232B\240\344O\370\237\224SUu$O\3774a\t=\236l\025\210;es\005\361\033d\312\365\372\272D(V\333\305\252\251\021\021\221E\222\341*\\\273\332\275\206\355\021\300B\2202\336\346\333e\333u\241l\227\346\267D\355\362\213\370\021%Q\277\033\034\302\337$+\374\302\246 \324\377U\323-\240\275\243`\225\242J9\224\264\202?k\206\203\306\002\240\000\005\252\271@F%Q\002\253\361}(*\303tQ\332\263681\231\316\306\252\226S6*\253uc\325,\254\200\350_\257\231\005\327Xu|\371\324\027\244\220e\320\242\3039Z/\365L\333~Y\257\212L\243\014\253\246\202\032\210V\302)\326\254\252\326~\240]\262\367\310Bz\036\325\210P\222\200\000\364\024y^*\003 \220HECi\332\004h\311\225\325@\n@m20?\244\351\302\002\261*\241,\247\276\014\322\223[\307l\225\267n\270k\205\022\320\nJ\201\365\316c1Q\225\006m\203\363\311\214\203\343A+\016\"\036\310s\225G\211\3112\200\200\310\213\2642\262\351f\351\215\350\357\335\255\273\236v\221\367T\225\004\0238X\312\306jt\205csQ\225y\0026\366O\032\314\220\370\021\353AM\023dd\020+*\2452\246Jvk\302\242\252\310\004\030\277b\266\300\201I\247I\024\215\n\2629\0200\200\227\225x\001\002\021\025t9\221c\263[\335\251\223\010\016%\035\323U\322L\275R6\035'\0013A\314\277\212\262!\366I\254{\036\253\215\202\0064\350\312^aGH\347\264\353\256\247\355\0009\250\203\024\\\264+\230\037\r\234t$p\356\275\035p\000\027$X<x(\261\246\033X\206u\251D\360K\230\267\030\024\231\317""\246s\351\354\323tA\340J!35;\227M\215MGh\244[w\037D\017\306\256\360`<\331\211\224v\301\314\013\231\325\212]\303\205,\005\tO\252B5\0054nGN\244\311r\231]\253\231N\325\256\020\007er\255\310\361\2120TIe[V\266f\225\030\252\346zb\260\204B!\250\3065\263Z6\212*\235\272EBV\025\026\237f=\376\305\254\331PJ\237p\243\264A|`\323*\271k\311!\226\260pi$\\\343%\232IY$\304\"\250\r(h1\304\263\351\231\271H\250\306\314Cl\371\210Yx\370?;\013\313\250-\256\303\230J\014t\206\0220y\004\243f\344\320\000.\253z[\270\353\000\227uI\270\013\200vA\324\245\3563\342\312\211\213!\222s\005\020&\013\231Y\250>_\230\230\313\347\323\023\205\361Lv|:\035\206\375\350\335\356\313\331\000\005\005\030I)Q\264jE\000\265\000)\312\357\313h-p\000\320\312\273!k\252!\341\257\211\305\017\n\026b\177Q\237GOi\037$\273\0254\364\355\335o\356~\231\270\373\315\375\364wC\321\343z\232\316f&_\204\207p\357\210!\340T<Z\251W\212\217\226\210\013-\001\271\001\322\307J\250\303\362,\252\025<\264\240\t\002\263\355\272\203\246:kE\242%`\030t\336!\323#\213|\246\003(\351Hb'l\211Ju\224\266\013Y\\\322\373\014\027\367\325\215\216\016\207T\361J\302\264\310\231fx\372,\321\370uh\033d\013R\330L\"\036+0Q2\225(/\224B\375\t\275P\322\245\241M\220$\254\300w\r\275\266M\320}\200k#\241E\241\261\204\246D\263V\263\261\253\2527E\220\231\206u\302\"F+\200 thR\346J0,\246\347\316\232\320\340\331\217#\375+1$|nbq<]X\234\315\245&\323\205\374\\a|nv<\025\301\214\036\034g\352y\271\221\217\206\304\215d\260\336%e\342\3012#D\022=\322\001s]\252\027\3310)G\213s7\266\255\304\014\313es\037\254\n\005a\355C\2661\240r\\)\326k\244\233\332\316\021c\227=\024\2538\237\312?K\247\247\303\020x\370V\020\210\256\375\177\030\016q\n-\266\343\374!\212,\325\244\351\206a\351\222`\220\001\r2\206ky\2501\226M\247\276\357*\033f\374~Tk\205\275\210,\342\240\364R\263_\302Z\022\223\340\027\016=[\215\217\2503\037\201\007!\300\t2\000*\035\360+\013\3155\322\"F<m\204\346\2404\214\006\017\037\371\365\257CX\205\000\035 \024\311\304\234\360B\227\255*U8L^\013r\212\262U\005\233\303\256\310\272\010\t\204\301""\006\330\021\223\033\352\024\033{\034c\305\244\376\324L\343\245\2478\216\324\352r\344\036&\370\000`)\227\017\333\003IT\335\264\3050\t\215\200\347r\213\236\351OV\2066%9N\344\320\233\204\245\240`\3414P_\230\267\253\371\210\230\005\037\344\245}\006\273\"\351\231\277K\216\211b\253k\226\267\205qJ\010\255\350 \327\214X\350\263Z\267~15\241\237\225't\214&\214\r\233\205\0141y\002\034d\276D=TY\260V\310X\004)#r4G!l\034\215\324\004\366\2430\026\235\350\253\302\377\r@\305q\207t\033\305\323|X\334\025}\303<\302\321-\276\230M\216\022n\220\321\226\273\202\006P\327\364(\231\261\354\2604\264\342\tA\236x\005(\003\202\017\202\031\370\272Y^!\304\026Cu\023\231\234BV\320z\212\006\017;\311\226Y\230f\305\370-Sx\023\010,\264\366\340\205\315\353 \002\0315_\363\022\r\270N\023\315\001%\017KW\"\321\345\370x\342-\351Ht\211\302\023\372\276\014u\013&\240\223\005\211\330\030\035\342\254\243\024D\243\005u\222b?h\242\345\342\221f\000\322(\207\321\335U\2215Y+1E\213F\255f\261QYr\235\000E]Jx\023O\304f\rP\006\241F-\325\004\"\020\344)x\007e0\316\\C\253<\006o\270\332x\325\244\211\036\014{q6\350\\\302\316m\032\333\217d\261Q\220c\\\224\305Lr\225jF=U\2437\230z\305\265\312\\\231Us\334\200\337\004\005$@rU\232\321\314!\014\254Wp\346G0\310\204\260BIK\367\222\3146yI\230\253h\230V\235\000\225\236<S\232\266\214\335R\037\337O\242M\033z\rpc()\301Si\225Lw\321]I4M!\253\351\331\020\374]K\320\342px4#\366\312\010+\350bT\217\211F\340\270\206\023?\327=\0308\240\247K\221\006\035LeT\202$\025'\304D\326@\314\3511\n\271\300=\206\023\250\201\221\034j{\002\255\002\337J\275Fc\242i\221\260T\003\010\367\032\332\252\231nMyg< \016\213\314\252i\270\312W\234b\372\301s\006\025Vp\224\274\202\224uA\331\376\345RU\276\003\224]\224u\211\272\026\205Q\200\252\344{\377\277\203T!\231\203FL\326\025\303k\345\177\007\301\000\243\217D/\201W\212\314D\242\2277\250\267\30519Q\307B3\217z\002\266%\352Uan\213\303\263\204Sf\376e\257\343X\230t\021k\002=\022\203D\230<E\272\245B^5\340w0\036/\302\004xP\031\275h5\251\010\246\3463@\027Q\243\000*\207=\253Q@\200.\274""\261\374\353Qh\237%\212\365<o\341\017\013:\344\311\177\240\260\240\344\010,\262bw\251E\233]\301\356\210\003\321\350\202F>\320G7,d\223\310\250$KBO\273 \373\300\371I\314\205\002\010a4\271c\tMb\010\315\0231b\264\311 x\261\022\345\334\326\255\302q\034I|\215sT\0068:4;\333\232\231%\221W\322\001[\364D\3060\331b\327\021s\201\205\241%J3\304\352\262\211\264ZR\016\253`qJ\356R \036I\255N/\226$\320\210\322\271X)([\320\223\355\240\326\025\020\033\217\253^j\006\322L%\301n\013!=\"$\314\262]Ye\024\036L\325\214e\2538\234\230\201$\033:\001\2748\267]\263\014H2\335brh8d\276J`h\003Z\010\034%\244i\032\005\333\226\000\265\027\277\270\373\325\203\273\211@\037=c\322\262\271B\310\243\213\361\210\363^\347\222\232\255S\006\312\312zJ&\224_'\272\210\344\223F8BF\354\025\253\250\017\220\250\220p\332\223\221}SiA\272\274\207]/\261E^\373X\330\337\221\236\231\265Z\275\312\262\031b\252?\354\314S\216\331\211\362\007\350\306\2362\337]5\236\313?5j\251-\313\351\242\036?\311LL\244g\273j\305\270\320\3101\354\267\024\232[@<`E\227,4\005\002\364`\245\002\006\325\030\"\350\"\354\356C~\033@tq\"\307\203\003\275UB\221A-\306\211q\215<\317\247g'\322\331#@\301!\014@\317\2043\254\246\325,l\333L\024\231\215\260fP#\361^\343\007\240}\002\324\200\022\232\225Uw-\nL\344bc\214\301\252\337\026ZX\215\016.|\027\370\203\325\306@\215\307aW\334\232]\206E\001/B\017\254x\302;\372\253`\266-\243\014*\017\232\2139\310r\035\344\014I\026\223*\377w8\377r\262\016\321\007tN\303\232U\361=\310P$\027\213\231\332Y\240\304\323\213\271\250P.\337\354Np \246\023hQ4\025[\367\374\\.\223\317\314\315\346\272j\3521\225+\006\254\3016\266\245\251\351\027\363O\n\263\251\231#<_1m!\350b\302\235\250bZ\002\371\356\356\234\340t\230\034^\335\255\332\311\351\324T\256\253\237\"X)ae,\024R\023OS\263\343Q \320\374\0061 \020\016\034@ ~\267WV\034\323U\326\251\2252z5\214e\307.Cs>\343i\010\311(^\025\372\344Y\330\224i\215,\002\344P2\2100\240\367\264\206\326\017e{\241\365\241\\RV\322L&\226\226Hp[Z\222\306\271\273C\303\t\271\245A9\240D\327\274\336\260\264\250x(\006\351\241""\267\314\256\211(K ?\252f\345\236\020\262\006y\033\264%\014\244\322\213\216ckBq\255^yI\316\013a\360(\243k\r*}U7J\350\002)\252\340n\324\233\260J-.Y\263\242\241pa$@+[\205\206\227\226\240\007\005\007)\303\022\305<[\0256\235p3\236-=dZV\375\375\003\215\314\252\316n\344\020H6H\022\313,T\010\177\244%bT\375\233\240\336\236\326\311\320\262\010\223?\207-\003Z\254\221$)\\\362.a9\242\005\212\"\032\026\034\331\235\305\034\372%\013\3172\371'\205\351\314\324\223|a,5\376\375Tvnqv\342\315\343'\330#\256o\004C&YE0ah\231)\021\000\227\212\342\201\026\350\206\306\266\304l\364\231\243\236\0078\302Vn\243\370Rl`b\207\242\203\312\322q\2063\221\312~\337}4\367\376\027GS2j/\243\006\263\014\302\347\313\370mX2*\353-\371~\314v,Qk\030\317\241\273\223\365J\021c\227l\212R\202\337$\254\357M\226ADB0@\253ZY\325rHd\001\251\001\375\214n0]\304W9\216\271\016\272Lt.h\227\240`c\034\023y\227\201~E\227{i\326\320Z\3205\323\211\316u\355j\301(b@y\001\320\007\2442\324\330\243\213J/r0\027h\025\216\262\002=\004\020\240\027\277lT\271\320\310&\232\273\231%\252(\356u\323p\3525\246\257\016\320sx\252W,\30525s\370v\325*R\224\320\322\222\341\024I\272dn\300\304~\203-&KKH\212dn\305D}dC\330\024-T\344\355\032\350\360\210\246\3166\310-b\247\tF*o&\352\325\020\306!\246\026\004\027\177C<\303O\025\216\341\313\210\250G\303\254)MJ\210\004\t\255\224h\200,-\255\321\306P\301\022\345H\337f\224Z\000\333\357\033&\313\316\021\343\254\231 \005\370\367,>\341m\255\320\335\252\265e\226\235dFn\363t\245J%\214G\201\010\\\243V3\266\223\031]\332f\002/\367rb\310(Q\027~G#\240\030\362\270Jp4\204\002\006m*Y\007%\021\336\224\345nb\247\357\022Z\215\312m\023\206\322\177y\363\351\253:\252*\242z\324\005\227\226P{S\373Kav\030-\251/\360\006\352\177\271\344p\2332Z\034\344\014\220-@Zp\220\366\te\301\243\263\330K\262\023C\007\023\313\333\272*A\273\365\2106\201:!\251#\306~,i\370\362\010\331s\025\270\203\326\215e\023\007Y\257T1\010\266\354Z\034\210\306v>RQ\253v\331\020\242\367\031\261\035\244\304\341\350\240\301\227\313\302=A\323\347\253\202\002\204\222 \264\362""\360\346\240P\036C\252\221)SEK\343s\323Y?\212\241=\262\222\\\267\2125\333\261W\334$HHw\314\312H\335\271\003\223d\223\263h\373\016\006Pbp\366\035\254\351\016\214\243\006\350E\3658L\016I\235-\231.\306\223\304l~F\324xC\374\246h\323\300\366g\254F\303n\035\025W(\304\344:\312\265\327\311(jWpm\223\034D\352\245 \234\"\33681\215\"\037\325\242\342rV\010\207k\246\013\353\005ml\236\206\256\302\207\310\343\010\365\256\231\216\351\014\t\245Zl\275\003\016S\253\027]\025\003\003r\3676\233\307u\375\276\253:\375\207+\322:\254\320\001[\341\270k\247\276L\361\301\316`\246\002D\301*\251\215\n\034\254F;py\353&=\316\345\303/\323\030\",Sf\240]\242\251O\031\230z\372\367\300\372\322\240\264o\313\304YXyZ\002\007\315k\217\276\235\266?\311\r\301\221y?q\025\274\023\230\0369\232\236\036-\321\017\0341\206\337\243\223V\023\221u\263\010\314\336\212\265J\304_L\036F \243\227\277\022\033=$Ege\222\207\305\311\206p\026\326\254\232\212W!\302\213\335X1\312\216\031\253B>\311\314\3463\263S\236%t\205(\017\310\326\256\214 D\014#\375\212TC\214\271\200\001U\275m\377^,\020\365_\231\245\347\224Q\267km5\\\305\2258cn6\235Oef\013S\231\211\\\260\217\322\022\003\"\253\214\252\020\0069\025\234uD\0173+r\255\241\rG\016\213\341\350\253W\353&m\300\251$\314\365\252\273\355S\213\343f,\2678\006\3227\0009\363C:8\004\212\310\240>\021|\214\304\370\344$\313\001\036>pl(\032\360\341\021Z\325\266\022r\344'\226\003\376\343\022\247S\016:\254\211\007\0273\367\251\231ta:=\225\032\177\021\354\025n\344\254\213\305Y\341`\024\020DK\021\260\260t\304\215\261\306\247\363\205\271\247\351\354tj>G\006\220`k\021#\225\311KK\342\313B.33?\235^\022\376\014X/hGT\3729y\234\272\315\302|*\227\313?\201i\230zRX\234\315\246\307\347\246p:&\216\321\027D)\304\014\340\237\010\206\325\nY\010\230\224q\234%\007\331z\361\360\016o<\203\037\230\225\3255t\213\332@\311\3430|v.\017\313\272\000(2\235\231MG\365\010\272\000\253Z\332i\352.y:\343\346b\005d\301\262\202L\227\211\321Mh\021\215\316\347t3c\367\346\272\266\203v\301\354\342,z\2032\343s\023\351B65;\025\331&\327(1\217""\314D$\027\002\032\344\356\334\203\311\367;\203\324!\027\261\200-L\247^\000\\\013\343\323s\271\305l\010\266b\273\271\214\206\2256N\033%r\3041\216YI\350\033C\022\265:\314\2732W--M\301\362^Z\032\nqZ\206\310[)\255\002\230\222\305\362kHQ\225\\\206\004\331\337\313W\030\0272\263\023\351\347>g\007~\246\016n\241\243Y\220\211\331\002\013\216\263\374\305\244G\325*'\032\177\252\266E\273\037\337\244j\230_\000>\322\227<\231<\362\032m\321\232q\331y\211L\222\343\234\204\003\014G\302\253\230\367v\350.\035\377\372\211\305\260\211\354\334\374\357m\234\223\003\254UE\t\034\003\nH\3073\023Q\215\023\355\266J2\374\361X\374\226\331\002\254\320nu\342\006\2607\255X,\305\311t*\017K1\016^b\311\211\215m\014\270\310F\216\003\032\321dn<\233\231\317\037\321\";G\337\240A\277\241\222P\027U%\327\263\327\207\210\001.\325?\204\026`E\001R@\207\222\250\007\261\341s\306\250\016\376z\313\371\327\020\312\304\ti\220\322\204\004\245\261--\315\244\362O\324\231Mqz\203\254\342\017\322\032du\332X\250\247\302r\225\030,\326\335\021\2532\344s\267\261\326\2453\373p?\261\202\202\211\362\376\037\324S\254p\204*\014\364U\351xo\332E\237i\355\017\325\302D\235zGMX\024EF\356Px\313\322\314\323T6\361\224\324\205<\224\360\367\244d\027\2357\323\326\327\241\375\033\244}\214`\203\324\211\010\030P\227\034\334&\372\026\203\347\217}\343\347$lR\0338.\002\317\2126\276\355\256\241\221\303\001%\251l-\233\034\361L\372\247<C\240\222\230O\317\217<x\370@\004@\341\371?\016\256y\261\245\227\364\272\272\205Ac\264{\334!G\022F\312\310\340u\222\377\264\017H\256\221B\325m\243\002\014\206\220\244\2006\251\312\352m\0215\2006M\370z\222\2245\326W3\245y`\342\342\210\265\377F\345s\036\353&[\264\343\n\353{\300<=o\025_\312\235\211\254k%\326\315\365et\017Kk\002F\017'\013\312\022\210x\313a>\034\311P\266\212\026\3060\240\271\313t\\\351\276\373/<W\254P\305\352\315\301|\255n\016\275yS\312\303\373v\315m\231e\341\247\222\276VZh5\203\217\205Pg\250\204\320\215K\274\245\315\223?V\250\306\257\021fO\352_\202i\200\336/k\335X5ct\260\224\347M~8\262l\271|\272\337\010E""\340\024\321\236\016\237\306\354\355\235\312\246\356{\316\233\373\367\350sLe;b\034\014\270\177\177\010\010\270*\035\002\036\266\212\303K\020\014\0016\203\362\203d3\t\304r<;1\372\324\231\271\371\027Y\364\307\251Q\216\333\325m>\177\000\026\021(\347\321\337M\316\315\202\230\221\232\311L{\212-\256\022X[\353\026\306\372\305\372\376\351K\020)\243>\316\325\227W\216\372\036d\335\205E\2370\266X\261\000\255Y\243\267J\2001(\372\305\304OL.NO\223:\3465\214\273\230\351[\222\272\210\206\t\317<\0350\224\020=bRU67\220\0179\262\243Z\204\r\3116v\315\211\335{\230\313\314\315\026r\371\254n\tz\312\347w\t\363\\\214^=\227\313\013\361\312\327\363y\333qs,QQ\327%\"\220\003!\262\246|65\221\236Ie\277\367d\264\232Q2\361\220\243\230\263\244R\263\213\223\251q\024&\263\352\233\031\243R_1\212(;\326\272L\324D:\227\231\232\325\276\2330\351$\242Zlq\032#\000I\377\202\306\027\033\244\3624=;1\227-,f\247=l\310N\223A\016gt\303\254\224\354Z\367\356E}\214L\007#\312(p*\276\313\323\231\361\364l\316\233\220iX.\025\307T\310\020\333m\361\241\257i\371\261.\342@~\314D\276\230\237\243\203^2\343\301U\230\227\"\003\310\"G.&\275\236\360\232\324\253r\216\2614gR\320\233\320\002\033\027'\311\225\305\211\001\204\253\2033\270\027\332\265\2355\n\205\034\212\0132E\203T!\237~\356\321\247\234Av\250\370C\007\3063\023\205I\320\262\211\320\304-\030(\204V\225\222Z\370\321u={\226\013\302\027\222\216\206+~\027\206'~z\0348\206\002$<\034\t\204*t\017\001\t\004&\250U\025\010\021\350Z\t\210\255\231\024\205\233\025\346\341\377lz2\343Y/\236J?\242\023\"FU\240\241\326Vt\235\231\331\247\251i\215\200\263XLf\t\271_\317@\373\250\271\005\252\226))\263ba>\021W\034\036S\250*\276\370\346\222.\315\204&\346\342\373\210U\032\361\352\324\030p\226\030\2638\346S\250\200\234\226A!D\246\340\206w\237w6g\272\203\277&\223\311\177\r\301\023\2710(\005\025\307\034\tvu:cQ\000\200\r\325b\334t\216\030Gv\025\35144y6L,@\336R+\213\004DP!\313\271\333\322\332\"%\221\345\355\304\222\022?\230\314\217(\334H`H0*=\211\254\271\n\023*\266\334\374\016\345\247\004\312\017:\256k""\346\252\247\370\004q,\017(6\356\021v\261i\016\276\334V\236h4\301s\020\210\330\313\217\217\311D\312s\353\334\325=\201d*BGn\315t\331Eq=k\257\033\225\353\211A\257\246\241\3070U\352\373Q\265\023\310\373P;cl\020\t\342\366\220l9r s\300\022\307S\323\205\234\356\331\360\r\207\231\024m\305\250\203|\2526\353\212\360p\353\027y< \036-\221\344\325\346\004\366T\004\006\246\276\244\350\007\266\033\306\220\350\351\024\220\331\324\354\324t\272;\260\353U\226*\311\033\003\010L\261\312\264\333\203;$\365\025\357\264D\214g\026\372\342\3107\0345@\307\327P\312\027\337\334U_F\216\301wpIe\265,\0039\352Xj\244X\266\213/\311mV2\241%\214\022\201\351\262\227\313$JR\377\310\200\343\3554\204\316l\210\035MR* c\017H\2345Gl\250\226cdI\214T\224\212+\212'5\256\212a\022|\310\327\010:/q\261g\030\017\361\003\021\313`\250\020\024\321\037\032\205\262\212{\321\026b\357\345\310\350\275\241ns\224E2\256\263Q<\033Rn,\321\246q\t5\306\032\036N\301n\270\004i|I\331o\345\026;\262\373*\214\210\273O\325h\375V\353\200\273\1777\031\327\375g\231\211\374\223h\344\242\023Q\324N[\262\270U\214Z\315\336\344\303\0321>\252\366\246\270o\240\257\002C\266\014\016\240\365M\2756\241^@\255\207\006\327+(\273\225\271_\327c\360 r\214i\237\022\346\033$\220L\373%\305\252\026_V\304\241!r\237\253X\373\"H\003?Y\005\210\313jT\234\017\203\206\"\035\0312\024\016\210\260\211_B\226\026l\310\247\257\240 W\263\034\336\035\247i\237u\347\031\205\036\215\2435F\232p\321\233\304\032\350p\302\277U{<\227#\200\214lr\300\222<m'l\321EN\363\026\306+\372\3163\347\342[\300d\225\363\334\301|\234\010\332\252\307\306\347\023\017\276V\314\025Y\034\035p\262\264\204\034\035\243\302\304\036HY\240H\206&\362(\310=@\245$\32645\221\236LH\333\224d\222\010\251n\276\342\305\331\361\351T.\227\231\314\244'\342\217>\236bW:\035\250j\270\3055\031\001\312\350@m\252\223`b\032\032K\201\352A\316\250\370s\201sU:\253\210\2167\005\252\243\035\033\212A\342U2,`\010N\261h\362V$>(7N\234%wD\374\271\266bPB\367\2262 \240\253\332\334(\342\241\364\216\304\351 \331\357\343\017QEJ\340\310\241\001>/""[\025\26515\324~\227!\215\317\315\314\317\315\246gC\361\325\017\202\020\214\251[\236\257f\204\000\034%\323\205O\024|s\331\216\353\320\245;N\021\366l\252U[!\371\340y_2\216P\030\276\t\317\205\241P\006\264\213\330A \346%s\304\237(Lv\264S\341\255\366\356\370t\300Tb\255\016\202\327\010\210\010%\2460\325\262!wnrS\321\265\374=\247Y\027R0\303\270\200LU\017\345w\255 \250\272\3100+\3377\335v\021\274\215i\360\310m\004A#!\355UU\273\362(\252k\236\225<\332a\260\244\355\353\245\310\035\241\000\372?\023\233\371\"\277@\351\233\212\213\233A\002a\217^\226@\374u\343\245I[\237\003\255\225\200z\254\t\213\21325\250xcG\224!}\202\317I\363\002q#\234,\024\306\341\273<\205*`\307:\250Qr\017;\006\270i9\226\036&\253\243w|6\255_*\303!\303\301!\030\276\021\240_\313\323\t\370t\006P\203(\217\267\344\251\303Pd\240\267\212*\300\2354\264\005C;J%\324\211#*1\031B]\253X\327\\\202#\302\241\216\256\027\037\373b\t\250\216\202o\255\202\362\016Q\260.!A\371\271\371\002\233\227c\031Z^\034I[\023\273\336\261b\377\021\262\2615O\247'\363\361,LVL\207\323\036\273\336\261\271|~n&\272\323\367|u\213cr\337\260\337\242\376\250\256\337\217\252\376\210\336\307xe\377@\177\254\237\252\254\303\312\3073~\005\332\323\201O\026m6\265\034\306\352\340\315?\372Wb\r\004\202\32094]\273J\250\342\262c\206W\017m\326z\333\217\205\005eX\004\024z\324-\350\373[\222\365\327H\343\331TEA$^\022\247L\250+\222H\362\302\243\335\345\224x\226\"<\367\210\233\216v\303\310{\"\354\r:\023J\354\343\021\361_!\362\372;\352\270\356w\246\\\017-dT\024*Q\364\362\3674\0320\003\376\357\264\252.\017\013\010\353\025[D\347\340.\000\307.\322\231\021\324\030\357M\360\010\246\334\345@\231\276[\257\374\344\337c\035\332\341FQ\010\031\311\233\304\325]\"x\230g\330\251\257\256\262K\226\016{q\244\324hp_\\\334/\306>-\265\331K\350|^\213\332\016\017\376\310\006m\\Io\022E%\245\247\363\330!1p^2\237\344\033k\347\221\202O,\035\317\360\275\037b\031\341\324T\314MyNe\327\250\265\256\024\\\210\230\3309\272\026\207\317\033\323n1\030\024\2477\210c\020\206\272\304\336\345\216 \350\201\246""\304e\003r\243\000\237\224\025h&|\270>C\021\003\017\314?\346l}\256p\004+\014\020c\357\366\nA~\353\353\362\230P\337\366\321\242\270|\212\217I)i!\362g\304\t\213\274\203\030\203(<\245\010\343\240\355\032\032 \200\270\221\005\000O_\000\322Hgb\311\343k\321\217\200\361t\002\036\221\273T\376Ww\250\0045\265\351t\312sA\216\323A=\000\001\327\022'\206\321\212\006$B\033\224Y\2123\240e\307\265\033s\3704\2417\256d\"\235\3634\030:zX\354W\002\201*\316\315\016\rS\\\267\347\273A\326\304_\210V\311\032SE$x\253\036ET\257\327\343\325~T73\263\221\235\334\344c\311\350w\323p|\225\013\324N\014\326+\307\350\250\326\300\264\211\026F\177?\371<\025_[\242\013\307n\206\240\275\230?\3268\200\267\274\375P\364F\2169\026h\317?\234\370!\244@6\216\034C4\252\310\256\243\336NMS\243]z\357\253?\252\373~\224\211i\340hP=\237\363\0203\307U\261m\301k\213N\005Y\303\313\214txY\016\267C\327\340\254\360\0055\321\221\025\323\213\271\243\232\340\033\023\370*\245b\261\276\336-\030>7\236M\247g\217\323i:\335K\034\rG\0054\345Y\236\366\010D\331\347\305\020\247\225\262\253\001\01714\r\307E\301\226w\260\363\021\256\312\310K\2142\206(\362\206\017\3171=#\033'\3132p\016\323\2548\303\250\235\013\325Q\0109T7\232\240\275\033\335\324\260|\207\001\304;\2445\360\010J\352\004k\322\316Fg\000\3123\336hs;\235:-7=\311\252^\232f\3259\222\232\222_\375wu@\000\367\255{\000|p.[\230\230\233\230\362\274ec\244A\232\225p7X\000%\2778\237\024\242u\251\013\230\271\221\261\305\354\254\317\345\377\007\266\360$\225\235\340c\034\216\207B&\237Npt\305\271\271\311|\240b\331u\332f\314\200z\343j'2\223\223\351lzv\\\333\"A\347\343\023<\204\277\324\023\225\235\350u\333\245\201\364s<\361G\017]\232\347\335p\274\215\r\032(\272\372%\024^\233\274\r\232\020\256Ln+:\007\311\210;\335{fq:\237\231\327bJ\216\246Z1\224E#)\376\033\264t\312B\247I\010\302\302\213\257+]y\222\233.<Y\324B\177\310\207\353\250\215\343j]\255\325\243\200\315\273\267\335zM\031\222eE\345\372\272UA\021Vi\334.n\363u\343\273\221C\227C\312\027M\026\333\033\255\315\350Naw\217\323\233\004\355\036\327\344c""\2006\n\334\200\245tb.\210\265t\227\246\241]4\301X\002\354]\034X\034;\"Z\326\307\003-\371\330\217\030\324\321\203!d!\207EmC\340\013\r\200n\371r\002GN\362G\034G\341\277s\r\273\307\232G\305.\256\325\360\022K\016\327\305%\355\nxQ)\025e\321%\232\027!1\2758\223\231\305S\260^\034\r\216\360\360\272\317m\030l\001px\313\332\252\240\231\311\224\313\333\3331*|\352j\322\3027\261\321\036\370\202\324\313\314\002\"\311\357\332FOo#\252\302\021\254\360M\264Ey\204!^\262\240\335\232NJ0\331\215\345TKk\034\311,\302\254\247L_\302\252\202\321J\276;\337\361\232\351%u\315\247\346,\375?\2524\316\247<\017\317\234\007\000\355*v\030\001\000hX3\037\251\343\314m \256\256~r\206w\274\243v\025zh\007\366|:\225\367\231#\274\2636\370\224+q\276\037\3326\2757\351\027\325$2\352\242/`\tz\032\327\352\344tz\374-\232\225\325:dX\225v8\316VW\247\002\n&\023O\200\251\321\315\240\026o'\016\327\301@\244\353*\305F\007\017v\nr\226\344W\274\344\244\305K\334\326\032\034fp\241\361\341\211\177\300\002\343\212\364\205\345\235q\240\035\2260o\324\344\345\343\\\200\016/\020\241\201\342b\300\3107\271\247\314\177&\202L\345[\007\351n\301yh\352\2473g\026\361\002f{\371\347GK\317\264\023\227\205\341\322\021FGyrJ\362\031\371q\275\363a\236\353\347\332H\013']\345W\362\316\216#b\214\037\211K\217\3504\222\027\021_\312k\003\217\372v(\371\2673g\206\023\217\022\267\215R\251\200\347\211yVy\037\004c|\22557\th\\BW:\236\227_\002<.Y\016\032\215\371\010]\035\236\253Ea\276\255\223\261\227\017\305\303\252\344\336G:\372\206\"\032\212\310\"\3046susu\022\240/\252\262\204\247W^\370G\246\331\3332Un\262\223\357\344\362\243=P\262\233\240+P\367Jd9\340\343#\n\205\232\211\354\244PH\2248\002\026\003\ta}n\240%\265P(\342e\312\205\302Pb\340\257\362\204\017>\350\277\202V\274A\345\001\036\034\362<\314\310\3710f\006\322j\305;u\211\321w\n\313e{9Y\305\260I\1772[\035\303\031h\352\213H\246\313\030#\222q\323A8Y\255\261\352\366V k\335\250F|\300\253.\234.\266\307\2043\324\310#\363\242\252\022\333=1\303\225\267\313\177\313\0330X6\370n\230\316[K=L\215\217\247g1\022;\227.<""\241\010\255\324\363LN<za4\274Ohl.\2579\367t?\342\030@\036\377%\325|\027i\223\\\241 Rq\253)\3565\363\247c\314Va\305*\233\000\024w\215\315\364\374+.\233\235FAL\244\260\215\005\271\247vF4?\252\343.#\323(v@\004a\204\373'\323\303=\344\034\\\302\336\326r-\021\340\251\275\325\335\225\207\342\225\316J\227fr\371E\221\3047\361\262\nr\207S\020\347\320\027\274\203]D6\n\244n0jD\275\353\027w\"\374l\272$S\313\026\227U\321\231NZ\262\270PS\373f<5/f\332\273\232;\264\267\200\314\313\236\302\255\351\367*DHm\261\0327\312e\244\000$\022)\271H=\204\241\257g\205&\2002s\300#\351\201\221\005\346\200\337\\\033\237\331\336\022\330\006 N\267\221w\306\201\3401\235\032O\317 \236\2437f~.3\213\231\231\3314\024\235\316\314d\360\362\267\334\342Xar.\013\332g\252\000\262\267\200\213\266eG\356\246\321w\325\240\261P\031\014\205\tW\232?\225\351\331\177t\213\247\250Odr\320\261\027\205\271\3714\250q\000T\255\331\370\353\351\374g\005\340U\274h\377\244\343\274\324C\030\316zV\010\316^\246\267\001\324K\363\216(\244\213\004\274\014:<\014eAZ\274\204m\201\314\372\262U,\300D\205\263\220\275D\347\340I4\3219\352|T\231\235\236\313+\253\204<lzr:\005\300\202\231-\204)\233\266\243\317\277Eo\022q\037\267\256M\244g\347`\026h6\344\364\344\362/\000\326\271'\231I\234\211g\263\221\205\247`%\301sd^\334\247\201\026\202U\314.\316\010\274\210\352\311\342|D\301\370*\242>:\242\375\354\"\242\330\223\314\370\367\263\351\\Nmz\302\013l\351\022\333\020\216\211\324\020z\035\347fd.C$R{\304X2\276\r8\346\016\344.7 \307\335\177\334\375\366\343.7\034\037u\277\261\312\307!u\275\3528\376\242\343\370k\216\217\2747\230\n\224\201\337S\373\\S\315\024&8n\211\322p%ymc\243\264\226(O\371\333\013\342L\025\207\2161\205\177b3\220:\325T=D\240\201\226\025\306\005\225)&\333\326\217\"\244\2233\275C%\251_\341\002\033]\n\010\330\025Dd@l\tB\273\270\314\215#?\337(\360\355\340\021\005*\366:\036e$\357&\010\345{0\366\227\210\006d\034\0145\360iD;\360\312\202r\325\254\250\343V\365\243I\343\316\237\r\244G\227&^L\210\356OW\220\017\2453\300\002\311\0215l\304\324\260\021""\254!p;y\364\241\271\335\216\314=\336\201\271]N\304\355vX\356\261\217\312\355vP\3561\216\311\365\212\320\301\025\352l\204\270t\306\211\025q:h\260\224B\316`\306V|\326vD\226o\021\250T\336\354@V7\225\266A\2222\236\nW\340\240\237\250\034\336r\202\007\246\351\271\3722\342t\0175Y\327\321RAd\320\322\330f\342}\351\304\366\304\351\332\023\337\202\016\2478\034\223\343\273\013@;\301_;-K;D\2156+\247\361\001\273'\010\257w/\251\272\235S=\204)\207\236\025\"\037l|\020\350\340{\211\251H\313\016U\346\271\311\236\214\315-\343)'\362o\2702-'\\\017]\232\362d.\233\371\001$\263\324t!\225\033'yNK\032Oe\361\014\300\311\311\\:\037J\316fr\351p\342\242^\345\370tf~>3;\305u\347\243rP\334\367gq\212\277#x\276\036\212K\312\372-\234B~\303\275\337E\363\004t\3631\320\315\323xS\260\2104\023\177\n\360\273\230\346\335\234\031`\265\225\372:\374\301\311\306X\375\360yW\241\343\250\304^{m\313\275\334\217\"\334\301\301\335\326\323s\317@\177!\315\207\344c\032\020)\026\320y=S\310\204h\374\363\355|\327\017M\300\355(x\350S\001\364D\030\322\324\314\034\250. \220\027<\235R%)\334\226N\276\031\243\n\377\343\355p\342O\030m\274\214\020\326@\026$\027\355\352\266|\016\177\033\373\035\010S&\250\024ez\251WKP\000\037Iy\247\007\250\026\377\002\265\301?\026\036\211\215\017/\315m\372\353}\302~\004q\200\232~\360\231v6\246\377tF\355\316\r\355*\025\377}$\336\241\252\241\003\010\365+Rb\216E\2148\324\016\343MKdv\235\265\335\214\027\234\241o\277\025[)\364sr\375\273+\"\366Z\314\345\247\211\025\023\261\240\rrl\345\034\027<8`\363\2142\201\206O\341\365\316\337\r\234\304\013\257|DS\336X\325\316\343\r\207;\373\267w\370nn\242\027\002GF\304\347\242\236>\226\312\"\221\316\246\024\361\221\251~UH\246\302\037\006\034\254\022\021n2\237\232\210;\"\024\003q\002\307\234t\271\335\276\373\025\327q\367\242\221ov\\z\310f@\200\247\024\342!%\357\330o\355\000\360\320\212\361\345\205\026N\354\321\341\221\031\236\200\033\314\256;.0i\2776\030Q\216\214\353Q\031(\360\001S\226\347\213G\025\251\202\260U,[\325\270<t\030\304f\252kU#\013\324\2355\256:v\200^\021\224""\"iWsl\261\370\216`n\327\236\340\360Q\312\352\002\006g\3234\253\301\022 \001\026\346\267\267\340\037\332\217\n\263 \343g\315\225,\220\357qbyS\331t\272 \315\273)\340\254\205\371t\026\031\243*\342\263\034\350\013A\226\360/$\231\372}:;[HM\002\261\023\255\3702\306\322\223s\331t \307\277\366d\252\257Iv\361e\3233s\221k\211\035\217\332\001\320|\226\005\032\227\274\247\360J\360\345\205V\202\226K\034C{\367\024\260\310\304\002\342\272a\225\265\314\032\355\244\362%@\203\332\273\023T\307|Gt\360\013\233\271\265s:\264\307\270\321\311\314\230\341q\2666>\221 O\206\345D\3028\3551\2561\231\031\323\030gk\215i\t\221\024\303\321\213i\022}L\262\037\356\234\255\003^\246(\310sB\034\275\n\226\361O\217Y\245\315\347$\355E\323p\355\340\037\216\251\024\214A\2544\020\357R\220\215VC\221\021\237\037<\031;\367}\372Yz\242\240,y\232\350\n\313%\230\253/%\355\214\004\355D\005/d-7\237\002\266\303\013\230\373\223\313\216\313\200\\\016\221\026\021\3062\254;\227\007\251S\322\2228\223\252\257P09\322J\311Y\276\027\334.\027m)\365\362\275\024 \007\343O\n\261\r\353\331\330Jj\014i\013\265\025\314\032K\203\304\034\316\n4\227\371>\215\002\034k/\336;\312\\(\247\361\334\206dq/+=Sx.\277\366'\372\253\200\244\027Q\345^\004\312i\203Ui\330\345\231\324s\364\204\344\026\347\321\027D\311\022\312ZR\240\243\370\215\226\311\340\204T\276=J5\020U\310_\257o\224\201d\356\277/\361Et\331\027\241\262j\"\"\322\n\343YX\212\351\211\034\236\034\t\242\240\362\033\212\325k\272\250~\210?a\332\346e\204\350\032d\301\377JC\341\347\360\3471\237z\032\n\2758\2422V;\360\321(\225\304\237\002y\375\361\205\250%=@\223\370\267d\226\275\\/&S\253\246d9E\243FUQ\214\211\010!\322JP\024\030\265\016=\342\027\223\313;\354h\226\317U\374\232\336\370F\001|\022\t\316\366\272\260\027EvB<\241\201\010\344z>\273\202\344v~\244\033@\364G\200\227\366\032\001V_f\030\274Z6Z\223\350\372T\006\223\226\203\001\317\005\014\307\331\246;\342\364\254\252U)\030\3452|h:h[\022\341\016\241\"Xo\331\346\263*\"3\243\277ub\373\344\004F.&\200~\347\313F\305{\212\003\212\310\213\201\t\345""\232[f\261\356\232\310\233\344&d\265\315Y\035\260\030>\240/\362\250=R8\365\203?\026Q \364t-e`Q\351~\211O%\353|\212\022\211\0001\001\360\336q\345\013MX\035\243\031\270\314:\2505-\316\317\207\255!hOB\352\244g\nB\330\345f\274nw\000RhS\324Ys\336\t\2170\304\314\344\013\3779\232j\330R\226V\t\272=,\220\210\275\017&-\316\252\024\005s\225\"MZ\317R\331\331\364\004\037\325C\207\022y\307\003\372\016\374{>\227}.\274\252\006\020 \177\214\204\242H\"JB\206G\010\303>\035N\253\374f\005:\257\312s\243\025\n\336\331\306\370R[u\344Q\003\322p/\377\026(\264\311p\266+E\313\006\212'//\241\225\003\253\212M\315\364F1R\364\264nli\351hS\247\267e\351G@\227\030\306\021\341\277\002\020%\203\036\370\370\201e,h\333e\016(\242\233{\212E\315\005X\024\202iQ\230\213\213R\036T\017\205\252[+jW}\025\331y\207\237\240+N\336\332Ed\334\037F\322E\016.R\277a$\000\352\242\311\337\333@\306\361\007\225\275b\331\361&\207>a\215\233 \317\217\004\237#|\264\2421)\374K\027\013\376\255\257\233%1d\266\223\337+\331\356\350\003\346{\362WzT\n\274\263\236['7V\310\333[\004\254)\326k\033f\336\306)(\341\2751\206\213\001\224bR\005\315\224/\202\307y\241h\336S\362[\244\277e\347\273\244VK\227L/i\263\206\327\225\325\324Y\035\354\025\220\236\000\340c\240:\207\271\2318\206\033\267E\023_\205\"v\261@\241f\204N\364\200j\270\343\251\204a\3450\302\211\347\235\327\355=a:N-\355\024)i\336!\306W<\255\300\302\323x`~D,\264)h;\035<\tLM\340%\206\274\341?j\0370\016}\342\322/N\023%^\034\014\326B|X\261j\216Kq\213\024\214H\337(\254\346\323Z\374\301]2zg\305\341.\343\271\200\322\325\207\340(\024\264\337*\001\010\177\\Xn\316\352\252Y\301\023\333\000\031\375\334:\024\020\020trF\307\006Dx=#\"\005B>\320\010\367g\204\3473\354\364\364\373;\003\3614\021\236\317\260\32336^!\302\021\032\035\275\320%p!\3444\215\361\227\036\351*\215v\205\3068H\217\343\033\215q\213v\367\210F8=\217\364\203F\271@\243\275\237\321\216OI%C\276\317\270\020\220\200;42\030$\322=\032\353\031\215p\212\026\220z3\235(\254Z%\356P\320G\032\031m\022\360\231RD.\005\344\342A\222\225\270\350E\334\335""\343U\304K-P\261\376J\013V/\240\177\r\353\017_\302\210\314_\210t9\233VE/\255_\264\204\311\204+H{\361\014\003\215\315\323\025\217\202/\026\\\375\315\201\027E\310\361JWA\375\340QN\243\366(\352\222\235\301c\375h\026\325\203(\300\277\236wx\r\004$\346\205\226U\\Y\206\177\256U2m\253\344V\255\365Ub\311\030\035M\333\3210Z\2336\022\20544V\310PYT\022\220\322\034}\327\212v\213\036\322\024;\251\324y\n]x\245\2433L\360\030z\344m1\344\"\373\031\340\3672\2409\341\232\247C{\010\331\361\311\241\037\026\340\320\241\206\377<\316+\310\375\313M\224\376\020\312\022\322\n\342\304\223\324\033\201J\237\r\276\024\035u\034@\031\2270Q~\202H\311=G4\310\333\204\014\253F\325\013\235\022d\222*]/\000\220\200\312\020\250Pt\014\2111J\236\224Q\267H\036\014>\301\016\037\327\354\222\243\244\314\002n\203\252\227\351/\n7\360\267f\027\004\233.\300\177$j\321\257\020\272*\346&\305\243\003@\\\\\201|c\0010s\371\025>\362\371\035\370D\213\324^\376\271\200\303\261\311\335\316sc;\266\337-#\330\004@#\"\003\226bD*\254\311@*\256.Z\327*],C\275\332\350Br\375\373\023\265v\361]o1V.\r\225PR\201\023\223U\327\372\242\347\220<\023\231\3435E\322\005\305\242\241\210\242\235\\hz,\330\237\252\021//\003G\347\243j\376,\215\260\3713t\332\346\345(\334\247Qh\362\201VD0\177\325!O\000\360\n\tr\345\0237\374\3250\227\322\330\232\310f6M\320e!BO\363\313\021\341\2340\201\t\227\021rCl\206\023\316\211\224)\302\305\244X\241\347DJ\026\262\000\316\003\262\023\371\036&\254DS9\306\036\271\250\204\245\227\"\256\322\300\375LUr\025\224\370\227\266\260\260\323\202\360K\363_D\27028\2118\274\366X\250J\314%\022\206\302w\331Z\006M!\306h\0252TE\030\247\252vU\242$\374u\305\334\313\223\351\361hz\274\\\030)Xu{Kt\203\0367\030a\n\257\306Y\235+`\030w\231\311\034Lv\311\333\037\0242W\251\004s\013\037}\241\254l_d\367M\215\234-\374\253\366\006\325\370\340\003\222P\nx(i\241\020\342/\344\353\341\375\3415|\200US\001\301\250B\334\262\206\242O\325\021#%\232!\236\t\252\032\366\233e\324iJj\243Fx\243\222\274\264\315\247\273D\204\317\373}\352Q\216\364PX}\234{\252\253\233=&""\3266&\3026&b8\344\364\212\213\277\215\210\272\215\213\265\215\211\260\365\307\002\304\355\200\t\356+\210\013\024\010n\221\t\356: \333\250\340\304\321\021\275\241\370\202pPAt$A\\\370@\267\230\201\210@\201\230\350\200\310M\022qq\002\321;\202bB\0060\231\316\312\214RIbC$\375\261\2201\261\317\376B\360&\317\216\303K\016=+u!\302bMTV\330\317\370\327\261\000\223\350:\000\350B\231%@\336\360F\247\214\322O\310J\302\251,&a\003VQ\210m.\321\000<s\2026\316\311\303\006%\331c1Y\334\311\210\024\260fC;\216\272\240\334\251\027\351=\336\363\301+\212\354\210\374\210\\\005f\001\231\004\363\003\234\022\334\305](`\031\374\335r\361\237\350:^\r\274\311;\241\370\032\270z\321y \366;\252\355\200I\265EQD\365\213\326\305/\220+jW=\024\252\033$\254rX\033\377\206h\247d\232\362/\213\362j\"\275\231\006\362H\300\016\357-\360f}\203\257\210\022\332&H\375\025\374\2070\247s\231\205!\016\3778[[\205eX\321\220\267%(\304\366\266L\331\026)\377\3519|\377F\353\257\235\273\343{\243\007\177>\363\372f\347\375\317w\006v\276\333\355\377O\317\301\215\273\355S\273=\007\275g_?\350\374\345Vk\241etz\357\266{~\273z\342\364\371\306\205F\252\261pp\352J\363\335\346\006d\255\356dw^\035\234:\373\372\273\346\205f\352\240\357\275\203S\247\017\372\3165N6\026\233\003\315\321\303s\0377\027\232f\353\313\235\236\235K;\257\332\177n\337k/\034\364\215\354,\354\224\332_\354\026\366S\207P\270\247\321\377\237\277t\3762\320\352\377\355\375\023'\337\371m\360\304\311\276\327\243\235\336+Mj\364v\347\263\307\273\243\273\023{=\330\320\203\327Nc\340\240\357Bc\364\340\324\325\346Pk\264\225\352\364\016\355\\i\367\377v\376\304\351\013\235\363_\354\214\356L\264\317\356~\263\227\332\203\236\376\345\365fc\275\005\265\215B\211\276\023\247o\302\027\023;g\332\267\332\324o\030\"\177\320\003\235\357\364\302\363o\227`\234\235\376{\355\201\366\203\366\257{\003{\243\207P\311\253\306;\r\243\3414\2577\247Z\017Z\365\235t\273\277=\000\300\032\270~0\364\371\301g\267\017n\017\036\014A\023\002l7\240\225Y\030\341?\366\021\2427G\333Wve\326g-\243\365\252\323\373y\347s\030""\025\014\370\364\271\316_\206wR;\371\366\265]\030\312\365\326\340\316\300o\037\2358\235\350|\n\365\265o\264\237\355\246v\177\334\3579<u\266svh\247\177\347\346Nyw\000{\373\036\000\267\363Ir\307\200)\350\273\322<\325:\331Z Xu\177\273\320x\334|\271\323\217\240\201~|\330\354\377\355\342\211\323\027;\027\260\265\233m\003\241\362Mc\274\001u\236o\0147\215&\300\351B\343\233f\252\271\000C\271u\257solop\177@\214\346v\353\325\316\273;PO\242\325sp\355^{\010\306\364\311\211\323\367\333\003X\317\303\306\327M\350\352\007\215\177\264.\357\364\370\036^4W[\013\370\360Cs\263eh\017\037aK\320\271\316_\006\001k.vF\376k\357\324~O\247\367\223\316'0'8\205\027\032C\315\321\316G\200E\235dj\257\177\357\346^\271\223\315uz\357\265\007w\007~\273B\020\345\301\274\334C\360\337\372\014'\350s\370\332\337i\310\272\367\267\335\255\275W\"\371A;\325^P\345o\301kp\220\017\332\323{g\366iz\240\215\257\001\205\372\316u\316\301Jj\237\304iBD\354G\374y\257\323\007\330|p\352zk\000\260\345_\355\231\275\313\373g\240\217P9\017GT|\007\326D\017$&\340;J\2223B\243\034h<h\374\202\325\204\320\364*@\365\324yQ\340\003\\\240_v\276\234\3343~;w\342\364h\273\247}\261\375\343\336\311\275\205=\203&\031\032\370\374\313\366\363\335\005\377\232\246$\352\355\353\361\3270\311H\001\036\354\374\332y4\273o\354\277b\3648q\2659\330\032\000\0049\371a\363\317\315\257[\000\301k\235k\270~W\333/v\215\203\336\201\316\000\201\355\260\367\"P\206\037\001\tzO\275\356y\375\301k\310{\3575\265\370U\343r\023\007\371\371\327\355\255]\tk\304\370\205N/%\211E\360U\333h\273\273\217\367\240k\203;g\333\017\001\223\256\322R\304\3054\336\332\004<\377\025\020\0371\003\247\022\010G_s\242uvg\024\227\355\303\366(\2421T#\206\261;\320\351}\274\373po\024\021\002\260\373\341n\317\356E\\G\214\227\367\033\206 \"\014\240\317\250\354\001\216\342\260\027\000t\320{\263\005Og^\0177\212M\230\002\\\265\356\316\343\266\275\367\317N.\337\311\033\035c\371\340T\337\353t\343\003\240\013\200\007Hg\214F\275\231\001\340\256\340\340p\240\320\265\033\255\207LS>n\216\023\202\237\372\224""\027\366\355\335\017\367\006\350M\r\034\273\366e\343\317\320+$\244b\321\311*\316\323\350>m\276j\365\266\376\276\363\363n\217Vw\202R\277\337\251\267'\021B\375\rZ\335\033\215g\315\024\222\237[\210\322\360\373\360\033\215\006m\356\254\264\001c\037\356\366\355=\331O\211Z\016O!&\236\202\3319<\365~\347\375O\232E\300\277>\234\341\374\356\265\275\331N\366E\347\305\017\007\347\372;\375\200\332\032\241?8w\265y\273\325\337\032fb\004kX\220\227\207\273\247\366z\020-?\006\310<\333I!\321\206\036~\321\371\002X\317\336\324\376(\315\347\375\366h{b\367\354\036\300\353v\3476L\025\316e_\347,bji\347\213\366\342\356\000S.9_\207\275H\244\010\341\000[:\203\337\354\366\013,\322\246\377\321\356\340\336\200H\206\002\2737w_\0029N\375v\346\304\351\376F\017-\326\203\233@\207\037\355\336\336\353\377\355\321\211\323\327[\027Z\251\326\302!\261\231W4\tW:W\206\220u\035\364\3657\316c\363\332\224\303Bm\336j\376\002$\031F\204\364\017\340\361^\263\2603\331\036\001<\207\222)X\000\274x\221H\273\355QZ\274\310\326>#\266\366-P\366\374^\177\014[\373O\n\231\312]\300\216\203{\017\0218\210\3111X\004\243><\205\204\343\235\023\247?\307\031|\377u\005JB'q\251\234\003\254>8\007\355\302\314\361\377\r\372\253\317\037\364\277u\t\350\\/\314\021\226\307\364\203sP%\276M5G\233\223\255\333P\2617\265'\360\351\372\215\203\0337\017\357\334\375m\253\347\304\311S\377q^\017\274~\014\013\346\002\323\360\367_\377\014m\366\341,\026w\372;\237\317\354/\354\027;\013Y\240\204\330Q\001\356\203S\037AW\353\374x\r\372\002\357\177\307!\002\375\307\347'\224\003d\345\344\353E y\220\177\016\327H#\003\242\005\224\002\002\214d\366~\353e\373|\373+\300\3221A\366\220m\377\002S\004\220\351{\375\2441\003\350y\243\225C\236\002\344\313\204\311\000\260\337{\235k@\017/\212\334\247\200:@\221\217\377\3013$\311\355\376\303\336\217\304\274\364^\002\302\322{\275s\375\257\273\013\235\357\346;\363\013\235\205\347\235\347/\016\316\000\271>8s\366\240\367\335\377\3747Q\037\200\316zs\024\340p\362zg\000\247\022\220\006D\034@\217\323\255\363\255\321\303^\300\205\006q""\240Q\300\204\217?9\370\350\343\203\353(a\310\237\017\201\331=\010\313\t\007\247p\276\036A\307\317 \023\216\177\201u\007\204\334\243\243\017\333\217y\201\370%\232\337\222\260\024_\377\025\310?\240\357'\000\361\367\2566o\300\354\376\336\347C\020/>o\246:\037#\202\003\311\372\020\t\310\301\251\313\235\313\310\025\337mo\243\274\327\337\270J\\\007\327!\256\354\257Q\300\300\344\217\232\317ZHL:W\221\223<kg\200\273\235:/\245\277\236\203\341\021\375\377\035Z\207LA\016\361\347?\251\303\304\000\020\202\317\200[\342b\274*Q\266\357\365t\347\n\002\270\357F\353k\240<\220\204\"l\251\365\005\340@\261}y\367\235\335\225=h\270\257\203h\315\324(ux\025X\324\001\254?Q\t%\302\332\200\311\035\304\006\336!b\206\202\315S(\207\"\0030\027\020y:\037\334\355\334\235\0009\365)\320\301>\230\017\\\204\327p\001~\322\\\355\334B\232\365\305\336\302!\276\001U\362\276\003\t\034\006\361\250\231k\275\203\022\323U\206\034\2223,\223h\235\332y\017\004\231\0242\265\321\337\256#\321\030kZ\260\266{\210l\374\r\360\354\335\275W\032\2639\337\030i\276\352$P\344\325\207\001\260\200\345+F\363)\021\312\241=\"\201\3377^5O\342` \343\326gB\342!\0300Fu\316\201\\\360\355\356\324\336W\204O7n\"\351\222B\021L\221,\202\224\367\322\236\000\326\031\006V\037S0\244\245\235\217\357\354l\242\020G\360\006\340@\301+\037\036\\\005\031t\n\006\360!Ao\006\010\312o7O\234\036\354\334Vj\002\020\004\004\372\307Mdc\257W\032c\310\355\001\334HQ\230\030\366\353\3777\372\265\324C`\345\333\204\355H!/5J \363\247\016\025;M\035|1\214\030\003\243!Vy\277\255F3\266w{\377\322>0=\244\214\037\337\350\334\270\337\376\032\326\350\340\211\323\227;\227\020{\211\202|\013Z\304\200\324\224\000\177Q\2302P~\370\357\346\003 \330\347.5~\006,\200\246?\3057\352\3265\356\214\352\236\333\271\300\352\311+J\270\204\354\010:v\363\0260\273\317A\364\216@\270\317Z\014\001\000\035\310\211{\033\373\013\307C8\376.\032\341\344D*\204;\274|\005)\370\375\246\220;S\310\306\037\020o\357aL9s\342\013x\3079\036\201Vy\216\357\001\023\273&\326\324\r\211R}\\\020\230\367\035\204\016\025|\320""\236b)\211\027\037\"\370\355\003(\226\022\330\205\213\343\024\310\352X\374l\347\332(\254V\340\232Plx\004u\022(\3619rj\224\353\305\214\215\357}\275\377\031\320h\350)`\320\027$:\2404x\r\253by\034\262\316!\001\204\307\306\273<u\347\032\247\232=\315\376Cb\237\013(\372\014\300\324\201\034p\030\224\324#?\206o\032\306\361>>\037\337\362\237\032\267@\332\234\004\332\250\252\270\200R[\250\022\000\022\200}\370K\000\023@3\311\024\037\240\211\310\371\005j\310}\0049.x\352X\005o\017B\215#_\265\027\216\232\037X\325<5(\035\241\220\"\001\377\315\356\345\275wP\322\007\352\3553,\\h\374\255\365\031\260\334\313\355?\261\n)T\321\200a\201\244\231\346\007\315\025\222\r\372X-~\271{\025\224uaP\000J\001\215\036b_\204F\tO\237\260:\013O\037\263\360\340\245\375\345u\035z\220\203\205\017\350\013\240\007\024\375\000\022\362\315~\236\007\240%\315|\253\237gT\274tz?m\376k\307K\351\014\334g\233\001\003\363\246\207\225I\002\022\r\375\257\273\317\366&\367E\221\317\272\025a\350P\345iR\233YvF\352\302\000\277\333\356\351\214\n9\232d\004TL\337{=\2072\024r'Q\035\316\313W{\375\\\342\363\256%pB?\004\310^l.\360\313\000\020\210\213\255\005\222\366\240+'U\346\301\247\t@\202[\200&\021\324\006\351<R\233\221\316\010*\350\237\201Tr,j\303\337ES\033\242D>\366\006h\370\021\301\2178\361\235\235Wr8\337\355\256\"K\345\"\237w/\202\023}\tVd\2519\300#\376\204\330\375\000\317\272z9\000q\201\331\034\2121$\232\212\232\276no\242H\300E\316\237\370\014\326C\004DH]\002\210$;\311\261\275\001\344\213\307\203\010\177\027\r\021&u:DN\235F\315\373\365+\244\273Bq\236\002\231\211\026\022\212\232\357\001#\"\373\023.\264\257A\315\270\337\"R\375+He?\302\252\373\244\375\357=)\277\340\360\241\016\326\\\036\357\032\273l\022\020v\260\233\302\252\327/\250>k\212R\034\032\334y\007\265K)K \020\204\0301p]\314\031r7%\262\000\030\037\356\276\273\273\261\267\300\355\016\262\"B\234\024\027\000`\035N\315\205\316\371\333\224\363}\373\325n\217O\027\273\320\2710Hd\243\007\264\000\024\246`9#\341@\336y\310j\314\265\346Wl|bU\275\326\374\020\004\370<io\347\224\034""\231jg\333\257\016\2056{\035\245-.\375+\250\030\017w\276a9\223\207r\023\321I\tC\013\254X\236\243\322\310C>\275\323\271\003S-4n\300\354\326\2004T\306[\003\206\220\017\370\365\270u\342\247}H\036|\242\313\037\240\302\365\202\032>A\332\377E\002\256\264\313\276\350L\376\320\371\341\307\316\217\377\320\354\247\211N\202\204-\314A\241\262O\222f$\331\003\207\200\244\317I&\307\251P\242\372\341\251\376N?\2207\200\3635\200\335SB|\026\305/\261\005\346\353\346g\320\355\313;\177B\346\240f\255\037)\376\271\033d\253=\333\376fw\022\326\314C\020\222a4\027\233Y\200\334*IM\347.7`\262.2\353\240\021}\322\371\004\340>\271g\355\277B\276r\003\255\251\007h9\305\305\370\017\034\375\265\346\303\316\215\257\001\201\372\366\330\032\001\274\363\327\235[;\277t\276\311\354\003I\277\335\372W\373\311nJ\330[\210\223v\356\216\355\335\334{\t\202&\314\353\235ow\237\354I\313 N\335\000\022GPR\273X\311nun=\"\023F\357G\235\217\350\033\324\003\353lw\203~\207le\267\251\221\303\336\367;\357\313IY\300O\266\310L\300\237\220yix\347I\233\2147\347\010\307:\327\277\203\225\352\356=\3367\264<X>\302\260\003k\004%\3422kad`\335\371\021V\336\277A3_\307\371\326\361\t'g\240\371-`\324;@\004j\355+\273\227@u\370\023\340\251\317\n\220i-\000\037;y\216\255\336\023\260\302zQ\202\0069\005\273\220i/\210\356\261\231\353\333=w\237\372\375}\347\353\247\235\247\377\354\374\263\300b\016\352\"\367y1\223b(\214\300\322\234\3775r\021\200L\357\231\327_4\026:\275@\023\261\336>\320\310\263\257k >\2145\212\310\231\204\r\245\357\365\337\241.\027\264\335\005\251\266\3676\210o\366\010L\001\t\340\340\223\233\235\233\310\373HK\272\306\022\326{@\256\356\223}l}w4d\276As\332\010\033\367\310X\213\335\350n\254=\201\366\036\340\234\037\223\305\032\365\373\0365\323\344\006\370\353\356\202\267\236\034\002\275\017\002\322\364hp\237O]$\261\344*\222_4\273\277\007\034Xr\252\316\365/\311P\227\242\242H9\031-Z7[F\347\004R\202\253\327\016A\032>u\342$\360'\245\330\222=\215\337\315\326\343\035Cz!\022D\025$\226\234\204\345;*\026\257\340H_5/\203\214\205\020G\233\355)""\351$\272\210\232\022\251\343\022y\237\001\225\031\007\325h\036\355\207@@4\272r\253\365\034Fp\305\347\273\371r\257g\257_\251\354\337\242\"t\271\021\374A~v\021TyP\366\377\272\373|OZ\267\311\037\202\335y\217\354\333\347<\007Kgtbob\377,\332o{A2\241\217\230\026\307\231&\201\373\036\242\376/V\017\310[\007\244O\022\335c\241\223\210\320\277\001\313\200\"_\356\\A`\365\007\004\325w\241\377\027\331#4\320\276\007\275\372\347\376\350\376\330\276qp\005\247\266\326\031\372\257\275\367\367\215\375\032\320\227\203+\330\323\177\202\036;\266k\250e\366\013.%\325\343\367\337\240\307\201\316\276\004\261\033\232\242\2766{\302\335d\033\300w \262]\207\t\233%\036\360S\347\247\177\352<\343\343\346\213\226\001\030\004\254n\003\344\246\265\246\301n\217>)9\376\320\252c\327BN\213O\201\314\016x\002\346\017h\321\217-v\261{\261\346@\003\211\301-\344\212BO\3539\370\030ED\365v\213\314\277\007\210\330 \262u>ec\353\265}X\033\300z\020/\204\337\343\364\353k\215\357\311\200.\207\010\265\206\305n\224\373\244\302:\320\271\237\336[\330[\335\007\301\370\\\343}\224\010\321\274\207\206\367\337&{\310}y\320\213)\275'\005\026\237k\234n^\241\332\316\241 \267@\336\257\213\000\325\303\213h:|\205\326\343\253\315;\344%=\2112\010\223*\370y\247a5\267Z\033@:\000\321j\315\363 \305\3643\037Dn\253\327\206\\\367a\373>\220\331mZ?\027\321\224\010\177\320gp\022\013\000\0018\204\304wY\344@K\032\2765\353\255\014\324~\205(\271\366g\n\244\266+\210\266i\300\244+Dz\304P\376\014m\276 \022\271\014\263\001}\271D\262\31496\210\277\"\362\320Xn\376\211_\310\272D\356\211\215\366O{#\373\033\235\305\247\310\352]\240\323\347.5\312 Y\201\326\306T\355Zkrg\244\375\257\275\224Fx7\320e\374\336!\231N6y\022P\301S\263\3379\313\024\n\346\242\277\36119D\201 \"?J\220\362\362#\000\224\230\3476Y\273\210\375!\312{\\\212D\372\017H\t\370\034G\213\364o\030j\321\211\0310n\354\3146\312\235\222p.\266\225H\367\t\221\031%,k\336\033\316\277\022\223\377\272\007\3557\313\254U!THd}\210\366\177|\333\242\021\303\342\004\001\023Mx\010\260\022\263\210\013\300pj\200S\320""\333\241\316\020\210\027(X\237o|L\270\000\230\250\036\204aU\231R\201\245\334E\037a\347\313'\373=\373o\3639\032h{;\017\320\220\204+m \271\263\32664\3177,\261\317Zk\000\300KD\325\245w;\rt\345\206\362J\302d|\325\374\030\035\221\\\326\363o\235\335y\004\\\254\037\375[\177m\367\010\267\036s\261\227\355~,\377\262\375\321\356\017{\257\250\313Q\376A$\324\232]{\024\343\035>l~\320\254 a\"\227\216\364\306#]\274\265\363\357\335\005\257\310\264\n~@\274\372`\307h\222\203\020\245}E\\>A\335K\312\000#\300\034\377\002\275\211\025c\210(_EGD\034Q~g/\222(\177\200\270\327,\000\374~\334\355\331=\337y\234\353\344Pb\352\024\310\377\250Qe\350\017\222\3263\270n\0365rX\017\214s\030\215lH\026\036w\276\312\240m2\370\206\024\025\004\261\357\367\277B\346\323\207\023{\226Z!?\037\005j\274\354|3Gk\026u\022\262\323 2\320\237\363\215\033l\263!\177\306E\034\024\026:\007\014\353r\253\2079\227x\370\225\261\010\255\234\214E\257\377\205\004\346P\023\300\177E7\334\336\000r\200W\030W1\200\366\242\033\010\261\004\364\013E\244\233\350\357d\275\027\206\371\270\261\212K\346\032\310x\304\013A\323\203\371\356A?\311GX\004\377\342\377\014\034`OW@Q\353m\376\275e\356\214F\360\235\317w\006\333\003\330\312\371hW\004\353\252\215\263\315\357Pe<\2441\t\217\235\372a\347\036z\034I$M\t\034\360|\365Q\316|d\236\t\374\304a\357\226t9\n>\240\234\221\207l\001\353mL\002\225\002\212\275\363\363\356;\273\206\306\n>l^f\006\376\315.\275}\210\306A\026\352\240{\034\213\360k\373\316^\277\260\221\2118\002\244\304_\242,:\334\031\376\033\350\340O\367\273y\032\241\347A\r\325n\346\220}\241\327$h\\\377#\224T\026,\211:]\"r\350\371yP-\030\334\277\001\312\213\325yFn6O\256\274\335\332\332\241i\367;\205\257\240.\204\204\025q\001cy\266\200\"\177\265{qw\001\021o\253E\n\331\377k\032M\267\365\210\t\374\235\235\255\366+$\360\tH\033%<\213\324\246\260\221\257\332\237\222,\367\257\316?~\362\r\373\022\"+L\3047\260\226\237\267\027\332\006v\342\337R]\351\273\330\271\210>p\364\336\367\301\350na\260\016\312t\223\373\003\377\037c\317\004\351";
    PyObject *data = __Pyx_DecompressString(cstring, 18795, 1);
    if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error)
    const char* const bytes = __Pyx_PyBytes_AsString(data);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) }
    #endif
    #else /* compression: none (58195 bytes) */
const char* const bytes = "0.10.00.34.00.40.00.45.0A :class:`Color` from a font's color palette, together with its name\n    ID.A color palette from a font's ``CPAL`` table.A color value. Colors are eight bits per channel RGB plus alpha\n    transparency.\n\n    Wraps `hb_color_t\n    <https://harfbuzz.github.io/harfbuzz-hb-ot-color.html#hb-color-t>`_.\n    A named instance defined in the font's ``fvar`` table.A pair of glyph and color index.\n\n    A color index of ``0xFFFF`` does not refer to a palette color, but\n    indicates that the foreground color should be used.\n\n    Wraps `hb_ot_color_layer_t\n    <https://harfbuzz.github.io/harfbuzz-hb-ot-color.html#hb-ot-color-layer-t>`_.\n    All shapers failedAlpha channel value.Blue channel value.Buffer()Bytes per row; 0 means auto-calculate on input, filled on output.Callable[[Blob, int, int, str, float, GlyphExtents, object], bool]Callable[[ColorLine, float, float, float, float, float, float, object], None]Callable[[ColorLine, float, float, float, float, object], None]Callable[[Color, bool, object], None]Callable[[Face, object], List[str]]Callable[[Face, str, object], bytes]Callable[[Font, int, int, object], int]Callable[[Font, int, object], int]Callable[[Font, int, object], (int, int, int)]Callable[[Font, int, object], str]Callable[[Font, object], FontExtents]Callable[[PaintCompositeMode, object], None]Callable[[float, float, float, float, float, float, object], None]Callable[[float, float, float, float, object], None]Callable[[float, float, object], None]Callable[[int, object], Color]Callable[[int, object], None]Callable[[int, object], bool]Callable[[object], None]Callable[str]Color | NoneData type for holding HarfBuzz's clustering behavior options. The\n    cluster level dictates one aspect of how HarfBuzz will treat non-base\n    characters during shaping.\n\n    :attr:`MONOTONE_GRAPHEMES` is the default, because it maintains backward\n    compatibility with older versions of HarfBuzz. New client programs that\n    do not need to mainta""in such backward compatibility are recommended to\n    use :attr:`MONOTONE_CHARACTERS` instead of the default.\n\n    .. attribute:: MONOTONE_GRAPHEMES\n       :value: 0\n\n       Return cluster values grouped by graphemes into monotone order.\n       Non-base characters are merged into the cluster of the base character\n       that precedes them. There is also cluster merging every time the\n       clusters will otherwise become non-monotone.\n\n    .. attribute:: MONOTONE_CHARACTERS\n       :value: 1\n\n       Return cluster values grouped into monotone order. Non-base\n       characters are initially assigned their own cluster values, which are\n       not merged into preceding base clusters. This allows HarfBuzz to\n       perform additional operations like reorder sequences of adjacent\n       marks. The output is still monotone, but the cluster values are more\n       granular.\n\n    .. attribute:: CHARACTERS\n       :value: 2\n\n       Don't group cluster values. Non-base characters are assigned their\n       own cluster values, which are not merged into preceding base\n       clusters. Moreover, the cluster values are not merged into monotone\n       order. This is the most granular cluster level, and it is useful for\n       clients that need to know the exact cluster values of each character,\n       but is harder to use for clients, since clusters might appear in any\n       order.\n\n    .. attribute:: GRAPHEMES\n       :value: 3\n\n       Only group clusters, but don't enforce monotone order. Non-base\n       characters are merged into the cluster of the base character that\n       precedes them. This is similar to the Unicode Grapheme Cluster\n       algorithm, but it is not exactly the same. The output is not forced\n       to be monotone. This is useful for clients that want to use HarfBuzz\n       as a cheap implementation of the Unicode Grapheme Cluster algorithm.\n\n    .. attribute:: DEFAULT\n       :value: MONOTONE_GRAPHEMES\n\n       Default c""luster level, equal to :attr:`MONOTONE_GRAPHEMES`.\n\n    Wraps `hb_buffer_cluster_level_t\n    <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-cluster-level-t>`_.\n    Data type for holding variation-axis values.\n\n    Wraps `hb_ot_var_axis_info_t\n    <https://harfbuzz.github.io/harfbuzz-hb-ot-var.html#hb-ot-var-axis-info-t>`_.\n    Dict[str, Union[int, bool, Sequence[Tuple[int, int, Union[int, bool]]]]] | NoneDict[str, float]Distance from the left extremum of the glyph to the right extremum.Distance from the top extremum of the glyph to the y-origin.Distance from the top extremum of the glyph to the bottom extremum.Distance from the x-origin to the left extremum of the glyph.Face()Face.color_palette_color_get_name_id()Face.color_palettesFace.face.has_layout_glyph_classesFace.get_color_palette()Face.get_glyph_color_layers()Face.get_glyph_color_svg()Face.get_language_feature_tags()Face.get_layout_baseline()Face.get_layout_glyph_class()Face.get_lookup_glyph_alternates()Face.get_script_language_tags()Face.get_table_script_tags()Face.glyph_has_color_paint()Face.has_color_layersFace.has_color_paintFace.has_color_palettesFace.has_color_pngFace.has_color_svgFace.has_layout_positioningFace.has_layout_substitutionFace.has_math_dataFace.is_glyph_extended_math_shape()Failed to open: Flags for :class:`Buffer`.\n\n    .. attribute:: DEFAULT\n       :value: 0x00\n\n       The default buffer flag.\n\n    .. attribute:: BOT\n       :value: 0x01\n\n       Flag indicating that special handling of the beginning of text\n       paragraph can be applied to this buffer. Should usually be set,\n       unless you are passing to the buffer only part of the text without\n       the full context.\n\n    .. attribute:: EOT\n       :value: 0x02\n\n       Flag indicating that special handling of the end of text paragraph\n       can be applied to this buffer, similar to :attr:`BOT`.\n\n    .. attribute:: PRESERVE_DEFAULT_IGNORABLES\n       :value: 0x04\n\n       Flag indication ""that character with Default_Ignorable Unicode\n       property should use the corresponding glyph from the font, instead of\n       hiding them (done by replacing them with the space glyph and zeroing\n       the advance width.) This flag takes precedence over\n       :attr:`REMOVE_DEFAULT_IGNORABLES`.\n\n    .. attribute:: REMOVE_DEFAULT_IGNORABLES\n       :value: 0x08\n\n       Flag indication that character with Default_Ignorable Unicode\n       property should be removed from glyph string instead of hiding them\n       (done by replacing them with the space glyph and zeroing the advance\n       width.) :attr:`PRESERVE_DEFAULT_IGNORABLES` takes precedence over\n       this flag.\n\n    .. attribute:: DO_NOT_INSERT_DOTTED_CIRCLE\n       :value: 0x10\n\n       Flag indicating that a dotted circle should not be inserted in the\n       rendering of incorrect character sequences (such at <0905 093E>).\n\n    .. attribute:: VERIFY\n       :value: 0x20\n\n       Flag indicating that the :func:`shape` call and its variants should\n       perform various verification processes on the results of the shaping\n       operation on the buffer. If the verification fails, then either a\n       buffer message is sent, if a message handler is installed on the\n       buffer, or a message is written to standard error. In either case,\n       the shaping result might be modified to show the failed output.\n\n    .. attribute:: PRODUCE_UNSAFE_TO_CONCAT\n       :value: 0x40\n\n       Flag indicating that the :attr:`GlyphFlags.UNSAFE_TO_CONCAT`\n       glyph-flag should be produced by the shaper. By default it will not\n       be produced since it incurs a cost.\n\n    .. attribute:: PRODUCE_SAFE_TO_INSERT_TATWEEL\n       :value: 0x80\n\n       Flag indicating that the :attr:`GlyphFlags.SAFE_TO_INSERT_TATWEEL`\n       glyph-flag should be produced by the shaper. By default it will not\n       be produced.\n\n    Wraps `hb_buffer_flags_t\n    <https://harfbuzz.github.io/harfbuzz-hb-buff""er.html#hb-buffer-flags-t>`_.\n    Flags for :class:`GlyphInfo`.\n\n    .. attribute:: UNSAFE_TO_BREAK\n       :value: 0x01\n\n       Indicates that if input text is broken at the beginning of the cluster\n       this glyph is part of, then both sides need to be re-shaped, as the\n       result might be different. On the flip side, it means that when this\n       flag is not present, then it is safe to break the glyph-run at the\n       beginning of this cluster, and the two sides will represent the exact\n       same result one would get if breaking input text at the beginning of\n       this cluster and shaping the two sides separately. This can be used\n       to optimize paragraph layout, by avoiding re-shaping of each line\n       after line-breaking.\n\n    .. attribute:: UNSAFE_TO_CONCAT\n       :value: 0x02\n\n       Indicates that if input text is changed on one side of the beginning\n       of the cluster this glyph is part of, then the shaping results for\n       the other side might change. Note that the absence of this flag\n       will NOT by itself mean that it IS safe to concat text. Only two\n       pieces of text both of which clear of this flag can be concatenated\n       safely. This can be used to optimize paragraph layout, by avoiding\n       re-shaping of each line after line-breaking, by limiting the\n       reshaping to a small piece around the breaking position only, even\n       if the breaking position carries the :attr:`UNSAFE_TO_BREAK` or\n       when hyphenation or other text transformation happens at line-break\n       position, in the following way:\n       1. Iterate back from the line-break position until the first\n       cluster start position that is NOT unsafe-to-concat,\n       2. shape the segment from there till the end of line,\n       3. check whether the resulting glyph-run also is clear of the\n       unsafe-to-concat at its start-of-text position; if it is, just\n       splice it into place and the line is shaped; If no""t, move on to a\n       position further back that is clear of unsafe-to-concat and retry\n       from there, and repeat.\n       At the start of next line a similar algorithm can be implemented.\n       That is:\n       1. Iterate forward from the line-break position until the first\n       cluster start position that is NOT unsafe-to-concat,\n       2. shape the segment from beginning of the line to that position,\n       3. check whether the resulting glyph-run also is clear of the\n       unsafe-to-concat at its end-of-text position; if it is, just splice\n       it into place and the beginning is shaped; If not, move on to a\n       position further forward that is clear of unsafe-to-concat and\n       retry up to there, and repeat.\n       A slight complication will arise in the implementation of the\n       algorithm above, because while our buffer API has a way to return\n       flags for position corresponding to start-of-text, there is\n       currently no position corresponding to end-of-text. This limitation\n       can be alleviated by shaping more text than needed and looking for\n       unsafe-to-concat flag within text clusters.\n       The :attr:`UNSAFE_TO_BREAK` flag will always imply this flag. To\n       use this flag, you must enable the buffer flag\n       :attr:`BufferFlags.PRODUCE_UNSAFE_TO_CONCAT` during shaping,\n       otherwise the buffer flag will not be reliably produced.\n\n    .. attribute:: SAFE_TO_INSERT_TATWEEL\n       :value: 0x04\n\n       In scripts that use elongation (Arabic, Mongolian, Syriac, etc.),\n       this flag signifies that it is safe to insert a U+0640 TATWEEL\n       character before this cluster for elongation. This flag does not\n       determine the script-specific elongation places, but only when it is\n       safe to do the elongation without interrupting text shaping.\n\n    Wraps `hb_glyph_flags_t\n    <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-glyph-flags-t>`_.\n    Flags for :class:`OTVarAxisIn""fo`.\n\n    .. attribute:: HIDDEN\n       :value: 0x01\n\n       The axis should not be exposed directly in user interfaces.\n\n    Wraps `hb_ot_var_axis_flags_t\n    <https://harfbuzz.github.io/harfbuzz-hb-ot-var.html#hb-ot-var-axis-flags-t>`_.\n    Flags for math glyph parts.\n\n    .. attribute:: EXTENDER\n       :value: 0x01\n\n       This is an extender glyph part that can be repeated to reach the\n       desired length.\n\n    Wraps `hb_ot_math_glyph_part_flags_t\n    <https://harfbuzz.github.io/harfbuzz-hb-ot-math.html#hb-ot-math-glyph-part-flags-t>`_.\n    Flags that control what glyph information are serialized in\n    :meth:`Buffer.serialize`.\n\n    .. attribute:: DEFAULT\n       :value: 0x00\n\n       Serialize glyph names, clusters and positions.\n\n    .. attribute:: NO_CLUSTERS\n       :value: 0x01\n\n       Do not serialize glyph cluster.\n\n    .. attribute:: NO_POSITIONS\n       :value: 0x02\n\n       Do not serialize glyph position information.\n\n    .. attribute:: NO_GLYPH_NAMES\n       :value: 0x04\n\n       Do not serialize glyph name.\n\n    .. attribute:: GLYPH_EXTENTS\n       :value: 0x08\n\n       Serialize glyph extents.\n\n    .. attribute:: GLYPH_FLAGS\n       :value: 0x10\n\n       Serialize glyph flags.\n\n    .. attribute:: NO_ADVANCES\n       :value: 0x20\n\n       Do not serialize glyph advances, glyph offsets will reflect absolute\n       glyph positions.\n\n       Note: when this flag is used with a partial range of the buffer\n       (i.e. ``start`` is not 0), calculating the absolute positions has a\n       cost proportional to ``start``. If the buffer is serialized in many\n       small chunks, this can lead to quadratic behavior. It is recommended\n       to use a larger ``buf_size`` to minimize this cost.\n\n    Wraps `hb_buffer_serialize_flags_t\n    <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-serialize-flags-t>`_.\n    Flags that describe the properties of a color palette.\n\n    .. attribute:: DEFAULT""\n       :value: 0x00\n\n       Default indicating that there is nothing special to note about a\n       color palette.\n\n    .. attribute:: USABLE_WITH_LIGHT_BACKGROUND\n       :value: 0x01\n\n       Flag indicating that the color palette is appropriate to use when\n       displaying the font on a light background such as white.\n\n    .. attribute:: USABLE_WITH_DARK_BACKGROUND\n       :value: 0x02\n\n       Flag indicating that the color palette is appropriate to use when\n       displaying the font on a dark background such as black.\n\n    Wraps `hb_ot_color_palette_flags_t\n    <https://harfbuzz.github.io/harfbuzz-hb-ot-color.html#hb-ot-color-palette-flags-t>`_.\n    FontFuncs()Font()Font.draw_glyph()Font.get_glyph_color_png()Font.get_math_constant()Font.get_math_glyph_assembly()Font.get_math_glyph_italics_correction()Font.get_math_glyph_kerning()Font.get_math_glyph_kernings()Font.get_math_glyph_top_accent_attachment()Font.get_math_glyph_variants()Font.get_math_min_connector_overlap()Font-wide extent values, measured in scaled units.\n\n    Note that typically ``ascender`` is positive and ``descender`` negative,\n    in coordinate systems that grow up.\n\n    Wraps `hb_font_extents_t\n    <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-extents-t>`_.\n    Glyph extent values, measured in font units.\n\n    Note that ``height`` is negative, in coordinate systems that grow up.\n\n    Wraps `hb_glyph_extents_t\n    <https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-glyph-extents-t>`_.\n    Green channel value.Height in pixels.Index of the axis in the variation-axis array.Information about a color stop on a color line.\n\n    Color lines typically have offsets ranging between 0 and 1, but that is\n    not required.\n\n    The ``is_foreground`` and ``color`` fields have the same semantics as in\n    the color callback set by\n    :meth:`PaintFuncs.set_color_func`.\n\n    Note: despite ``color`` being unpremultiplied here, interpolation in\n    gradients ""shall happen in premultiplied space. See the OpenType spec\n    `COLR\n    <https://learn.microsoft.com/en-us/typography/opentype/spec/colr>`_\n    section for details.\n\n    Wraps `hb_color_stop_t\n    <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-color-stop-t>`_.\n    Information for a \"part\" component of a math-variant glyph. Large\n    variants for stretchable math glyphs (such as parentheses) can be\n    constructed on the fly from parts.\n\n    Wraps `hb_ot_math_glyph_part_t\n    <https://harfbuzz.github.io/harfbuzz-hb-ot-math.html#hb-ot-math-glyph-part-t>`_.\n    Input num of subtables(Invalid Unicode stringList[Color]List[OTColor]List[OTColorLayer]List[OTMathGlyphVariant]List[OTMathKernEntry]List[OTNameEntry]List[Tuple[List[Tuple[int, int, int]], List[Tuple[int, int, int]]]]List[bytes]List[float]List[int]List of boolean properties that can be configured on the subset input.\n\n    .. attribute:: DEFAULT\n\n       All flags at their default value of false.\n\n    .. attribute:: NO_HINTING\n\n       If set hinting instructions will be dropped in the produced subset.\n       Otherwise hinting instructions will be retained.\n\n    .. attribute:: RETAIN_GIDS\n\n       If set glyph indices will not be modified in the produced subset.\n       If glyphs are dropped their indices will be retained as an empty\n       glyph.\n\n    .. attribute:: DESUBROUTINIZE\n\n       If set and subsetting a CFF font the subsetter will attempt to\n       remove subroutines from the CFF glyphs.\n\n    .. attribute:: NAME_LEGACY\n\n       If set non-unicode name records will be retained in the subset.\n\n    .. attribute:: SET_OVERLAPS_FLAG\n\n       If set the subsetter will set the ``OVERLAP_SIMPLE`` flag on each\n       simple glyph.\n\n    .. attribute:: PASSTHROUGH_UNRECOGNIZED\n\n       If set the subsetter will not drop unrecognized tables and instead\n       pass them through untouched.\n\n    .. attribute:: NOTDEF_OUTLINE\n\n       If set the notdef glyph outline w""ill be retained in the final\n       subset.\n\n    .. attribute:: GLYPH_NAMES\n\n       If set the PS glyph names will be retained in the final subset.\n\n    .. attribute:: NO_PRUNE_UNICODE_RANGES\n\n       If set then the unicode ranges in ``OS/2`` will not be recalculated.\n\n    .. attribute:: NO_LAYOUT_CLOSURE\n\n       If set do not perform glyph closure on layout substitution rules\n       (``GSUB``).\n\n    Wraps `hb_subset_flags_t\n    <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-flags-t>`_.\n    List of sets that can be configured on the subset input.\n\n    .. attribute:: GLYPH_INDEX\n\n       The set of glyph indexes to retain in the subset.\n\n    .. attribute:: UNICODE\n\n       The set of unicode codepoints to retain in the subset.\n\n    .. attribute:: NO_SUBSET_TABLE_TAG\n\n       The set of table tags which specifies tables that should not be\n       subsetted.\n\n    .. attribute:: DROP_TABLE_TAG\n\n       The set of table tags which specifies tables which will be dropped\n       in the subset.\n\n    .. attribute:: NAME_ID\n\n       The set of name ids that will be retained.\n\n    .. attribute:: NAME_LANG_ID\n\n       The set of name lang ids that will be retained.\n\n    .. attribute:: LAYOUT_FEATURE_TAG\n\n       The set of layout feature tags that will be retained in the subset.\n\n    .. attribute:: LAYOUT_SCRIPT_TAG\n\n       The set of layout script tags that will be retained in the subset.\n       Defaults to all tags.\n\n    Wraps `hb_subset_sets_t\n    <https://harfbuzz.github.io/harfbuzz-hb-subset.html#hb-subset-sets-t>`_.\n    List[str]List[str] | NoneMap({%s})Math constants from the OpenType ``MATH`` table.\n\n    Wraps `hb_ot_math_constant_t\n    <https://harfbuzz.github.io/harfbuzz-hb-ot-math.html#hb-ot-math-constant-t>`_.\n    Math kerning (cut-in) information for a glyph.\n\n    Wraps `hb_ot_math_kern_entry_t\n    <https://harfbuzz.github.io/harfbuzz-hb-ot-math.html#hb-ot-math-kern-entry-t>`_.\n    Math-variant ""information for a glyph.\n\n    Wraps `hb_ot_math_glyph_variant_t\n    <https://harfbuzz.github.io/harfbuzz-hb-ot-math.html#hb-ot-math-glyph-variant-t>`_.\n    Metric tags corresponding to `MVAR Value Tags\n    <https://docs.microsoft.com/en-us/typography/opentype/spec/mvar#value-tags>`_.\n\n    Wraps `hb_ot_metrics_tag_t\n    <https://harfbuzz.github.io/harfbuzz-hb-ot-metrics.html#hb-ot-metrics-tag-t>`_.\n    NoneNote that Cython is deliberately stricter than PEP-484 and rejects subclasses of builtin types. If you need to pass subclasses then set the 'annotation_typing' directive to False.OTNameIdPredefined | intPass draw_state to Font.draw_glyphPickling of struct members such as self._hb_glyph_info must be explicitly requested with @auto_pickle(True)Pickling of struct members such as self._hb_glyph_position must be explicitly requested with @auto_pickle(True)Pixel-buffer extents for raster operations.\n\n    Wraps `hb_raster_extents_t\n    <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-extents-t>`_.\n    Pixel format for raster images.\n\n    .. attribute:: A8\n\n       8-bit alpha-only coverage.\n\n    .. attribute:: BGRA32\n\n       32-bit BGRA color.\n\n    Wraps `hb_raster_format_t\n    <https://harfbuzz.github.io/harfbuzz-hb-raster.html#hb-raster-format-t>`_.\n    Predefined values for the OpenType ``name`` table Name ID.\n\n    .. attribute:: COPYRIGHT\n\n       Copyright notice.\n\n    .. attribute:: FONT_FAMILY\n\n       Font Family name.\n\n    .. attribute:: FONT_SUBFAMILY\n\n       Font Subfamily name.\n\n    .. attribute:: UNIQUE_ID\n\n       Unique font identifier.\n\n    .. attribute:: FULL_NAME\n\n       Full font name that reflects all family and relevant subfamily\n       descriptors.\n\n    .. attribute:: VERSION_STRING\n\n       Version string.\n\n    .. attribute:: POSTSCRIPT_NAME\n\n       PostScript name for the font.\n\n    .. attribute:: TRADEMARK\n\n       Trademark.\n\n    .. attribute:: MANUFACTURER\n\n       Manufacturer ""name.\n\n    .. attribute:: DESIGNER\n\n       Designer.\n\n    .. attribute:: DESCRIPTION\n\n       Description.\n\n    .. attribute:: VENDOR_URL\n\n       URL of font vendor.\n\n    .. attribute:: DESIGNER_URL\n\n       URL of typeface designer.\n\n    .. attribute:: LICENSE\n\n       License description.\n\n    .. attribute:: LICENSE_URL\n\n       License information URL.\n\n    .. attribute:: TYPOGRAPHIC_FAMILY\n\n       Typographic family name.\n\n    .. attribute:: TYPOGRAPHIC_SUBFAMILY\n\n       Typographic subfamily name.\n\n    .. attribute:: MAC_FULL_NAME\n\n       Compatible full name (Macintosh only).\n\n    .. attribute:: SAMPLE_TEXT\n\n       Sample text.\n\n    .. attribute:: CID_FINDFONT_NAME\n\n       PostScript CID findfont name.\n\n    .. attribute:: WWS_FAMILY\n\n       WWS family name.\n\n    .. attribute:: WWS_SUBFAMILY\n\n       WWS subfamily name.\n\n    .. attribute:: LIGHT_BACKGROUND\n\n       Light background palette.\n\n    .. attribute:: DARK_BACKGROUND\n\n       Dark background palette.\n\n    .. attribute:: VARIATIONS_PS_PREFIX\n\n       Variations PostScript name prefix.\n\n    .. attribute:: INVALID\n\n       Value to represent a nonexistent name ID.\n\n    Wraps `hb_ot_name_id_predefined_t\n    <https://harfbuzz.github.io/harfbuzz-hb-ot-name.html#hb-ot-name-id-predefined-t>`_.\n    RasterExtents | NoneRasterImage | NoneRed channel value.Set({...})Set[int]Set({%s})Structure representing a name ID in a particular language.\n\n    Wraps `hb_ot_name_entry_t\n    <https://harfbuzz.github.io/harfbuzz-hb-ot-name.html#hb-ot-name-entry-t>`_.\n    Style tags defined by `OpenType Design-Variation Axis Tag Registry\n    <https://docs.microsoft.com/en-us/typography/opentype/spec/dvaraxisreg>`_.\n\n    .. attribute:: ITALIC\n\n       Used to vary between non-italic and italic. A value of 0 can be\n       interpreted as \"Roman\" (non-italic); a value of 1 can be interpreted\n       as (fully) italic.\n\n    .. attribute:: OPTICAL_SIZE\n\n       U""sed to vary design to suit different text sizes. Non-zero. Values\n       can be interpreted as text size, in points.\n\n    .. attribute:: SLANT_ANGLE\n\n       Used to vary between upright and slanted text. Values must be\n       greater than -90 and less than +90. Values can be interpreted as\n       the angle, in counter-clockwise degrees, of oblique slant from\n       whatever the designer considers to be upright for that font design.\n       Typical right-leaning Italic fonts have a negative slant angle\n       (typically around -12).\n\n    .. attribute:: SLANT_RATIO\n\n       Same as :attr:`SLANT_ANGLE` expressed as a ratio. Typical\n       right-leaning Italic fonts have a positive slant ratio (typically\n       around 0.2).\n\n    .. attribute:: WIDTH\n\n       Used to vary width of text from narrower to wider. Non-zero. Values\n       can be interpreted as a percentage of whatever the font designer\n       considers \"normal width\" for that font design.\n\n    .. attribute:: WEIGHT\n\n       Used to vary stroke thicknesses or other design details to give\n       variation from lighter to blacker. Values can be interpreted in\n       direct comparison to values for usWeightClass in the OS/2 table, or\n       the CSS font-weight property.\n\n    Wraps `hb_style_tag_t\n    <https://harfbuzz.github.io/harfbuzz-hb-style.html#hb-style-tag-t>`_.\n    Subsetting failedThe BCP 47 language tag, or ``None`` if the language cannot be determined.The GDEF classes defined for glyphs.\n\n    .. attribute:: UNCLASSIFIED\n       :value: 0\n\n       Glyphs not matching the other classifications.\n\n    .. attribute:: BASE_GLYPH\n       :value: 1\n\n       Spacing, single characters, capable of accepting marks.\n\n    .. attribute:: LIGATURE\n       :value: 2\n\n       Glyphs that represent ligation of multiple characters.\n\n    .. attribute:: MARK\n       :value: 3\n\n       Non-spacing, combining glyphs that represent marks.\n\n    .. attribute:: COMPONENT\n       :value"": 4\n\n       Spacing glyphs that represent part of a single character.\n\n    Wraps `hb_ot_layout_glyph_class_t\n    <https://harfbuzz.github.io/harfbuzz-hb-ot-layout.html#hb-ot-layout-glyph-class-t>`_.\n    The advance width of the variant.The buffer serialization and de-serialization format used in\n    :meth:`Buffer.serialize`.\n\n    .. attribute:: TEXT\n\n       A human-readable, plain text format.\n\n    .. attribute:: JSON\n\n       A machine-readable JSON format.\n\n    .. attribute:: INVALID\n\n       Invalid format.\n\n    Wraps `hb_buffer_serialize_format_t\n    <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-serialize-format-t>`_.\n    The :class:`OTColorPaletteFlags` flags for the palette.The :class:`OTVarAxisFlags` flags for the axis.The color, unpremultiplied.The colors that make up the palette.The depth of typographic descenders.The design-space coordinates corresponding to the named instance.The glyph ID of the layer.The glyph index of the variant.The glyph index of the variant part.The height of typographic ascenders.The kern value of the entry.The length of the connector on the starting side of the variant part.The length of the connector on the ending side of the variant part.The math kerning-table types defined for the four corners of a glyph.\n\n    .. attribute:: TOP_RIGHT\n       :value: 0\n\n       The top right corner of the glyph.\n\n    .. attribute:: TOP_LEFT\n       :value: 1\n\n       The top left corner of the glyph.\n\n    .. attribute:: BOTTOM_RIGHT\n       :value: 2\n\n       The bottom right corner of the glyph.\n\n    .. attribute:: BOTTOM_LEFT\n       :value: 3\n\n       The bottom left corner of the glyph.\n\n    Wraps `hb_ot_math_kern_t\n    <https://harfbuzz.github.io/harfbuzz-hb-ot-math.html#hb-ot-math-kern-t>`_.\n    The maximum height at which this entry should be used.The maximum value on the variation axis that the font covers.The minimum value on the variation axis that the font covers.The name ID, as an "":class:`OTNameIdPredefined` value or a raw :class:`int` if it does not match any of the predefined ones.The ``name`` table Name ID that provides display names for the axis.The ``name`` table Name ID that provides display names for the \"Subfamily name\" defined for the given named instance.The ``name`` table Name ID that provides display names for the \"PostScript name\" defined for the given named instance.The ``name`` table Name ID that provides display names for the palette, or ``None`` if no name is associated.The offset of the color stop.The palette color index of the layer.The position on the variation axis corresponding to the font's defaults.The suggested line-spacing gap.The tag identifying the design variation of the axis.The total advance of the part.The type of :class:`Buffer` contents.\n\n    .. attribute:: INVALID\n       :value: 0\n\n       Initial value for new buffer.\n\n    .. attribute:: UNICODE\n       :value: 1\n\n       The buffer contains input characters (before shaping).\n\n    .. attribute:: GLYPHS\n       :value: 2\n\n       The buffer contains output glyphs (after shaping).\n\n    Wraps `hb_buffer_content_type_t\n    <https://harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-content-type-t>`_.\n    The values of this enumeration describe the compositing modes that can\n    be used when combining temporary redirected drawing with the backdrop.\n\n    See the OpenType spec `COLR\n    <https://learn.microsoft.com/en-us/typography/opentype/spec/colr>`_\n    section for details.\n\n    .. attribute:: CLEAR\n\n       Clear destination layer (bounded).\n\n    .. attribute:: SRC\n\n       Replace destination layer (bounded).\n\n    .. attribute:: DEST\n\n       Ignore the source.\n\n    .. attribute:: SRC_OVER\n\n       Draw source layer on top of destination layer (bounded).\n\n    .. attribute:: DEST_OVER\n\n       Draw destination on top of source.\n\n    .. attribute:: SRC_IN\n\n       Draw source where there was destination content (unbou""nded).\n\n    .. attribute:: DEST_IN\n\n       Leave destination only where there was source content (unbounded).\n\n    .. attribute:: SRC_OUT\n\n       Draw source where there was no destination content (unbounded).\n\n    .. attribute:: DEST_OUT\n\n       Leave destination only where there was no source content.\n\n    .. attribute:: SRC_ATOP\n\n       Draw source on top of destination content and only there.\n\n    .. attribute:: DEST_ATOP\n\n       Leave destination on top of source content and only there (unbounded).\n\n    .. attribute:: XOR\n\n       Source and destination are shown where there is only one of them.\n\n    .. attribute:: PLUS\n\n       Source and destination layers are accumulated.\n\n    .. attribute:: SCREEN\n\n       Source and destination are complemented and multiplied. This causes\n       the result to be at least as light as the lighter inputs.\n\n    .. attribute:: OVERLAY\n\n       Multiplies or screens, depending on the lightness of the destination\n       color.\n\n    .. attribute:: DARKEN\n\n       Replaces the destination with the source if it is darker, otherwise\n       keeps the source.\n\n    .. attribute:: LIGHTEN\n\n       Replaces the destination with the source if it is lighter, otherwise\n       keeps the source.\n\n    .. attribute:: COLOR_DODGE\n\n       Brightens the destination color to reflect the source color.\n\n    .. attribute:: COLOR_BURN\n\n       Darkens the destination color to reflect the source color.\n\n    .. attribute:: HARD_LIGHT\n\n       Multiplies or screens, dependent on source color.\n\n    .. attribute:: SOFT_LIGHT\n\n       Darkens or lightens, dependent on source color.\n\n    .. attribute:: DIFFERENCE\n\n       Takes the difference of the source and destination color.\n\n    .. attribute:: EXCLUSION\n\n       Produces an effect similar to difference, but with lower contrast.\n\n    .. attribute:: MULTIPLY\n\n       Source and destination layers are multiplied. This causes the result\n       t""o be at least as dark as the darker inputs.\n\n    .. attribute:: HSL_HUE\n\n       Creates a color with the hue of the source and the saturation and\n       luminosity of the target.\n\n    .. attribute:: HSL_SATURATION\n\n       Creates a color with the saturation of the source and the hue and\n       luminosity of the target. Painting with this mode onto a gray area\n       produces no change.\n\n    .. attribute:: HSL_COLOR\n\n       Creates a color with the hue and saturation of the source and the\n       luminosity of the target. This preserves the gray levels of the\n       target and is useful for coloring monochrome images or tinting color\n       images.\n\n    .. attribute:: HSL_LUMINOSITY\n\n       Creates a color with the luminosity of the source and the hue and\n       saturation of the target. This produces an inverse effect to\n       :attr:`HSL_COLOR`.\n\n    Wraps `hb_paint_composite_mode_t\n    <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-composite-mode-t>`_.\n    The values of this enumeration determine how color values outside the\n    minimum and maximum defined offset on a :class:`ColorLine` are\n    determined.\n\n    See the OpenType spec `COLR\n    <https://learn.microsoft.com/en-us/typography/opentype/spec/colr>`_\n    section for details.\n\n    .. attribute:: PAD\n\n       Outside the defined interval, the color of the closest color stop is\n       used.\n\n    .. attribute:: REPEAT\n\n       The color line is repeated over repeated multiples of the defined\n       interval.\n\n    .. attribute:: REFLECT\n\n       The color line is repeated over repeated intervals, as for the repeat\n       mode. However, in each repeated interval, the ordering of color stops\n       is the reverse of the adjacent interval.\n\n    Wraps `hb_paint_extend_t\n    <https://harfbuzz.github.io/harfbuzz-hb-paint.html#hb-paint-extend-t>`_.\n    Tuple[List[OTMathGlyphPart], int]Tuple[float | None, float | None, float | None] | NoneTuple[int, int] |"" NoneUnion[str, Path]\n\nUse :obj:`Whether the color is the foreground.Width in pixels.X coordinate of the left edge of the image in glyph space.Y coordinate of the bottom edge of the image in glyph space.).?\n\n, : 'add_note:class:`OTMathGlyphPartFlags` flags for the part... deprecated:: disableenablefloat | Nonegcindex out of range for feature array capacity instead` instead.int | Noneinvalid baseline tag 'invalid constantinvalid kern is deprecatedisenabledno default __reduce__ due to non-trivial __cinit__) != num of graph nodes(serialize()serialize_with_tag()src/uharfbuzz/_blob.pxisrc/uharfbuzz/_buffer.pxisrc/uharfbuzz/_draw.pxisrc/uharfbuzz/_face.pxisrc/uharfbuzz/_font.pxisrc/uharfbuzz/_harfbuzz.pyxsrc/uharfbuzz/_map.pxisrc/uharfbuzz/_paint.pxisrc/uharfbuzz/_raster.pxisrc/uharfbuzz/_serialize.pxisrc/uharfbuzz/_set.pxisrc/uharfbuzz/_subset.pxistr | None<stringsource>, use A8ACCENT_BASE_HEIGHTAXIS_HEIGHTBASE_GLYPHBGRA32BOTBOTTOM_LEFTBOTTOM_RIGHTBlobBlob.__reduce_cython__Blob.__setstate_cython__Blob.from_file_pathBufferBufferClusterLevelBufferContentTypeBufferFlagsBufferSerializeFlagsBufferSerializeFormatBuffer.__reduce_cython__Buffer.__setstate_cython__Buffer.add_codepointsBuffer.add_strBuffer.add_utf8Buffer.clear_contentsBuffer.createBuffer.guess_segment_propertiesBuffer.resetBuffer.serializeBuffer.set_language_from_ot_tagBuffer.set_message_funcBuffer.set_script_from_ot_tagCAP_HEIGHTCHARACTERSCID_FINDFONT_NAMECLEARCOLOR_BURNCOLOR_DODGECOMPONENTCOPYRIGHTCallableColorColorLineColorLine.__reduce_cython__ColorLine.__setstate_cython__ColorStopColor.from_intColor.to_intDARKENDARK_BACKGROUNDDEFAULTDEFAULT_REPLACEMENT_CODEPOINTDEFINEDDELIMITED_SUB_FORMULA_MIN_HEIGHTDESCRIPTIONDESIGNERDESIGNER_URLDESTDEST_ATOPDEST_INDEST_OUTDEST_OVERDESUBROUTINIZEDIFFERENCEDISPLAY_OPERATOR_MIN_HEIGHTDO_NOT_INSERT_DOTTED_CIRCLEDROP_TABLE_TAGDictDrawFuncsDrawFuncs.__reduce_cython__DrawFuncs.__setstate_cython__DrawFuncs.draw_glyphDrawFuncs.get_glyph_shapeDrawFuncs.set_close_path_funcDrawFunc""s.set_cubic_to_funcDrawFuncs.set_line_to_funcDrawFuncs.set_move_to_funcDrawFuncs.set_quadratic_to_funcEOTEXCLUSIONEXTENDERFLATTENED_ACCENT_BASE_HEIGHTFONT_FAMILYFONT_SUBFAMILYFRACTION_DENOMINATOR_DISPLAY_STYLE_SHIFT_DOWNFRACTION_DENOMINATOR_GAP_MINFRACTION_DENOMINATOR_SHIFT_DOWNFRACTION_DENOM_DISPLAY_STYLE_GAP_MINFRACTION_NUMERATOR_DISPLAY_STYLE_SHIFT_UPFRACTION_NUMERATOR_GAP_MINFRACTION_NUMERATOR_SHIFT_UPFRACTION_NUM_DISPLAY_STYLE_GAP_MINFRACTION_RULE_THICKNESSFULL_NAMEFaceFace.__reduce_cython__Face.__setstate_cython__Face.color_palette_color_get_name_idFace.createFace.create_for_tablesFace.get_color_paletteFace.get_glyph_color_layersFace.get_glyph_color_svgFace.get_language_feature_tagsFace.get_layout_glyph_classFace.get_lookup_glyph_alternatesFace.get_nameFace.get_script_language_tagsFace.get_table_script_tagsFace.glyph_has_color_paintFace.is_glyph_extended_math_shapeFace.list_namesFace.reference_tableFace.set_get_table_tags_funcFace.variation_unicodesFontFontExtentsFontFuncsFontFuncs.__reduce_cython__FontFuncs.__setstate_cython__FontFuncs.createFontFuncs.set_font_h_extents_funcFontFuncs.set_font_v_extents_funcFontFuncs.set_glyph_h_advance_funcFontFuncs.set_glyph_name_funcFontFuncs.set_glyph_v_advance_funcFontFuncs.set_glyph_v_origin_funcFontFuncs.set_nominal_glyph_funcFontFuncs.set_variation_glyph_funcFont.__reduce_cython__Font.__setstate_cython__Font.createFont.draw_glyphFont.draw_glyph_with_penFont.get_font_extentsFont.get_glyph_color_pngFont.get_glyph_extentsFont.get_glyph_from_nameFont.get_glyph_h_advanceFont.get_glyph_h_originFont.get_glyph_nameFont.get_glyph_v_advanceFont.get_glyph_v_originFont.get_layout_baselineFont.get_math_constantFont.get_math_glyph_assemblyFont.get_math_glyph_italics_correctionFont.get_math_glyph_kerningFont.get_math_glyph_kerningsFont.get_math_glyph_top_accent_attachmentFont.get_math_glyph_variantsFont.get_math_min_connector_overlapFont.get_metric_positionFont.get_metric_position_with_fallbackFont.get_metric_variationFont.get_metric""_x_variationFont.get_metric_y_variationFont.get_nominal_glyphFont.get_style_valueFont.get_var_coords_designFont.get_var_coords_normalizedFont.get_variation_glyphFont.glyph_from_stringFont.glyph_to_stringFont.paint_glyphFont.set_var_coords_designFont.set_var_coords_normalizedFont.set_variationFont.set_variationsGLYPHSGLYPH_EXTENTSGLYPH_FLAGSGLYPH_INDEXGLYPH_NAMESGRAPHEMESGlyphExtentsGlyphFlagsGlyphInfoGlyphInfo.__reduce_cython__GlyphInfo.__setstate_cython__GlyphPositionGlyphPosition.__reduce_cython__GlyphPosition.__setstate_cython__HARD_LIGHTHBObjectHBObject.__reduce_cython__HBObject.__setstate_cython__HIDDENHORIZONTAL_ASCENDERHORIZONTAL_CARET_OFFSETHORIZONTAL_CARET_RISEHORIZONTAL_CARET_RUNHORIZONTAL_CLIPPING_ASCENTHORIZONTAL_CLIPPING_DESCENTHORIZONTAL_DESCENDERHORIZONTAL_LINE_GAPHSL_COLORHSL_HUEHSL_LUMINOSITYHSL_SATURATIONHarfBuzzErrorINVALIDINVALID_VALUEITALICIntEnumIntFlagJSONLAYOUT_FEATURE_TAGLAYOUT_SCRIPT_TAGLICENSELICENSE_URLLIGATURELIGHTENLIGHT_BACKGROUNDLOWER_LIMIT_BASELINE_DROP_MINLOWER_LIMIT_GAP_MINListMAC_FULL_NAMEMANUFACTURERMARKMATH_LEADINGMONOTONE_CHARACTERSMONOTONE_GRAPHEMESMULTIPLYMapMapIterMapIter.__reduce_cython__MapIter.__setstate_cython__Map.__copy__Map.__reduce_cython__Map.__setstate_cython__Map._is_equalMap._updateMap.clearMap.copyMap.getMap.itemsMap.keysMap.updateMap.valuesNAME_IDNAME_LANG_IDNAME_LEGACYNOTDEF_OUTLINENO_ADVANCESNO_CLUSTERSNO_GLYPH_NAMESNO_HINTINGNO_LAYOUT_CLOSURENO_POSITIONSNO_PRUNE_UNICODE_RANGESNO_SUBSET_TABLE_TAGNamedTupleNotImplementedOPTICAL_SIZEOTColorOTColorLayerOTColorPaletteOTColorPaletteFlagsOTLayoutGlyphClassOTMathConstantOTMathGlyphPartOTMathGlyphPartFlagsOTMathGlyphVariantOTMathKernOTMathKernEntryOTMetricsTagOTNameEntryOTNameIdPredefinedOTVarAxisFlagsOTVarAxisInfoOTVarNamedInstanceOVERBAR_EXTRA_ASCENDEROVERBAR_RULE_THICKNESSOVERBAR_VERTICAL_GAPOVERLAYPADPASSTHROUGH_UNRECOGNIZEDPLUSPOSTSCRIPT_NAMEPRESERVE_DEFAULT_IGNORABLESPRODUCE_SAFE_TO_INSERT_TATWEELPRODUCE_UNSAFE_TO_CONCATPaintCompositeModePaintExtendPaintFuncsPa""intFuncs.__reduce_cython__PaintFuncs.__setstate_cython__PaintFuncs.set_color_funcPaintFuncs.set_color_glyph_funcPaintFuncs.set_custom_palette_color_funcPaintFuncs.set_image_funcPaintFuncs.set_linear_gradient_funcPaintFuncs.set_pop_clip_funcPaintFuncs.set_pop_group_funcPaintFuncs.set_pop_transform_funcPaintFuncs.set_push_clip_glyph_funcPaintFuncs.set_push_clip_rectangle_funcPaintFuncs.set_push_group_funcPaintFuncs.set_push_transform_funcPaintFuncs.set_radial_gradient_funcPaintFuncs.set_sweep_gradient_funcPath__Pyx_PyDict_NextRefRADICAL_DEGREE_BOTTOM_RAISE_PERCENTRADICAL_DISPLAY_STYLE_VERTICAL_GAPRADICAL_EXTRA_ASCENDERRADICAL_KERN_AFTER_DEGREERADICAL_KERN_BEFORE_DEGREERADICAL_RULE_THICKNESSRADICAL_VERTICAL_GAPREFLECTREMOVE_DEFAULT_IGNORABLESREPEATRETAIN_GIDSRasterDrawRasterDraw.__reduce_cython__RasterDraw.__setstate_cython__RasterDraw.clearRasterDraw.draw_glyphRasterDraw.draw_glyph_or_failRasterDraw.renderRasterDraw.resetRasterDraw.set_glyph_extentsRasterExtentsRasterFormatRasterImageRasterImage.__reduce_cython__RasterImage.__setstate_cython__RasterImage.clearRasterImage.configureRasterPaintRasterPaint.__reduce_cython__RasterPaint.__setstate_cython__RasterPaint.clearRasterPaint.clear_custom_palette_colorsRasterPaint.paint_glyphRasterPaint.paint_glyph_or_failRasterPaint.renderRasterPaint.resetRasterPaint.set_custom_palette_colorRasterPaint.set_glyph_extentsRepackerErrorSAFE_TO_INSERT_TATWEELSAMPLE_TEXTSCREENSCRIPT_PERCENT_SCALE_DOWNSCRIPT_SCRIPT_PERCENT_SCALE_DOWNSET_OVERLAPS_FLAGSKEWED_FRACTION_HORIZONTAL_GAPSKEWED_FRACTION_VERTICAL_GAPSLANT_ANGLESLANT_RATIOSOFT_LIGHTSPACE_AFTER_SCRIPTSRCSRC_ATOPSRC_INSRC_OUTSRC_OVERSTACK_BOTTOM_DISPLAY_STYLE_SHIFT_DOWNSTACK_BOTTOM_SHIFT_DOWNSTACK_DISPLAY_STYLE_GAP_MINSTACK_GAP_MINSTACK_TOP_DISPLAY_STYLE_SHIFT_UPSTACK_TOP_SHIFT_UPSTRETCH_STACK_BOTTOM_SHIFT_DOWNSTRETCH_STACK_GAP_ABOVE_MINSTRETCH_STACK_GAP_BELOW_MINSTRETCH_STACK_TOP_SHIFT_UPSTRIKEOUT_OFFSETSTRIKEOUT_SIZESUBSCRIPT_BASELINE_DROP_MINSUBSCRIPT_EM_X_OFFSETSUBSCRIPT_EM_X_SIZE""SUBSCRIPT_EM_Y_OFFSETSUBSCRIPT_EM_Y_SIZESUBSCRIPT_SHIFT_DOWNSUBSCRIPT_TOP_MAXSUB_SUPERSCRIPT_GAP_MINSUPERSCRIPT_BASELINE_DROP_MAXSUPERSCRIPT_BOTTOM_MAX_WITH_SUBSCRIPTSUPERSCRIPT_BOTTOM_MINSUPERSCRIPT_EM_X_OFFSETSUPERSCRIPT_EM_X_SIZESUPERSCRIPT_EM_Y_OFFSETSUPERSCRIPT_EM_Y_SIZESUPERSCRIPT_SHIFT_UPSUPERSCRIPT_SHIFT_UP_CRAMPEDSequenceSerializerErrorSetIterSetIter.__reduce_cython__SetIter.__setstate_cython__SetSet.__copy__Set.__reduce_cython__Set.__setstate_cython__Set._is_equalSet._setSet._updateSet.addSet.add_rangeSet.clearSet.copySet.del_rangeSet.difference_updateSet.discardSet.intersection_updateSet.invertSet.is_invertedSet.issubsetSet.issupersetSet.removeSet.setSet.symmetric_difference_updateSet.updateStyleTagSubsetFlagsSubsetInputSubsetInputSetsSubsetInput.__reduce_cython__SubsetInput.__setstate_cython__SubsetInput.get_axis_rangeSubsetInput.keep_everythingSubsetInput.pin_all_axes_to_defaultSubsetInput.pin_axis_locationSubsetInput.pin_axis_to_defaultSubsetInput.set_axis_rangeSubsetInput.setsSubsetInput.subsetSubsetPlanSubsetPlan.__reduce_cython__SubsetPlan.__setstate_cython__SubsetPlan.executeTEXTTOP_LEFTTOP_RIGHTTRADEMARKTYPOGRAPHIC_FAMILYTYPOGRAPHIC_SUBFAMILYTupleUNCLASSIFIEDUNDERBAR_EXTRA_DESCENDERUNDERBAR_RULE_THICKNESSUNDERBAR_VERTICAL_GAPUNDERLINE_OFFSETUNDERLINE_SIZEUNICODEUNIQUE_IDUNSAFE_TO_BREAKUNSAFE_TO_CONCATUPPER_LIMIT_BASELINE_RISE_MINUPPER_LIMIT_GAP_MINUSABLE_WITH_DARK_BACKGROUNDUSABLE_WITH_LIGHT_BACKGROUNDUnionVARIATIONS_PS_PREFIXVENDOR_URLVERIFYVERSION_STRINGVERTICAL_ASCENDERVERTICAL_CARET_OFFSETVERTICAL_CARET_RISEVERTICAL_CARET_RUNVERTICAL_DESCENDERVERTICAL_LINE_GAPWARNEDWEIGHTWIDTHWWS_FAMILYWWS_SUBFAMILYXORX_HEIGHTaaddadd_codepointsadd_rangeadd_stradd_utf8advancealphaalternate_countalternates__annotations__argsascenderassemblyassembly_arrayasyncio.coroutinesaxis_def_valueaxis_indexaxis_max_valueaxis_min_valuebbaseline_tagblobblob_datablob_lengthblueboolbufferbytescc_alternatesc_colorsc_coordsc_extentsc_extents_ptrc_foregroundc_shapersc_tagscallback""clearclear_contentsclear_custom_palette_colorscline_in_tracebackcloseclosePathclscodepointscolorcolor_countcolor_indexcolor_palette_color_get_name_idcolorsconfigureconstantconsumedcoordscoords_2dot14copy__copy__correction_heightcountcreatecreate_for_tablescstrcurveTodatadecoratordef_valuedefault_valuedel_rangedeprecateddeprecated.<locals>.decoratordeprecated.<locals>.decorator.<locals>.wrapperdescenderdesign_coords__dict__difference_updatedirectiondiscard__doc__draw_datadraw_funcsdraw_glyphdraw_glyph_or_faildraw_glyph_with_pendraw_statedraw_state_pencodeendend_connector_lengthentriesenumenumerateexecuteexistingextentsfaceface_or_fontfeatfeature_countfeaturesfilenamefirstflagsfloatfontforegroundformatfrom_file_pathfrom_intfsencodefull_advancefunc__func__func_pfuncsfunctoolsggenexprgetget_axis_rangeget_color_paletteget_font_extentsget_glyph_color_layersget_glyph_color_pngget_glyph_color_svgget_glyph_extentsget_glyph_from_nameget_glyph_h_advanceget_glyph_h_originget_glyph_nameget_glyph_shapeget_glyph_v_advanceget_glyph_v_originget_language_feature_tagsget_layout_baselineget_layout_glyph_classget_lookup_glyph_alternatesget_math_constantget_math_glyph_assemblyget_math_glyph_italics_correctionget_math_glyph_kerningget_math_glyph_kerningsget_math_glyph_top_accent_attachmentget_math_glyph_variantsget_math_min_connector_overlapget_metric_positionget_metric_position_with_fallbackget_metric_variationget_metric_x_variationget_metric_y_variationget_nameget_nominal_glyphget_script_language_tagsget_style_valueget_table_script_tagsget_var_coords_designget_var_coords_normalizedget_variation_glyph__getstate__gidglyphglyph_from_stringglyph_has_color_paintglyph_to_stringgraphnodesgreenguess_segment_propertieshanghas_color_layershas_color_painthas_color_paletteshas_color_pnghas_color_svghas_layout_glyph_classeshas_layout_positioninghas_layout_substitutionhas_math_datahb_baseline_taghb_codepoint_thb_codepointshb_directionhb_featureshb_languagehb_language_taghb_positionhb_scripthb_script_""taghb_taghb_variationsheadheightiicfbicftideoidtpimgindexinitinputinstintintersection_updateinvert_is_coroutine_is_equalis_foregroundis_glyph_extended_math_shapeis_invertedissubsetissupersetitalics_correctionitem_lengthitem_offsetitemsjoinkkeep_everythingkernkern_valuekernskerns_arraykeyskeys.<locals>.genexprkwargslanglanguagelanguage_countlanguage_indexlanguage_taglarger_setlastlayer_countlayerslengthlineToline_gaplist_nameslookup_indexm__main__mathmax_correction_heightmax_valuemessage__metaclass__methodsmin_value__module__moveTo__mro_entries____name__namename_idnew_facenextnodenoticenum_entriesnum_glyphsnum_nodesobj_listobjectoffsetosot_color_glyph_get_layersot_color_glyph_get_pngot_color_glyph_get_svgot_color_glyph_has_paintot_color_has_layersot_color_has_paintot_color_has_palettesot_color_has_pngot_color_has_svgot_color_palette_color_get_name_idot_color_palette_get_colorsot_color_palette_get_countot_color_palette_get_flagsot_color_palette_get_name_idot_font_set_funcsot_layout_get_baselineot_layout_get_glyph_classot_layout_has_glyph_classesot_layout_has_positioningot_layout_has_substitutionot_layout_language_get_feature_tagsot_layout_lookup_get_glyph_alternatesot_layout_script_get_language_tagsot_layout_table_get_script_tagsot_math_get_constantot_math_get_glyph_assemblyot_math_get_glyph_italics_correctionot_math_get_glyph_kerningot_math_get_glyph_kerningsot_math_get_glyph_top_accent_attachmentot_math_get_glyph_variantsot_math_get_min_connector_overlapot_math_has_dataot_math_is_glyph_extended_shapeot_tag_to_languageot_tag_to_scriptotherppackedpacked_blobpaint_funcspaint_glyphpaint_glyph_or_failpaint_statepaint_state_ppalette_indexpathlibpenpin_all_axes_to_defaultpin_axis_locationpin_axis_to_defaultpoppositionpostscript_name_id__prepare____pyx_state__pyx_vtable__qCurveTo__qualname__rred__reduce____reduce_cython____reduce_ex__reference_tableremoverenderrepackrepack_with_tagreplacement__repr__.<locals>.genexprresetresultretreturnromnroundrstripsscript_countscript_ind""exscript_tagselfsendserializeserialize_with_tagset_setset_axis_rangeset_close_path_funcset_color_funcset_color_glyph_funcset_cubic_to_funcset_custom_palette_colorset_custom_palette_color_funcset_font_h_extents_funcset_font_v_extents_funcset_get_table_tags_funcset_glyph_extentsset_glyph_h_advance_funcset_glyph_name_funcset_glyph_v_advance_funcset_glyph_v_origin_funcset_image_funcset_language_from_ot_tagset_line_to_funcset_linear_gradient_funcset_message_funcset_move_to_func__set_name__set_nominal_glyph_funcset_pop_clip_funcset_pop_group_funcset_pop_transform_funcset_push_clip_glyph_funcset_push_clip_rectangle_funcset_push_group_funcset_push_transform_funcset_quadratic_to_funcset_radial_gradient_funcset_script_from_ot_tagset_sweep_gradient_funcset_typeset_var_coords_designset_var_coords_normalizedset_variationset_variation_glyph_funcset_variationssetdefaultsets__setstate____setstate_cython__shapeshapershaperssincesizesmaller_setsourcestartstart_connector_lengthstart_offsetstaticmethodstrstridestringsubfamily_name_idsubsetsubset_preprocesssubtablessuccesssymmetric_difference_updatetable_bytestable_datatagtag_packedtagstail__test__texttext_lengththrowto_inttypingucs4_bufferuharfbuzz._harfbuzzunicode_updateupdateuser_datauser_data_pvvaluevaluesvalues.<locals>.genexprvariantsvariants_arrayvariationvariation_selectorvariation_unicodesvariationsversion_stringwarnwarningswidthwrapperwrapsxx_bearingx_originyy_bearingy_origin\200\001\340\016#\240=\3200C\3001\330\003\n\210$\320\016*\250!\250>\270\021\200\001\330#0\260\010\270\001\330\004\013\2104\320\017%\240Q\240a\320\0040\260\001\360\032\000\t\022\220\023\220A\220Q\330\010\030\230\007\230v\240Q\240g\250R\250q\330\010\013\210>\230\023\230A\330\014\r\330\010\t\330\014\020\220\005\220U\230!\2301\340\020\035\230Q\230e\2405\250\001\250\026\250q\260\003\2602\260Q\330\014-\250Q\250d\260+\270_\310A\340\014\020\220\001\220\021\200\017\320\017!\240\021\360\016\000\005\006\360(\000\005\014\2101\320\004\030\230\001\360\032\000\t'\320&;""\2701\270D\300\001\330\010\013\2104\210s\220!\330\014\023\2201\330\010\032\230)\2401\240A\320\004)\250\030\260\021\360\022\000\t\023\320\022+\2501\250D\260\013\2709\300A\300Q\330\010\017\210w\220m\2401\320\0041\260\021\360\014\000\t$\2401\240D\250\n\260%\260q\330\010\013\2104\320\017+\2501\250D\260\001\330\014\r\320\004+\2501\360\026\000\t\022\320\0212\260!\2604\260{\300!\3001\340\010\017\210q\220\006\220a\220s\230\"\230G\2404\240u\250E\260\021\260!\200\001\330!\"\330)*\330&'\330'(\330)1\260\021\330\004\013\2104\320\017#\2401\240N\260+\270\\\310\021\200\001\330$1\260\030\270\021\330\004\013\2104\320\017&\240a\240q\320\004*\320*;\2701\360\016\000\t\020\320\017,\250A\250T\260\033\270A\320\004\"\240(\250!\360\034\000\t \320\0371\260\021\260#\260W\270A\270[\310\001\340\010\013\320\013)\250\021\250$\250l\270!\330\014\r\320\r\035\230Q\320\036.\250a\250q\330\014\030\230\010\240\005\240Q\320&;\2701\330\014\030\230\010\240\005\240Q\320&;\2701\330\014\030\230\010\240\005\240Q\320&;\2701\330\014\023\220;\230k\250\021\330\010\017\210q\320\004\031\230\021\360\024\000\t\024\320\0231\260\021\260$\260a\330\010\013\2109\220C\220q\330\014\022\220,\230a\230q\330\010\023\2209\230A\230Q\200\001\330%2\3202B\300(\310!\330\004\013\2104\320\017'\240q\250\007\250q\320\004 \240\001\330\0332\260)\2701\360\036\000\t3\260!\330\010\013\2108\2207\230!\330\014\025\220\\\240\027\250\001\330\014\025\220\\\240\027\250\001\330\014\025\220Y\230g\240Q\330\014\025\220Z\230w\240a\330\014\025\220Z\230w\240a\330\014\034\230A\230Q\330\010\017\320\017(\250\001\250\024\320-@\300\010\310\001\320\004\036\320\0362\260!\360\014\000\t\023\220)\2301\320\034-\250Q\320.A\300\021\300$\300l\320RS\320\0042\260(\270!\360\030\000\t\020\320\0171\260\021\260$\260k\300\021\200\001\330%&\330&'\330*2\260!\330\004\013\2104\320\017'\240q\250\007\250q\200\001\3302?\270x\300q\330\004\013\2104\320\0174\260A\260Q\200\001\330%&\330&'\330%4\260A\330\004\013\2104\320\017'\240q\250\007\250q\320\0044\260L\300\n\310!\360\034\000\t\020\320""\0177\260q\330\014\020\320\020#\240=\260\005\260W\270A\320\004)\250\021\360\026\000\t\r\320\014!\240\021\330\010\"\240!\2404\240}\260M\300\027\310\n\320RS\200\001\330-@\300\010\310\001\330\004\013\2104\320\017/\250q\260\001\200\001\330 )\250\021\330\004\013\2104\210q\320\004\031\230\021\360\014\000\t\023\220!\2204\220z\240\021\330\010\013\2104\320\017+\2501\250D\260\001\330\014\r\320\004\032\230!\330\010\022\220!\2204\220z\240\025\240a\320\0045\3205F\300a\360\020\000\t1\260\001\260\024\260[\300\005\300Q\300a\330\010\017\210q\200\001\330*5\260X\270Q\330\004\013\2104\320\017%\240Q\240a\320\0045\260X\270Q\360\026\000\t\r\210C\210q\330\010*\250!\2504\250{\320:N\310a\310q\330\010\017\210q\320\000\032\230(\240!\360\024\000\005\031\230\003\2307\240!\330\004\033\320\033-\250Q\250g\260Y\270a\330\004!\320!4\260A\260Q\340\004\024\220A\220[\240\001\330\004\010\210\001\210\025\210a\330\004\r\210Q\330\004\013\2106\220\027\230\001\200\001\330*7\260x\270q\330\004\013\2104\320\017,\250A\250Q\320\0047\260x\270q\360\016\000\t\020\320\0176\260a\260t\270;\300a\320\004(\250\013\2608\2701\360\032\000\t\022\320\021#\2401\240C\240w\250a\250{\270!\330\010\017\320\0172\260!\330\014\020\220\014\230D\240\013\2501\320\004+\2508\2601\360\024\000\t\020\320\017*\250!\2504\250{\270!\320\004;\2708\3001\360\030\000\t\024\320\0238\270\001\270\024\270[\310\001\330\010\013\2108\2203\220a\330\014\023\2201\330\010\017\210q\200\001\330&;\2708\3001\330\004\024\220A\340\004%\240Q\330\004$\240A\340\004\n\210,\220c\230\021\330\010&\240a\240t\250;\260o\300^\320ST\320Ta\320ab\330\010\014\210E\220\025\220a\220q\330\014\017\210w\220a\220u\230I\240Q\240f\250A\250Q\330\004\013\2101\320\004#\2408\2501\360\026\000\t\035\230C\230w\240a\330\010\037\320\0371\260\021\260'\270\031\300!\330\010\037\320\0376\260a\260t\270;\300a\330\010\013\2105\220\003\2201\330\014\r\330\010\023\2209\230A\230Q\320\004#\2408\2501\360\022\000\t\020\320\017\037\230q\240\004\240J\250j\270\001\320\004#\2408\2501\360\026\000\t \230q\240\004\240K""\250u\260F\270!\330\010\021\220\021\330\010\017\210v\220W\230A\200\001\330$%\330%&\330$%\33089\330\004\013\2104\320\017&\240a\240w\250f\260A\320\0048\270\014\300H\310A\360\026\000\t \230q\340\010)\250\021\330\010,\250A\340\010\016\320\016\036\230c\240\021\330\0144\260A\260T\270\033\300N\320RY\320YZ\330\020\021\320\021\"\240!\330\014\020\220\005\220U\230!\2301\330\020\032\230'\240\021\240,\250a\250q\330\014\034\230A\330\010\017\210q\320\0048\270\010\300\001\360\020\000\t\035\230I\240W\250A\330\010\032\230!\330\010+\320+C\3001\300G\3101\330\010\017\320\0173\2601\260D\270\013\3001\320\004'\320'8\270\001\360\024\000\t\014\320\013%\240Q\240d\250+\260U\270!\2701\330\014\023\2201\330\010\017\210q\200\001\340\004\013\2109\220A\220[\240\001\320\004(\320(9\270\021\360\016\000\t\020\320\017*\250!\2504\250{\270!\320\004:\270(\300!\360\016\000\t\020\320\0179\270\021\270$\270k\310\021\200A\360\n\000\t\021\220\001\320\004)\250\021\330$*\320*:\270'\300\021\360:\000\t\"\240\023\240A\240Q\340\010\013\2104\210q\330\014\r\330\010\030\320\030)\250\026\250q\330\014\021\220\022\2201\330\010\014\210E\220\025\220a\220q\330\014\031\230\021\230%\230z\250\021\250!\330\010 \240\001\330\014\020\220\r\230_\250F\260-\270q\330\010\014\210A\210Q\330\010\013\2104\320\017.\250a\250t\2601\330\014\r\320\004\030\230\001\360&\000\t'\320&<\270A\270T\300\021\330\010\013\2104\210s\220!\330\014\023\2201\330\010\032\230)\2401\240A\200A\330'(\33006\260a\33028\270\013\3001\360\030\000\t\035\230C\230w\240a\330\010\037\320\0371\260\021\260'\270\031\300!\330\010*\250!\340\010\031\230\021\360\006\000\t*\250\021\330\010\016\210n\230C\230q\330\0142\260!\330\020\024\220A\330\020\030\230\001\330\020\021\330\020\021\330\020\021\220\021\330\020\021\330\014\020\220\005\220U\230!\2301\330\020 \240\001\240\026\240q\250\004\250A\330\020\024\220A\220U\230!\330\020\031\230\021\330\020\024\220G\2301\230F\240'\250\021\330\014\034\230A\330\010\017\210q\320\000\034\230A\330\"#\330#$\340/0\360x\001\000\005\010\200s\210!\210;\220c""\230\023\230A\230Q\330\010\016\210j\230\001\330\014%\240Q\240c\250\021\320*M\310Q\310c\320QR\320RS\360\006\000\t\"\240\023\240A\240Q\330\010\034\230C\230u\240A\240Q\330\010\033\2301\330\010\034\230J\240a\330\010(\250\001\330\010\034\230H\240A\240Q\330\004\010\210\005\210U\220!\2201\330\010\020\220\003\2201\220I\230Q\230a\330\010\020\320\020\"\240!\2403\240k\260\022\2606\270\033\300B\300a\330\010\017\210q\340\010\017\210z\230\021\230!\340\010\014\210H\220M\240\021\240#\240S\250\001\250\024\250Q\250e\2601\330\010\013\2102\210S\220\001\330\014\024\220M\240\021\240#\240V\2504\250q\260\001\340\010\014\210H\220M\240\021\240#\240S\250\001\250\024\250Q\250e\2601\330\010\013\2102\210S\220\001\330\014\024\220M\240\021\240#\240W\250D\260\001\260\021\340\004\034\230C\230w\240a\330\004\026\220a\330\004\"\320\"=\270Q\320>P\320PQ\320QX\320XY\330\n\022\220!\330\n\013\330\004\007\200|\2203\220a\330\010\016\210m\2301\360\006\000\005\"\320!1\260\021\260-\270q\300\001\330\004\030\230\t\240\022\2401\340\004\023\2201\220A\330\004\013\2101\200A\330\035\036\330\034\035\330\"1\260\021\330\"1\260\021\330\"1\260\031\270!\3604\000\t \320\0371\260\021\260#\260W\270A\270[\310\001\330\010\024\220G\230:\240S\250\n\260!\330\010\024\220G\230:\240S\250\n\260!\330\010\024\220G\230:\240S\250\n\260!\330\010\017\320\017-\250Q\330\014\020\220\014\230D\240\013\2508\260;\270k\310\021\200A\330)*\330&'\330'(\330)1\260\021\360.\000\t\014\210=\230\003\2301\330\014\036\230a\330\r\032\230#\230Q\330\014\036\230a\330\r\032\230#\230Q\330\014\036\230a\330\r\032\230#\230Q\330\014\036\230a\330\r\032\230#\230Q\330\014\036\230a\330\r\032\230#\230Q\330\014\036\230a\330\r\032\230#\230Q\330\014\036\230a\340\014\022\220*\230A\320\0356\260a\330\010\021\220\031\230'\240\021\330\010\027\320\027/\250q\260\007\260y\300\001\330\010\021\220\032\2307\240!\330\010\030\320\030*\250!\2507\260)\2701\330\010\021\220\034\230W\240A\330\010\032\320\032,\250A\250W\260I\270Q\330\010\022\320\022+\2501\250D\260\001\330,-\330,-\330,-\330,-\330,-""\250Q\330\010\013\2101\330\014\023\2201\340\014\023\2201\200A\340 !\360\n\000&1\260\001\360&\000\t\032\230\023\230A\230Q\330\010\014\210L\320\0301\260\021\330\014#\2407\250+\260Q\330\010\035\230Q\230d\240+\250Q\250c\260\027\270\006\270f\300A\330\010\014\320\014%\240Q\330\010\017\210q\200A\340\032#\2401\330\010\031\230\023\230A\230Q\330\010\017\210q\200A\330\"#\360\006\000(1\260\001\360\006\000\t\014\320\013\034\230A\230V\2401\330\014\020\320\020$\240A\330\014\025\320\0250\3200D\300A\300V\3101\330\014\017\320\017 \240\001\240\033\250A\330\020\036\230g\320%9\270\021\270+\300Q\340\020\036\230g\240Q\340\014\020\320\020$\240A\330\014\025\220Q\330\014\023\220:\230S\240\006\240a\330\014\032\230'\240\021\330\010)\250\021\330\014\020\320\020 \240\010\250\r\260Q\200A\330&;\2701\360\"\000\t\035\230B\230i\240q\250\001\330\010\037\320\037?\270q\300\007\300q\330\010\013\2105\220\003\2201\330\014\022\220-\230q\320 2\260!\2601\330\010\031\230\023\230A\230Q\330\010\014\210L\230\001\330\010\017\210q\200A\330\037*\320*:\270)\3001\330\010\014\210K\220q\230\005\230V\2401\200A\330%&\360\026\000\t\r\320\014#\2401\330\010-\250Q\330\014\020\320\020!\320!<\270G\3006\310\021\200A\330#$\360\030\000\t\r\320\014!\240\021\330\010+\2501\330\014\020\320\020!\320!:\270'\300\026\300q\200A\330\"#\360\n\000(1\260\001\360\014\000\t*\250\021\330\014\020\220\r\320\035/\250w\260k\300\021\330\010\014\320\014 \240\001\200A\330\030\031\330\0322\3202G\300q\330\0310\3200D\300M\320QR\360$\000\t(\320';\2701\270D\300\001\330\010\"\240!\360\006\000\t\035\230A\340\010\016\210f\220B\220a\330\014\025\320\025(\250\001\330\020\024\220A\330\020\021\330\020\021\330\020\021\330\020\021\330\020\021\220\021\330\020\024\220A\330\020\021\330\020\021\340\014\017\210y\230\003\2301\330\020\021\330\014\026\220d\230\"\230A\340\010\017\210v\220W\230A\200A\330+,\360&\000\t\r\320\014)\250\021\330\0103\2601\330\014\020\320\020!\320!B\300'\310\026\310q\320\004\034\230A\330\035#\320#3\2607\270!\360(\000\t\027\320\026*\250!\2501\330\010""\013\210<\220s\230!\330\014\r\330\010\t\330\014\032\320\032-\250Q\250a\330\014\017\210|\2304\230q\330\020\026\220j\240\001\240\021\330\014\037\230q\330\020\024\220A\330\020\033\2301\330\020\021\330\020\021\330\020\021\340\014\017\210t\320\0232\260!\2604\260q\330\020\021\340\014\026\220a\220q\200A\330$%\360\016\000*3\260!\360\006\000\t\014\320\013\034\230A\230V\2401\330\014\020\320\020&\240a\330\014\025\320\0252\3202F\300a\300v\310Q\330\014\017\320\017 \240\001\240\033\250A\330\020\036\230g\320%9\270\021\270+\300Q\340\020\036\230g\240Q\340\014\020\320\020&\240a\330\014\025\220Q\330\014\023\220:\230S\240\006\240a\330\014\032\230'\240\021\330\010+\2501\330\014\020\320\020 \240\010\250\r\260Q\200A\340\027\030\330\010\033\2303\230a\330\010\017\210q\200A\360\024\000\t4\2601\260D\270\001\200A\330%&\360\n\000+4\2601\360\014\000\t-\250A\330\014\020\220\r\320\0352\260'\270\033\300A\330\010\014\320\014#\2401\200A\330%&\360\014\000+4\2601\360\016\000\t/\250a\330\014\020\220\r\320\0354\260G\270;\300a\330\010\014\320\014%\240Q\200A\330&'\330+4\260A\360\030\000\t\r\320\014$\240A\330\010'\240q\330\014\020\220\013\320\0331\260\027\270\013\3001\200A\330,-\360\036\000\t\r\320\014*\250!\330\0104\260A\330\014\020\320\020!\320!C\3007\310&\320PQ\200A\360$\000\t+\250!\2504\250q\200\001\330\033$\240A\330\004\013\2104\210q\200A\360\020\000\t\014\2104\210q\220\007\220s\230!\330\014\020\220\010\230\001\230\021\340\014\020\220\005\220Q\330\020\032\230!\2304\230z\250\021\340\010\013\2104\320\017+\2501\250D\260\001\330\014\r\200A\360\020\000\t\014\2104\210q\220\007\220s\230!\330\014\020\220\005\220Q\220a\340\014\020\220\005\220Q\330\020\032\230!\2304\230z\250\021\340\010\013\2104\320\017+\2501\250D\260\001\330\014\r\200A\360\022\000\t\014\2104\210q\220\007\220s\230!\330\014\020\220\010\230\001\230\021\340\014\020\220\002\220%\220u\230F\240!\330\020\032\230!\2304\230z\250\023\250A\340\010\013\2104\320\017+\2501\250D\260\001\330\014\r\200A\330&'\360\n\000,5\260A\360\016\000\t.\250Q\330\014\020\220""\r\320\0353\2607\270+\300Q\330\010\014\320\014$\240A\200A\330&'\360\010\000,5\260A\360\016\000\t.\250Q\330\014\020\220\r\320\0353\2607\270+\300Q\330\010\014\320\014$\240A\200A\330'(\360\n\000-6\260Q\360\016\000\t/\250a\330\014\020\220\r\320\0354\260G\270;\300a\330\010\014\320\014%\240Q\200A\330\"#\360\030\000\t\r\320\014 \240\001\330\010*\250!\330\014\020\320\020!\320!9\270\027\300\006\300a\320\004,\250A\360\032\000\t\022\220\023\220A\220Q\330\010\023\220?\240&\250\001\250\027\260\002\260!\330\010\013\2109\220C\220q\330\014\r\330\010\t\330\014\020\220\005\220U\230!\2301\330\020\030\230\001\230\025\230f\240A\240Q\330\014)\250\021\250$\250k\270\032\3001\340\014\020\220\001\220\021\200A\330\030 \240\001\340\010\014\320\014\034\230A\230Q\330\010\014\320\014\036\230a\230q\330\010\014\320\014\035\230Q\230a\330\010\014\320\014\036\230a\230q\330\010\017\210u\220A\220S\230\003\2303\230a\200A\360\014\000\t\025\220A\220T\230\021\200A\360\022\000\t\035\230A\230T\240\021\200A\360\020\000\t\035\230A\230T\240\021\320\004\037\230}\250A\360\020\000\t\035\230A\230T\320!3\2604\260{\300!\200A\330&'\360$\000\t\r\320\014$\240A\330\010.\250a\330\014\020\320\020!\320!=\270W\300F\310!\200A\330&'\360&\000\t\r\320\014$\240A\330\010.\250a\330\014\020\320\020!\320!=\270W\300F\310!\320\004,\250A\360\020\000\t\035\230E\240\027\250\001\330\010\032\230!\330\010\034\230A\330\014\020\220\r\320\0350\260\001\3201C\3001\300G\3101\200A\330\035\036\360\034\000\t\r\210O\2301\330\010%\240Q\330\014\020\320\020!\320!4\260G\2706\300\021\200A\330\035\036\360*\000\t\r\210O\2301\330\010%\240Q\330\014\020\320\020!\320!4\260G\2706\300\021\200A\360\016\000\t\031\230\001\230\024\230Q\200A\360\016\000\t!\240\001\240\024\240Q\320\000\034\230A\360\020\000\005\031\230\001\230\024\230Q\200A\330\037 \360\n\000%.\250Q\360\006\000\t\014\320\013\034\230A\230V\2401\330\014\020\320\020!\240\021\330\014\025\320\025-\320-A\300\021\300&\310\001\330\014\017\320\017 \240\001\240\033\250A\330\020\036\230g\320%9\270\021\270+\300Q\340""\020\036\230g\240Q\340\014\020\320\020!\240\021\330\014\025\220Q\330\014\023\220:\230S\240\006\240a\330\014\032\230'\240\021\330\010&\240a\330\014\020\320\020 \240\010\250\r\260Q\200A\330'(\360\034\000\t\r\320\014%\240Q\330\010/\250q\330\014\020\320\020!\320!>\270g\300V\3101\200A\330'(\360*\000\t\r\320\014%\240Q\330\010/\250q\330\014\020\320\020!\320!>\270g\300V\3101\200A\360\014\000\t\026\220Q\220d\230!\200A\360\016\000\t\036\230Q\230d\240!\200A\360\022\000\t\036\230Q\230d\240!\200A\330 !\360\026\000\t\r\320\014\036\230a\330\010(\250\001\330\014\020\320\020!\320!7\260w\270f\300A\200A\330 !\360\022\000&/\250a\360\006\000\t\014\320\013\034\230A\230V\2401\330\014\020\320\020\"\240!\330\014\025\320\025.\320.B\300!\3006\310\021\330\014\017\320\017 \240\001\240\033\250A\330\020\036\230g\320%9\270\021\270+\300Q\340\020\036\230g\240Q\340\014\020\320\020\"\240!\330\014\025\220Q\330\014\023\220:\230S\240\006\240a\330\014\032\230'\240\021\330\010'\240q\330\014\020\320\020 \240\010\250\r\260Q\200A\330\010\t\210\025\210a\210q\360\024\000\t\022\320\021#\2401\240G\2507\260!\330\010\013\2101\360\006\000\r\027\320\026&\240a\240q\330\010\023\2207\230)\2403\240a\330\010\017\210{\230#\230[\250\001\250\036\260~\300Q\330\010\017\210q\200A\360\022\000\t\022\320\021.\250a\250t\260;\270a\270q\330\010\017\210q\220\006\220a\220s\230$\230e\2405\250\001\250\021\200A\340\027\030\330\010\036\230c\240\021\330\010\017\210q\200A\340\032(\250\006\250f\260A\330\010\031\230\023\230A\230V\2401\330\010\017\210q\200A\330!\"\360\034\000\t\r\320\014\037\230q\330\010)\250\021\330\014\020\320\020!\320!8\270\007\270v\300Q\200A\360\022\000\t(\240q\250\004\250A\320\004\034\230A\360\020\000\t\031\230\001\360\016\000\t\023\320\022'\240q\250\004\250K\260q\270\001\330\010\014\210E\220\025\220a\220q\330\014\023\320\023(\250\001\250\027\260\001\260\022\2601\330\014\017\210u\220C\220q\330\020\033\2301\340\020\031\230\021\330\020\033\2306\240\027\250\001\330\014\017\210w\220a\220r\230\031\240#\240T\250\021\250!\330""\020\032\320\032,\250A\250W\260A\260R\260q\340\020\032\230'\240\021\240\"\240A\330\014\017\210w\220a\220{\240!\2408\2509\260I\270Q\330\010\017\210q\200A\330$/\250q\330\010\014\210K\220q\230\005\230Q\200A\360\n\000\t\020\210w\220a\220q\200\001\330\037/\320/B\300!\330\004\013\2104\320\017!\240\021\240!\320\004)\250\030\260\021\360\026\000\t\035\230C\230w\240a\330\010\037\320\0371\260\021\260'\270\031\300!\330\010)\250\021\340\010\031\230\021\360\006\000\t*\250\021\330\010\016\210m\2303\230a\330\014.\250a\330\020\024\220A\330\020\021\330\020\021\330\020\021\220\021\330\020\021\330\014\020\220\005\220U\230!\2301\330\020 \240\001\240\026\240q\250\004\250A\330\020\024\220A\220U\230!\330\020\031\230\021\330\020\024\220G\2301\230F\240'\250\021\330\014\034\230A\330\010\017\210q\320\004+\320+D\300H\310A\360\024\000\t\023\320\022-\250Q\250d\260+\270Y\320FZ\320Z[\320[\\\330\010\017\210w\220m\2401\320\004 \320 D\300M\320QZ\320Z[\360\"\000\t\014\2109\220C\220q\330\014\023\220?\240!\340\014\025\220X\230W\240A\330\014\023\320\023*\250!\2507\260)\2701\340\010\021\320\021$\240A\240T\250\033\260I\270V\3006\310\021\330\010\013\2101\330\014\026\220a\330\014\023\2207\230&\240\001\240\027\250\002\250!\330\014\017\210u\220C\220q\330\020\021\330\014\r\330\020#\2401\240D\250\013\2609\270F\300!\3008\3101\330\020\031\230\024\230R\230w\240g\250Q\250a\330\020\027\220q\340\020\024\220A\220Q\330\010\017\210q\320\004\036\320\036/\320/F\300i\310q\360\032\000\t#\240(\250!\330\010\013\320\013\034\230A\230\\\250\021\330\014\033\2308\320#7\260q\270\014\300A\330\010\032\230!\2304\230{\250%\250z\3209I\310\021\320\004'\240}\260H\270A\360\022\000\t\020\320\017+\2501\250D\3200B\300$\300k\320QR\200\001\330/<\270H\300A\330\004\013\2104\320\0171\260\021\260!\320\000\034\230H\240A\360\024\000\005\031\230\003\2307\240!\330\004\033\320\033-\250Q\250g\260Y\270a\330\004%\320%:\270!\2701\330\004\034\320\0341\260\021\260!\330\004\007\200u\210C\210q\330\010\017\210q\330\004\r\210Q\330\004\013\2106\220\027\230\001\200""\001\330'<\270H\300A\340\004\016\320\016-\250Q\250d\260+\270Q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\013\2101\320\004,\250H\260A\360\026\000\t\020\320\017!\240\021\320\">\270a\270t\300;\310a\320\004,\250H\260A\360\026\000\t\031\230\001\340\010)\250\021\330\010(\250\001\340\010\016\210l\230#\230Q\330\014(\250\001\250\024\250[\270\007\270~\310Q\310m\320[\\\330\014\020\220\005\220U\230!\2301\330\020\023\2207\230!\230<\240q\250\006\250a\250r\260\030\270\026\270q\300\002\300!\330\014\034\230A\330\010\017\210q\320\000\034\230I\240Q\360&\000\005\020\320\017#\2401\240D\250\001\330\004\017\210y\230\001\230\021\320\004,\250I\260Q\360\026\000\t\020\320\0176\260a\260t\270<\300t\3101\320\004,\250K\3207V\320V^\320^_\360\022\000\t\014\2105\220\003\2203\220a\220q\330\014\022\220*\230A\230Q\330\010\017\320\017+\2501\250D\260\013\2707\300&\310\001\200\001\330\004\n\210+\220Q\320\004\025\220Q\360\026\000\t\014\2102\210R\210r\220\023\220B\220c\230\024\230Q\330\014\023\2201\330\010\014\210J\220a\220t\230:\240Q\330\010\013\2102\210S\220\004\220A\330\014\020\220\001\330\010\017\210q\320\004\035\230Q\330\036$\320$4\260G\2701\360\"\000\t\033\230!\330\014\020\220\r\230V\2403\240a\240w\250m\2701\330\010\013\2104\320\017.\250a\250t\2601\330\014\r\200\001\330$-\250Q\330\004\013\2104\210q\320\004\025\220Q\360\014\000\t\023\220!\2204\220z\240\021\330\010\013\2104\320\017+\2501\250D\260\001\330\014\r\320\000\030\230\001\360\020\000\005\035\320\034-\250Q\330\004\030\230\001\330\004\013\2106\220\027\230\001\320\004*\320*=\270Q\360\"\000\t\014\2109\220C\220s\230!\2301\330\014\022\220*\230A\230Q\330\010\017\320\017&\240a\240t\250;\260a\320\004\035\230Q\330\010\024\220A\220T\230\032\2405\250\001\320\004 \240\r\250Q\360\022\000\t\036\230Q\230d\320\"5\260T\270\033\300A\320\004\035\230Q\360\020\000\t\020\320\017!\240\021\240$\240a\320\000\031\230\021\330\032\033\340,-\360\010\000\005\014\320\013\035\230Q\230d\240+\250Q\200\001\340\004\013\320\013\035\230Q\230e\240;\250a\320\004\"\240(\250!""\360 \000\t\023\320\022(\250\001\250\024\250[\270\005\270V\3001\330\010\013\2101\330\014\025\220Q\330\014\023\2206\230\027\240\001\340\014\023\2201\320\004(\250\010\260\001\360\032\000\t\022\220\024\220W\230A\330\010\022\320\022-\250Q\250d\260+\270W\300H\310C\310q\320PY\320YZ\320Z[\330\010\017\210w\220m\2401\320\004%\240X\250Q\360\030\000\t\023\320\022+\2501\250D\260\013\2705\300\001\300\021\330\010\013\2101\330\014\023\220<\230q\330\020\027\220q\330\020\027\220q\330\020\027\220q\330\020\027\220q\360\006\000\r\024\2201\200\001\330,=\270X\300Q\330\004\013\2104\320\017.\250a\250q\320\004(\250\r\260X\270Q\360\020\000\t\020\320\017,\250A\250T\3201D\300D\310\013\320ST\320\004-\320-=\270X\300Q\360\026\000\t\035\230I\240W\250A\330\010\032\230!\330\010+\320+C\3001\300G\3101\330\010\"\240!\340\010\035\230Q\340\010)\250\021\330\0100\260\001\330\010\016\210f\220C\220q\330\014)\250\021\250$\250a\330\020\027\220~\240Q\330\020\021\220\027\320\030(\250\001\250\021\330\014\020\220\005\220U\230!\2301\330\020\030\230\007\230q\330\024#\2401\240N\260!\2602\260X\270^\3101\310B\310a\330\030&\240a\240r\320)@\300\016\310a\310r\320QR\330\030,\250A\250^\2701\270B\270a\330\014\034\230A\330\010\017\210z\230\021\320\004-\320-=\270X\300Q\360\016\000\t\035\230I\240W\250A\330\010\032\230!\330\010+\320+C\3001\300G\3101\330\010\"\240!\340\010\035\230Q\340\010)\250\021\330\010\016\210f\220C\220q\330\014)\250\021\250$\250k\270\027\300\016\310a\330\020\021\220\027\230\001\330\014\020\220\005\220U\230!\2301\330\020\030\230\007\230q\320 2\260!\260>\300\021\300\"\300H\310N\320Z[\320[]\320]^\330\014\034\230A\330\010\017\210q\320\004\035\230Y\240a\360\010\000\t\020\210v\220Q\220h\230a\320\004)\250\021\360\014\000\t\031\230\001\230\024\230Z\240u\250A\330\010\013\2104\320\017+\2501\250D\260\001\330\014\r\320\004\037\230{\250!\360\016\000\t\031\230\001\230\024\230Z\240w\250a\330\010\013\2104\320\017+\2501\250D\260\001\330\014\r\320\004\037\230{\250!\360\024\000\t\031\230\001\230\024\230Z\240w\250a\330\010\013""\2104\320\017+\2501\250D\260\001\330\014\r\230!\220\001\200\001\330%.\250a\330\004\013\2104\210q\200\001\330\035&\240a\330\004\013\2104\210q\200\001\330%:\270(\300!\330\004\013\320\013\036\230a\320\037<\270A\270T\300\033\310A\320\004\026\220a\360\020\000\t\r\210C\210q\330\010\t\210\033\220K\230q\240\004\240A\330\010\017\210q\320\004.\250a\360\020\000\t\035\230E\240\027\250\001\330\010\032\230!\330\010\036\230a\330\014\020\220\r\320\0352\260!\3203E\300Q\300g\310Q\320\000\020\220\016\230a\330\010\022\220!\330\010\021\220\021\360F\001\000\005\014\2101\330\004\022\220!\330\004\005\330\010\013\2101\330\014\020\220\t\230\030\240\027\250\001\330\020\023\220:\230Q\230g\240Q\330\024\034\230A\340\024\034\230C\230q\240\001\330\014\032\230/\250\026\250q\260\005\260R\260q\330\014\020\220\001\330\014\020\220\006\220i\230x\240v\250Q\330\020\027\220r\230\022\2306\240\021\330\020\031\230\024\230W\240A\330\020\023\220:\230Q\230g\240Q\330\024*\250!\2508\2603\260a\260y\300\001\300\021\330\024\030\230\t\240\021\330\024\037\230q\240\005\240Q\330\024\031\230\021\340\024\030\230\007\320\0371\260\021\260)\2701\330\024\030\230\007\230u\240I\250Q\330\030\034\230I\240Q\330\030\034\230I\240Q\330\030\034\230G\2401\330\030#\2401\240E\250\021\330\030\035\230Q\330\010\013\2101\330\014\020\220\003\220:\230Y\240a\240w\250b\260\001\330\020\031\230\026\230w\240a\330\020\031\230\021\230%\230q\330\014\025\220Q\220b\230\002\230%\230q\330\014\022\220-\230q\240\004\240K\250v\260]\300-\310v\320UV\330\014\017\210t\2201\330\020\026\220l\240!\2401\340\014\024\220A\220T\230\033\240F\250-\260}\300A\330\010\013\2104\320\017.\250a\250v\260Q\330\014\r\340\010\013\210<\220w\230a\330\014\020\220\001\220\021\200\001\330%.\250a\330\004\013\320\013(\250\001\250\024\250Q\320\000\021\220\035\320\036.\250a\360\022\000\005\020\320\017 \240\001\240\024\240[\260\005\260Q\330\004\007\200y\220\003\2201\330\010\016\210l\230!\2301\330\004\017\210y\230\001\230\021\320\004\036\230a\330\010\025\220Q\220d\230*\240E\250\021\320\004""\"\240,\250a\360\032\000\t\022\220\024\220W\230A\330\010\034\320\034.\250a\250y\270\001\330\010\035\230Q\230d\240+\250U\260!\320\004)\250\030\260\021\360\036\000\t\020\320\017.\250a\250t\260;\270a\330\010\023\2209\230A\230Q\320\004)\250\030\260\021\360\030\000\t\020\320\017.\250a\250t\260;\270a\330\010\023\2209\230A\230Q\210\001\340\014\026\220b\230\001\230\024\230Q\330\014\017\210q\330\020\033\2308\2401\240A\330\014\017\210x\220w\230a\330\020\030\230\005\230Q\230i\240q\330\020\026\220d\230!\2301\330\014\023\2204\220r\230\030\240\021\320\004)\320):\270!\360\034\000\t\022\220\035\230g\240Q\330\010\021\220\035\230g\240Q\330\010\021\220\031\230'\240\021\330\010\021\220\032\2307\240!\330\010\017\320\0170\260\001\260\024\3205H\310\001\310\021\320\004)\320):\270!\360\034\000\t\022\220\035\230g\240Q\330\010\021\220\035\230g\240Q\330\010\021\220\031\230'\240\021\330\010\021\220\032\2307\240!\330\010\017\320\017/\250q\260\004\3204F\300a\300q\200\001\330!.\250h\260a\330\004\013\2104\320\017#\2401\240A\320\004&\240h\250a\360\026\000\t\023\320\022,\250A\250T\260\033\270E\300\021\300#\300Q\300a\330\010\017\210q\220\003\2206\230\035\240a\320\004&\240h\250a\360\022\000\t\020\320\017\037\230q\240\013\250:\260T\270\021\320\004#\240=\260\001\360\024\000\t\020\320\017!\240\021\240$\240k\260\021\320\004&\240k\260\034\270Z\300q\360\034\000\t\022\320\021#\2401\240C\240w\250a\250{\270!\330\010\017\320\0170\260\001\330\014\020\220\014\230D\240\013\2508\2601\200\001\340\016\031\230\025\230n\250A\330\010\030\320\030)\250\021\330\004\013\2104\320\017)\250\021\250%\250~\270Q\200\001\340\016\031\230\025\230n\250L\270\001\330\004\013\2104\320\017(\250\001\250\025\250a\230q\200\001\330&/\250q\330\004\013\2104\210q\200\001\330\036'\240q\330\004\013\2104\210q\320\004-\250[\270\017\300q\360\022\000\t\014\2105\220\003\2203\220a\220q\330\014\022\220*\230A\230Q\330\010\"\240!\340\010\032\230!\340\010)\250\021\330\010\016\210f\220C\220q\330\014)\250\021\250$\250k\270\027\300\006\300a\330\020\021\220""\027\230\001\330\014\020\220\005\220U\230!\2301\330\020\025\220W\230A\230_\250A\250[\270\001\270\022\320;S\320S^\320^_\320_a\320ab\330\014\034\230A\330\010\017\210q\320\004'\240q\360\016\000\t\n\330\010\013\210:\220S\230\001\330\014\030\320\030,\250A\330\014*\250!\250;\3206I\310\026\310q\330\014*\250!\250;\3206I\310\026\310q\330\014+\2501\250K\3207K\3106\320QR\330\014/\250q\260\013\320;S\320SY\320YZ\330\014-\250Q\250k\3209O\310v\320UV\360\006\000\t\022\220\023\220A\330\010\021\220\023\220A\330\010\022\220#\220Q\330\010\023\2203\220a\330\010\024\220C\220q\360\006\000\t\020\210z\230\027\240\001\330\010\017\210z\230\027\240\001\330\010\017\210{\230'\240\021\330\010\017\210|\2307\240!\330\010\017\210}\230G\2401\340\010\032\230!\2304\230{\250%\250{\270'\300\021\300!\320\004\037\230q\330!\"\330!*\250!\330#)\250\021\330 /\250q\360\"\000\t$\2408\2501\330\010'\240q\330\010\013\210;\220g\230Q\330\014\033\230:\240W\250A\330\010\033\2301\230D\240\001\330\034\035\330\034'\240q\330\034\035\330\034\035\330\034\035\320\004'\240q\360\014\000\t\030\220q\230\004\230J\240e\2501\330\010\013\2104\320\017+\2501\250D\260\001\330\014\r\320\004*\250(\260!\360\"\000\t\022\220\031\230'\240\021\330\010\027\320\027/\250q\260\007\260y\300\001\330\010)\250\021\330\014\020\220\013\230>\250\021\250!\340\010\017\210{\230!\330\014\023\2201\330\014\023\2201\330\014\023\2201\320\004\030\230\001\360\016\000\t\020\210r\220\023\220A\330\014\022\220*\230A\330\010\022\220!\2204\220z\240\021\330\010\013\2104\320\017+\2501\250D\260\001\330\014\r\320\004)\250\021\360 \000\t\020\210s\220!\2201\330\010\030\320\030)\250\026\250q\260\005\260R\260q\330\010\013\2104\210q\330\014\r\340\010\t\330\014\020\220\004\220F\230*\240I\250Q\250j\270\006\270a\330\020\031\230\024\230W\240A\330\020\031\230\027\320 2\260!\2609\270A\330\020\031\230\031\240!\330\020\035\230Q\230e\2401\330\014\"\240!\2404\240{\260/\300\021\340\014\020\220\001\220\021\320\004\032\230!\330\010\017\210t\2205\230\001\320\004,\320,?\270v\300V\3101\360\030""\000\t\035\230C\230w\240a\330\010\037\320\0371\260\021\260'\270\031\300!\330\010+\2501\340\010\031\230\021\360\006\000\t*\250\021\330\010\016\210o\230S\240\001\330\0141\260\021\330\020\024\220A\330\020\021\330\020\021\330\020\021\330\020\021\220\021\330\020\021\330\014\020\220\005\220U\230!\2301\330\020 \240\001\240\026\240q\250\004\250A\330\020\024\220A\220U\230!\330\020\031\230\021\330\020\024\220G\2301\230F\240'\250\021\330\014\034\230A\330\010\017\210q\320\004(\250\010\260\001\360\034\000\t\022\220\026\220w\230a\330\010\022\320\022+\2501\250D\260\013\2707\300(\310#\310Q\310i\320WX\320XY\330\010\017\210w\220m\2401\320\004'\240x\250q\360\014\000\t\020\320\017*\250!\2504\250{\270!\320\004\030\230\001\340\010\017\210x\220q\230\004\230G\2404\240x\250t\2606\270\024\270Q\320\004\037\230x\240q\330\010\017\210\177\230a\230t\240:\250U\260!\320\004/\250x\260q\360\036\000\t \230t\2401\330\010\033\2301\340\010)\250\021\330\010(\250\001\340\010\016\210l\230#\230Q\330\014*\250!\2506\260\037\300\016\310a\310}\320\\]\330\014\020\220\005\220U\230!\2301\330\020\026\220g\230Q\230e\2409\250A\250X\260Q\260a\340\010\017\210~\230Q\330\014\023\2201\330\014\024\320\0243\2601\260F\270!\330\014\022\320\022%\240Q\320&C\3001\300F\310!";
    PyObject *data = NULL;
    CYTHON_UNUSED_VAR(__Pyx_DecompressString);
    #endif
    PyObject **stringtab = __pyx_mstate->__pyx_string_tab;
    Py_ssize_t pos = 0;
    for (int i = 0; i < 1150; i++) {
      Py_ssize_t bytes_length = index[i].length;
      PyObject *string = PyUnicode_DecodeUTF8(bytes + pos, bytes_length, NULL);
      if (likely(string) && i >= 218) PyUnicode_InternInPlace(&string);
      if (unlikely(!string)) {
        Py_XDECREF(data);
        __PYX_ERR(0, 1, __pyx_L1_error)
      }
      stringtab[i] = string;
      pos += bytes_length;
    }
    for (int i = 1150; i < 1340; i++) {
      Py_ssize_t bytes_length = index[i].length;
      PyObject *string = PyBytes_FromStringAndSize(bytes + pos, bytes_length);
      stringtab[i] = string;
      pos += bytes_length;
      if (unlikely(!string)) {
        Py_XDECREF(data);
        __PYX_ERR(0, 1, __pyx_L1_error)
      }
    }
    Py_XDECREF(data);
    for (Py_ssize_t i = 0; i < 1340; i++) {
      if (unlikely(PyObject_Hash(stringtab[i]) == -1)) {
        __PYX_ERR(0, 1, __pyx_L1_error)
      }
    }
    #if CYTHON_IMMORTAL_CONSTANTS
    {
      PyObject **table = stringtab + 1150;
      for (Py_ssize_t i=0; i<190; ++i) {
        #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
        #if PY_VERSION_HEX < 0x030E0000
        if (_Py_IsOwnedByCurrentThread(table[i]) && Py_REFCNT(table[i]) == 1)
        #else
        if (PyUnstable_Object_IsUniquelyReferenced(table[i]))
        #endif
        {
          Py_SET_REFCNT(table[i], _Py_IMMORTAL_REFCNT_LOCAL);
        }
        #else
        Py_SET_REFCNT(table[i], _Py_IMMORTAL_INITIAL_REFCNT);
        #endif
      }
    }
    #endif
  }
  {
    PyObject **numbertab = __pyx_mstate->__pyx_number_tab + 0;
    int8_t const cint_constants_1[] = {0,-1,1};
    int16_t const cint_constants_2[] = {16384};
    int32_t const cint_constants_4[] = {65535L};
    for (int i = 0; i < 5; i++) {
      numbertab[i] = PyLong_FromLong((i < 3 ? cint_constants_1[i - 0] : (i < 4 ? cint_constants_2[i - 3] : cint_constants_4[i - 4])));
      if (unlikely(!numbertab[i])) __PYX_ERR(0, 1, __pyx_L1_error)
    }
  }
  #if CYTHON_IMMORTAL_CONSTANTS
  {
    PyObject **table = __pyx_mstate->__pyx_number_tab;
    for (Py_ssize_t i=0; i<5; ++i) {
      #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
      #if PY_VERSION_HEX < 0x030E0000
      if (_Py_IsOwnedByCurrentThread(table[i]) && Py_REFCNT(table[i]) == 1)
      #else
      if (PyUnstable_Object_IsUniquelyReferenced(table[i]))
      #endif
      {
        Py_SET_REFCNT(table[i], _Py_IMMORTAL_REFCNT_LOCAL);
      }
      #else
      Py_SET_REFCNT(table[i], _Py_IMMORTAL_INITIAL_REFCNT);
      #endif
    }
  }
  #endif
  return 0;
  __pyx_L1_error:;
  return -1;
}
/* #### Code section: init_codeobjects ### */
typedef struct {
    unsigned int argcount : 3;
    unsigned int num_posonly_args : 1;
    unsigned int num_kwonly_args : 1;
    unsigned int nlocals : 5;
    unsigned int flags : 10;
    unsigned int first_line : 11;
} __Pyx_PyCode_New_function_description;
/* NewCodeObj.proto */
static PyObject* __Pyx_PyCode_New(
        const __Pyx_PyCode_New_function_description descr,
        PyObject * const *varnames,
        PyObject *filename,
        PyObject *funcname,
        PyObject *line_table,
        PyObject *tuple_dedup_map
);


static int __Pyx_CreateCodeObjects(__pyx_mstatetype *__pyx_mstate) {
  PyObject* tuple_dedup_map = PyDict_New();
  if (unlikely(!tuple_dedup_map)) return -1;
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS|CO_VARKEYWORDS), 56};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_args, __pyx_mstate->__pyx_n_u_kwargs, __pyx_mstate->__pyx_n_u_message};
    __pyx_mstate_global->__pyx_codeobj_tab[0] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_wrapper, __pyx_mstate->__pyx_kp_b_iso88591_b_Q_q_81A_xwa_Qiq_d_1_4r, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[0])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 55};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_func, __pyx_mstate->__pyx_n_u_wrapper, __pyx_mstate->__pyx_n_u_wrapper, __pyx_mstate->__pyx_n_u_notice, __pyx_mstate->__pyx_n_u_existing};
    __pyx_mstate_global->__pyx_codeobj_tab[1] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_decorator, __pyx_mstate->__pyx_kp_b_iso88591_A_aq_1G7_1_aq_7_3a_Q_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[1])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 300};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[2] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__set_pxi, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__13, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[2])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 151};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[3] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__map_pxi, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__14, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[3])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 158};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[4] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__map_pxi, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__14, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[4])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 164};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[5] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__map_pxi, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[5])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 32};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_cstr, __pyx_mstate->__pyx_n_u_packed};
    __pyx_mstate_global->__pyx_codeobj_tab[6] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_version_string, __pyx_mstate->__pyx_kp_b_iso88591_Q_6, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[6])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 48};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_replacement, __pyx_mstate->__pyx_n_u_since, __pyx_mstate->__pyx_n_u_decorator, __pyx_mstate->__pyx_n_u_decorator};
    __pyx_mstate_global->__pyx_codeobj_tab[7] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_deprecated_2, __pyx_mstate->__pyx_kp_b_iso88591_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[7])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 42};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_c};
    __pyx_mstate_global->__pyx_codeobj_tab[8] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__set_pxi, __pyx_mstate->__pyx_n_u_copy, __pyx_mstate->__pyx_kp_b_iso88591_a_Cq_Kq_A_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[8])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 54};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[9] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__set_pxi, __pyx_mstate->__pyx_n_u_copy_2, __pyx_mstate->__pyx_kp_b_iso88591_t5, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[9])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 57};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[10] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__set_pxi, __pyx_mstate->__pyx_n_u_clear, __pyx_mstate->__pyx_kp_b_iso88591_A_AT, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[10])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 68};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[11] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__set_pxi, __pyx_mstate->__pyx_n_u_invert, __pyx_mstate->__pyx_kp_b_iso88591_A_Qd, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[11])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 76};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[12] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__set_pxi, __pyx_mstate->__pyx_n_u_is_inverted, __pyx_mstate->__pyx_kp_b_iso88591_Q_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[12])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 93};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_c};
    __pyx_mstate_global->__pyx_codeobj_tab[13] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__set_pxi, __pyx_mstate->__pyx_n_u_add, __pyx_mstate->__pyx_kp_b_iso88591_Q_4z_4_1D, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[13])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 103};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_first, __pyx_mstate->__pyx_n_u_last};
    __pyx_mstate_global->__pyx_codeobj_tab[14] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__set_pxi, __pyx_mstate->__pyx_n_u_add_range, __pyx_mstate->__pyx_kp_b_iso88591_Zwa_4_1D, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[14])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 114};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_c};
    __pyx_mstate_global->__pyx_codeobj_tab[15] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__set_pxi, __pyx_mstate->__pyx_n_u_remove, __pyx_mstate->__pyx_kp_b_iso88591_r_A_A_4z_4_1D, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[15])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 127};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_c};
    __pyx_mstate_global->__pyx_codeobj_tab[16] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__set_pxi, __pyx_mstate->__pyx_n_u_discard, __pyx_mstate->__pyx_kp_b_iso88591_4z_4_1D, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[16])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 137};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_first, __pyx_mstate->__pyx_n_u_last};
    __pyx_mstate_global->__pyx_codeobj_tab[17] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__set_pxi, __pyx_mstate->__pyx_n_u_del_range, __pyx_mstate->__pyx_kp_b_iso88591_Zwa_4_1D_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[17])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 151};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_other};
    __pyx_mstate_global->__pyx_codeobj_tab[18] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__set_pxi, __pyx_mstate->__pyx_n_u_is_equal, __pyx_mstate->__pyx_kp_b_iso88591_xq_at_U, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[18])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 159};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_larger_set};
    __pyx_mstate_global->__pyx_codeobj_tab[19] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__set_pxi, __pyx_mstate->__pyx_n_u_issubset, __pyx_mstate->__pyx_kp_b_iso88591_81_q_Jj, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[19])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 170};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_smaller_set};
    __pyx_mstate_global->__pyx_codeobj_tab[20] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__set_pxi, __pyx_mstate->__pyx_n_u_issuperset, __pyx_mstate->__pyx_kp_b_iso88591_ha_q_T, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[20])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 181};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_other};
    __pyx_mstate_global->__pyx_codeobj_tab[21] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__set_pxi, __pyx_mstate->__pyx_n_u_set_2, __pyx_mstate->__pyx_kp_b_iso88591_4z_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[21])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 184};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_other, __pyx_mstate->__pyx_n_u_c};
    __pyx_mstate_global->__pyx_codeobj_tab[22] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__set_pxi, __pyx_mstate->__pyx_n_u_set, __pyx_mstate->__pyx_kp_b_iso88591_A_4q_s_Qa_Q_4z_4_1D, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[22])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 201};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_other};
    __pyx_mstate_global->__pyx_codeobj_tab[23] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__set_pxi, __pyx_mstate->__pyx_n_u_update, __pyx_mstate->__pyx_kp_b_iso88591_Q_AT_5, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[23])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 204};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_other, __pyx_mstate->__pyx_n_u_c};
    __pyx_mstate_global->__pyx_codeobj_tab[24] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__set_pxi, __pyx_mstate->__pyx_n_u_update_2, __pyx_mstate->__pyx_kp_b_iso88591_A_4q_s_Q_4z_4_1D, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[24])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 225};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_other};
    __pyx_mstate_global->__pyx_codeobj_tab[25] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__set_pxi, __pyx_mstate->__pyx_n_u_intersection_update, __pyx_mstate->__pyx_kp_b_iso88591_ZuA_4_1D, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[25])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 239};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_other};
    __pyx_mstate_global->__pyx_codeobj_tab[26] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__set_pxi, __pyx_mstate->__pyx_n_u_difference_update, __pyx_mstate->__pyx_kp_b_iso88591_q_q_Je1_4_1D, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[26])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 253};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_other};
    __pyx_mstate_global->__pyx_codeobj_tab[27] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__set_pxi, __pyx_mstate->__pyx_n_u_symmetric_difference_update, __pyx_mstate->__pyx_kp_b_iso88591_1_1D_q_4_1D, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[27])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[28] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[28])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[29] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[29])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[30] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[30])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[31] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[31])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 40};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_c};
    __pyx_mstate_global->__pyx_codeobj_tab[32] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__map_pxi, __pyx_mstate->__pyx_n_u_copy, __pyx_mstate->__pyx_kp_b_iso88591_a_Cq_Kq_A_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[32])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 52};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[33] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__map_pxi, __pyx_mstate->__pyx_n_u_copy_2, __pyx_mstate->__pyx_kp_b_iso88591_t5, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[33])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 55};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_other};
    __pyx_mstate_global->__pyx_codeobj_tab[34] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__map_pxi, __pyx_mstate->__pyx_n_u_update, __pyx_mstate->__pyx_kp_b_iso88591_a_Qd_E, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[34])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 58};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_other, __pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[35] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__map_pxi, __pyx_mstate->__pyx_n_u_update_2, __pyx_mstate->__pyx_kp_b_iso88591_A_4q_s_uF_4z_A_4_1D, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[35])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 76};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[36] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__map_pxi, __pyx_mstate->__pyx_n_u_clear, __pyx_mstate->__pyx_kp_b_iso88591_A_AT, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[36])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 90};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_other};
    __pyx_mstate_global->__pyx_codeobj_tab[37] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__map_pxi, __pyx_mstate->__pyx_n_u_is_equal, __pyx_mstate->__pyx_kp_b_iso88591_xq_at_U, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[37])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 103};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[38] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__map_pxi, __pyx_mstate->__pyx_n_u_get, __pyx_mstate->__pyx_kp_b_iso88591_Q_2Rr_Bc_Q_1_Jat_Q_2S_A_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[38])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 139};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[39] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__map_pxi, __pyx_mstate->__pyx_n_u_items, __pyx_mstate->__pyx_kp_b_iso88591_A_waq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[39])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 146};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr};
    __pyx_mstate_global->__pyx_codeobj_tab[40] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__map_pxi, __pyx_mstate->__pyx_n_u_keys, __pyx_mstate->__pyx_kp_b_iso88591_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[40])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 153};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr};
    __pyx_mstate_global->__pyx_codeobj_tab[41] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__map_pxi, __pyx_mstate->__pyx_n_u_values, __pyx_mstate->__pyx_kp_b_iso88591_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[41])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[42] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[42])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[43] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[43])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[44] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[44])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[45] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[45])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 33};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_cls, __pyx_mstate->__pyx_n_u_filename, __pyx_mstate->__pyx_n_u_packed, __pyx_mstate->__pyx_n_u_blob, __pyx_mstate->__pyx_n_u_inst};
    __pyx_mstate_global->__pyx_codeobj_tab[46] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__blob_pxi, __pyx_mstate->__pyx_n_u_from_file_path, __pyx_mstate->__pyx_kp_b_iso88591_A_1_Biq_q_q_5_1_q_2_1_AQ_L_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[46])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[47] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[47])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[48] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[48])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[49] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[49])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[50] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[50])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[51] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[51])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[52] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[52])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 470};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_cls, __pyx_mstate->__pyx_n_u_inst};
    __pyx_mstate_global->__pyx_codeobj_tab[53] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__buffer_pxi, __pyx_mstate->__pyx_n_u_create, __pyx_mstate->__pyx_kp_b_iso88591_A_3a_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[53])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 479};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[54] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__buffer_pxi, __pyx_mstate->__pyx_n_u_reset, __pyx_mstate->__pyx_kp_b_iso88591_A_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[54])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 488};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[55] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__buffer_pxi, __pyx_mstate->__pyx_n_u_clear_contents, __pyx_mstate->__pyx_kp_b_iso88591_A_Q_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[55])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 749};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_value, __pyx_mstate->__pyx_n_u_packed, __pyx_mstate->__pyx_n_u_cstr};
    __pyx_mstate_global->__pyx_codeobj_tab[56] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__buffer_pxi, __pyx_mstate->__pyx_n_u_set_language_from_ot_tag, __pyx_mstate->__pyx_kp_b_iso88591_a_E_a_2_3EQgQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[56])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 762};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_value, __pyx_mstate->__pyx_n_u_packed, __pyx_mstate->__pyx_n_u_cstr};
    __pyx_mstate_global->__pyx_codeobj_tab[57] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__buffer_pxi, __pyx_mstate->__pyx_n_u_set_script_from_ot_tag, __pyx_mstate->__pyx_kp_b_iso88591_A_E_A_0_1C1G1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[57])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 775};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_codepoints, __pyx_mstate->__pyx_n_u_item_offset, __pyx_mstate->__pyx_n_u_item_length, __pyx_mstate->__pyx_n_u_size, __pyx_mstate->__pyx_n_u_hb_codepoints, __pyx_mstate->__pyx_n_u_i};
    __pyx_mstate_global->__pyx_codeobj_tab[58] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__buffer_pxi, __pyx_mstate->__pyx_n_u_add_codepoints, __pyx_mstate->__pyx_kp_b_iso88591_AQ_4q_q_1_E_aq_z__F_q_AQ_4_at1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[58])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 819};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_text, __pyx_mstate->__pyx_n_u_item_offset, __pyx_mstate->__pyx_n_u_item_length};
    __pyx_mstate_global->__pyx_codeobj_tab[59] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__buffer_pxi, __pyx_mstate->__pyx_n_u_add_utf8, __pyx_mstate->__pyx_kp_b_iso88591_Q_4G1_V3awm1_4_at1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[59])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 842};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_text, __pyx_mstate->__pyx_n_u_item_offset, __pyx_mstate->__pyx_n_u_item_length, __pyx_mstate->__pyx_n_u_ucs4_buffer, __pyx_mstate->__pyx_n_u_text_length};
    __pyx_mstate_global->__pyx_codeobj_tab[60] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__buffer_pxi, __pyx_mstate->__pyx_n_u_add_str, __pyx_mstate->__pyx_kp_b_iso88591_A_37_1_s_Qa_4q_j_q_A_1_t_2_4q_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[60])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 882};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[61] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__buffer_pxi, __pyx_mstate->__pyx_n_u_guess_segment_properties, __pyx_mstate->__pyx_kp_b_iso88591_A_4q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[61])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 902};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_callback};
    __pyx_mstate_global->__pyx_codeobj_tab[62] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__buffer_pxi, __pyx_mstate->__pyx_n_u_set_message_func, __pyx_mstate->__pyx_kp_b_iso88591_4_M_RS, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[62])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 916};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_font, __pyx_mstate->__pyx_n_u_format, __pyx_mstate->__pyx_n_u_flags, __pyx_mstate->__pyx_n_u_num_glyphs, __pyx_mstate->__pyx_n_u_start, __pyx_mstate->__pyx_n_u_cstr, __pyx_mstate->__pyx_n_u_consumed, __pyx_mstate->__pyx_n_u_packed};
    __pyx_mstate_global->__pyx_codeobj_tab[63] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__buffer_pxi, __pyx_mstate->__pyx_n_u_serialize, __pyx_mstate->__pyx_kp_b_iso88591_A_22Gq_00DMQR_1D_A_fBa_A_A_y_1_d, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[63])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[64] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[64])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[65] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[65])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 65};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[66] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__face_pxi, __pyx_mstate->__pyx_n_u_to_int, __pyx_mstate->__pyx_kp_b_iso88591_xq_G4xt6_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[66])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 69};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_value, __pyx_mstate->__pyx_n_u_r, __pyx_mstate->__pyx_n_u_g, __pyx_mstate->__pyx_n_u_b, __pyx_mstate->__pyx_n_u_a};
    __pyx_mstate_global->__pyx_codeobj_tab[67] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__face_pxi, __pyx_mstate->__pyx_n_u_from_int, __pyx_mstate->__pyx_kp_b_iso88591_A_AQ_aq_Qa_aq_uAS_3a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[67])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 434};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_cls, __pyx_mstate->__pyx_n_u_blob, __pyx_mstate->__pyx_n_u_index, __pyx_mstate->__pyx_n_u_inst};
    __pyx_mstate_global->__pyx_codeobj_tab[68] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__face_pxi, __pyx_mstate->__pyx_n_u_create, __pyx_mstate->__pyx_kp_b_iso88591_A_fA_AV1_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[68])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 440};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_cls, __pyx_mstate->__pyx_n_u_func, __pyx_mstate->__pyx_n_u_user_data, __pyx_mstate->__pyx_n_u_inst};
    __pyx_mstate_global->__pyx_codeobj_tab[69] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__face_pxi, __pyx_mstate->__pyx_n_u_create_for_tables, __pyx_mstate->__pyx_kp_b_iso88591_A_1_AQ_L_1_7_Q_Qd_Qc_fA_Q_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[69])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 552};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_tag, __pyx_mstate->__pyx_n_u_packed, __pyx_mstate->__pyx_n_u_hb_tag, __pyx_mstate->__pyx_n_u_blob};
    __pyx_mstate_global->__pyx_codeobj_tab[70] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__face_pxi, __pyx_mstate->__pyx_n_u_reference_table, __pyx_mstate->__pyx_kp_b_iso88591_81_Cwa_1_6at_a_5_1_9AQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[70])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 570};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_func, __pyx_mstate->__pyx_n_u_user_data};
    __pyx_mstate_global->__pyx_codeobj_tab[71] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__face_pxi, __pyx_mstate->__pyx_n_u_set_get_table_tags_func, __pyx_mstate->__pyx_kp_b_iso88591_A_4A_A_q_1_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[71])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 640};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_variation_selector, __pyx_mstate->__pyx_n_u_s};
    __pyx_mstate_global->__pyx_codeobj_tab[72] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__face_pxi, __pyx_mstate->__pyx_n_u_variation_unicodes, __pyx_mstate->__pyx_kp_b_iso88591_5XQ_Cq_4_Naq_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[72])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 749};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_glyph};
    __pyx_mstate_global->__pyx_codeobj_tab[73] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__face_pxi, __pyx_mstate->__pyx_n_u_is_glyph_extended_math_shape, __pyx_mstate->__pyx_kp_b_iso88591_2_1_k, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[73])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 774};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_glyph, __pyx_mstate->__pyx_n_u_ret, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_start_offset, __pyx_mstate->__pyx_n_u_layer_count, __pyx_mstate->__pyx_n_u_layers};
    __pyx_mstate_global->__pyx_codeobj_tab[74] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__face_pxi, __pyx_mstate->__pyx_n_u_get_glyph_color_layers, __pyx_mstate->__pyx_kp_b_iso88591_HA_l_Q_Qm_U_1_7_q_ar_q_A_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[74])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 806};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_palette_index, __pyx_mstate->__pyx_n_u_face, __pyx_mstate->__pyx_n_u_colors, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_start_offset, __pyx_mstate->__pyx_n_u_color_count, __pyx_mstate->__pyx_n_u_c_colors};
    __pyx_mstate_global->__pyx_codeobj_tab[75] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__face_pxi, __pyx_mstate->__pyx_n_u_get_color_palette, __pyx_mstate->__pyx_kp_b_iso88591_xq_t1_1_l_Q_6_a_U_1_gQe9AXQa_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[75])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 853};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_color_index, __pyx_mstate->__pyx_n_u_name_id};
    __pyx_mstate_global->__pyx_codeobj_tab[76] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__face_pxi, __pyx_mstate->__pyx_n_u_color_palette_color_get_name_id, __pyx_mstate->__pyx_kp_b_iso88591_81_8_83a_1_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[76])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 880};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_glyph};
    __pyx_mstate_global->__pyx_codeobj_tab[77] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__face_pxi, __pyx_mstate->__pyx_n_u_glyph_has_color_paint, __pyx_mstate->__pyx_kp_b_iso88591_81_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[77])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 901};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_glyph, __pyx_mstate->__pyx_n_u_blob};
    __pyx_mstate_global->__pyx_codeobj_tab[78] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__face_pxi, __pyx_mstate->__pyx_n_u_get_glyph_color_svg, __pyx_mstate->__pyx_kp_b_iso88591_at_a_9AQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[78])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 939};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_glyph};
    __pyx_mstate_global->__pyx_codeobj_tab[79] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__face_pxi, __pyx_mstate->__pyx_n_u_get_layout_glyph_class, __pyx_mstate->__pyx_kp_b_iso88591_HA_at_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[79])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 970};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_lookup_index, __pyx_mstate->__pyx_n_u_glyph, __pyx_mstate->__pyx_n_u_alternates, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_start_offset, __pyx_mstate->__pyx_n_u_alternate_count, __pyx_mstate->__pyx_n_u_c_alternates};
    __pyx_mstate_global->__pyx_codeobj_tab[80] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__face_pxi, __pyx_mstate->__pyx_n_u_get_lookup_glyph_alternates, __pyx_mstate->__pyx_kp_b_iso88591_8_HA_q_A_c_4AT_NRYYZ_U_1_aq_A_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[80])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 12, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 994};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_tag, __pyx_mstate->__pyx_n_u_script_index, __pyx_mstate->__pyx_n_u_language_index, __pyx_mstate->__pyx_n_u_packed, __pyx_mstate->__pyx_n_u_hb_tag, __pyx_mstate->__pyx_n_u_feature_count, __pyx_mstate->__pyx_n_u_c_tags, __pyx_mstate->__pyx_n_u_tags, __pyx_mstate->__pyx_n_u_cstr, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_start_offset};
    __pyx_mstate_global->__pyx_codeobj_tab[81] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__face_pxi, __pyx_mstate->__pyx_n_u_get_language_feature_tags, __pyx_mstate->__pyx_kp_b_iso88591_A_06a28_1_Cwa_1_nCq_2_A_U_1_q_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[81])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 11, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1033};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_tag, __pyx_mstate->__pyx_n_u_script_index, __pyx_mstate->__pyx_n_u_packed, __pyx_mstate->__pyx_n_u_hb_tag, __pyx_mstate->__pyx_n_u_language_count, __pyx_mstate->__pyx_n_u_c_tags, __pyx_mstate->__pyx_n_u_tags, __pyx_mstate->__pyx_n_u_cstr, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_start_offset};
    __pyx_mstate_global->__pyx_codeobj_tab[82] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__face_pxi, __pyx_mstate->__pyx_n_u_get_script_language_tags, __pyx_mstate->__pyx_kp_b_iso88591_vV1_Cwa_1_1_oS_1_A_U_1_q_A_AU_G, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[82])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 10, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1069};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_tag, __pyx_mstate->__pyx_n_u_packed, __pyx_mstate->__pyx_n_u_hb_tag, __pyx_mstate->__pyx_n_u_script_count, __pyx_mstate->__pyx_n_u_c_tags, __pyx_mstate->__pyx_n_u_tags, __pyx_mstate->__pyx_n_u_cstr, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_start_offset};
    __pyx_mstate_global->__pyx_codeobj_tab[83] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__face_pxi, __pyx_mstate->__pyx_n_u_get_table_script_tags, __pyx_mstate->__pyx_kp_b_iso88591_Cwa_1_m3a_a_A_U_1_q_A_AU_G1F_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[83])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1103};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_ret, __pyx_mstate->__pyx_n_u_num_entries, __pyx_mstate->__pyx_n_u_entries, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_cstr, __pyx_mstate->__pyx_n_u_packed, __pyx_mstate->__pyx_n_u_language, __pyx_mstate->__pyx_n_u_name_id};
    __pyx_mstate_global->__pyx_codeobj_tab[84] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__face_pxi, __pyx_mstate->__pyx_n_u_list_names, __pyx_mstate->__pyx_kp_b_iso88591_A_q_Kq_E_aq_1_uCq_1_6_war_T_AWA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[84])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1133};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_name_id, __pyx_mstate->__pyx_n_u_language, __pyx_mstate->__pyx_n_u_packed, __pyx_mstate->__pyx_n_u_lang, __pyx_mstate->__pyx_n_u_text, __pyx_mstate->__pyx_n_u_length, __pyx_mstate->__pyx_n_u_result};
    __pyx_mstate_global->__pyx_codeobj_tab[85] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__face_pxi, __pyx_mstate->__pyx_n_u_get_name, __pyx_mstate->__pyx_kp_b_iso88591_DMQZZ_9Cq_XWA_7_1_AT_IV6_1_a_7, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[85])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[86] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[86])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[87] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[87])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 65};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_font, __pyx_mstate->__pyx_n_u_gid};
    __pyx_mstate_global->__pyx_codeobj_tab[88] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__draw_pxi, __pyx_mstate->__pyx_n_u_get_glyph_shape, __pyx_mstate->__pyx_kp_b_iso88591_A_q_Kq_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[88])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 69};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_font, __pyx_mstate->__pyx_n_u_gid, __pyx_mstate->__pyx_n_u_draw_data};
    __pyx_mstate_global->__pyx_codeobj_tab[89] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__draw_pxi, __pyx_mstate->__pyx_n_u_draw_glyph, __pyx_mstate->__pyx_kp_b_iso88591_A_1_Kq_V1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[89])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 73};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_func, __pyx_mstate->__pyx_n_u_user_data, __pyx_mstate->__pyx_n_u_func_p, __pyx_mstate->__pyx_n_u_user_data_p};
    __pyx_mstate_global->__pyx_codeobj_tab[90] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__draw_pxi, __pyx_mstate->__pyx_n_u_set_move_to_func, __pyx_mstate->__pyx_kp_b_iso88591_A_Q_AV1_A_A_g_9_Q_gQ_Q_S_a_a_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[90])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 97};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_func, __pyx_mstate->__pyx_n_u_user_data, __pyx_mstate->__pyx_n_u_func_p, __pyx_mstate->__pyx_n_u_user_data_p};
    __pyx_mstate_global->__pyx_codeobj_tab[91] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__draw_pxi, __pyx_mstate->__pyx_n_u_set_line_to_func, __pyx_mstate->__pyx_kp_b_iso88591_A_Q_AV1_A_A_g_9_Q_gQ_Q_S_a_a_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[91])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 121};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_func, __pyx_mstate->__pyx_n_u_user_data, __pyx_mstate->__pyx_n_u_func_p, __pyx_mstate->__pyx_n_u_user_data_p};
    __pyx_mstate_global->__pyx_codeobj_tab[92] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__draw_pxi, __pyx_mstate->__pyx_n_u_set_cubic_to_func, __pyx_mstate->__pyx_kp_b_iso88591_A_a_AV1_B_6_A_g_9_Q_gQ_Q_S_a_q_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[92])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 149};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_func, __pyx_mstate->__pyx_n_u_user_data, __pyx_mstate->__pyx_n_u_func_p, __pyx_mstate->__pyx_n_u_user_data_p};
    __pyx_mstate_global->__pyx_codeobj_tab[93] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__draw_pxi, __pyx_mstate->__pyx_n_u_set_quadratic_to_func, __pyx_mstate->__pyx_kp_b_iso88591_A_3_AV1_a_22FavQ_A_g_9_Q_gQ_a_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[93])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 175};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_func, __pyx_mstate->__pyx_n_u_user_data, __pyx_mstate->__pyx_n_u_func_p, __pyx_mstate->__pyx_n_u_user_data_p};
    __pyx_mstate_global->__pyx_codeobj_tab[94] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__draw_pxi, __pyx_mstate->__pyx_n_u_set_close_path_func, __pyx_mstate->__pyx_kp_b_iso88591_A_1_AV1_A_00DAV1_A_g_9_Q_gQ_A_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[94])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[95] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[95])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[96] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[96])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[97] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[97])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[98] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[98])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 508};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_func};
    __pyx_mstate_global->__pyx_codeobj_tab[99] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__paint_pxi, __pyx_mstate->__pyx_n_u_set_push_transform_func, __pyx_mstate->__pyx_kp_b_iso88591_A_A_a_WF, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[99])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 531};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_func};
    __pyx_mstate_global->__pyx_codeobj_tab[100] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__paint_pxi, __pyx_mstate->__pyx_n_u_set_pop_transform_func, __pyx_mstate->__pyx_kp_b_iso88591_A_1_Q_G6, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[100])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 547};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_func};
    __pyx_mstate_global->__pyx_codeobj_tab[101] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__paint_pxi, __pyx_mstate->__pyx_n_u_set_color_glyph_func, __pyx_mstate->__pyx_kp_b_iso88591_A_1_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[101])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 564};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_func};
    __pyx_mstate_global->__pyx_codeobj_tab[102] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__paint_pxi, __pyx_mstate->__pyx_n_u_set_push_clip_glyph_func, __pyx_mstate->__pyx_kp_b_iso88591_A_Q_q_gV1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[102])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 583};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_func};
    __pyx_mstate_global->__pyx_codeobj_tab[103] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__paint_pxi, __pyx_mstate->__pyx_n_u_set_push_clip_rectangle_func, __pyx_mstate->__pyx_kp_b_iso88591_A_31_B_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[103])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 607};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_func};
    __pyx_mstate_global->__pyx_codeobj_tab[104] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__paint_pxi, __pyx_mstate->__pyx_n_u_set_pop_clip_func, __pyx_mstate->__pyx_kp_b_iso88591_A_a_7wfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[104])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 623};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_func};
    __pyx_mstate_global->__pyx_codeobj_tab[105] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__paint_pxi, __pyx_mstate->__pyx_n_u_set_color_func, __pyx_mstate->__pyx_kp_b_iso88591_A_O1_Q_4G6, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[105])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 642};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_func};
    __pyx_mstate_global->__pyx_codeobj_tab[106] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__paint_pxi, __pyx_mstate->__pyx_n_u_set_image_func, __pyx_mstate->__pyx_kp_b_iso88591_A_O1_Q_4G6_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[106])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 668};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_func};
    __pyx_mstate_global->__pyx_codeobj_tab[107] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__paint_pxi, __pyx_mstate->__pyx_n_u_set_linear_gradient_func, __pyx_mstate->__pyx_kp_b_iso88591_A_Q_q_gV1_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[107])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 694};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_func};
    __pyx_mstate_global->__pyx_codeobj_tab[108] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__paint_pxi, __pyx_mstate->__pyx_n_u_set_radial_gradient_func, __pyx_mstate->__pyx_kp_b_iso88591_A_Q_q_gV1_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[108])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 720};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_func};
    __pyx_mstate_global->__pyx_codeobj_tab[109] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__paint_pxi, __pyx_mstate->__pyx_n_u_set_sweep_gradient_func, __pyx_mstate->__pyx_kp_b_iso88591_A_A_a_WF_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[109])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 744};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_func};
    __pyx_mstate_global->__pyx_codeobj_tab[110] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__paint_pxi, __pyx_mstate->__pyx_n_u_set_push_group_func, __pyx_mstate->__pyx_kp_b_iso88591_A_9_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[110])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 761};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_func};
    __pyx_mstate_global->__pyx_codeobj_tab[111] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__paint_pxi, __pyx_mstate->__pyx_n_u_set_pop_group_func, __pyx_mstate->__pyx_kp_b_iso88591_A_q_8_vQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[111])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 780};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_func};
    __pyx_mstate_global->__pyx_codeobj_tab[112] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__paint_pxi, __pyx_mstate->__pyx_n_u_set_custom_palette_color_func, __pyx_mstate->__pyx_kp_b_iso88591_A_4A_C7_PQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[112])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[113] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[113])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[114] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[114])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 336};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_cls, __pyx_mstate->__pyx_n_u_face, __pyx_mstate->__pyx_n_u_inst};
    __pyx_mstate_global->__pyx_codeobj_tab[115] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_create, __pyx_mstate->__pyx_kp_b_iso88591_A_1_AQ_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[115])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 537};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_variations, __pyx_mstate->__pyx_n_u_size, __pyx_mstate->__pyx_n_u_hb_variations, __pyx_mstate->__pyx_n_u_packed, __pyx_mstate->__pyx_n_u_variation, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_name_2, __pyx_mstate->__pyx_n_u_value};
    __pyx_mstate_global->__pyx_codeobj_tab[116] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_set_variations, __pyx_mstate->__pyx_kp_b_iso88591_s_1_q_Rq_4q_F_IQj_a_WA_2_9A_Qe1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[116])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 568};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_name_2, __pyx_mstate->__pyx_n_u_value, __pyx_mstate->__pyx_n_u_packed, __pyx_mstate->__pyx_n_u_tag};
    __pyx_mstate_global->__pyx_codeobj_tab[117] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_set_variation, __pyx_mstate->__pyx_kp_b_iso88591_a_WA_ay_Qd_U, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[117])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 585};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_gid, __pyx_mstate->__pyx_n_u_name_2, __pyx_mstate->__pyx_n_u_packed, __pyx_mstate->__pyx_n_u_success};
    __pyx_mstate_global->__pyx_codeobj_tab[118] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_get_glyph_name, __pyx_mstate->__pyx_kp_b_iso88591_V1_1_Q_6_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[118])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 608};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_name_2, __pyx_mstate->__pyx_n_u_gid, __pyx_mstate->__pyx_n_u_packed, __pyx_mstate->__pyx_n_u_success};
    __pyx_mstate_global->__pyx_codeobj_tab[119] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_get_glyph_from_name, __pyx_mstate->__pyx_kp_b_iso88591_WA_Qd_WHCqPYYZZ_wm1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[119])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 625};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_gid, __pyx_mstate->__pyx_n_u_extents, __pyx_mstate->__pyx_n_u_success};
    __pyx_mstate_global->__pyx_codeobj_tab[120] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_get_glyph_extents, __pyx_mstate->__pyx_kp_b_iso88591_XQ_1D_5_1_q_q_q_q_q_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[120])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 648};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_gid};
    __pyx_mstate_global->__pyx_codeobj_tab[121] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_get_glyph_h_advance, __pyx_mstate->__pyx_kp_b_iso88591_xq_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[121])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 656};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_gid};
    __pyx_mstate_global->__pyx_codeobj_tab[122] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_get_glyph_v_advance, __pyx_mstate->__pyx_kp_b_iso88591_xq_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[122])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 664};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_gid, __pyx_mstate->__pyx_n_u_x, __pyx_mstate->__pyx_n_u_y, __pyx_mstate->__pyx_n_u_success};
    __pyx_mstate_global->__pyx_codeobj_tab[123] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_get_glyph_h_origin, __pyx_mstate->__pyx_kp_b_iso88591_ha_AT_E_Qa_q_6_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[123])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 678};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_gid, __pyx_mstate->__pyx_n_u_x, __pyx_mstate->__pyx_n_u_y, __pyx_mstate->__pyx_n_u_success};
    __pyx_mstate_global->__pyx_codeobj_tab[124] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_get_glyph_v_origin, __pyx_mstate->__pyx_kp_b_iso88591_ha_AT_E_Qa_q_6_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[124])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 692};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_direction, __pyx_mstate->__pyx_n_u_extents, __pyx_mstate->__pyx_n_u_hb_direction, __pyx_mstate->__pyx_n_u_packed};
    __pyx_mstate_global->__pyx_codeobj_tab[125] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_get_font_extents, __pyx_mstate->__pyx_kp_b_iso88591_q_y_1_1_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[125])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 720};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_unicode, __pyx_mstate->__pyx_n_u_variation_selector, __pyx_mstate->__pyx_n_u_gid, __pyx_mstate->__pyx_n_u_success};
    __pyx_mstate_global->__pyx_codeobj_tab[126] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_get_variation_glyph, __pyx_mstate->__pyx_kp_b_iso88591_DHA_Qd_YFZZ_wm1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[126])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 733};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_unicode, __pyx_mstate->__pyx_n_u_gid, __pyx_mstate->__pyx_n_u_success};
    __pyx_mstate_global->__pyx_codeobj_tab[127] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_get_nominal_glyph, __pyx_mstate->__pyx_kp_b_iso88591_1D_9AQ_wm1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[127])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 745};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_length, __pyx_mstate->__pyx_n_u_coords, __pyx_mstate->__pyx_n_u_i};
    __pyx_mstate_global->__pyx_codeobj_tab[128] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_get_var_coords_normalized, __pyx_mstate->__pyx_kp_b_iso88591_1_2_4_1_q_as_G4uE, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[128])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 760};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_coords, __pyx_mstate->__pyx_n_u_length, __pyx_mstate->__pyx_n_u_coords_2dot14, __pyx_mstate->__pyx_n_u_i};
    __pyx_mstate_global->__pyx_codeobj_tab[129] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_set_var_coords_normalized, __pyx_mstate->__pyx_kp_b_iso88591_0_AQ_vQgRq_A_U_1_Qe5_q_2Q_Qd__A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[129])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 785};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_length, __pyx_mstate->__pyx_n_u_coords, __pyx_mstate->__pyx_n_u_i};
    __pyx_mstate_global->__pyx_codeobj_tab[130] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_get_var_coords_design, __pyx_mstate->__pyx_kp_b_iso88591_A_at_aq_q_as_e5, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[130])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 797};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_coords, __pyx_mstate->__pyx_n_u_length, __pyx_mstate->__pyx_n_u_c_coords, __pyx_mstate->__pyx_n_u_i};
    __pyx_mstate_global->__pyx_codeobj_tab[131] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_set_var_coords_design, __pyx_mstate->__pyx_kp_b_iso88591_A_AQ_9Cq_U_1_fAQ_k_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[131])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 821};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_gid, __pyx_mstate->__pyx_n_u_name_2, __pyx_mstate->__pyx_n_u_packed};
    __pyx_mstate_global->__pyx_codeobj_tab[132] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_glyph_to_string, __pyx_mstate->__pyx_kp_b_iso88591_81_q_KuF_vWA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[132])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 836};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_string, __pyx_mstate->__pyx_n_u_gid, __pyx_mstate->__pyx_n_u_packed, __pyx_mstate->__pyx_n_u_success};
    __pyx_mstate_global->__pyx_codeobj_tab[133] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_glyph_from_string, __pyx_mstate->__pyx_kp_b_iso88591_wa_1D_7_QiWXXY_wm1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[133])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 854};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_gid, __pyx_mstate->__pyx_n_u_draw_funcs, __pyx_mstate->__pyx_n_u_draw_state, __pyx_mstate->__pyx_n_u_draw_state_p};
    __pyx_mstate_global->__pyx_codeobj_tab[134] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_draw_glyph, __pyx_mstate->__pyx_kp_b_iso88591_Fiq_A_8_7q_A_4_z9I, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[134])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {6, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 872};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_gid, __pyx_mstate->__pyx_n_u_paint_funcs, __pyx_mstate->__pyx_n_u_paint_state, __pyx_mstate->__pyx_n_u_palette_index, __pyx_mstate->__pyx_n_u_foreground, __pyx_mstate->__pyx_n_u_paint_state_p, __pyx_mstate->__pyx_n_u_c_foreground};
    __pyx_mstate_global->__pyx_codeobj_tab[135] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_paint_glyph, __pyx_mstate->__pyx_kp_b_iso88591_q_q_81_q_gQ_WA_1D_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[135])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 904};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_gid, __pyx_mstate->__pyx_n_u_pen, __pyx_mstate->__pyx_n_u_moveTo, __pyx_mstate->__pyx_n_u_lineTo, __pyx_mstate->__pyx_n_u_curveTo, __pyx_mstate->__pyx_n_u_qCurveTo, __pyx_mstate->__pyx_n_u_closePath, __pyx_mstate->__pyx_n_u_methods};
    __pyx_mstate_global->__pyx_codeobj_tab[136] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_draw_glyph_with_pen, __pyx_mstate->__pyx_kp_b_iso88591_q_S_A_6I_q_6I_q_1K7K6QR_q_SSYYZ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[136])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 937};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_constant};
    __pyx_mstate_global->__pyx_codeobj_tab[137] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_get_math_constant, __pyx_mstate->__pyx_kp_b_iso88591_Q_9Cs_1_AQ_at_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[137])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 958};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_glyph};
    __pyx_mstate_global->__pyx_codeobj_tab[138] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_get_math_glyph_italics_correctio, __pyx_mstate->__pyx_kp_b_iso88591_7xq_6at_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[138])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 967};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_glyph};
    __pyx_mstate_global->__pyx_codeobj_tab[139] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_get_math_glyph_top_accent_attach, __pyx_mstate->__pyx_kp_b_iso88591_9_k, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[139])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 976};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_direction, __pyx_mstate->__pyx_n_u_packed, __pyx_mstate->__pyx_n_u_cstr, __pyx_mstate->__pyx_n_u_hb_direction};
    __pyx_mstate_global->__pyx_codeobj_tab[140] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_get_math_min_connector_overlap, __pyx_mstate->__pyx_kp_b_iso88591_8_IWA_C1G1_31D_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[140])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 989};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_glyph, __pyx_mstate->__pyx_n_u_kern, __pyx_mstate->__pyx_n_u_correction_height};
    __pyx_mstate_global->__pyx_codeobj_tab[141] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_get_math_glyph_kerning, __pyx_mstate->__pyx_kp_b_iso88591_K7VV___5_3aq_AQ_1D_7, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[141])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1002};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_glyph, __pyx_mstate->__pyx_n_u_kern, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_kerns_array, __pyx_mstate->__pyx_n_u_kerns, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_start_offset};
    __pyx_mstate_global->__pyx_codeobj_tab[142] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_get_math_glyph_kernings, __pyx_mstate->__pyx_kp_b_iso88591_q_5_3aq_AQ_fCq_k_a_U_1_WA_A_SS, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[142])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 11, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1026};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_glyph, __pyx_mstate->__pyx_n_u_direction, __pyx_mstate->__pyx_n_u_packed, __pyx_mstate->__pyx_n_u_cstr, __pyx_mstate->__pyx_n_u_hb_direction, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_variants_array, __pyx_mstate->__pyx_n_u_variants, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_start_offset};
    __pyx_mstate_global->__pyx_codeobj_tab[143] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_get_math_glyph_variants, __pyx_mstate->__pyx_kp_b_iso88591_XQ_IWA_C1G1_Q_fCq_k_a_U_1_q_2_H, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[143])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 12, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1049};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_glyph, __pyx_mstate->__pyx_n_u_direction, __pyx_mstate->__pyx_n_u_packed, __pyx_mstate->__pyx_n_u_cstr, __pyx_mstate->__pyx_n_u_hb_direction, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_assembly_array, __pyx_mstate->__pyx_n_u_assembly, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_start_offset, __pyx_mstate->__pyx_n_u_italics_correction};
    __pyx_mstate_global->__pyx_codeobj_tab[144] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_get_math_glyph_assembly, __pyx_mstate->__pyx_kp_b_iso88591_XQ_IWA_C1G1_Q_0_fCq_a_Q_U_1_q_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[144])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1082};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_tag, __pyx_mstate->__pyx_n_u_position};
    __pyx_mstate_global->__pyx_codeobj_tab[145] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_get_metric_position, __pyx_mstate->__pyx_kp_b_iso88591_8_Qd_U_1_1_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[145])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1096};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_tag, __pyx_mstate->__pyx_n_u_position};
    __pyx_mstate_global->__pyx_codeobj_tab[146] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_get_metric_position_with_fallbac, __pyx_mstate->__pyx_kp_b_iso88591_55Fa_1_Qa_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[146])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1107};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_tag};
    __pyx_mstate_global->__pyx_codeobj_tab[147] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_get_metric_variation, __pyx_mstate->__pyx_kp_b_iso88591_9_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[147])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1116};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_tag};
    __pyx_mstate_global->__pyx_codeobj_tab[148] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_get_metric_x_variation, __pyx_mstate->__pyx_kp_b_iso88591_1_AT_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[148])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1125};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_tag};
    __pyx_mstate_global->__pyx_codeobj_tab[149] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_get_metric_y_variation, __pyx_mstate->__pyx_kp_b_iso88591_1_AT_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[149])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1135};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_glyph, __pyx_mstate->__pyx_n_u_blob};
    __pyx_mstate_global->__pyx_codeobj_tab[150] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_get_glyph_color_png, __pyx_mstate->__pyx_kp_b_iso88591_at_a_9AQ_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[150])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 12, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1151};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_baseline_tag, __pyx_mstate->__pyx_n_u_direction, __pyx_mstate->__pyx_n_u_script_tag, __pyx_mstate->__pyx_n_u_language_tag, __pyx_mstate->__pyx_n_u_hb_baseline_tag, __pyx_mstate->__pyx_n_u_hb_direction, __pyx_mstate->__pyx_n_u_hb_script_tag, __pyx_mstate->__pyx_n_u_hb_language_tag, __pyx_mstate->__pyx_n_u_hb_position, __pyx_mstate->__pyx_n_u_success, __pyx_mstate->__pyx_n_u_packed};
    __pyx_mstate_global->__pyx_codeobj_tab[151] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_get_layout_baseline, __pyx_mstate->__pyx_kp_b_iso88591_A_1_1_a_Q_a_Q_a_Q_a_Q_a_Q_a_Q_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[151])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1212};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_tag};
    __pyx_mstate_global->__pyx_codeobj_tab[152] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_get_style_value, __pyx_mstate->__pyx_kp_b_iso88591_k_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[152])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[153] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[153])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[154] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[154])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1399};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_cls, __pyx_mstate->__pyx_n_u_inst};
    __pyx_mstate_global->__pyx_codeobj_tab[155] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_create, __pyx_mstate->__pyx_kp_b_iso88591_A_c_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[155])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1405};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_func, __pyx_mstate->__pyx_n_u_user_data};
    __pyx_mstate_global->__pyx_codeobj_tab[156] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_set_glyph_h_advance_func, __pyx_mstate->__pyx_kp_b_iso88591_A_6Q_a_4G_a_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[156])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1422};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_func, __pyx_mstate->__pyx_n_u_user_data};
    __pyx_mstate_global->__pyx_codeobj_tab[157] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_set_glyph_v_advance_func, __pyx_mstate->__pyx_kp_b_iso88591_A_6Q_a_4G_a_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[157])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1439};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_func, __pyx_mstate->__pyx_n_u_user_data};
    __pyx_mstate_global->__pyx_codeobj_tab[158] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_set_glyph_v_origin_func, __pyx_mstate->__pyx_kp_b_iso88591_A_5A_Q_37_Q_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[158])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1456};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_func, __pyx_mstate->__pyx_n_u_user_data};
    __pyx_mstate_global->__pyx_codeobj_tab[159] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_set_glyph_name_func, __pyx_mstate->__pyx_kp_b_iso88591_A_1_wk, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[159])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1472};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_func, __pyx_mstate->__pyx_n_u_user_data};
    __pyx_mstate_global->__pyx_codeobj_tab[160] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_set_nominal_glyph_func, __pyx_mstate->__pyx_kp_b_iso88591_A_41_A_2_A_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[160])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1488};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_func, __pyx_mstate->__pyx_n_u_user_data};
    __pyx_mstate_global->__pyx_codeobj_tab[161] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_set_variation_glyph_func, __pyx_mstate->__pyx_kp_b_iso88591_A_41_a_4G_a_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[161])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1506};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_func, __pyx_mstate->__pyx_n_u_user_data};
    __pyx_mstate_global->__pyx_codeobj_tab[162] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_set_font_h_extents_func, __pyx_mstate->__pyx_kp_b_iso88591_A_5A_Q_37_Q_A_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[162])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1522};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_func, __pyx_mstate->__pyx_n_u_user_data};
    __pyx_mstate_global->__pyx_codeobj_tab[163] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__font_pxi, __pyx_mstate->__pyx_n_u_set_font_v_extents_func, __pyx_mstate->__pyx_kp_b_iso88591_A_5A_Q_37_Q_A_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[163])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[164] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[164])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[165] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[165])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 66};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_format, __pyx_mstate->__pyx_n_u_extents, __pyx_mstate->__pyx_n_u_c_extents, __pyx_mstate->__pyx_n_u_c_extents_ptr};
    __pyx_mstate_global->__pyx_codeobj_tab[166] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__raster_pxi, __pyx_mstate->__pyx_n_u_configure, __pyx_mstate->__pyx_kp_b_iso88591_2_1_3_87_YgQ_Zwa_Zwa_AQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[166])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 92};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[167] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__raster_pxi, __pyx_mstate->__pyx_n_u_clear, __pyx_mstate->__pyx_kp_b_iso88591_A_Qd_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[167])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[168] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[168])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[169] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[169])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 246};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_extents, __pyx_mstate->__pyx_n_u_c_extents};
    __pyx_mstate_global->__pyx_codeobj_tab[170] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__raster_pxi, __pyx_mstate->__pyx_n_u_set_glyph_extents, __pyx_mstate->__pyx_kp_b_iso88591_gQ_gQ_7_q_4Faq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[170])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 266};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_font, __pyx_mstate->__pyx_n_u_glyph};
    __pyx_mstate_global->__pyx_codeobj_tab[171] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__raster_pxi, __pyx_mstate->__pyx_n_u_draw_glyph, __pyx_mstate->__pyx_kp_b_iso88591_A_AT_34, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[171])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 276};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_font, __pyx_mstate->__pyx_n_u_glyph};
    __pyx_mstate_global->__pyx_codeobj_tab[172] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__raster_pxi, __pyx_mstate->__pyx_n_u_draw_glyph_or_fail, __pyx_mstate->__pyx_kp_b_iso88591_HA_1D0B_kQR, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[172])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 287};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_img};
    __pyx_mstate_global->__pyx_codeobj_tab[173] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__raster_pxi, __pyx_mstate->__pyx_n_u_render, __pyx_mstate->__pyx_kp_b_iso88591_1D_4s_1_1A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[173])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 305};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[174] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__raster_pxi, __pyx_mstate->__pyx_n_u_clear, __pyx_mstate->__pyx_kp_b_iso88591_A_AT_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[174])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 316};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[175] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__raster_pxi, __pyx_mstate->__pyx_n_u_reset, __pyx_mstate->__pyx_kp_b_iso88591_A_AT_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[175])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[176] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[176])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[177] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[177])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 422};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_extents, __pyx_mstate->__pyx_n_u_c_extents};
    __pyx_mstate_global->__pyx_codeobj_tab[178] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__raster_pxi, __pyx_mstate->__pyx_n_u_set_glyph_extents, __pyx_mstate->__pyx_kp_b_iso88591_gQ_gQ_7_0_5H, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[178])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 498};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_color_index, __pyx_mstate->__pyx_n_u_color};
    __pyx_mstate_global->__pyx_codeobj_tab[179] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__raster_pxi, __pyx_mstate->__pyx_n_u_set_custom_palette_color, __pyx_mstate->__pyx_kp_b_iso88591_4L_7q_WA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[179])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 515};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[180] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__raster_pxi, __pyx_mstate->__pyx_n_u_clear_custom_palette_colors, __pyx_mstate->__pyx_kp_b_iso88591_A_41D, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[180])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 527};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_font, __pyx_mstate->__pyx_n_u_glyph};
    __pyx_mstate_global->__pyx_codeobj_tab[181] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__raster_pxi, __pyx_mstate->__pyx_n_u_paint_glyph, __pyx_mstate->__pyx_kp_b_iso88591_Q_Qd_5T_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[181])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 538};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_font, __pyx_mstate->__pyx_n_u_glyph};
    __pyx_mstate_global->__pyx_codeobj_tab[182] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__raster_pxi, __pyx_mstate->__pyx_n_u_paint_glyph_or_fail, __pyx_mstate->__pyx_kp_b_iso88591_XQ_AT1DD_ST, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[182])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 548};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_img};
    __pyx_mstate_global->__pyx_codeobj_tab[183] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__raster_pxi, __pyx_mstate->__pyx_n_u_render, __pyx_mstate->__pyx_kp_b_iso88591_AT_4s_1_1A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[183])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 572};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[184] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__raster_pxi, __pyx_mstate->__pyx_n_u_clear, __pyx_mstate->__pyx_kp_b_iso88591_A_Qd_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[184])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 583};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[185] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__raster_pxi, __pyx_mstate->__pyx_n_u_reset, __pyx_mstate->__pyx_kp_b_iso88591_A_Qd_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[185])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[186] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[186])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[187] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[187])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[188] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[188])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[189] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[189])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 73};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_subtables, __pyx_mstate->__pyx_n_u_graphnodes};
    __pyx_mstate_global->__pyx_codeobj_tab[190] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__serialize_pxi, __pyx_mstate->__pyx_n_u_repack, __pyx_mstate->__pyx_kp_b_iso88591_9A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[190])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 78};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_tag, __pyx_mstate->__pyx_n_u_subtables, __pyx_mstate->__pyx_n_u_graphnodes};
    __pyx_mstate_global->__pyx_codeobj_tab[191] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__serialize_pxi, __pyx_mstate->__pyx_n_u_repack_with_tag, __pyx_mstate->__pyx_kp_b_iso88591_Qe_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[191])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 83};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_subtables, __pyx_mstate->__pyx_n_u_graphnodes};
    __pyx_mstate_global->__pyx_codeobj_tab[192] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__serialize_pxi, __pyx_mstate->__pyx_n_u_serialize, __pyx_mstate->__pyx_kp_b_iso88591_Qd_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[192])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 18, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 93};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_tag, __pyx_mstate->__pyx_n_u_subtables, __pyx_mstate->__pyx_n_u_graphnodes, __pyx_mstate->__pyx_n_u_num_nodes, __pyx_mstate->__pyx_n_u_table_bytes, __pyx_mstate->__pyx_n_u_table_data, __pyx_mstate->__pyx_n_u_head, __pyx_mstate->__pyx_n_u_tail, __pyx_mstate->__pyx_n_u_p, __pyx_mstate->__pyx_n_u_obj_list, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_node, __pyx_mstate->__pyx_n_u_tag_packed, __pyx_mstate->__pyx_n_u_cstr, __pyx_mstate->__pyx_n_u_packed_blob, __pyx_mstate->__pyx_n_u_blob_length, __pyx_mstate->__pyx_n_u_blob_data, __pyx_mstate->__pyx_n_u_packed};
    __pyx_mstate_global->__pyx_codeobj_tab[193] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__serialize_pxi, __pyx_mstate->__pyx_n_u_serialize_with_tag, __pyx_mstate->__pyx_kp_b_iso88591_A_0x_s_c_AQ_j_Qc_MQcQRRS_AQ_CuA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[193])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_face, __pyx_mstate->__pyx_n_u_new_face};
    __pyx_mstate_global->__pyx_codeobj_tab[194] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__subset_pxi, __pyx_mstate->__pyx_n_u_subset_preprocess, __pyx_mstate->__pyx_kp_b_iso88591_IQ_1D_y, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[194])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 23};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_face, __pyx_mstate->__pyx_n_u_input, __pyx_mstate->__pyx_n_u_new_face};
    __pyx_mstate_global->__pyx_codeobj_tab[195] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__subset_pxi, __pyx_mstate->__pyx_n_u_subset, __pyx_mstate->__pyx_kp_b_iso88591_a_Q_y_1_l_1_y, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[195])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 177};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_source};
    __pyx_mstate_global->__pyx_codeobj_tab[196] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__subset_pxi, __pyx_mstate->__pyx_n_u_subset, __pyx_mstate->__pyx_kp_b_iso88591_Ya_vQha, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[196])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 183};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[197] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__subset_pxi, __pyx_mstate->__pyx_n_u_keep_everything, __pyx_mstate->__pyx_kp_b_iso88591_A_q_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[197])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 194};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_face};
    __pyx_mstate_global->__pyx_codeobj_tab[198] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__subset_pxi, __pyx_mstate->__pyx_n_u_pin_all_axes_to_default, __pyx_mstate->__pyx_kp_b_iso88591_IQ_6at_t1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[198])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 207};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_face, __pyx_mstate->__pyx_n_u_tag, __pyx_mstate->__pyx_n_u_hb_tag};
    __pyx_mstate_global->__pyx_codeobj_tab[199] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__subset_pxi, __pyx_mstate->__pyx_n_u_pin_axis_to_default, __pyx_mstate->__pyx_kp_b_iso88591_81_1Cwa_2_D_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[199])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 225};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_face, __pyx_mstate->__pyx_n_u_tag, __pyx_mstate->__pyx_n_u_value, __pyx_mstate->__pyx_n_u_hb_tag};
    __pyx_mstate_global->__pyx_codeobj_tab[200] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__subset_pxi, __pyx_mstate->__pyx_n_u_pin_axis_location, __pyx_mstate->__pyx_kp_b_iso88591_k_Zq_1Cwa_0_D_81, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[200])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {6, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 244};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_face, __pyx_mstate->__pyx_n_u_tag, __pyx_mstate->__pyx_n_u_min_value, __pyx_mstate->__pyx_n_u_max_value, __pyx_mstate->__pyx_n_u_def_value, __pyx_mstate->__pyx_n_u_hb_tag};
    __pyx_mstate_global->__pyx_codeobj_tab[201] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__subset_pxi, __pyx_mstate->__pyx_n_u_set_axis_range, __pyx_mstate->__pyx_kp_b_iso88591_A_1_1_1_4_1_WA_G_S_G_S_G_S_Q_D_8, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[201])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 283};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_tag, __pyx_mstate->__pyx_n_u_hb_tag, __pyx_mstate->__pyx_n_u_axis_min_value, __pyx_mstate->__pyx_n_u_axis_max_value, __pyx_mstate->__pyx_n_u_axis_def_value, __pyx_mstate->__pyx_n_u_min_value, __pyx_mstate->__pyx_n_u_max_value, __pyx_mstate->__pyx_n_u_def_value};
    __pyx_mstate_global->__pyx_codeobj_tab[202] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__subset_pxi, __pyx_mstate->__pyx_n_u_get_axis_range, __pyx_mstate->__pyx_kp_b_iso88591_1_WA_l_Q_aq_Q_1_Q_1_Q_1_k_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[202])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 331};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_set_type};
    __pyx_mstate_global->__pyx_codeobj_tab[203] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__subset_pxi, __pyx_mstate->__pyx_n_u_sets, __pyx_mstate->__pyx_kp_b_iso88591_2_1_Q_A_lRS, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[203])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[204] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[204])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[205] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[205])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 430};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_new_face};
    __pyx_mstate_global->__pyx_codeobj_tab[206] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__subset_pxi, __pyx_mstate->__pyx_n_u_execute, __pyx_mstate->__pyx_kp_b_iso88591_1_a_9Cq_aq_9AQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[206])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[207] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[207])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[208] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[208])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 16, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 96};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_font, __pyx_mstate->__pyx_n_u_buffer, __pyx_mstate->__pyx_n_u_features, __pyx_mstate->__pyx_n_u_shapers, __pyx_mstate->__pyx_n_u_size, __pyx_mstate->__pyx_n_u_hb_features, __pyx_mstate->__pyx_n_u_packed, __pyx_mstate->__pyx_n_u_feat, __pyx_mstate->__pyx_n_u_c_shapers, __pyx_mstate->__pyx_n_u_value, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_name_2, __pyx_mstate->__pyx_n_u_start, __pyx_mstate->__pyx_n_u_end, __pyx_mstate->__pyx_n_u_shaper, __pyx_mstate->__pyx_n_u_ret};
    __pyx_mstate_global->__pyx_codeobj_tab[209] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_shape, __pyx_mstate->__pyx_kp_b_iso88591_a_F_1_1_QgQ_A_Cq_q_Rq_ixvQ_r_6, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[209])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 177};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_tag, __pyx_mstate->__pyx_n_u_packed, __pyx_mstate->__pyx_n_u_hb_tag, __pyx_mstate->__pyx_n_u_hb_script, __pyx_mstate->__pyx_n_u_cstr};
    __pyx_mstate_global->__pyx_codeobj_tab[210] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_tag_to_script, __pyx_mstate->__pyx_kp_b_iso88591_7_QgYa_4AQ_A_a_Q_6, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[210])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 197};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_tag, __pyx_mstate->__pyx_n_u_packed, __pyx_mstate->__pyx_n_u_hb_tag, __pyx_mstate->__pyx_n_u_hb_language, __pyx_mstate->__pyx_n_u_cstr};
    __pyx_mstate_global->__pyx_codeobj_tab[211] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_tag_to_language, __pyx_mstate->__pyx_kp_b_iso88591_HA_7_QgYa_1_1_uCq_q_Q_6, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[211])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 217};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_face, __pyx_mstate->__pyx_n_u_lookup_index, __pyx_mstate->__pyx_n_u_glyph};
    __pyx_mstate_global->__pyx_codeobj_tab[212] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_layout_lookup_get_glyph_alter, __pyx_mstate->__pyx_kp_b_iso88591_0C1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[212])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 223};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_face, __pyx_mstate->__pyx_n_u_tag, __pyx_mstate->__pyx_n_u_script_index, __pyx_mstate->__pyx_n_u_language_index};
    __pyx_mstate_global->__pyx_codeobj_tab[213] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_layout_language_get_feature_t, __pyx_mstate->__pyx_kp_b_iso88591_nA_4_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[213])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 230};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_face, __pyx_mstate->__pyx_n_u_tag, __pyx_mstate->__pyx_n_u_script_index};
    __pyx_mstate_global->__pyx_codeobj_tab[214] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_layout_script_get_language_ta, __pyx_mstate->__pyx_kp_b_iso88591_nL_4_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[214])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 235};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_face, __pyx_mstate->__pyx_n_u_tag};
    __pyx_mstate_global->__pyx_codeobj_tab[215] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_layout_table_get_script_tags, __pyx_mstate->__pyx_kp_b_iso88591_5XQ_4_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[215])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 239};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_font, __pyx_mstate->__pyx_n_u_baseline_tag, __pyx_mstate->__pyx_n_u_direction, __pyx_mstate->__pyx_n_u_script_tag, __pyx_mstate->__pyx_n_u_language_tag};
    __pyx_mstate_global->__pyx_codeobj_tab[216] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_layout_get_baseline, __pyx_mstate->__pyx_kp_b_iso88591_1_4_1N, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[216])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 247};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_face};
    __pyx_mstate_global->__pyx_codeobj_tab[217] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_layout_has_glyph_classes, __pyx_mstate->__pyx_kp_b_iso88591_q_4q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[217])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 251};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_face};
    __pyx_mstate_global->__pyx_codeobj_tab[218] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_layout_has_positioning, __pyx_mstate->__pyx_kp_b_iso88591_Q_4q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[218])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 255};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_face};
    __pyx_mstate_global->__pyx_codeobj_tab[219] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_layout_has_substitution, __pyx_mstate->__pyx_kp_b_iso88591_a_4q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[219])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 259};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_face, __pyx_mstate->__pyx_n_u_glyph};
    __pyx_mstate_global->__pyx_codeobj_tab[220] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_layout_get_glyph_class, __pyx_mstate->__pyx_kp_b_iso88591_1_4_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[220])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 263};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_face};
    __pyx_mstate_global->__pyx_codeobj_tab[221] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_color_has_palettes, __pyx_mstate->__pyx_kp_b_iso88591_4q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[221])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 267};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_face};
    __pyx_mstate_global->__pyx_codeobj_tab[222] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_color_palette_get_count, __pyx_mstate->__pyx_kp_b_iso88591_a_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[222])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 271};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_face, __pyx_mstate->__pyx_n_u_palette_index};
    __pyx_mstate_global->__pyx_codeobj_tab[223] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_color_palette_get_flags, __pyx_mstate->__pyx_kp_b_iso88591_a_AT_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[223])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 275};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_face, __pyx_mstate->__pyx_n_u_palette_index, __pyx_mstate->__pyx_n_u_ret, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_start_offset, __pyx_mstate->__pyx_n_u_color_count, __pyx_mstate->__pyx_n_u_colors};
    __pyx_mstate_global->__pyx_codeobj_tab[224] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_color_palette_get_colors, __pyx_mstate->__pyx_kp_b_iso88591_81_A_Q_A_c_at_o_STTaab_E_aq_wau, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[224])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 288};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_face, __pyx_mstate->__pyx_n_u_palette_index, __pyx_mstate->__pyx_n_u_name_id};
    __pyx_mstate_global->__pyx_codeobj_tab[225] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_color_palette_get_name_id, __pyx_mstate->__pyx_kp_b_iso88591_HA_Qd_Q_xs_q_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[225])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 296};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_face, __pyx_mstate->__pyx_n_u_color_index};
    __pyx_mstate_global->__pyx_codeobj_tab[226] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_color_palette_color_get_name, __pyx_mstate->__pyx_kp_b_iso88591_4_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[226])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 300};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_face};
    __pyx_mstate_global->__pyx_codeobj_tab[227] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_color_has_layers, __pyx_mstate->__pyx_kp_b_iso88591_q_4q_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[227])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 304};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_face, __pyx_mstate->__pyx_n_u_glyph};
    __pyx_mstate_global->__pyx_codeobj_tab[228] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_color_glyph_get_layers, __pyx_mstate->__pyx_kp_b_iso88591_1_4_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[228])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 308};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_face};
    __pyx_mstate_global->__pyx_codeobj_tab[229] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_color_has_paint, __pyx_mstate->__pyx_kp_b_iso88591_a_4q_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[229])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 312};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_face, __pyx_mstate->__pyx_n_u_glyph};
    __pyx_mstate_global->__pyx_codeobj_tab[230] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_color_glyph_has_paint, __pyx_mstate->__pyx_kp_b_iso88591_0_4_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[230])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 316};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_face};
    __pyx_mstate_global->__pyx_codeobj_tab[231] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_color_has_svg, __pyx_mstate->__pyx_kp_b_iso88591_A_4q_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[231])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 320};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_face, __pyx_mstate->__pyx_n_u_glyph};
    __pyx_mstate_global->__pyx_codeobj_tab[232] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_color_glyph_get_svg, __pyx_mstate->__pyx_kp_b_iso88591_ha_4_1A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[232])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 324};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_face};
    __pyx_mstate_global->__pyx_codeobj_tab[233] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_color_has_png, __pyx_mstate->__pyx_kp_b_iso88591_A_4q_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[233])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 328};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_font, __pyx_mstate->__pyx_n_u_glyph};
    __pyx_mstate_global->__pyx_codeobj_tab[234] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_color_glyph_get_png, __pyx_mstate->__pyx_kp_b_iso88591_ha_4_1A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[234])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 333};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_face};
    __pyx_mstate_global->__pyx_codeobj_tab[235] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_math_has_data, __pyx_mstate->__pyx_kp_b_iso88591_A_4q_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[235])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 337};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_font, __pyx_mstate->__pyx_n_u_constant};
    __pyx_mstate_global->__pyx_codeobj_tab[236] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_math_get_constant, __pyx_mstate->__pyx_kp_b_iso88591_B_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[236])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 341};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_font, __pyx_mstate->__pyx_n_u_glyph};
    __pyx_mstate_global->__pyx_codeobj_tab[237] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_math_get_glyph_italics_correc, __pyx_mstate->__pyx_kp_b_iso88591_HA_4_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[237])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 345};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_font, __pyx_mstate->__pyx_n_u_glyph};
    __pyx_mstate_global->__pyx_codeobj_tab[238] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_math_get_glyph_top_accent_att, __pyx_mstate->__pyx_kp_b_iso88591_2_xq_4_4AQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[238])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 349};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_face, __pyx_mstate->__pyx_n_u_glyph};
    __pyx_mstate_global->__pyx_codeobj_tab[239] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_math_is_glyph_extended_shape, __pyx_mstate->__pyx_kp_b_iso88591_7xq_4_AQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[239])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 353};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_font, __pyx_mstate->__pyx_n_u_direction};
    __pyx_mstate_global->__pyx_codeobj_tab[240] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_math_get_min_connector_overla, __pyx_mstate->__pyx_kp_b_iso88591_XQ_4_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[240])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 357};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_font, __pyx_mstate->__pyx_n_u_glyph, __pyx_mstate->__pyx_n_u_kern, __pyx_mstate->__pyx_n_u_correction_height};
    __pyx_mstate_global->__pyx_codeobj_tab[241] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_math_get_glyph_kerning, __pyx_mstate->__pyx_kp_b_iso88591_89_4_awfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[241])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 364};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_font, __pyx_mstate->__pyx_n_u_glyph, __pyx_mstate->__pyx_n_u_kern};
    __pyx_mstate_global->__pyx_codeobj_tab[242] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_math_get_glyph_kernings, __pyx_mstate->__pyx_kp_b_iso88591_4A_4_q_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[242])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 370};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_font, __pyx_mstate->__pyx_n_u_glyph, __pyx_mstate->__pyx_n_u_direction};
    __pyx_mstate_global->__pyx_codeobj_tab[243] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_math_get_glyph_variants, __pyx_mstate->__pyx_kp_b_iso88591_22B_4_q_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[243])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 374};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_font, __pyx_mstate->__pyx_n_u_glyph, __pyx_mstate->__pyx_n_u_direction};
    __pyx_mstate_global->__pyx_codeobj_tab[244] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_math_get_glyph_assembly, __pyx_mstate->__pyx_kp_b_iso88591_2_4_q_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[244])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 381};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_font};
    __pyx_mstate_global->__pyx_codeobj_tab[245] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_uharfbuzz__harfbuzz_pyx, __pyx_mstate->__pyx_n_u_ot_font_set_funcs, __pyx_mstate->__pyx_kp_b_iso88591_A_Q_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[245])) goto bad;
  }
  Py_DECREF(tuple_dedup_map);
  return 0;
  bad:
  Py_DECREF(tuple_dedup_map);
  return -1;
}
/* #### Code section: init_globals ### */

static int __Pyx_InitGlobals(void) {
  /* PythonCompatibility.init */
  if (likely(__Pyx_init_co_variables() == 0)); else
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  /* CommonTypesMetaclass.init */
  if (likely(__pyx_CommonTypesMetaclass_init(__pyx_m) == 0)); else
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  /* CachedMethodType.init */
  #if CYTHON_COMPILING_IN_LIMITED_API
  {
      PyObject *typesModule=NULL;
      typesModule = PyImport_ImportModule("types");
      if (typesModule) {
          __pyx_mstate_global->__Pyx_CachedMethodType = PyObject_GetAttrString(typesModule, "MethodType");
          Py_DECREF(typesModule);
      }
  } // error handling follows
  #endif
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  /* CythonFunctionShared.init */
  if (likely(__pyx_CyFunction_init(__pyx_m) == 0)); else
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  /* AssertionsEnabled.init */
  if (likely(__Pyx_init_assertions_enabled() == 0)); else
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  /* Generator.init */
  if (likely(__pyx_Generator_init(__pyx_m) == 0)); else
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  return 0;
  __pyx_L1_error:;
  return -1;
}
/* #### Code section: cleanup_globals ### */
/* #### Code section: cleanup_module ### */
/* #### Code section: main_method ### */
/* #### Code section: utility_code_pragmas ### */
#ifdef _MSC_VER
#pragma warning( push )
/* Warning 4127: conditional expression is constant
 * Cython uses constant conditional expressions to allow in inline functions to be optimized at
 * compile-time, so this warning is not useful
 */
#pragma warning( disable : 4127 )
#endif



/* #### Code section: utility_code_def ### */

/* --- Runtime support code --- */
/* Refnanny */
#if CYTHON_REFNANNY
static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) {
    PyObject *m = NULL, *p = NULL;
    void *r = NULL;
    m = PyImport_ImportModule(modname);
    if (!m) goto end;
    p = PyObject_GetAttrString(m, "RefNannyAPI");
    if (!p) goto end;
    r = PyLong_AsVoidPtr(p);
end:
    Py_XDECREF(p);
    Py_XDECREF(m);
    return (__Pyx_RefNannyAPIStruct *)r;
}
#endif

/* PyErrExceptionMatches (used by PyObjectGetAttrStrNoError) */
#if CYTHON_FAST_THREAD_STATE
static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
    Py_ssize_t i, n;
    n = PyTuple_GET_SIZE(tuple);
    for (i=0; i<n; i++) {
        if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
    }
    for (i=0; i<n; i++) {
        if (__Pyx_PyErr_GivenExceptionMatches(exc_type, PyTuple_GET_ITEM(tuple, i))) return 1;
    }
    return 0;
}
static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) {
    int result;
    PyObject *exc_type;
#if PY_VERSION_HEX >= 0x030C00A6
    PyObject *current_exception = tstate->current_exception;
    if (unlikely(!current_exception)) return 0;
    exc_type = (PyObject*) Py_TYPE(current_exception);
    if (exc_type == err) return 1;
#else
    exc_type = tstate->curexc_type;
    if (exc_type == err) return 1;
    if (unlikely(!exc_type)) return 0;
#endif
    #if CYTHON_AVOID_BORROWED_REFS
    Py_INCREF(exc_type);
    #endif
    if (unlikely(PyTuple_Check(err))) {
        result = __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err);
    } else {
        result = __Pyx_PyErr_GivenExceptionMatches(exc_type, err);
    }
    #if CYTHON_AVOID_BORROWED_REFS
    Py_DECREF(exc_type);
    #endif
    return result;
}
#endif

/* PyErrFetchRestore (used by PyObjectGetAttrStrNoError) */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
#if PY_VERSION_HEX >= 0x030C00A6
    PyObject *tmp_value;
    assert(type == NULL || (value != NULL && type == (PyObject*) Py_TYPE(value)));
    if (value) {
        #if CYTHON_COMPILING_IN_CPYTHON
        if (unlikely(((PyBaseExceptionObject*) value)->traceback != tb))
        #endif
            PyException_SetTraceback(value, tb);
    }
    tmp_value = tstate->current_exception;
    tstate->current_exception = value;
    Py_XDECREF(tmp_value);
    Py_XDECREF(type);
    Py_XDECREF(tb);
#else
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    tmp_type = tstate->curexc_type;
    tmp_value = tstate->curexc_value;
    tmp_tb = tstate->curexc_traceback;
    tstate->curexc_type = type;
    tstate->curexc_value = value;
    tstate->curexc_traceback = tb;
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
#endif
}
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
#if PY_VERSION_HEX >= 0x030C00A6
    PyObject* exc_value;
    exc_value = tstate->current_exception;
    tstate->current_exception = 0;
    *value = exc_value;
    *type = NULL;
    *tb = NULL;
    if (exc_value) {
        *type = (PyObject*) Py_TYPE(exc_value);
        Py_INCREF(*type);
        #if CYTHON_COMPILING_IN_CPYTHON
        *tb = ((PyBaseExceptionObject*) exc_value)->traceback;
        Py_XINCREF(*tb);
        #else
        *tb = PyException_GetTraceback(exc_value);
        #endif
    }
#else
    *type = tstate->curexc_type;
    *value = tstate->curexc_value;
    *tb = tstate->curexc_traceback;
    tstate->curexc_type = 0;
    tstate->curexc_value = 0;
    tstate->curexc_traceback = 0;
#endif
}
#endif

/* PyObjectGetAttrStr (used by PyObjectGetAttrStrNoError) */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_getattro))
        return tp->tp_getattro(obj, attr_name);
    return PyObject_GetAttr(obj, attr_name);
}
#endif

/* PyObjectGetAttrStrNoError (used by GetBuiltinName) */
#if __PYX_LIMITED_VERSION_HEX < 0x030d0000
static void __Pyx_PyObject_GetAttrStr_ClearAttributeError(void) {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    if (likely(__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError)))
        __Pyx_PyErr_Clear();
}
#endif
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name) {
    PyObject *result;
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
    (void) PyObject_GetOptionalAttr(obj, attr_name, &result);
    return result;
#else
#if CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_TYPE_SLOTS
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_getattro == PyObject_GenericGetAttr)) {
        return _PyObject_GenericGetAttrWithDict(obj, attr_name, NULL, 1);
    }
#endif
    result = __Pyx_PyObject_GetAttrStr(obj, attr_name);
    if (unlikely(!result)) {
        __Pyx_PyObject_GetAttrStr_ClearAttributeError();
    }
    return result;
#endif
}

/* GetBuiltinName */
static PyObject *__Pyx_GetBuiltinName(PyObject *name) {
    PyObject* result = __Pyx_PyObject_GetAttrStrNoError(__pyx_mstate_global->__pyx_b, name);
    if (unlikely(!result) && !PyErr_Occurred()) {
        PyErr_Format(PyExc_NameError,
            "name '%U' is not defined", name);
    }
    return result;
}

/* decode_c_string */
static CYTHON_INLINE PyObject* __Pyx_decode_c_string(
         const char* cstring, Py_ssize_t start, Py_ssize_t stop,
         const char* encoding, const char* errors,
         PyObject* (*decode_func)(const char *s, Py_ssize_t size, const char *errors)) {
    Py_ssize_t length;
    if (unlikely((start < 0) | (stop < 0))) {
        size_t slen = strlen(cstring);
        if (unlikely(slen > (size_t) PY_SSIZE_T_MAX)) {
            PyErr_SetString(PyExc_OverflowError,
                            "c-string too long to convert to Python");
            return NULL;
        }
        length = (Py_ssize_t) slen;
        if (start < 0) {
            start += length;
            if (start < 0)
                start = 0;
        }
        if (stop < 0)
            stop += length;
    }
    if (unlikely(stop <= start))
        return __Pyx_NewRef(__pyx_mstate_global->__pyx_empty_unicode);
    length = stop - start;
    cstring += start;
    if (decode_func) {
        return decode_func(cstring, length, errors);
    } else {
        return PyUnicode_Decode(cstring, length, encoding, errors);
    }
}

/* PyObjectCall (used by PyObjectFastCall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) {
    PyObject *result;
    ternaryfunc call = Py_TYPE(func)->tp_call;
    if (unlikely(!call))
        return PyObject_Call(func, arg, kw);
    if (unlikely(Py_EnterRecursiveCall(" while calling a Python object")))
        return NULL;
    result = (*call)(func, arg, kw);
    Py_LeaveRecursiveCall();
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
        PyErr_SetString(
            PyExc_SystemError,
            "NULL result without error in PyObject_Call");
    }
    return result;
}
#endif

/* PyObjectCallMethO (used by PyObjectFastCall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) {
    PyObject *self, *result;
    PyCFunction cfunc;
    cfunc = __Pyx_CyOrPyCFunction_GET_FUNCTION(func);
    self = __Pyx_CyOrPyCFunction_GET_SELF(func);
    if (unlikely(Py_EnterRecursiveCall(" while calling a Python object")))
        return NULL;
    result = cfunc(self, arg);
    Py_LeaveRecursiveCall();
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
        PyErr_SetString(
            PyExc_SystemError,
            "NULL result without error in PyObject_Call");
    }
    return result;
}
#endif

/* PyObjectFastCall */
#if PY_VERSION_HEX < 0x03090000 || CYTHON_COMPILING_IN_LIMITED_API
static PyObject* __Pyx_PyObject_FastCall_fallback(PyObject *func, PyObject * const*args, size_t nargs, PyObject *kwargs) {
    PyObject *argstuple;
    PyObject *result = 0;
    size_t i;
    argstuple = PyTuple_New((Py_ssize_t)nargs);
    if (unlikely(!argstuple)) return NULL;
    for (i = 0; i < nargs; i++) {
        Py_INCREF(args[i]);
        if (__Pyx_PyTuple_SET_ITEM(argstuple, (Py_ssize_t)i, args[i]) != (0)) goto bad;
    }
    result = __Pyx_PyObject_Call(func, argstuple, kwargs);
  bad:
    Py_DECREF(argstuple);
    return result;
}
#endif
#if CYTHON_VECTORCALL && !CYTHON_COMPILING_IN_LIMITED_API
  #if PY_VERSION_HEX < 0x03090000
    #define __Pyx_PyVectorcall_Function(callable) _PyVectorcall_Function(callable)
  #elif CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE vectorcallfunc __Pyx_PyVectorcall_Function(PyObject *callable) {
    PyTypeObject *tp = Py_TYPE(callable);
    #if defined(__Pyx_CyFunction_USED)
    if (__Pyx_CyFunction_CheckExact(callable)) {
        return __Pyx_CyFunction_func_vectorcall(callable);
    }
    #endif
    if (!PyType_HasFeature(tp, Py_TPFLAGS_HAVE_VECTORCALL)) {
        return NULL;
    }
    assert(PyCallable_Check(callable));
    Py_ssize_t offset = tp->tp_vectorcall_offset;
    assert(offset > 0);
    vectorcallfunc ptr;
    memcpy(&ptr, (char *) callable + offset, sizeof(ptr));
    return ptr;
}
  #else
    #define __Pyx_PyVectorcall_Function(callable) PyVectorcall_Function(callable)
  #endif
#endif
static CYTHON_INLINE PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject *const *args, size_t _nargs, PyObject *kwargs) {
    Py_ssize_t nargs = __Pyx_PyVectorcall_NARGS(_nargs);
#if CYTHON_COMPILING_IN_CPYTHON
    if (nargs == 0 && kwargs == NULL) {
        if (__Pyx_CyOrPyCFunction_Check(func) && likely( __Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_NOARGS))
            return __Pyx_PyObject_CallMethO(func, NULL);
    }
    else if (nargs == 1 && kwargs == NULL) {
        if (__Pyx_CyOrPyCFunction_Check(func) && likely( __Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_O))
            return __Pyx_PyObject_CallMethO(func, args[0]);
    }
#endif
    if (kwargs == NULL) {
        #if CYTHON_VECTORCALL
          #if CYTHON_COMPILING_IN_LIMITED_API
            return PyObject_Vectorcall(func, args, _nargs, NULL);
          #else
            vectorcallfunc f = __Pyx_PyVectorcall_Function(func);
            if (f) {
                return f(func, args, _nargs, NULL);
            }
          #endif
        #endif
    }
    if (nargs == 0) {
        return __Pyx_PyObject_Call(func, __pyx_mstate_global->__pyx_empty_tuple, kwargs);
    }
    #if PY_VERSION_HEX >= 0x03090000 && !CYTHON_COMPILING_IN_LIMITED_API
    return PyObject_VectorcallDict(func, args, (size_t)nargs, kwargs);
    #else
    return __Pyx_PyObject_FastCall_fallback(func, args, (size_t)nargs, kwargs);
    #endif
}

/* WriteUnraisableException */
static void __Pyx_WriteUnraisable(const char *name, int clineno,
                                  int lineno, const char *filename,
                                  int full_traceback, int nogil) {
    PyObject *old_exc, *old_val, *old_tb;
    PyObject *ctx;
    __Pyx_PyThreadState_declare
    PyGILState_STATE state;
    if (nogil)
        state = PyGILState_Ensure();
    else state = (PyGILState_STATE)0;
    CYTHON_UNUSED_VAR(clineno);
    CYTHON_UNUSED_VAR(lineno);
    CYTHON_UNUSED_VAR(filename);
    CYTHON_MAYBE_UNUSED_VAR(nogil);
    __Pyx_PyThreadState_assign
    __Pyx_ErrFetch(&old_exc, &old_val, &old_tb);
    if (full_traceback) {
        Py_XINCREF(old_exc);
        Py_XINCREF(old_val);
        Py_XINCREF(old_tb);
        __Pyx_ErrRestore(old_exc, old_val, old_tb);
        PyErr_PrintEx(0);
    }
    ctx = PyUnicode_FromString(name);
    __Pyx_ErrRestore(old_exc, old_val, old_tb);
    if (!ctx) {
        PyErr_WriteUnraisable(Py_None);
    } else {
        PyErr_WriteUnraisable(ctx);
        Py_DECREF(ctx);
    }
    if (nogil)
        PyGILState_Release(state);
}

/* TupleAndListFromArray (used by fastcall) */
#if !CYTHON_COMPILING_IN_CPYTHON && CYTHON_METH_FASTCALL
static CYTHON_INLINE PyObject *
__Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n)
{
    PyObject *res;
    Py_ssize_t i;
    if (n <= 0) {
        return __Pyx_NewRef(__pyx_mstate_global->__pyx_empty_tuple);
    }
    res = PyTuple_New(n);
    if (unlikely(res == NULL)) return NULL;
    for (i = 0; i < n; i++) {
        Py_INCREF(src[i]);
        if (unlikely(__Pyx_PyTuple_SET_ITEM(res, i, src[i]) < (0))) {
            Py_DECREF(res);
            return NULL;
        }
    }
    return res;
}
#elif CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE void __Pyx_copy_object_array(PyObject *const *CYTHON_RESTRICT src, PyObject** CYTHON_RESTRICT dest, Py_ssize_t length) {
    PyObject *v;
    Py_ssize_t i;
    for (i = 0; i < length; i++) {
        v = dest[i] = src[i];
        Py_INCREF(v);
    }
}
static CYTHON_INLINE PyObject *
__Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n)
{
    PyObject *res;
    if (n <= 0) {
        return __Pyx_NewRef(__pyx_mstate_global->__pyx_empty_tuple);
    }
    res = PyTuple_New(n);
    if (unlikely(res == NULL)) return NULL;
    __Pyx_copy_object_array(src, ((PyTupleObject*)res)->ob_item, n);
    return res;
}
static CYTHON_INLINE PyObject *
__Pyx_PyList_FromArray(PyObject *const *src, Py_ssize_t n)
{
    PyObject *res;
    if (n <= 0) {
        return PyList_New(0);
    }
    res = PyList_New(n);
    if (unlikely(res == NULL)) return NULL;
    __Pyx_copy_object_array(src, ((PyListObject*)res)->ob_item, n);
    return res;
}
#endif

/* BytesEquals (used by UnicodeEquals) */
static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals) {
#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_GRAAL ||\
        !(CYTHON_ASSUME_SAFE_SIZE && CYTHON_ASSUME_SAFE_MACROS)
    return PyObject_RichCompareBool(s1, s2, equals);
#else
    if (s1 == s2) {
        return (equals == Py_EQ);
    } else if (PyBytes_CheckExact(s1) & PyBytes_CheckExact(s2)) {
        const char *ps1, *ps2;
        Py_ssize_t length = PyBytes_GET_SIZE(s1);
        if (length != PyBytes_GET_SIZE(s2))
            return (equals == Py_NE);
        ps1 = PyBytes_AS_STRING(s1);
        ps2 = PyBytes_AS_STRING(s2);
        if (ps1[0] != ps2[0]) {
            return (equals == Py_NE);
        } else if (length == 1) {
            return (equals == Py_EQ);
        } else {
            int result;
#if CYTHON_USE_UNICODE_INTERNALS && (PY_VERSION_HEX < 0x030B0000)
            Py_hash_t hash1, hash2;
            hash1 = ((PyBytesObject*)s1)->ob_shash;
            hash2 = ((PyBytesObject*)s2)->ob_shash;
            if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
                return (equals == Py_NE);
            }
#endif
            result = memcmp(ps1, ps2, (size_t)length);
            return (equals == Py_EQ) ? (result == 0) : (result != 0);
        }
    } else if ((s1 == Py_None) & PyBytes_CheckExact(s2)) {
        return (equals == Py_NE);
    } else if ((s2 == Py_None) & PyBytes_CheckExact(s1)) {
        return (equals == Py_NE);
    } else {
        int result;
        PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
        if (!py_result)
            return -1;
        result = __Pyx_PyObject_IsTrue(py_result);
        Py_DECREF(py_result);
        return result;
    }
#endif
}

/* UnicodeEquals (used by fastcall) */
static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals) {
#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_GRAAL
    return PyObject_RichCompareBool(s1, s2, equals);
#else
    int s1_is_unicode, s2_is_unicode;
    if (s1 == s2) {
        goto return_eq;
    }
    s1_is_unicode = PyUnicode_CheckExact(s1);
    s2_is_unicode = PyUnicode_CheckExact(s2);
    if (s1_is_unicode & s2_is_unicode) {
        Py_ssize_t length, length2;
        int kind;
        void *data1, *data2;
        #if !CYTHON_COMPILING_IN_LIMITED_API
        if (unlikely(__Pyx_PyUnicode_READY(s1) < 0) || unlikely(__Pyx_PyUnicode_READY(s2) < 0))
            return -1;
        #endif
        length = __Pyx_PyUnicode_GET_LENGTH(s1);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(length < 0)) return -1;
        #endif
        length2 = __Pyx_PyUnicode_GET_LENGTH(s2);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(length2 < 0)) return -1;
        #endif
        if (length != length2) {
            goto return_ne;
        }
#if CYTHON_USE_UNICODE_INTERNALS
        {
            Py_hash_t hash1, hash2;
            hash1 = ((PyASCIIObject*)s1)->hash;
            hash2 = ((PyASCIIObject*)s2)->hash;
            if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
                goto return_ne;
            }
        }
#endif
        kind = __Pyx_PyUnicode_KIND(s1);
        if (kind != __Pyx_PyUnicode_KIND(s2)) {
            goto return_ne;
        }
        data1 = __Pyx_PyUnicode_DATA(s1);
        data2 = __Pyx_PyUnicode_DATA(s2);
        if (__Pyx_PyUnicode_READ(kind, data1, 0) != __Pyx_PyUnicode_READ(kind, data2, 0)) {
            goto return_ne;
        } else if (length == 1) {
            goto return_eq;
        } else {
            int result = memcmp(data1, data2, (size_t)(length * kind));
            return (equals == Py_EQ) ? (result == 0) : (result != 0);
        }
    } else if ((s1 == Py_None) & s2_is_unicode) {
        goto return_ne;
    } else if ((s2 == Py_None) & s1_is_unicode) {
        goto return_ne;
    } else {
        int result;
        PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
        if (!py_result)
            return -1;
        result = __Pyx_PyObject_IsTrue(py_result);
        Py_DECREF(py_result);
        return result;
    }
return_eq:
    return (equals == Py_EQ);
return_ne:
    return (equals == Py_NE);
#endif
}

/* fastcall */
#if CYTHON_METH_FASTCALL
static CYTHON_INLINE PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues, PyObject *s)
{
    Py_ssize_t i, n = __Pyx_PyTuple_GET_SIZE(kwnames);
    #if !CYTHON_ASSUME_SAFE_SIZE
    if (unlikely(n == -1)) return NULL;
    #endif
    for (i = 0; i < n; i++)
    {
        PyObject *namei = __Pyx_PyTuple_GET_ITEM(kwnames, i);
        #if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely(!namei)) return NULL;
        #endif
        if (s == namei) return kwvalues[i];
    }
    for (i = 0; i < n; i++)
    {
        PyObject *namei = __Pyx_PyTuple_GET_ITEM(kwnames, i);
        #if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely(!namei)) return NULL;
        #endif
        int eq = __Pyx_PyUnicode_Equals(s, namei, Py_EQ);
        if (unlikely(eq != 0)) {
            if (unlikely(eq < 0)) return NULL;
            return kwvalues[i];
        }
    }
    return NULL;
}
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000 || CYTHON_COMPILING_IN_LIMITED_API
CYTHON_UNUSED static PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues) {
    Py_ssize_t i, nkwargs;
    PyObject *dict;
#if !CYTHON_ASSUME_SAFE_SIZE
    nkwargs = PyTuple_Size(kwnames);
    if (unlikely(nkwargs < 0)) return NULL;
#else
    nkwargs = PyTuple_GET_SIZE(kwnames);
#endif
    dict = PyDict_New();
    if (unlikely(!dict))
        return NULL;
    for (i=0; i<nkwargs; i++) {
#if !CYTHON_ASSUME_SAFE_MACROS
        PyObject *key = PyTuple_GetItem(kwnames, i);
        if (!key) goto bad;
#else
        PyObject *key = PyTuple_GET_ITEM(kwnames, i);
#endif
        if (unlikely(PyDict_SetItem(dict, key, kwvalues[i]) < 0))
            goto bad;
    }
    return dict;
bad:
    Py_DECREF(dict);
    return NULL;
}
#endif
#endif

/* decode_c_bytes (used by decode_bytes) */
static CYTHON_INLINE PyObject* __Pyx_decode_c_bytes(
         const char* cstring, Py_ssize_t length, Py_ssize_t start, Py_ssize_t stop,
         const char* encoding, const char* errors,
         PyObject* (*decode_func)(const char *s, Py_ssize_t size, const char *errors)) {
    if (unlikely((start < 0) | (stop < 0))) {
        if (start < 0) {
            start += length;
            if (start < 0)
                start = 0;
        }
        if (stop < 0)
            stop += length;
    }
    if (stop > length)
        stop = length;
    if (unlikely(stop <= start))
        return __Pyx_NewRef(__pyx_mstate_global->__pyx_empty_unicode);
    length = stop - start;
    cstring += start;
    if (decode_func) {
        return decode_func(cstring, length, errors);
    } else {
        return PyUnicode_Decode(cstring, length, encoding, errors);
    }
}

/* PyObjectCallOneArg (used by CallUnboundCMethod0) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
    PyObject *args[2] = {NULL, arg};
    return __Pyx_PyObject_FastCall(func, args+1, 1 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
}

/* UnpackUnboundCMethod (used by CallUnboundCMethod0) */
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030C0000
static PyObject *__Pyx_SelflessCall(PyObject *method, PyObject *args, PyObject *kwargs) {
    PyObject *result;
    PyObject *selfless_args = PyTuple_GetSlice(args, 1, PyTuple_Size(args));
    if (unlikely(!selfless_args)) return NULL;
    result = PyObject_Call(method, selfless_args, kwargs);
    Py_DECREF(selfless_args);
    return result;
}
#elif CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03090000
static PyObject *__Pyx_SelflessCall(PyObject *method, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) {
        return _PyObject_Vectorcall
            (method, args ? args+1 : NULL, nargs ? nargs-1 : 0, kwnames);
}
#else
static PyObject *__Pyx_SelflessCall(PyObject *method, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) {
    return
#if PY_VERSION_HEX < 0x03090000
    _PyObject_Vectorcall
#else
    PyObject_Vectorcall
#endif
        (method, args ? args+1 : NULL, nargs ? (size_t) nargs-1 : 0, kwnames);
}
#endif
static PyMethodDef __Pyx_UnboundCMethod_Def = {
     "CythonUnboundCMethod",
     __PYX_REINTERPRET_FUNCION(PyCFunction, __Pyx_SelflessCall),
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030C0000
     METH_VARARGS | METH_KEYWORDS,
#else
     METH_FASTCALL | METH_KEYWORDS,
#endif
     NULL
};
static int __Pyx_TryUnpackUnboundCMethod(__Pyx_CachedCFunction* target) {
    PyObject *method, *result=NULL;
    method = __Pyx_PyObject_GetAttrStr(target->type, *target->method_name);
    if (unlikely(!method))
        return -1;
    result = method;
#if CYTHON_COMPILING_IN_CPYTHON
    if (likely(__Pyx_TypeCheck(method, &PyMethodDescr_Type)))
    {
        PyMethodDescrObject *descr = (PyMethodDescrObject*) method;
        target->func = descr->d_method->ml_meth;
        target->flag = descr->d_method->ml_flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_STACKLESS);
    } else
#endif
#if CYTHON_COMPILING_IN_PYPY
#else
    if (PyCFunction_Check(method))
#endif
    {
        PyObject *self;
        int self_found;
#if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY
        self = PyObject_GetAttrString(method, "__self__");
        if (!self) {
            PyErr_Clear();
        }
#else
        self = PyCFunction_GET_SELF(method);
#endif
        self_found = (self && self != Py_None);
#if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY
        Py_XDECREF(self);
#endif
        if (self_found) {
            PyObject *unbound_method = PyCFunction_New(&__Pyx_UnboundCMethod_Def, method);
            if (unlikely(!unbound_method)) return -1;
            Py_DECREF(method);
            result = unbound_method;
        }
    }
#if !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    if (unlikely(target->method)) {
        Py_DECREF(result);
    } else
#endif
    target->method = result;
    return 0;
}

/* CallUnboundCMethod0 */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self) {
    int was_initialized = __Pyx_CachedCFunction_GetAndSetInitializing(cfunc);
    if (likely(was_initialized == 2 && cfunc->func)) {
        if (likely(cfunc->flag == METH_NOARGS))
            return __Pyx_CallCFunction(cfunc, self, NULL);
        if (likely(cfunc->flag == METH_FASTCALL))
            return __Pyx_CallCFunctionFast(cfunc, self, NULL, 0);
        if (cfunc->flag == (METH_FASTCALL | METH_KEYWORDS))
            return __Pyx_CallCFunctionFastWithKeywords(cfunc, self, NULL, 0, NULL);
        if (likely(cfunc->flag == (METH_VARARGS | METH_KEYWORDS)))
            return __Pyx_CallCFunctionWithKeywords(cfunc, self, __pyx_mstate_global->__pyx_empty_tuple, NULL);
        if (cfunc->flag == METH_VARARGS)
            return __Pyx_CallCFunction(cfunc, self, __pyx_mstate_global->__pyx_empty_tuple);
        return __Pyx__CallUnboundCMethod0(cfunc, self);
    }
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    else if (unlikely(was_initialized == 1)) {
        __Pyx_CachedCFunction tmp_cfunc = {
#ifndef __cplusplus
            0
#endif
        };
        tmp_cfunc.type = cfunc->type;
        tmp_cfunc.method_name = cfunc->method_name;
        return __Pyx__CallUnboundCMethod0(&tmp_cfunc, self);
    }
#endif
    PyObject *result = __Pyx__CallUnboundCMethod0(cfunc, self);
    __Pyx_CachedCFunction_SetFinishedInitializing(cfunc);
    return result;
}
#endif
static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self) {
    PyObject *result;
    if (unlikely(!cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL;
    result = __Pyx_PyObject_CallOneArg(cfunc->method, self);
    return result;
}

/* py_dict_items (used by OwnedDictNext) */
static CYTHON_INLINE PyObject* __Pyx_PyDict_Items(PyObject* d) {
    return __Pyx_CallUnboundCMethod0(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_items, d);
}

/* py_dict_values (used by OwnedDictNext) */
static CYTHON_INLINE PyObject* __Pyx_PyDict_Values(PyObject* d) {
    return __Pyx_CallUnboundCMethod0(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_values, d);
}

/* OwnedDictNext (used by ParseKeywordsImpl) */
#if CYTHON_AVOID_BORROWED_REFS
static int __Pyx_PyDict_NextRef(PyObject *p, PyObject **ppos, PyObject **pkey, PyObject **pvalue) {
    PyObject *next = NULL;
    if (!*ppos) {
        if (pvalue) {
            PyObject *dictview = pkey ? __Pyx_PyDict_Items(p) : __Pyx_PyDict_Values(p);
            if (unlikely(!dictview)) goto bad;
            *ppos = PyObject_GetIter(dictview);
            Py_DECREF(dictview);
        } else {
            *ppos = PyObject_GetIter(p);
        }
        if (unlikely(!*ppos)) goto bad;
    }
    next = PyIter_Next(*ppos);
    if (!next) {
        if (PyErr_Occurred()) goto bad;
        return 0;
    }
    if (pkey && pvalue) {
        *pkey = __Pyx_PySequence_ITEM(next, 0);
        if (unlikely(*pkey)) goto bad;
        *pvalue = __Pyx_PySequence_ITEM(next, 1);
        if (unlikely(*pvalue)) goto bad;
        Py_DECREF(next);
    } else if (pkey) {
        *pkey = next;
    } else {
        assert(pvalue);
        *pvalue = next;
    }
    return 1;
  bad:
    Py_XDECREF(next);
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d0000
    PyErr_FormatUnraisable("Exception ignored in __Pyx_PyDict_NextRef");
#else
    PyErr_WriteUnraisable(__pyx_mstate_global->__pyx_n_u_Pyx_PyDict_NextRef);
#endif
    if (pkey) *pkey = NULL;
    if (pvalue) *pvalue = NULL;
    return 0;
}
#else // !CYTHON_AVOID_BORROWED_REFS
static int __Pyx_PyDict_NextRef(PyObject *p, Py_ssize_t *ppos, PyObject **pkey, PyObject **pvalue) {
    int result = PyDict_Next(p, ppos, pkey, pvalue);
    if (likely(result == 1)) {
        if (pkey) Py_INCREF(*pkey);
        if (pvalue) Py_INCREF(*pvalue);
    }
    return result;
}
#endif

/* RaiseDoubleKeywords (used by ParseKeywordsImpl) */
static void __Pyx_RaiseDoubleKeywordsError(
    const char* func_name,
    PyObject* kw_name)
{
    PyErr_Format(PyExc_TypeError,
        "%s() got multiple values for keyword argument '%U'", func_name, kw_name);
}

/* CallUnboundCMethod2 */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject *__Pyx_CallUnboundCMethod2(__Pyx_CachedCFunction *cfunc, PyObject *self, PyObject *arg1, PyObject *arg2) {
    int was_initialized = __Pyx_CachedCFunction_GetAndSetInitializing(cfunc);
    if (likely(was_initialized == 2 && cfunc->func)) {
        PyObject *args[2] = {arg1, arg2};
        if (cfunc->flag == METH_FASTCALL) {
            return __Pyx_CallCFunctionFast(cfunc, self, args, 2);
        }
        if (cfunc->flag == (METH_FASTCALL | METH_KEYWORDS))
            return __Pyx_CallCFunctionFastWithKeywords(cfunc, self, args, 2, NULL);
    }
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    else if (unlikely(was_initialized == 1)) {
        __Pyx_CachedCFunction tmp_cfunc = {
#ifndef __cplusplus
            0
#endif
        };
        tmp_cfunc.type = cfunc->type;
        tmp_cfunc.method_name = cfunc->method_name;
        return __Pyx__CallUnboundCMethod2(&tmp_cfunc, self, arg1, arg2);
    }
#endif
    PyObject *result = __Pyx__CallUnboundCMethod2(cfunc, self, arg1, arg2);
    __Pyx_CachedCFunction_SetFinishedInitializing(cfunc);
    return result;
}
#endif
static PyObject* __Pyx__CallUnboundCMethod2(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg1, PyObject* arg2){
    if (unlikely(!cfunc->func && !cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL;
#if CYTHON_COMPILING_IN_CPYTHON
    if (cfunc->func && (cfunc->flag & METH_VARARGS)) {
        PyObject *result = NULL;
        PyObject *args = PyTuple_New(2);
        if (unlikely(!args)) return NULL;
        Py_INCREF(arg1);
        PyTuple_SET_ITEM(args, 0, arg1);
        Py_INCREF(arg2);
        PyTuple_SET_ITEM(args, 1, arg2);
        if (cfunc->flag & METH_KEYWORDS)
            result = __Pyx_CallCFunctionWithKeywords(cfunc, self, args, NULL);
        else
            result = __Pyx_CallCFunction(cfunc, self, args);
        Py_DECREF(args);
        return result;
    }
#endif
    {
        PyObject *args[4] = {NULL, self, arg1, arg2};
        return __Pyx_PyObject_FastCall(cfunc->method, args+1, 3 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
    }
}

/* ParseKeywordsImpl (used by ParseKeywords) */
static int __Pyx_ValidateDuplicatePosArgs(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject ** const *first_kw_arg,
    const char* function_name)
{
    PyObject ** const *name = argnames;
    while (name != first_kw_arg) {
        PyObject *key = **name;
        int found = PyDict_Contains(kwds, key);
        if (unlikely(found)) {
            if (found == 1) __Pyx_RaiseDoubleKeywordsError(function_name, key);
            goto bad;
        }
        name++;
    }
    return 0;
bad:
    return -1;
}
#if CYTHON_USE_UNICODE_INTERNALS
static CYTHON_INLINE int __Pyx_UnicodeKeywordsEqual(PyObject *s1, PyObject *s2) {
    int kind;
    Py_ssize_t len = PyUnicode_GET_LENGTH(s1);
    if (len != PyUnicode_GET_LENGTH(s2)) return 0;
    kind = PyUnicode_KIND(s1);
    if (kind != PyUnicode_KIND(s2)) return 0;
    const void *data1 = PyUnicode_DATA(s1);
    const void *data2 = PyUnicode_DATA(s2);
    return (memcmp(data1, data2, (size_t) len * (size_t) kind) == 0);
}
#endif
static int __Pyx_MatchKeywordArg_str(
    PyObject *key,
    PyObject ** const argnames[],
    PyObject ** const *first_kw_arg,
    size_t *index_found,
    const char *function_name)
{
    PyObject ** const *name;
    #if CYTHON_USE_UNICODE_INTERNALS
    Py_hash_t key_hash = ((PyASCIIObject*)key)->hash;
    if (unlikely(key_hash == -1)) {
        key_hash = PyObject_Hash(key);
        if (unlikely(key_hash == -1))
            goto bad;
    }
    #endif
    name = first_kw_arg;
    while (*name) {
        PyObject *name_str = **name;
        #if CYTHON_USE_UNICODE_INTERNALS
        if (key_hash == ((PyASCIIObject*)name_str)->hash && __Pyx_UnicodeKeywordsEqual(name_str, key)) {
            *index_found = (size_t) (name - argnames);
            return 1;
        }
        #else
        #if CYTHON_ASSUME_SAFE_SIZE
        if (PyUnicode_GET_LENGTH(name_str) == PyUnicode_GET_LENGTH(key))
        #endif
        {
            int cmp = PyUnicode_Compare(name_str, key);
            if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
            if (cmp == 0) {
                *index_found = (size_t) (name - argnames);
                return 1;
            }
        }
        #endif
        name++;
    }
    name = argnames;
    while (name != first_kw_arg) {
        PyObject *name_str = **name;
        #if CYTHON_USE_UNICODE_INTERNALS
        if (unlikely(key_hash == ((PyASCIIObject*)name_str)->hash)) {
            if (__Pyx_UnicodeKeywordsEqual(name_str, key))
                goto arg_passed_twice;
        }
        #else
        #if CYTHON_ASSUME_SAFE_SIZE
        if (PyUnicode_GET_LENGTH(name_str) == PyUnicode_GET_LENGTH(key))
        #endif
        {
            if (unlikely(name_str == key)) goto arg_passed_twice;
            int cmp = PyUnicode_Compare(name_str, key);
            if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
            if (cmp == 0) goto arg_passed_twice;
        }
        #endif
        name++;
    }
    return 0;
arg_passed_twice:
    __Pyx_RaiseDoubleKeywordsError(function_name, key);
    goto bad;
bad:
    return -1;
}
static int __Pyx_MatchKeywordArg_nostr(
    PyObject *key,
    PyObject ** const argnames[],
    PyObject ** const *first_kw_arg,
    size_t *index_found,
    const char *function_name)
{
    PyObject ** const *name;
    if (unlikely(!PyUnicode_Check(key))) goto invalid_keyword_type;
    name = first_kw_arg;
    while (*name) {
        int cmp = PyObject_RichCompareBool(**name, key, Py_EQ);
        if (cmp == 1) {
            *index_found = (size_t) (name - argnames);
            return 1;
        }
        if (unlikely(cmp == -1)) goto bad;
        name++;
    }
    name = argnames;
    while (name != first_kw_arg) {
        int cmp = PyObject_RichCompareBool(**name, key, Py_EQ);
        if (unlikely(cmp != 0)) {
            if (cmp == 1) goto arg_passed_twice;
            else goto bad;
        }
        name++;
    }
    return 0;
arg_passed_twice:
    __Pyx_RaiseDoubleKeywordsError(function_name, key);
    goto bad;
invalid_keyword_type:
    PyErr_Format(PyExc_TypeError,
        "%.200s() keywords must be strings", function_name);
    goto bad;
bad:
    return -1;
}
static CYTHON_INLINE int __Pyx_MatchKeywordArg(
    PyObject *key,
    PyObject ** const argnames[],
    PyObject ** const *first_kw_arg,
    size_t *index_found,
    const char *function_name)
{
    return likely(PyUnicode_CheckExact(key)) ?
        __Pyx_MatchKeywordArg_str(key, argnames, first_kw_arg, index_found, function_name) :
        __Pyx_MatchKeywordArg_nostr(key, argnames, first_kw_arg, index_found, function_name);
}
static void __Pyx_RejectUnknownKeyword(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject ** const *first_kw_arg,
    const char *function_name)
{
    #if CYTHON_AVOID_BORROWED_REFS
    PyObject *pos = NULL;
    #else
    Py_ssize_t pos = 0;
    #endif
    PyObject *key = NULL;
    __Pyx_BEGIN_CRITICAL_SECTION(kwds);
    while (
        #if CYTHON_AVOID_BORROWED_REFS
        __Pyx_PyDict_NextRef(kwds, &pos, &key, NULL)
        #else
        PyDict_Next(kwds, &pos, &key, NULL)
        #endif
    ) {
        PyObject** const *name = first_kw_arg;
        while (*name && (**name != key)) name++;
        if (!*name) {
            size_t index_found = 0;
            int cmp = __Pyx_MatchKeywordArg(key, argnames, first_kw_arg, &index_found, function_name);
            if (cmp != 1) {
                if (cmp == 0) {
                    PyErr_Format(PyExc_TypeError,
                        "%s() got an unexpected keyword argument '%U'",
                        function_name, key);
                }
                #if CYTHON_AVOID_BORROWED_REFS
                Py_DECREF(key);
                #endif
                break;
            }
        }
        #if CYTHON_AVOID_BORROWED_REFS
        Py_DECREF(key);
        #endif
    }
    __Pyx_END_CRITICAL_SECTION();
    #if CYTHON_AVOID_BORROWED_REFS
    Py_XDECREF(pos);
    #endif
    assert(PyErr_Occurred());
}
static int __Pyx_ParseKeywordDict(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject *values[],
    Py_ssize_t num_pos_args,
    Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs)
{
    PyObject** const *name;
    PyObject** const *first_kw_arg = argnames + num_pos_args;
    Py_ssize_t extracted = 0;
#if !CYTHON_COMPILING_IN_PYPY || defined(PyArg_ValidateKeywordArguments)
    if (unlikely(!PyArg_ValidateKeywordArguments(kwds))) return -1;
#endif
    name = first_kw_arg;
    while (*name && num_kwargs > extracted) {
        PyObject * key = **name;
        PyObject *value;
        int found = 0;
        #if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
        found = PyDict_GetItemRef(kwds, key, &value);
        #else
        value = PyDict_GetItemWithError(kwds, key);
        if (value) {
            Py_INCREF(value);
            found = 1;
        } else {
            if (unlikely(PyErr_Occurred())) goto bad;
        }
        #endif
        if (found) {
            if (unlikely(found < 0)) goto bad;
            values[name-argnames] = value;
            extracted++;
        }
        name++;
    }
    if (num_kwargs > extracted) {
        if (ignore_unknown_kwargs) {
            if (unlikely(__Pyx_ValidateDuplicatePosArgs(kwds, argnames, first_kw_arg, function_name) == -1))
                goto bad;
        } else {
            __Pyx_RejectUnknownKeyword(kwds, argnames, first_kw_arg, function_name);
            goto bad;
        }
    }
    return 0;
bad:
    return -1;
}
static int __Pyx_ParseKeywordDictToDict(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    const char* function_name)
{
    PyObject** const *name;
    PyObject** const *first_kw_arg = argnames + num_pos_args;
    Py_ssize_t len;
#if !CYTHON_COMPILING_IN_PYPY || defined(PyArg_ValidateKeywordArguments)
    if (unlikely(!PyArg_ValidateKeywordArguments(kwds))) return -1;
#endif
    if (PyDict_Update(kwds2, kwds) < 0) goto bad;
    name = first_kw_arg;
    while (*name) {
        PyObject *key = **name;
        PyObject *value;
#if !CYTHON_COMPILING_IN_LIMITED_API && (PY_VERSION_HEX >= 0x030d00A2 || defined(PyDict_Pop))
        int found = PyDict_Pop(kwds2, key, &value);
        if (found) {
            if (unlikely(found < 0)) goto bad;
            values[name-argnames] = value;
        }
#elif __PYX_LIMITED_VERSION_HEX >= 0x030d0000
        int found = PyDict_GetItemRef(kwds2, key, &value);
        if (found) {
            if (unlikely(found < 0)) goto bad;
            values[name-argnames] = value;
            if (unlikely(PyDict_DelItem(kwds2, key) < 0)) goto bad;
        }
#else
    #if CYTHON_COMPILING_IN_CPYTHON
        value = _PyDict_Pop(kwds2, key, kwds2);
    #else
        value = __Pyx_CallUnboundCMethod2(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_pop, kwds2, key, kwds2);
    #endif
        if (value == kwds2) {
            Py_DECREF(value);
        } else {
            if (unlikely(!value)) goto bad;
            values[name-argnames] = value;
        }
#endif
        name++;
    }
    len = PyDict_Size(kwds2);
    if (len > 0) {
        return __Pyx_ValidateDuplicatePosArgs(kwds, argnames, first_kw_arg, function_name);
    } else if (unlikely(len == -1)) {
        goto bad;
    }
    return 0;
bad:
    return -1;
}
static int __Pyx_ParseKeywordsTuple(
    PyObject *kwds,
    PyObject * const *kwvalues,
    PyObject ** const argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs)
{
    PyObject *key = NULL;
    PyObject** const * name;
    PyObject** const *first_kw_arg = argnames + num_pos_args;
    for (Py_ssize_t pos = 0; pos < num_kwargs; pos++) {
#if CYTHON_AVOID_BORROWED_REFS
        key = __Pyx_PySequence_ITEM(kwds, pos);
#else
        key = __Pyx_PyTuple_GET_ITEM(kwds, pos);
#endif
#if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely(!key)) goto bad;
#endif
        name = first_kw_arg;
        while (*name && (**name != key)) name++;
        if (*name) {
            PyObject *value = kwvalues[pos];
            values[name-argnames] = __Pyx_NewRef(value);
        } else {
            size_t index_found = 0;
            int cmp = __Pyx_MatchKeywordArg(key, argnames, first_kw_arg, &index_found, function_name);
            if (cmp == 1) {
                PyObject *value = kwvalues[pos];
                values[index_found] = __Pyx_NewRef(value);
            } else {
                if (unlikely(cmp == -1)) goto bad;
                if (kwds2) {
                    PyObject *value = kwvalues[pos];
                    if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad;
                } else if (!ignore_unknown_kwargs) {
                    goto invalid_keyword;
                }
            }
        }
        #if CYTHON_AVOID_BORROWED_REFS
        Py_DECREF(key);
        key = NULL;
        #endif
    }
    return 0;
invalid_keyword:
    PyErr_Format(PyExc_TypeError,
        "%s() got an unexpected keyword argument '%U'",
        function_name, key);
    goto bad;
bad:
    #if CYTHON_AVOID_BORROWED_REFS
    Py_XDECREF(key);
    #endif
    return -1;
}

/* ParseKeywords */
static int __Pyx_ParseKeywords(
    PyObject *kwds,
    PyObject * const *kwvalues,
    PyObject ** const argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs)
{
    if (CYTHON_METH_FASTCALL && likely(PyTuple_Check(kwds)))
        return __Pyx_ParseKeywordsTuple(kwds, kwvalues, argnames, kwds2, values, num_pos_args, num_kwargs, function_name, ignore_unknown_kwargs);
    else if (kwds2)
        return __Pyx_ParseKeywordDictToDict(kwds, argnames, kwds2, values, num_pos_args, function_name);
    else
        return __Pyx_ParseKeywordDict(kwds, argnames, values, num_pos_args, num_kwargs, function_name, ignore_unknown_kwargs);
}

/* RaiseArgTupleInvalid */
static void __Pyx_RaiseArgtupleInvalid(
    const char* func_name,
    int exact,
    Py_ssize_t num_min,
    Py_ssize_t num_max,
    Py_ssize_t num_found)
{
    Py_ssize_t num_expected;
    const char *more_or_less;
    if (num_found < num_min) {
        num_expected = num_min;
        more_or_less = "at least";
    } else {
        num_expected = num_max;
        more_or_less = "at most";
    }
    if (exact) {
        more_or_less = "exactly";
    }
    PyErr_Format(PyExc_TypeError,
                 "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T "d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T "d given)",
                 func_name, more_or_less, num_expected,
                 (num_expected == 1) ? "" : "s", num_found);
}

/* KeywordStringCheck */
static int __Pyx_CheckKeywordStrings(
    const char* function_name,
    PyObject *kw)
{
#if CYTHON_COMPILING_IN_PYPY && !defined(PyArg_ValidateKeywordArguments)
    CYTHON_UNUSED_VAR(function_name);
    CYTHON_UNUSED_VAR(kw);
    return 0;
#else
    if (CYTHON_METH_FASTCALL && likely(PyTuple_Check(kw))) {
#if PY_VERSION_HEX >= 0x03090000
        CYTHON_UNUSED_VAR(function_name);
#else
        Py_ssize_t kwsize;
        #if CYTHON_ASSUME_SAFE_SIZE
        kwsize = PyTuple_GET_SIZE(kw);
        #else
        kwsize = PyTuple_Size(kw);
        if (unlikely(kwsize < 0)) return -1;
        #endif
        for (Py_ssize_t pos = 0; pos < kwsize; pos++) {
            PyObject* key = NULL;
            #if CYTHON_ASSUME_SAFE_MACROS
            key = PyTuple_GET_ITEM(kw, pos);
            #else
            key = PyTuple_GetItem(kw, pos);
            if (unlikely(!key)) return -1;
            #endif
            if (unlikely(!PyUnicode_Check(key))) {
                PyErr_Format(PyExc_TypeError,
                    "%.200s() keywords must be strings", function_name);
                return -1;
            }
        }
#endif
    } else {
        if (unlikely(!PyArg_ValidateKeywordArguments(kw))) return -1;
    }
    return 0;
#endif
}

/* RaiseClosureNameError */
static void __Pyx_RaiseClosureNameError(const char *varname) {
    PyErr_Format(PyExc_NameError, "free variable '%s' referenced before assignment in enclosing scope", varname);
}

/* PyObjectFormatAndDecref */
static CYTHON_INLINE PyObject* __Pyx_PyObject_FormatSimpleAndDecref(PyObject* s, PyObject* f) {
    if (unlikely(!s)) return NULL;
    if (likely(PyUnicode_CheckExact(s))) return s;
    return __Pyx_PyObject_FormatAndDecref(s, f);
}
static CYTHON_INLINE PyObject* __Pyx_PyObject_FormatAndDecref(PyObject* s, PyObject* f) {
    PyObject *result;
    if (unlikely(!s)) return NULL;
    result = PyObject_Format(s, f);
    Py_DECREF(s);
    return result;
}

/* UnicodeConcatInPlace */
# if CYTHON_COMPILING_IN_CPYTHON
static int
__Pyx_unicode_modifiable(PyObject *unicode, int unsafe_shared)
{
    if (!__Pyx_IS_UNIQUELY_REFERENCED(unicode, unsafe_shared))
        return 0;
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX > 0x030F0000
    if (PyUnstable_Unicode_GET_CACHED_HASH(unicode) != -1)
        return 0;
#endif
    if (!PyUnicode_CheckExact(unicode))
        return 0;
    if (PyUnicode_CHECK_INTERNED(unicode))
        return 0;
    return 1;
}
static CYTHON_INLINE PyObject *__Pyx_PyUnicode_ConcatInPlaceImpl(PyObject **p_left, PyObject *right, int unsafe_shared
        #if CYTHON_REFNANNY
        , void* __pyx_refnanny
        #endif
    ) {
    PyObject *left = *p_left;
    Py_ssize_t left_len, right_len, new_len;
    if (unlikely(__Pyx_PyUnicode_READY(left) == -1))
        return NULL;
    if (unlikely(__Pyx_PyUnicode_READY(right) == -1))
        return NULL;
    left_len = PyUnicode_GET_LENGTH(left);
    if (left_len == 0) {
        Py_INCREF(right);
        return right;
    }
    right_len = PyUnicode_GET_LENGTH(right);
    if (right_len == 0) {
        Py_INCREF(left);
        return left;
    }
    if (unlikely(left_len > PY_SSIZE_T_MAX - right_len)) {
        PyErr_SetString(PyExc_OverflowError,
                        "strings are too large to concat");
        return NULL;
    }
    new_len = left_len + right_len;
    if (__Pyx_unicode_modifiable(left, unsafe_shared)
            && PyUnicode_CheckExact(right)
            && PyUnicode_KIND(right) <= PyUnicode_KIND(left)
            && !(PyUnicode_IS_ASCII(left) && !PyUnicode_IS_ASCII(right))) {
        int ret;
        __Pyx_GIVEREF(*p_left);
        ret = PyUnicode_Resize(p_left, new_len);
        __Pyx_GOTREF(*p_left);
        if (unlikely(ret != 0))
            return NULL;
        #if PY_VERSION_HEX >= 0x030d0000
        if (unlikely(PyUnicode_CopyCharacters(*p_left, left_len, right, 0, right_len) < 0)) return NULL;
        #else
        _PyUnicode_FastCopyCharacters(*p_left, left_len, right, 0, right_len);
        #endif
        __Pyx_INCREF(*p_left);
        __Pyx_GIVEREF(*p_left);
        return *p_left;
    } else {
        return __Pyx_PyUnicode_Concat(left, right);
    }
  }
#endif

/* JoinPyUnicode */
static PyObject* __Pyx_PyUnicode_Join(PyObject** values, Py_ssize_t value_count, Py_ssize_t result_ulength,
                                      Py_UCS4 max_char) {
#if CYTHON_USE_UNICODE_INTERNALS && CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    PyObject *result_uval;
    int result_ukind, kind_shift;
    Py_ssize_t i, char_pos;
    void *result_udata;
    if (max_char > 1114111) max_char = 1114111;
    result_uval = PyUnicode_New(result_ulength, max_char);
    if (unlikely(!result_uval)) return NULL;
    result_ukind = (max_char <= 255) ? PyUnicode_1BYTE_KIND : (max_char <= 65535) ? PyUnicode_2BYTE_KIND : PyUnicode_4BYTE_KIND;
    kind_shift = (result_ukind == PyUnicode_4BYTE_KIND) ? 2 : result_ukind - 1;
    result_udata = PyUnicode_DATA(result_uval);
    assert(kind_shift == 2 || kind_shift == 1 || kind_shift == 0);
    if (unlikely((PY_SSIZE_T_MAX >> kind_shift) - result_ulength < 0))
        goto overflow;
    char_pos = 0;
    for (i=0; i < value_count; i++) {
        int ukind;
        Py_ssize_t ulength;
        void *udata;
        PyObject *uval = values[i];
        #if !CYTHON_COMPILING_IN_LIMITED_API
        if (__Pyx_PyUnicode_READY(uval) == (-1))
            goto bad;
        #endif
        ulength = __Pyx_PyUnicode_GET_LENGTH(uval);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(ulength < 0)) goto bad;
        #endif
        if (unlikely(!ulength))
            continue;
        if (unlikely((PY_SSIZE_T_MAX >> kind_shift) - ulength < char_pos))
            goto overflow;
        ukind = __Pyx_PyUnicode_KIND(uval);
        udata = __Pyx_PyUnicode_DATA(uval);
        if (ukind == result_ukind) {
            memcpy((char *)result_udata + (char_pos << kind_shift), udata, (size_t) (ulength << kind_shift));
        } else {
            #if PY_VERSION_HEX >= 0x030d0000
            if (unlikely(PyUnicode_CopyCharacters(result_uval, char_pos, uval, 0, ulength) < 0)) goto bad;
            #elif CYTHON_COMPILING_IN_CPYTHON || defined(_PyUnicode_FastCopyCharacters)
            _PyUnicode_FastCopyCharacters(result_uval, char_pos, uval, 0, ulength);
            #else
            Py_ssize_t j;
            for (j=0; j < ulength; j++) {
                Py_UCS4 uchar = __Pyx_PyUnicode_READ(ukind, udata, j);
                __Pyx_PyUnicode_WRITE(result_ukind, result_udata, char_pos+j, uchar);
            }
            #endif
        }
        char_pos += ulength;
    }
    return result_uval;
overflow:
    PyErr_SetString(PyExc_OverflowError, "join() result is too long for a Python string");
bad:
    Py_DECREF(result_uval);
    return NULL;
#else
    Py_ssize_t i;
    PyObject *result = NULL;
    PyObject *value_tuple = PyTuple_New(value_count);
    if (unlikely(!value_tuple)) return NULL;
    CYTHON_UNUSED_VAR(max_char);
    CYTHON_UNUSED_VAR(result_ulength);
    for (i=0; i<value_count; i++) {
        Py_INCREF(values[i]);
        if (__Pyx_PyTuple_SET_ITEM(value_tuple, i, values[i]) != (0)) goto bad;
    }
    result = PyUnicode_Join(__pyx_mstate_global->__pyx_empty_unicode, value_tuple);
bad:
    Py_DECREF(value_tuple);
    return result;
#endif
}

/* PyDictVersioning (used by GetModuleGlobalName) */
#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj) {
    PyObject *dict = Py_TYPE(obj)->tp_dict;
    return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
}
static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj) {
    PyObject **dictptr = NULL;
    Py_ssize_t offset = Py_TYPE(obj)->tp_dictoffset;
    if (offset) {
#if CYTHON_COMPILING_IN_CPYTHON
        dictptr = (likely(offset > 0)) ? (PyObject **) ((char *)obj + offset) : _PyObject_GetDictPtr(obj);
#else
        dictptr = _PyObject_GetDictPtr(obj);
#endif
    }
    return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0;
}
static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version) {
    PyObject *dict = Py_TYPE(obj)->tp_dict;
    if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
        return 0;
    return obj_dict_version == __Pyx_get_object_dict_version(obj);
}
#endif

/* GetModuleGlobalName */
#if CYTHON_USE_DICT_VERSIONS
static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value)
#else
static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name)
#endif
{
    PyObject *result;
#if CYTHON_COMPILING_IN_LIMITED_API
    if (unlikely(!__pyx_m)) {
        if (!PyErr_Occurred())
            PyErr_SetNone(PyExc_NameError);
        return NULL;
    }
    result = PyObject_GetAttr(__pyx_m, name);
    if (likely(result)) {
        return result;
    }
    PyErr_Clear();
#elif CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
    if (unlikely(__Pyx_PyDict_GetItemRef(__pyx_mstate_global->__pyx_d, name, &result) == -1)) PyErr_Clear();
    __PYX_UPDATE_DICT_CACHE(__pyx_mstate_global->__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return result;
    }
#else
    result = _PyDict_GetItem_KnownHash(__pyx_mstate_global->__pyx_d, name, ((PyASCIIObject *) name)->hash);
    __PYX_UPDATE_DICT_CACHE(__pyx_mstate_global->__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return __Pyx_NewRef(result);
    }
    PyErr_Clear();
#endif
    return __Pyx_GetBuiltinName(name);
}

/* dict_setdefault (used by FetchCommonType) */
static CYTHON_INLINE PyObject *__Pyx_PyDict_SetDefault(PyObject *d, PyObject *key, PyObject *default_value) {
    PyObject* value;
#if __PYX_LIMITED_VERSION_HEX >= 0x030F0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4)
    PyDict_SetDefaultRef(d, key, default_value, &value);
#elif CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX >= 0x030C0000
    PyObject *args[] = {d, key, default_value};
    value = PyObject_VectorcallMethod(__pyx_mstate_global->__pyx_n_u_setdefault, args, 3 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
#elif CYTHON_COMPILING_IN_LIMITED_API
    value = PyObject_CallMethodObjArgs(d, __pyx_mstate_global->__pyx_n_u_setdefault, key, default_value, NULL);
#else
    value = PyDict_SetDefault(d, key, default_value);
    if (unlikely(!value)) return NULL;
    Py_INCREF(value);
#endif
    return value;
}

/* LimitedApiGetTypeDict (used by SetItemOnTypeDict) */
#if CYTHON_COMPILING_IN_LIMITED_API
static Py_ssize_t __Pyx_GetTypeDictOffset(void) {
    PyObject *tp_dictoffset_o;
    Py_ssize_t tp_dictoffset;
    tp_dictoffset_o = PyObject_GetAttrString((PyObject*)(&PyType_Type), "__dictoffset__");
    if (unlikely(!tp_dictoffset_o)) return -1;
    tp_dictoffset = PyLong_AsSsize_t(tp_dictoffset_o);
    Py_DECREF(tp_dictoffset_o);
    if (unlikely(tp_dictoffset == 0)) {
        PyErr_SetString(
            PyExc_TypeError,
            "'type' doesn't have a dictoffset");
        return -1;
    } else if (unlikely(tp_dictoffset < 0)) {
        PyErr_SetString(
            PyExc_TypeError,
            "'type' has an unexpected negative dictoffset. "
            "Please report this as Cython bug");
        return -1;
    }
    return tp_dictoffset;
}
static PyObject *__Pyx_GetTypeDict(PyTypeObject *tp) {
    static Py_ssize_t tp_dictoffset = 0;
    if (unlikely(tp_dictoffset == 0)) {
        tp_dictoffset = __Pyx_GetTypeDictOffset();
        if (unlikely(tp_dictoffset == -1 && PyErr_Occurred())) {
            tp_dictoffset = 0; // try again next time?
            return NULL;
        }
    }
    return *(PyObject**)((char*)tp + tp_dictoffset);
}
#endif

/* SetItemOnTypeDict (used by FixUpExtensionType) */
static int __Pyx__SetItemOnTypeDict(PyTypeObject *tp, PyObject *k, PyObject *v) {
    int result;
    PyObject *tp_dict;
#if CYTHON_COMPILING_IN_LIMITED_API
    tp_dict = __Pyx_GetTypeDict(tp);
    if (unlikely(!tp_dict)) return -1;
#else
    tp_dict = tp->tp_dict;
#endif
    result = PyDict_SetItem(tp_dict, k, v);
    if (likely(!result)) {
        PyType_Modified(tp);
        if (unlikely(PyObject_HasAttr(v, __pyx_mstate_global->__pyx_n_u_set_name))) {
            PyObject *setNameResult = PyObject_CallMethodObjArgs(v, __pyx_mstate_global->__pyx_n_u_set_name,  (PyObject *) tp, k, NULL);
            if (!setNameResult) return -1;
            Py_DECREF(setNameResult);
        }
    }
    return result;
}

/* FixUpExtensionType (used by FetchCommonType) */
static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject *type) {
#if __PYX_LIMITED_VERSION_HEX > 0x030900B1
    CYTHON_UNUSED_VAR(spec);
    CYTHON_UNUSED_VAR(type);
    CYTHON_UNUSED_VAR(__Pyx__SetItemOnTypeDict);
#else
    const PyType_Slot *slot = spec->slots;
    int changed = 0;
#if !CYTHON_COMPILING_IN_LIMITED_API
    while (slot && slot->slot && slot->slot != Py_tp_members)
        slot++;
    if (slot && slot->slot == Py_tp_members) {
#if !CYTHON_COMPILING_IN_CPYTHON
        const
#endif  // !CYTHON_COMPILING_IN_CPYTHON)
            PyMemberDef *memb = (PyMemberDef*) slot->pfunc;
        while (memb && memb->name) {
            if (memb->name[0] == '_' && memb->name[1] == '_') {
                if (strcmp(memb->name, "__weaklistoffset__") == 0) {
                    assert(memb->type == T_PYSSIZET);
                    assert(memb->flags == READONLY);
                    type->tp_weaklistoffset = memb->offset;
                    changed = 1;
                }
                else if (strcmp(memb->name, "__dictoffset__") == 0) {
                    assert(memb->type == T_PYSSIZET);
                    assert(memb->flags == READONLY);
                    type->tp_dictoffset = memb->offset;
                    changed = 1;
                }
#if CYTHON_METH_FASTCALL
                else if (strcmp(memb->name, "__vectorcalloffset__") == 0) {
                    assert(memb->type == T_PYSSIZET);
                    assert(memb->flags == READONLY);
                    type->tp_vectorcall_offset = memb->offset;
                    changed = 1;
                }
#endif  // CYTHON_METH_FASTCALL
#if !CYTHON_COMPILING_IN_PYPY
                else if (strcmp(memb->name, "__module__") == 0) {
                    PyObject *descr;
                    assert(memb->type == T_OBJECT);
                    assert(memb->flags == 0 || memb->flags == READONLY);
                    descr = PyDescr_NewMember(type, memb);
                    if (unlikely(!descr))
                        return -1;
                    int set_item_result = PyDict_SetItem(type->tp_dict, PyDescr_NAME(descr), descr);
                    Py_DECREF(descr);
                    if (unlikely(set_item_result < 0)) {
                        return -1;
                    }
                    changed = 1;
                }
#endif  // !CYTHON_COMPILING_IN_PYPY
            }
            memb++;
        }
    }
#endif  // !CYTHON_COMPILING_IN_LIMITED_API
#if !CYTHON_COMPILING_IN_PYPY
    slot = spec->slots;
    while (slot && slot->slot && slot->slot != Py_tp_getset)
        slot++;
    if (slot && slot->slot == Py_tp_getset) {
        PyGetSetDef *getset = (PyGetSetDef*) slot->pfunc;
        while (getset && getset->name) {
            if (getset->name[0] == '_' && getset->name[1] == '_' && strcmp(getset->name, "__module__") == 0) {
                PyObject *descr = PyDescr_NewGetSet(type, getset);
                if (unlikely(!descr))
                    return -1;
                #if CYTHON_COMPILING_IN_LIMITED_API
                PyObject *pyname = PyUnicode_FromString(getset->name);
                if (unlikely(!pyname)) {
                    Py_DECREF(descr);
                    return -1;
                }
                int set_item_result = __Pyx_SetItemOnTypeDict(type, pyname, descr);
                Py_DECREF(pyname);
                #else
                CYTHON_UNUSED_VAR(__Pyx__SetItemOnTypeDict);
                int set_item_result = PyDict_SetItem(type->tp_dict, PyDescr_NAME(descr), descr);
                #endif
                Py_DECREF(descr);
                if (unlikely(set_item_result < 0)) {
                    return -1;
                }
                changed = 1;
            }
            ++getset;
        }
    }
#else
    CYTHON_UNUSED_VAR(__Pyx__SetItemOnTypeDict);
#endif  // !CYTHON_COMPILING_IN_PYPY
    if (changed)
        PyType_Modified(type);
#endif  // PY_VERSION_HEX > 0x030900B1
    return 0;
}

/* AddModuleRef (used by FetchSharedCythonModule) */
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
  static PyObject *__Pyx_PyImport_AddModuleObjectRef(PyObject *name) {
      PyObject *module_dict = PyImport_GetModuleDict();
      PyObject *m;
      if (PyMapping_GetOptionalItem(module_dict, name, &m) < 0) {
          return NULL;
      }
      if (m != NULL && PyModule_Check(m)) {
          return m;
      }
      Py_XDECREF(m);
      m = PyModule_NewObject(name);
      if (m == NULL)
          return NULL;
      if (PyDict_CheckExact(module_dict)) {
          PyObject *new_m;
          (void)PyDict_SetDefaultRef(module_dict, name, m, &new_m);
          Py_DECREF(m);
          return new_m;
      } else {
           if (PyObject_SetItem(module_dict, name, m) != 0) {
                Py_DECREF(m);
                return NULL;
            }
            return m;
      }
  }
  static PyObject *__Pyx_PyImport_AddModuleRef(const char *name) {
      PyObject *py_name = PyUnicode_FromString(name);
      if (!py_name) return NULL;
      PyObject *module = __Pyx_PyImport_AddModuleObjectRef(py_name);
      Py_DECREF(py_name);
      return module;
  }
#elif __PYX_LIMITED_VERSION_HEX >= 0x030d0000
  #define __Pyx_PyImport_AddModuleRef(name) PyImport_AddModuleRef(name)
#else
  static PyObject *__Pyx_PyImport_AddModuleRef(const char *name) {
      PyObject *module = PyImport_AddModule(name);
      Py_XINCREF(module);
      return module;
  }
#endif

/* FetchSharedCythonModule (used by FetchCommonType) */
static PyObject *__Pyx_FetchSharedCythonABIModule(void) {
    return __Pyx_PyImport_AddModuleRef(__PYX_ABI_MODULE_NAME);
}

/* FetchCommonType (used by CommonTypesMetaclass) */
#if __PYX_LIMITED_VERSION_HEX < 0x030C0000
static PyObject* __Pyx_PyType_FromMetaclass(PyTypeObject *metaclass, PyObject *module, PyType_Spec *spec, PyObject *bases) {
    PyObject *result = __Pyx_PyType_FromModuleAndSpec(module, spec, bases);
    if (result && metaclass) {
        PyObject *old_tp = (PyObject*)Py_TYPE(result);
    Py_INCREF((PyObject*)metaclass);
#if __PYX_LIMITED_VERSION_HEX >= 0x03090000
        Py_SET_TYPE(result, metaclass);
#else
        result->ob_type = metaclass;
#endif
        Py_DECREF(old_tp);
    }
    return result;
}
#else
#define __Pyx_PyType_FromMetaclass(me, mo, s, b) PyType_FromMetaclass(me, mo, s, b)
#endif
static int __Pyx_VerifyCachedType(PyObject *cached_type,
                               const char *name,
                               Py_ssize_t expected_basicsize) {
    Py_ssize_t basicsize;
    if (!PyType_Check(cached_type)) {
        PyErr_Format(PyExc_TypeError,
            "Shared Cython type %.200s is not a type object", name);
        return -1;
    }
    if (expected_basicsize == 0) {
        return 0; // size is inherited, nothing useful to check
    }
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *py_basicsize;
    py_basicsize = PyObject_GetAttrString(cached_type, "__basicsize__");
    if (unlikely(!py_basicsize)) return -1;
    basicsize = PyLong_AsSsize_t(py_basicsize);
    Py_DECREF(py_basicsize);
    py_basicsize = NULL;
    if (unlikely(basicsize == (Py_ssize_t)-1) && PyErr_Occurred()) return -1;
#else
    basicsize = ((PyTypeObject*) cached_type)->tp_basicsize;
#endif
    if (basicsize != expected_basicsize) {
        PyErr_Format(PyExc_TypeError,
            "Shared Cython type %.200s has the wrong size, try recompiling",
            name);
        return -1;
    }
    return 0;
}
static PyTypeObject *__Pyx_FetchCommonTypeFromSpec(PyTypeObject *metaclass, PyObject *module, PyType_Spec *spec, PyObject *bases) {
    PyObject *abi_module = NULL, *cached_type = NULL, *abi_module_dict, *new_cached_type, *py_object_name;
    int get_item_ref_result;
    const char* object_name = strrchr(spec->name, '.');
    object_name = object_name ? object_name+1 : spec->name;
    py_object_name = PyUnicode_FromString(object_name);
    if (!py_object_name) return NULL;
    abi_module = __Pyx_FetchSharedCythonABIModule();
    if (!abi_module) goto done;
    abi_module_dict = PyModule_GetDict(abi_module);
    if (!abi_module_dict) goto done;
    get_item_ref_result = __Pyx_PyDict_GetItemRef(abi_module_dict, py_object_name, &cached_type);
    if (get_item_ref_result == 1) {
        if (__Pyx_VerifyCachedType(
              cached_type,
              object_name,
              spec->basicsize) < 0) {
            goto bad;
        }
        goto done;
    } else if (unlikely(get_item_ref_result == -1)) {
        goto bad;
    }
    cached_type = __Pyx_PyType_FromMetaclass(
        metaclass,
        CYTHON_USE_MODULE_STATE ? module : abi_module,
        spec, bases);
    if (unlikely(!cached_type)) goto bad;
    if (unlikely(__Pyx_fix_up_extension_type_from_spec(spec, (PyTypeObject *) cached_type) < 0)) goto bad;
    new_cached_type = __Pyx_PyDict_SetDefault(abi_module_dict, py_object_name, cached_type);
    if (unlikely(new_cached_type != cached_type)) {
        if (unlikely(!new_cached_type)) goto bad;
        Py_DECREF(cached_type);
        cached_type = new_cached_type;
        if (__Pyx_VerifyCachedType(
                cached_type,
                object_name,
                spec->basicsize) < 0) {
            goto bad;
        }
        goto done;
    } else {
        Py_DECREF(new_cached_type);
    }
done:
    Py_XDECREF(abi_module);
    Py_DECREF(py_object_name);
    assert(cached_type == NULL || PyType_Check(cached_type));
    return (PyTypeObject *) cached_type;
bad:
    Py_XDECREF(cached_type);
    cached_type = NULL;
    goto done;
}

/* CommonTypesMetaclass (used by CythonFunctionShared) */
static PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
    return PyUnicode_FromString(__PYX_ABI_MODULE_NAME);
}
#if __PYX_LIMITED_VERSION_HEX < 0x030A0000
static PyObject* __pyx_CommonTypesMetaclass_call(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED PyObject *args, CYTHON_UNUSED PyObject *kwds) {
    PyErr_SetString(PyExc_TypeError, "Cannot instantiate Cython internal types");
    return NULL;
}
static int __pyx_CommonTypesMetaclass_setattr(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED PyObject *attr, CYTHON_UNUSED PyObject *value) {
    PyErr_SetString(PyExc_TypeError, "Cython internal types are immutable");
    return -1;
}
#endif
static PyGetSetDef __pyx_CommonTypesMetaclass_getset[] = {
    {"__module__", __pyx_CommonTypesMetaclass_get_module, NULL, NULL, NULL},
    {0, 0, 0, 0, 0}
};
static PyType_Slot __pyx_CommonTypesMetaclass_slots[] = {
    {Py_tp_getset, (void *)__pyx_CommonTypesMetaclass_getset},
    #if __PYX_LIMITED_VERSION_HEX < 0x030A0000
    {Py_tp_call, (void*)__pyx_CommonTypesMetaclass_call},
    {Py_tp_new, (void*)__pyx_CommonTypesMetaclass_call},
    {Py_tp_setattro, (void*)__pyx_CommonTypesMetaclass_setattr},
    #endif
    {0, 0}
};
static PyType_Spec __pyx_CommonTypesMetaclass_spec = {
    __PYX_TYPE_MODULE_PREFIX "_common_types_metatype",
    0,
    0,
    Py_TPFLAGS_IMMUTABLETYPE |
    Py_TPFLAGS_DISALLOW_INSTANTIATION |
    Py_TPFLAGS_DEFAULT,
    __pyx_CommonTypesMetaclass_slots
};
static int __pyx_CommonTypesMetaclass_init(PyObject *module) {
    __pyx_mstatetype *mstate = __Pyx_PyModule_GetState(module);
    PyObject *bases = PyTuple_Pack(1, &PyType_Type);
    if (unlikely(!bases)) {
        return -1;
    }
    mstate->__pyx_CommonTypesMetaclassType = __Pyx_FetchCommonTypeFromSpec(NULL, module, &__pyx_CommonTypesMetaclass_spec, bases);
    Py_DECREF(bases);
    if (unlikely(mstate->__pyx_CommonTypesMetaclassType == NULL)) {
        return -1;
    }
    return 0;
}

/* CallTypeTraverse (used by CythonFunctionShared) */
#if !CYTHON_USE_TYPE_SPECS || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x03090000)
#else
static int __Pyx_call_type_traverse(PyObject *o, int always_call, visitproc visit, void *arg) {
    #if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x03090000
    if (__Pyx_get_runtime_version() < 0x03090000) return 0;
    #endif
    if (!always_call) {
        PyTypeObject *base = __Pyx_PyObject_GetSlot(o, tp_base, PyTypeObject*);
        unsigned long flags = PyType_GetFlags(base);
        if (flags & Py_TPFLAGS_HEAPTYPE) {
            return 0;
        }
    }
    Py_VISIT((PyObject*)Py_TYPE(o));
    return 0;
}
#endif

/* PyMethodNew (used by CythonFunctionShared) */
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ) {
    PyObject *result;
    CYTHON_UNUSED_VAR(typ);
    if (!self)
        return __Pyx_NewRef(func);
    #if __PYX_LIMITED_VERSION_HEX >= 0x030C0000
    {
        PyObject *args[] = {func, self};
        result = PyObject_Vectorcall(__pyx_mstate_global->__Pyx_CachedMethodType, args, 2, NULL);
    }
    #else
    result = PyObject_CallFunctionObjArgs(__pyx_mstate_global->__Pyx_CachedMethodType, func, self, NULL);
    #endif
    return result;
}
#else
static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ) {
    CYTHON_UNUSED_VAR(typ);
    if (!self)
        return __Pyx_NewRef(func);
    return PyMethod_New(func, self);
}
#endif

/* PyVectorcallFastCallDict (used by CythonFunctionShared) */
#if CYTHON_METH_FASTCALL && CYTHON_VECTORCALL
static PyObject *__Pyx_PyVectorcall_FastCallDict_kw(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw)
{
    PyObject *res = NULL;
    PyObject *kwnames;
    PyObject **newargs;
    PyObject **kwvalues;
    Py_ssize_t i;
    #if CYTHON_AVOID_BORROWED_REFS
    PyObject *pos;
    #else
    Py_ssize_t pos;
    #endif
    size_t j;
    PyObject *key, *value;
    unsigned long keys_are_strings;
    #if !CYTHON_ASSUME_SAFE_SIZE
    Py_ssize_t nkw = PyDict_Size(kw);
    if (unlikely(nkw == -1)) return NULL;
    #else
    Py_ssize_t nkw = PyDict_GET_SIZE(kw);
    #endif
    newargs = (PyObject **)PyMem_Malloc((nargs + (size_t)nkw) * sizeof(args[0]));
    if (unlikely(newargs == NULL)) {
        PyErr_NoMemory();
        return NULL;
    }
    for (j = 0; j < nargs; j++) newargs[j] = args[j];
    kwnames = PyTuple_New(nkw);
    if (unlikely(kwnames == NULL)) {
        PyMem_Free(newargs);
        return NULL;
    }
    kwvalues = newargs + nargs;
    pos = 0;
    i = 0;
    keys_are_strings = Py_TPFLAGS_UNICODE_SUBCLASS;
    while (__Pyx_PyDict_NextRef(kw, &pos, &key, &value)) {
        keys_are_strings &=
        #if CYTHON_COMPILING_IN_LIMITED_API
            PyType_GetFlags(Py_TYPE(key));
        #else
            Py_TYPE(key)->tp_flags;
        #endif
        #if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely(PyTuple_SetItem(kwnames, i, key) < 0)) goto cleanup;
        #else
        PyTuple_SET_ITEM(kwnames, i, key);
        #endif
        kwvalues[i] = value;
        i++;
    }
    if (unlikely(!keys_are_strings)) {
        PyErr_SetString(PyExc_TypeError, "keywords must be strings");
        goto cleanup;
    }
    res = vc(func, newargs, nargs, kwnames);
cleanup:
    #if CYTHON_AVOID_BORROWED_REFS
    Py_DECREF(pos);
    #endif
    Py_DECREF(kwnames);
    for (i = 0; i < nkw; i++)
        Py_DECREF(kwvalues[i]);
    PyMem_Free(newargs);
    return res;
}
static CYTHON_INLINE PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw)
{
    Py_ssize_t kw_size =
        likely(kw == NULL) ?
        0 :
#if !CYTHON_ASSUME_SAFE_SIZE
        PyDict_Size(kw);
#else
        PyDict_GET_SIZE(kw);
#endif
    if (kw_size == 0) {
        return vc(func, args, nargs, NULL);
    }
#if !CYTHON_ASSUME_SAFE_SIZE
    else if (unlikely(kw_size == -1)) {
        return NULL;
    }
#endif
    return __Pyx_PyVectorcall_FastCallDict_kw(func, vc, args, nargs, kw);
}
#endif

/* CythonFunctionShared (used by CythonFunction) */
#if CYTHON_COMPILING_IN_LIMITED_API
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunctionNoMethod(PyObject *func, void (*cfunc)(void)) {
    if (__Pyx_CyFunction_Check(func)) {
        return PyCFunction_GetFunction(((__pyx_CyFunctionObject*)func)->func) == (PyCFunction) cfunc;
    } else if (PyCFunction_Check(func)) {
        return PyCFunction_GetFunction(func) == (PyCFunction) cfunc;
    }
    return 0;
}
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void (*cfunc)(void)) {
    if ((PyObject*)Py_TYPE(func) == __pyx_mstate_global->__Pyx_CachedMethodType) {
        int result;
        PyObject *newFunc = PyObject_GetAttr(func, __pyx_mstate_global->__pyx_n_u_func_2);
        if (unlikely(!newFunc)) {
            PyErr_Clear(); // It's only an optimization, so don't throw an error
            return 0;
        }
        result = __Pyx__IsSameCyOrCFunctionNoMethod(newFunc, cfunc);
        Py_DECREF(newFunc);
        return result;
    }
    return __Pyx__IsSameCyOrCFunctionNoMethod(func, cfunc);
}
#else
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void (*cfunc)(void)) {
    if (PyMethod_Check(func)) {
        func = PyMethod_GET_FUNCTION(func);
    }
    return __Pyx_CyOrPyCFunction_Check(func) && __Pyx_CyOrPyCFunction_GET_FUNCTION(func) == (PyCFunction) cfunc;
}
#endif
static CYTHON_INLINE void __Pyx__CyFunction_SetClassObj(__pyx_CyFunctionObject* f, PyObject* classobj) {
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
    __Pyx_Py_XDECREF_SET(
        __Pyx_CyFunction_GetClassObj(f),
            ((classobj) ? __Pyx_NewRef(classobj) : NULL));
#else
    __Pyx_Py_XDECREF_SET(
        ((PyCMethodObject *) (f))->mm_class,
        (PyTypeObject*)((classobj) ? __Pyx_NewRef(classobj) : NULL));
#endif
}
static PyObject *
__Pyx_CyFunction_get_doc_locked(__pyx_CyFunctionObject *op)
{
    if (unlikely(op->func_doc == NULL)) {
#if CYTHON_COMPILING_IN_LIMITED_API
        op->func_doc = PyObject_GetAttrString(op->func, "__doc__");
        if (unlikely(!op->func_doc)) return NULL;
#else
        if (((PyCFunctionObject*)op)->m_ml->ml_doc) {
            op->func_doc = PyUnicode_FromString(((PyCFunctionObject*)op)->m_ml->ml_doc);
            if (unlikely(op->func_doc == NULL))
                return NULL;
        } else {
            Py_INCREF(Py_None);
            return Py_None;
        }
#endif
    }
    Py_INCREF(op->func_doc);
    return op->func_doc;
}
static PyObject *
__Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, void *closure) {
    PyObject *result;
    CYTHON_UNUSED_VAR(closure);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_doc_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_doc(__pyx_CyFunctionObject *op, PyObject *value, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (value == NULL) {
        value = Py_None;
    }
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->func_doc, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_name_locked(__pyx_CyFunctionObject *op)
{
    if (unlikely(op->func_name == NULL)) {
#if CYTHON_COMPILING_IN_LIMITED_API
        op->func_name = PyObject_GetAttrString(op->func, "__name__");
#else
        op->func_name = PyUnicode_InternFromString(((PyCFunctionObject*)op)->m_ml->ml_name);
#endif
        if (unlikely(op->func_name == NULL))
            return NULL;
    }
    Py_INCREF(op->func_name);
    return op->func_name;
}
static PyObject *
__Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op, void *context)
{
    PyObject *result = NULL;
    CYTHON_UNUSED_VAR(context);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_name_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (unlikely(value == NULL || !PyUnicode_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__name__ must be set to a string object");
        return -1;
    }
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->func_name, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(context);
    PyObject *result;
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    Py_INCREF(op->func_qualname);
    result = op->func_qualname;
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *value, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (unlikely(value == NULL || !PyUnicode_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__qualname__ must be set to a string object");
        return -1;
    }
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->func_qualname, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
static PyObject *
__Pyx_CyFunction_get_dict(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (unlikely(op->func_dict == NULL)) {
        op->func_dict = PyDict_New();
        if (unlikely(op->func_dict == NULL))
            return NULL;
    }
    Py_INCREF(op->func_dict);
    return op->func_dict;
}
#endif
static PyObject *
__Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(context);
    Py_INCREF(op->func_globals);
    return op->func_globals;
}
static PyObject *
__Pyx_CyFunction_get_closure(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(op);
    CYTHON_UNUSED_VAR(context);
    Py_INCREF(Py_None);
    return Py_None;
}
static PyObject *
__Pyx_CyFunction_get_code(__pyx_CyFunctionObject *op, void *context)
{
    PyObject* result = (op->func_code) ? op->func_code : Py_None;
    CYTHON_UNUSED_VAR(context);
    Py_INCREF(result);
    return result;
}
static int
__Pyx_CyFunction_init_defaults(__pyx_CyFunctionObject *op) {
    int result = 0;
    PyObject *res = op->defaults_getter((PyObject *) op);
    if (unlikely(!res))
        return -1;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    op->defaults_tuple = PyTuple_GET_ITEM(res, 0);
    Py_INCREF(op->defaults_tuple);
    op->defaults_kwdict = PyTuple_GET_ITEM(res, 1);
    Py_INCREF(op->defaults_kwdict);
    #else
    op->defaults_tuple = __Pyx_PySequence_ITEM(res, 0);
    if (unlikely(!op->defaults_tuple)) result = -1;
    else {
        op->defaults_kwdict = __Pyx_PySequence_ITEM(res, 1);
        if (unlikely(!op->defaults_kwdict)) result = -1;
    }
    #endif
    Py_DECREF(res);
    return result;
}
static int
__Pyx_CyFunction_set_defaults(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    if (!value) {
        value = Py_None;
    } else if (unlikely(value != Py_None && !PyTuple_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__defaults__ must be set to a tuple object");
        return -1;
    }
    PyErr_WarnEx(PyExc_RuntimeWarning, "changes to cyfunction.__defaults__ will not "
                 "currently affect the values used in function calls", 1);
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->defaults_tuple, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_defaults_locked(__pyx_CyFunctionObject *op) {
    PyObject* result = op->defaults_tuple;
    if (unlikely(!result)) {
        if (op->defaults_getter) {
            if (unlikely(__Pyx_CyFunction_init_defaults(op) < 0)) return NULL;
            result = op->defaults_tuple;
        } else {
            result = Py_None;
        }
    }
    Py_INCREF(result);
    return result;
}
static PyObject *
__Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op, void *context) {
    PyObject* result = NULL;
    CYTHON_UNUSED_VAR(context);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_defaults_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_kwdefaults(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    if (!value) {
        value = Py_None;
    } else if (unlikely(value != Py_None && !PyDict_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__kwdefaults__ must be set to a dict object");
        return -1;
    }
    PyErr_WarnEx(PyExc_RuntimeWarning, "changes to cyfunction.__kwdefaults__ will not "
                 "currently affect the values used in function calls", 1);
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->defaults_kwdict, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_kwdefaults_locked(__pyx_CyFunctionObject *op) {
    PyObject* result = op->defaults_kwdict;
    if (unlikely(!result)) {
        if (op->defaults_getter) {
            if (unlikely(__Pyx_CyFunction_init_defaults(op) < 0)) return NULL;
            result = op->defaults_kwdict;
        } else {
            result = Py_None;
        }
    }
    Py_INCREF(result);
    return result;
}
static PyObject *
__Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op, void *context) {
    PyObject* result;
    CYTHON_UNUSED_VAR(context);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_kwdefaults_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_annotations(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    if (!value || value == Py_None) {
        value = NULL;
    } else if (unlikely(!PyDict_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__annotations__ must be set to a dict object");
        return -1;
    }
    Py_XINCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->func_annotations, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_annotations_locked(__pyx_CyFunctionObject *op) {
    PyObject* result = op->func_annotations;
    if (unlikely(!result)) {
        result = PyDict_New();
        if (unlikely(!result)) return NULL;
        op->func_annotations = result;
    }
    Py_INCREF(result);
    return result;
}
static PyObject *
__Pyx_CyFunction_get_annotations(__pyx_CyFunctionObject *op, void *context) {
    PyObject *result;
    CYTHON_UNUSED_VAR(context);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_annotations_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static PyObject *
__Pyx_CyFunction_get_is_coroutine_value(__pyx_CyFunctionObject *op) {
    int is_coroutine = op->flags & __Pyx_CYFUNCTION_COROUTINE;
    if (is_coroutine) {
        PyObject *is_coroutine_value, *module, *fromlist, *marker = __pyx_mstate_global->__pyx_n_u_is_coroutine;
        fromlist = PyList_New(1);
        if (unlikely(!fromlist)) return NULL;
        Py_INCREF(marker);
#if CYTHON_ASSUME_SAFE_MACROS
        PyList_SET_ITEM(fromlist, 0, marker);
#else
        if (unlikely(PyList_SetItem(fromlist, 0, marker) < 0)) {
            Py_DECREF(fromlist);
            return NULL;
        }
#endif
        module = PyImport_ImportModuleLevelObject(__pyx_mstate_global->__pyx_n_u_asyncio_coroutines, NULL, NULL, fromlist, 0);
        Py_DECREF(fromlist);
        if (unlikely(!module)) goto ignore;
        is_coroutine_value = __Pyx_PyObject_GetAttrStr(module, marker);
        Py_DECREF(module);
        if (likely(is_coroutine_value)) {
            return is_coroutine_value;
        }
ignore:
        PyErr_Clear();
    }
    return __Pyx_PyBool_FromLong(is_coroutine);
}
static PyObject *
__Pyx_CyFunction_get_is_coroutine(__pyx_CyFunctionObject *op, void *context) {
    PyObject *result;
    CYTHON_UNUSED_VAR(context);
    if (op->func_is_coroutine) {
        return __Pyx_NewRef(op->func_is_coroutine);
    }
    result = __Pyx_CyFunction_get_is_coroutine_value(op);
    if (unlikely(!result))
        return NULL;
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    if (op->func_is_coroutine) {
        Py_DECREF(result);
        result = __Pyx_NewRef(op->func_is_coroutine);
    } else {
        op->func_is_coroutine = __Pyx_NewRef(result);
    }
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static void __Pyx_CyFunction_raise_argument_count_error(__pyx_CyFunctionObject *func, const char* message, Py_ssize_t size) {
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *py_name = __Pyx_CyFunction_get_name(func, NULL);
    if (!py_name) return;
    PyErr_Format(PyExc_TypeError,
        "%.200S() %s (%" CYTHON_FORMAT_SSIZE_T "d given)",
        py_name, message, size);
    Py_DECREF(py_name);
#else
    const char* name = ((PyCFunctionObject*)func)->m_ml->ml_name;
    PyErr_Format(PyExc_TypeError,
        "%.200s() %s (%" CYTHON_FORMAT_SSIZE_T "d given)",
        name, message, size);
#endif
}
static void __Pyx_CyFunction_raise_type_error(__pyx_CyFunctionObject *func, const char* message) {
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *py_name = __Pyx_CyFunction_get_name(func, NULL);
    if (!py_name) return;
    PyErr_Format(PyExc_TypeError,
        "%.200S() %s",
        py_name, message);
    Py_DECREF(py_name);
#else
    const char* name = ((PyCFunctionObject*)func)->m_ml->ml_name;
    PyErr_Format(PyExc_TypeError,
        "%.200s() %s",
        name, message);
#endif
}
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *
__Pyx_CyFunction_get_module(__pyx_CyFunctionObject *op, void *context) {
    CYTHON_UNUSED_VAR(context);
    return PyObject_GetAttrString(op->func, "__module__");
}
static int
__Pyx_CyFunction_set_module(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    return PyObject_SetAttrString(op->func, "__module__", value);
}
#endif
static PyGetSetDef __pyx_CyFunction_getsets[] = {
    {"func_doc", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0},
    {"__doc__",  (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0},
    {"func_name", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0},
    {"__name__", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0},
    {"__qualname__", (getter)__Pyx_CyFunction_get_qualname, (setter)__Pyx_CyFunction_set_qualname, 0, 0},
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
    {"func_dict", (getter)__Pyx_CyFunction_get_dict, (setter)PyObject_GenericSetDict, 0, 0},
    {"__dict__", (getter)__Pyx_CyFunction_get_dict, (setter)PyObject_GenericSetDict, 0, 0},
#else
    {"func_dict", (getter)PyObject_GenericGetDict, (setter)PyObject_GenericSetDict, 0, 0},
    {"__dict__", (getter)PyObject_GenericGetDict, (setter)PyObject_GenericSetDict, 0, 0},
#endif
    {"func_globals", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0},
    {"__globals__", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0},
    {"func_closure", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0},
    {"__closure__", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0},
    {"func_code", (getter)__Pyx_CyFunction_get_code, 0, 0, 0},
    {"__code__", (getter)__Pyx_CyFunction_get_code, 0, 0, 0},
    {"func_defaults", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0},
    {"__defaults__", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0},
    {"__kwdefaults__", (getter)__Pyx_CyFunction_get_kwdefaults, (setter)__Pyx_CyFunction_set_kwdefaults, 0, 0},
    {"__annotations__", (getter)__Pyx_CyFunction_get_annotations, (setter)__Pyx_CyFunction_set_annotations, 0, 0},
    {"_is_coroutine", (getter)__Pyx_CyFunction_get_is_coroutine, 0, 0, 0},
#if CYTHON_COMPILING_IN_LIMITED_API
    {"__module__", (getter)__Pyx_CyFunction_get_module, (setter)__Pyx_CyFunction_set_module, 0, 0},
#endif
    {0, 0, 0, 0, 0}
};
static PyMemberDef __pyx_CyFunction_members[] = {
#if !CYTHON_COMPILING_IN_LIMITED_API
    {"__module__", T_OBJECT, offsetof(PyCFunctionObject, m_module), 0, 0},
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    {"__dictoffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_dict), READONLY, 0},
#endif
#if CYTHON_METH_FASTCALL
#if CYTHON_COMPILING_IN_LIMITED_API
    {"__vectorcalloffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_vectorcall), READONLY, 0},
#else
    {"__vectorcalloffset__", T_PYSSIZET, offsetof(PyCFunctionObject, vectorcall), READONLY, 0},
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
    {"__weaklistoffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_weakreflist), READONLY, 0},
#else
    {"__weaklistoffset__", T_PYSSIZET, offsetof(PyCFunctionObject, m_weakreflist), READONLY, 0},
#endif
#endif
    {0, 0, 0,  0, 0}
};
static PyObject *
__Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, PyObject *args)
{
    PyObject *result = NULL;
    CYTHON_UNUSED_VAR(args);
    __Pyx_BEGIN_CRITICAL_SECTION(m);
    Py_INCREF(m->func_qualname);
    result = m->func_qualname;
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static PyMethodDef __pyx_CyFunction_methods[] = {
    {"__reduce__", (PyCFunction)__Pyx_CyFunction_reduce, METH_VARARGS, 0},
    {0, 0, 0, 0}
};
#if CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func_weakreflist)
#else
#define __Pyx_CyFunction_weakreflist(cyfunc) (((PyCFunctionObject*)cyfunc)->m_weakreflist)
#endif
static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject *op, PyMethodDef *ml, int flags, PyObject* qualname,
                                       PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) {
#if !CYTHON_COMPILING_IN_LIMITED_API
    PyCFunctionObject *cf = (PyCFunctionObject*) op;
#endif
    if (unlikely(op == NULL))
        return NULL;
#if CYTHON_COMPILING_IN_LIMITED_API
    op->func = PyCFunction_NewEx(ml, (PyObject*)op, module);
    if (unlikely(!op->func)) return NULL;
#endif
    op->flags = flags;
    __Pyx_CyFunction_weakreflist(op) = NULL;
#if !CYTHON_COMPILING_IN_LIMITED_API
    cf->m_ml = ml;
    cf->m_self = (PyObject *) op;
#endif
    Py_XINCREF(closure);
    op->func_closure = closure;
#if !CYTHON_COMPILING_IN_LIMITED_API
    Py_XINCREF(module);
    cf->m_module = module;
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    op->func_dict = NULL;
#endif
    op->func_name = NULL;
    Py_INCREF(qualname);
    op->func_qualname = qualname;
    op->func_doc = NULL;
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
    op->func_classobj = NULL;
#else
    ((PyCMethodObject*)op)->mm_class = NULL;
#endif
    op->func_globals = globals;
    Py_INCREF(op->func_globals);
    Py_XINCREF(code);
    op->func_code = code;
    op->defaults = NULL;
    op->defaults_tuple = NULL;
    op->defaults_kwdict = NULL;
    op->defaults_getter = NULL;
    op->func_annotations = NULL;
    op->func_is_coroutine = NULL;
#if CYTHON_METH_FASTCALL
    switch (ml->ml_flags & (METH_VARARGS | METH_FASTCALL | METH_NOARGS | METH_O | METH_KEYWORDS | METH_METHOD)) {
    case METH_NOARGS:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_NOARGS;
        break;
    case METH_O:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_O;
        break;
    case METH_METHOD | METH_FASTCALL | METH_KEYWORDS:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD;
        break;
    case METH_FASTCALL | METH_KEYWORDS:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS;
        break;
    case METH_VARARGS | METH_KEYWORDS:
        __Pyx_CyFunction_func_vectorcall(op) = NULL;
        break;
    default:
        PyErr_SetString(PyExc_SystemError, "Bad call flags for CyFunction");
        Py_DECREF(op);
        return NULL;
    }
#endif
    return (PyObject *) op;
}
static int
__Pyx_CyFunction_clear(__pyx_CyFunctionObject *m)
{
    Py_CLEAR(m->func_closure);
#if CYTHON_COMPILING_IN_LIMITED_API
    Py_CLEAR(m->func);
#else
    Py_CLEAR(((PyCFunctionObject*)m)->m_module);
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    Py_CLEAR(m->func_dict);
#elif PY_VERSION_HEX < 0x030d0000
    _PyObject_ClearManagedDict((PyObject*)m);
#else
    PyObject_ClearManagedDict((PyObject*)m);
#endif
    Py_CLEAR(m->func_name);
    Py_CLEAR(m->func_qualname);
    Py_CLEAR(m->func_doc);
    Py_CLEAR(m->func_globals);
    Py_CLEAR(m->func_code);
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
    Py_CLEAR(__Pyx_CyFunction_GetClassObj(m));
#else
    {
        PyObject *cls = (PyObject*) ((PyCMethodObject *) (m))->mm_class;
        ((PyCMethodObject *) (m))->mm_class = NULL;
        Py_XDECREF(cls);
    }
#endif
    Py_CLEAR(m->defaults_tuple);
    Py_CLEAR(m->defaults_kwdict);
    Py_CLEAR(m->func_annotations);
    Py_CLEAR(m->func_is_coroutine);
    Py_CLEAR(m->defaults);
    return 0;
}
static void __Pyx__CyFunction_dealloc(__pyx_CyFunctionObject *m)
{
    if (__Pyx_CyFunction_weakreflist(m) != NULL)
        PyObject_ClearWeakRefs((PyObject *) m);
    __Pyx_CyFunction_clear(m);
    __Pyx_PyHeapTypeObject_GC_Del(m);
}
static void __Pyx_CyFunction_dealloc(__pyx_CyFunctionObject *m)
{
    PyObject_GC_UnTrack(m);
    __Pyx__CyFunction_dealloc(m);
}
static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, void *arg)
{
    {
        int e = __Pyx_call_type_traverse((PyObject*)m, 1, visit, arg);
        if (e) return e;
    }
    Py_VISIT(m->func_closure);
#if CYTHON_COMPILING_IN_LIMITED_API
    Py_VISIT(m->func);
#else
    Py_VISIT(((PyCFunctionObject*)m)->m_module);
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    Py_VISIT(m->func_dict);
#else
    {
        int e =
#if PY_VERSION_HEX < 0x030d0000
            _PyObject_VisitManagedDict
#else
            PyObject_VisitManagedDict
#endif
                ((PyObject*)m, visit, arg);
        if (e != 0) return e;
    }
#endif
    __Pyx_VISIT_CONST(m->func_name);
    __Pyx_VISIT_CONST(m->func_qualname);
    Py_VISIT(m->func_doc);
    Py_VISIT(m->func_globals);
    __Pyx_VISIT_CONST(m->func_code);
    Py_VISIT(__Pyx_CyFunction_GetClassObj(m));
    Py_VISIT(m->defaults_tuple);
    Py_VISIT(m->defaults_kwdict);
    Py_VISIT(m->func_annotations);
    Py_VISIT(m->func_is_coroutine);
    Py_VISIT(m->defaults);
    return 0;
}
static PyObject*
__Pyx_CyFunction_repr(__pyx_CyFunctionObject *op)
{
    PyObject *repr;
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    repr = PyUnicode_FromFormat("<cyfunction %U at %p>",
                                op->func_qualname, (void *)op);
    __Pyx_END_CRITICAL_SECTION();
    return repr;
}
static PyObject * __Pyx_CyFunction_CallMethod(PyObject *func, PyObject *self, PyObject *arg, PyObject *kw) {
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *f = ((__pyx_CyFunctionObject*)func)->func;
    PyCFunction meth;
    int flags;
    meth = PyCFunction_GetFunction(f);
    if (unlikely(!meth)) return NULL;
    flags = PyCFunction_GetFlags(f);
    if (unlikely(flags < 0)) return NULL;
#else
    PyCFunctionObject* f = (PyCFunctionObject*)func;
    PyCFunction meth = f->m_ml->ml_meth;
    int flags = f->m_ml->ml_flags;
#endif
    Py_ssize_t size;
    switch (flags & (METH_VARARGS | METH_KEYWORDS | METH_NOARGS | METH_O)) {
    case METH_VARARGS:
        if (likely(kw == NULL || PyDict_Size(kw) == 0))
            return (*meth)(self, arg);
        break;
    case METH_VARARGS | METH_KEYWORDS:
        return (*(PyCFunctionWithKeywords)(void(*)(void))meth)(self, arg, kw);
    case METH_NOARGS:
        if (likely(kw == NULL || PyDict_Size(kw) == 0)) {
#if CYTHON_ASSUME_SAFE_SIZE
            size = PyTuple_GET_SIZE(arg);
#else
            size = PyTuple_Size(arg);
            if (unlikely(size < 0)) return NULL;
#endif
            if (likely(size == 0))
                return (*meth)(self, NULL);
            __Pyx_CyFunction_raise_argument_count_error(
                (__pyx_CyFunctionObject*)func,
                "takes no arguments", size);
            return NULL;
        }
        break;
    case METH_O:
        if (likely(kw == NULL || PyDict_Size(kw) == 0)) {
#if CYTHON_ASSUME_SAFE_SIZE
            size = PyTuple_GET_SIZE(arg);
#else
            size = PyTuple_Size(arg);
            if (unlikely(size < 0)) return NULL;
#endif
            if (likely(size == 1)) {
                PyObject *result, *arg0;
                #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
                arg0 = PyTuple_GET_ITEM(arg, 0);
                #else
                arg0 = __Pyx_PySequence_ITEM(arg, 0); if (unlikely(!arg0)) return NULL;
                #endif
                result = (*meth)(self, arg0);
                #if !(CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS)
                Py_DECREF(arg0);
                #endif
                return result;
            }
            __Pyx_CyFunction_raise_argument_count_error(
                (__pyx_CyFunctionObject*)func,
                "takes exactly one argument", size);
            return NULL;
        }
        break;
    default:
        PyErr_SetString(PyExc_SystemError, "Bad call flags for CyFunction");
        return NULL;
    }
    __Pyx_CyFunction_raise_type_error(
        (__pyx_CyFunctionObject*)func, "takes no keyword arguments");
    return NULL;
}
static CYTHON_INLINE PyObject *__Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) {
    PyObject *self, *result;
#if CYTHON_COMPILING_IN_LIMITED_API
    self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)func)->func);
    if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
    self = ((PyCFunctionObject*)func)->m_self;
#endif
    result = __Pyx_CyFunction_CallMethod(func, self, arg, kw);
    return result;
}
static PyObject *__Pyx_CyFunction_CallAsMethod(PyObject *func, PyObject *args, PyObject *kw) {
    PyObject *result;
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *) func;
#if CYTHON_METH_FASTCALL && CYTHON_VECTORCALL
     __pyx_vectorcallfunc vc = __Pyx_CyFunction_func_vectorcall(cyfunc);
    if (vc) {
#if CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
        return __Pyx_PyVectorcall_FastCallDict(func, vc, &PyTuple_GET_ITEM(args, 0), (size_t)PyTuple_GET_SIZE(args), kw);
#else
        (void) &__Pyx_PyVectorcall_FastCallDict;
        return PyVectorcall_Call(func, args, kw);
#endif
    }
#endif
    if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) {
        Py_ssize_t argc;
        PyObject *new_args;
        PyObject *self;
#if CYTHON_ASSUME_SAFE_SIZE
        argc = PyTuple_GET_SIZE(args);
#else
        argc = PyTuple_Size(args);
        if (unlikely(argc < 0)) return NULL;
#endif
        new_args = PyTuple_GetSlice(args, 1, argc);
        if (unlikely(!new_args))
            return NULL;
        self = PyTuple_GetItem(args, 0);
        if (unlikely(!self)) {
            Py_DECREF(new_args);
            PyErr_Format(PyExc_TypeError,
                         "unbound method %.200S() needs an argument",
                         cyfunc->func_qualname);
            return NULL;
        }
        result = __Pyx_CyFunction_CallMethod(func, self, new_args, kw);
        Py_DECREF(new_args);
    } else {
        result = __Pyx_CyFunction_Call(func, args, kw);
    }
    return result;
}
#if CYTHON_METH_FASTCALL && CYTHON_VECTORCALL
static CYTHON_INLINE int __Pyx_CyFunction_Vectorcall_CheckArgs(__pyx_CyFunctionObject *cyfunc, Py_ssize_t nargs, PyObject *kwnames)
{
    int ret = 0;
    if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) {
        if (unlikely(nargs < 1)) {
            __Pyx_CyFunction_raise_type_error(
                cyfunc, "needs an argument");
            return -1;
        }
        ret = 1;
    }
    if (unlikely(kwnames) && unlikely(__Pyx_PyTuple_GET_SIZE(kwnames))) {
        __Pyx_CyFunction_raise_type_error(
            cyfunc, "takes no keyword arguments");
        return -1;
    }
    return ret;
}
static PyObject * __Pyx_CyFunction_Vectorcall_NOARGS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
    PyObject *self;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyCFunction meth = PyCFunction_GetFunction(cyfunc->func);
    if (unlikely(!meth)) return NULL;
#else
    PyCFunction meth = ((PyCFunctionObject*)cyfunc)->m_ml->ml_meth;
#endif
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, kwnames)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
#if CYTHON_COMPILING_IN_LIMITED_API
        self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)cyfunc)->func);
        if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
        self = ((PyCFunctionObject*)cyfunc)->m_self;
#endif
        break;
    default:
        return NULL;
    }
    if (unlikely(nargs != 0)) {
        __Pyx_CyFunction_raise_argument_count_error(
            cyfunc, "takes no arguments", nargs);
        return NULL;
    }
    return meth(self, NULL);
}
static PyObject * __Pyx_CyFunction_Vectorcall_O(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
    PyObject *self;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyCFunction meth = PyCFunction_GetFunction(cyfunc->func);
    if (unlikely(!meth)) return NULL;
#else
    PyCFunction meth = ((PyCFunctionObject*)cyfunc)->m_ml->ml_meth;
#endif
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, kwnames)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
#if CYTHON_COMPILING_IN_LIMITED_API
        self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)cyfunc)->func);
        if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
        self = ((PyCFunctionObject*)cyfunc)->m_self;
#endif
        break;
    default:
        return NULL;
    }
    if (unlikely(nargs != 1)) {
        __Pyx_CyFunction_raise_argument_count_error(
            cyfunc, "takes exactly one argument", nargs);
        return NULL;
    }
    return meth(self, args[0]);
}
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
    PyObject *self;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyCFunction meth = PyCFunction_GetFunction(cyfunc->func);
    if (unlikely(!meth)) return NULL;
#else
    PyCFunction meth = ((PyCFunctionObject*)cyfunc)->m_ml->ml_meth;
#endif
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, NULL)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
#if CYTHON_COMPILING_IN_LIMITED_API
        self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)cyfunc)->func);
        if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
        self = ((PyCFunctionObject*)cyfunc)->m_self;
#endif
        break;
    default:
        return NULL;
    }
    return ((__Pyx_PyCFunctionFastWithKeywords)(void(*)(void))meth)(self, args, nargs, kwnames);
}
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    PyTypeObject *cls = (PyTypeObject *) __Pyx_CyFunction_GetClassObj(cyfunc);
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
    PyObject *self;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyCFunction meth = PyCFunction_GetFunction(cyfunc->func);
    if (unlikely(!meth)) return NULL;
#else
    PyCFunction meth = ((PyCFunctionObject*)cyfunc)->m_ml->ml_meth;
#endif
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, NULL)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
#if CYTHON_COMPILING_IN_LIMITED_API
        self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)cyfunc)->func);
        if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
        self = ((PyCFunctionObject*)cyfunc)->m_self;
#endif
        break;
    default:
        return NULL;
    }
    #if PY_VERSION_HEX < 0x030e00A6
    size_t nargs_value = (size_t) nargs;
    #else
    Py_ssize_t nargs_value = nargs;
    #endif
    return ((__Pyx_PyCMethod)(void(*)(void))meth)(self, cls, args, nargs_value, kwnames);
}
#endif
static PyType_Slot __pyx_CyFunctionType_slots[] = {
    {Py_tp_dealloc, (void *)__Pyx_CyFunction_dealloc},
    {Py_tp_repr, (void *)__Pyx_CyFunction_repr},
    {Py_tp_call, (void *)__Pyx_CyFunction_CallAsMethod},
    {Py_tp_traverse, (void *)__Pyx_CyFunction_traverse},
    {Py_tp_clear, (void *)__Pyx_CyFunction_clear},
    {Py_tp_methods, (void *)__pyx_CyFunction_methods},
    {Py_tp_members, (void *)__pyx_CyFunction_members},
    {Py_tp_getset, (void *)__pyx_CyFunction_getsets},
    {Py_tp_descr_get, (void *)__Pyx_PyMethod_New},
    {0, 0},
};
static PyType_Spec __pyx_CyFunctionType_spec = {
    __PYX_TYPE_MODULE_PREFIX "cython_function_or_method",
    sizeof(__pyx_CyFunctionObject),
    0,
#ifdef Py_TPFLAGS_METHOD_DESCRIPTOR
    Py_TPFLAGS_METHOD_DESCRIPTOR |
#endif
#if CYTHON_METH_FASTCALL
#if defined(Py_TPFLAGS_HAVE_VECTORCALL)
    Py_TPFLAGS_HAVE_VECTORCALL |
#elif defined(_Py_TPFLAGS_HAVE_VECTORCALL)
    _Py_TPFLAGS_HAVE_VECTORCALL |
#endif
#endif // CYTHON_METH_FASTCALL
#if PY_VERSION_HEX >= 0x030C0000 && !CYTHON_COMPILING_IN_LIMITED_API
    Py_TPFLAGS_MANAGED_DICT |
#endif
    Py_TPFLAGS_IMMUTABLETYPE | Py_TPFLAGS_DISALLOW_INSTANTIATION |
    Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE,
    __pyx_CyFunctionType_slots
};
static int __pyx_CyFunction_init(PyObject *module) {
    __pyx_mstatetype *mstate = __Pyx_PyModule_GetState(module);
    mstate->__pyx_CyFunctionType = __Pyx_FetchCommonTypeFromSpec(
        mstate->__pyx_CommonTypesMetaclassType, module, &__pyx_CyFunctionType_spec, NULL);
    if (unlikely(mstate->__pyx_CyFunctionType == NULL)) {
        return -1;
    }
    return 0;
}
static CYTHON_INLINE PyObject *__Pyx_CyFunction_InitDefaults(PyObject *func, PyTypeObject *defaults_type) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->defaults = PyObject_CallObject((PyObject*)defaults_type, NULL); // _PyObject_New(defaults_type);
    if (unlikely(!m->defaults))
        return NULL;
    return m->defaults;
}
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *func, PyObject *tuple) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->defaults_tuple = tuple;
    Py_INCREF(tuple);
}
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->defaults_kwdict = dict;
    Py_INCREF(dict);
}
static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->func_annotations = dict;
    Py_INCREF(dict);
}

/* CythonFunction */
static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml, int flags, PyObject* qualname,
                                      PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) {
    PyObject *op = __Pyx_CyFunction_Init(
        PyObject_GC_New(__pyx_CyFunctionObject, __pyx_mstate_global->__pyx_CyFunctionType),
        ml, flags, qualname, closure, module, globals, code
    );
    if (likely(op)) {
        PyObject_GC_Track(op);
    }
    return op;
}

/* PyObjectFastCallMethod */
#if !CYTHON_VECTORCALL || PY_VERSION_HEX < 0x03090000
static PyObject *__Pyx_PyObject_FastCallMethod(PyObject *name, PyObject *const *args, size_t nargsf) {
    PyObject *result;
    PyObject *attr = PyObject_GetAttr(args[0], name);
    if (unlikely(!attr))
        return NULL;
    result = __Pyx_PyObject_FastCall(attr, args+1, nargsf - 1);
    Py_DECREF(attr);
    return result;
}
#endif

/* PyObjectSetAttrStr */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value) {
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_setattro))
        return tp->tp_setattro(obj, attr_name, value);
    return PyObject_SetAttr(obj, attr_name, value);
}
#endif

/* RejectKeywords */
static void __Pyx_RejectKeywords(const char* function_name, PyObject *kwds) {
    PyObject *key = NULL;
    if (CYTHON_METH_FASTCALL && likely(PyTuple_Check(kwds))) {
        key = __Pyx_PySequence_ITEM(kwds, 0);
    } else {
#if CYTHON_AVOID_BORROWED_REFS
        PyObject *pos = NULL;
#else
        Py_ssize_t pos = 0;
#endif
#if !CYTHON_COMPILING_IN_PYPY || defined(PyArg_ValidateKeywordArguments)
        if (unlikely(!PyArg_ValidateKeywordArguments(kwds))) return;
#endif
        __Pyx_PyDict_NextRef(kwds, &pos, &key, NULL);
#if CYTHON_AVOID_BORROWED_REFS
        Py_XDECREF(pos);
#endif
    }
    if (likely(key)) {
        PyErr_Format(PyExc_TypeError,
            "%s() got an unexpected keyword argument '%U'",
            function_name, key);
        Py_DECREF(key);
    }
}

/* ExtTypeTest */
static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type) {
    __Pyx_TypeName obj_type_name;
    __Pyx_TypeName type_name;
    if (unlikely(!type)) {
        PyErr_SetString(PyExc_SystemError, "Missing type object");
        return 0;
    }
    if (likely(__Pyx_TypeCheck(obj, type)))
        return 1;
    obj_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(obj));
    type_name = __Pyx_PyType_GetFullyQualifiedName(type);
    PyErr_Format(PyExc_TypeError,
                 "Cannot convert " __Pyx_FMT_TYPENAME " to " __Pyx_FMT_TYPENAME,
                 obj_type_name, type_name);
    __Pyx_DECREF_TypeName(obj_type_name);
    __Pyx_DECREF_TypeName(type_name);
    return 0;
}

/* pybuiltin_invalid (used by pyint_simplify) */
static void __Pyx_PyBuiltin_Invalid(PyObject *obj, const char *type_name, const char *argname) {
    __Pyx_TypeName obj_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(obj));
    if (argname) {
        PyErr_Format(PyExc_TypeError,
            "Argument '%.200s' has incorrect type (expected %.200s, got " __Pyx_FMT_TYPENAME ")",
            argname, type_name, obj_type_name
        );
    } else {
        PyErr_Format(PyExc_TypeError,
            "Expected %.200s, got " __Pyx_FMT_TYPENAME,
            type_name, obj_type_name
        );
    }
    __Pyx_DECREF_TypeName(obj_type_name);
}

/* pyint_simplify */
static CYTHON_INLINE int __Pyx_PyInt_FromNumber(PyObject **number_var, const char *argname, int accept_none) {
    PyObject *number = *number_var;
    if (likely((accept_none && number == Py_None) || PyLong_CheckExact(number))) {
        return 0;
    }
    PyObject *int_object;
    if (likely(PyNumber_Check(number))) {
        int_object = PyNumber_Long(number);
        if (unlikely(!int_object)) goto bad;
    } else {
        __Pyx_PyBuiltin_Invalid(number, "int", argname);
        goto bad;
    }
    *number_var = int_object;
    Py_DECREF(number);
    return 0;
bad:
    *number_var = NULL;
    Py_DECREF(number);
    return -1;
}

/* ArgTypeTestFunc (used by ArgTypeTest) */
static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact)
{
    __Pyx_TypeName type_name;
    __Pyx_TypeName obj_type_name;
    PyObject *extra_info = __pyx_mstate_global->__pyx_empty_unicode;
    int from_annotation_subclass = 0;
    if (unlikely(!type)) {
        PyErr_SetString(PyExc_SystemError, "Missing type object");
        return 0;
    }
    else if (!exact) {
        if (likely(__Pyx_TypeCheck(obj, type))) return 1;
    } else if (exact == 2) {
        if (__Pyx_TypeCheck(obj, type)) {
            from_annotation_subclass = 1;
            extra_info = __pyx_mstate_global->__pyx_kp_u_Note_that_Cython_is_deliberately;
        }
    }
    type_name = __Pyx_PyType_GetFullyQualifiedName(type);
    obj_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(obj));
    PyErr_Format(PyExc_TypeError,
        "Argument '%.200s' has incorrect type (expected " __Pyx_FMT_TYPENAME
        ", got " __Pyx_FMT_TYPENAME ")"
#if __PYX_LIMITED_VERSION_HEX < 0x030C0000
        "%s%U"
#endif
        , name, type_name, obj_type_name
#if __PYX_LIMITED_VERSION_HEX < 0x030C0000
        , (from_annotation_subclass ? ". " : ""), extra_info
#endif
        );
#if __PYX_LIMITED_VERSION_HEX >= 0x030C0000
    if (exact == 2 && from_annotation_subclass) {
        PyObject *res;
        PyObject *vargs[2];
        vargs[0] = PyErr_GetRaisedException();
        vargs[1] = extra_info;
        res = PyObject_VectorcallMethod(__pyx_mstate_global->__pyx_kp_u_add_note, vargs, 2, NULL);
        Py_XDECREF(res);
        PyErr_SetRaisedException(vargs[0]);
    }
#endif
    __Pyx_DECREF_TypeName(type_name);
    __Pyx_DECREF_TypeName(obj_type_name);
    return 0;
}

/* RaiseException */
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) {
    PyObject* owned_instance = NULL;
    if (tb == Py_None) {
        tb = 0;
    } else if (tb && !PyTraceBack_Check(tb)) {
        PyErr_SetString(PyExc_TypeError,
            "raise: arg 3 must be a traceback or None");
        goto bad;
    }
    if (value == Py_None)
        value = 0;
    if (PyExceptionInstance_Check(type)) {
        if (value) {
            PyErr_SetString(PyExc_TypeError,
                "instance exception may not have a separate value");
            goto bad;
        }
        value = type;
        type = (PyObject*) Py_TYPE(value);
    } else if (PyExceptionClass_Check(type)) {
        PyObject *instance_class = NULL;
        if (value && PyExceptionInstance_Check(value)) {
            instance_class = (PyObject*) Py_TYPE(value);
            if (instance_class != type) {
                int is_subclass = PyObject_IsSubclass(instance_class, type);
                if (!is_subclass) {
                    instance_class = NULL;
                } else if (unlikely(is_subclass == -1)) {
                    goto bad;
                } else {
                    type = instance_class;
                }
            }
        }
        if (!instance_class) {
            PyObject *args;
            if (!value)
                args = PyTuple_New(0);
            else if (PyTuple_Check(value)) {
                Py_INCREF(value);
                args = value;
            } else
                args = PyTuple_Pack(1, value);
            if (!args)
                goto bad;
            owned_instance = PyObject_Call(type, args, NULL);
            Py_DECREF(args);
            if (!owned_instance)
                goto bad;
            value = owned_instance;
            if (!PyExceptionInstance_Check(value)) {
                PyErr_Format(PyExc_TypeError,
                             "calling %R should have returned an instance of "
                             "BaseException, not %R",
                             type, Py_TYPE(value));
                goto bad;
            }
        }
    } else {
        PyErr_SetString(PyExc_TypeError,
            "raise: exception class must be a subclass of BaseException");
        goto bad;
    }
    if (cause) {
        PyObject *fixed_cause;
        if (cause == Py_None) {
            fixed_cause = NULL;
        } else if (PyExceptionClass_Check(cause)) {
            fixed_cause = PyObject_CallObject(cause, NULL);
            if (fixed_cause == NULL)
                goto bad;
        } else if (PyExceptionInstance_Check(cause)) {
            fixed_cause = cause;
            Py_INCREF(fixed_cause);
        } else {
            PyErr_SetString(PyExc_TypeError,
                            "exception causes must derive from "
                            "BaseException");
            goto bad;
        }
        PyException_SetCause(value, fixed_cause);
    }
    PyErr_SetObject(type, value);
    if (tb) {
#if PY_VERSION_HEX >= 0x030C00A6
        PyException_SetTraceback(value, tb);
#elif CYTHON_FAST_THREAD_STATE
        PyThreadState *tstate = __Pyx_PyThreadState_Current;
        PyObject* tmp_tb = tstate->curexc_traceback;
        if (tb != tmp_tb) {
            Py_INCREF(tb);
            tstate->curexc_traceback = tb;
            Py_XDECREF(tmp_tb);
        }
#else
        PyObject *tmp_type, *tmp_value, *tmp_tb;
        PyErr_Fetch(&tmp_type, &tmp_value, &tmp_tb);
        Py_INCREF(tb);
        PyErr_Restore(tmp_type, tmp_value, tb);
        Py_XDECREF(tmp_tb);
#endif
    }
bad:
    Py_XDECREF(owned_instance);
    return;
}

/* RaiseUnboundLocalError */
static void __Pyx_RaiseUnboundLocalError(const char *varname) {
    PyErr_Format(PyExc_UnboundLocalError, "local variable '%s' referenced before assignment", varname);
}

/* GetException (used by pep479) */
#if CYTHON_FAST_THREAD_STATE
static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb)
#else
static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb)
#endif
{
    PyObject *local_type = NULL, *local_value, *local_tb = NULL;
#if CYTHON_FAST_THREAD_STATE
    PyObject *tmp_type, *tmp_value, *tmp_tb;
  #if PY_VERSION_HEX >= 0x030C0000
    local_value = tstate->current_exception;
    tstate->current_exception = 0;
  #else
    local_type = tstate->curexc_type;
    local_value = tstate->curexc_value;
    local_tb = tstate->curexc_traceback;
    tstate->curexc_type = 0;
    tstate->curexc_value = 0;
    tstate->curexc_traceback = 0;
  #endif
#elif __PYX_LIMITED_VERSION_HEX > 0x030C0000
    local_value = PyErr_GetRaisedException();
#else
    PyErr_Fetch(&local_type, &local_value, &local_tb);
#endif
#if __PYX_LIMITED_VERSION_HEX > 0x030C0000
    if (likely(local_value)) {
        local_type = (PyObject*) Py_TYPE(local_value);
        Py_INCREF(local_type);
        local_tb = PyException_GetTraceback(local_value);
    }
#else
    PyErr_NormalizeException(&local_type, &local_value, &local_tb);
#if CYTHON_FAST_THREAD_STATE
    if (unlikely(tstate->curexc_type))
#else
    if (unlikely(PyErr_Occurred()))
#endif
        goto bad;
    if (local_tb) {
        if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0))
            goto bad;
    }
#endif // __PYX_LIMITED_VERSION_HEX > 0x030C0000
    Py_XINCREF(local_tb);
    Py_XINCREF(local_type);
    Py_XINCREF(local_value);
    *type = local_type;
    *value = local_value;
    *tb = local_tb;
#if CYTHON_FAST_THREAD_STATE
    #if CYTHON_USE_EXC_INFO_STACK
    {
        _PyErr_StackItem *exc_info = tstate->exc_info;
      #if PY_VERSION_HEX >= 0x030B00a4
        tmp_value = exc_info->exc_value;
        exc_info->exc_value = local_value;
        tmp_type = NULL;
        tmp_tb = NULL;
        Py_XDECREF(local_type);
        Py_XDECREF(local_tb);
      #else
        tmp_type = exc_info->exc_type;
        tmp_value = exc_info->exc_value;
        tmp_tb = exc_info->exc_traceback;
        exc_info->exc_type = local_type;
        exc_info->exc_value = local_value;
        exc_info->exc_traceback = local_tb;
      #endif
    }
    #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = local_type;
    tstate->exc_value = local_value;
    tstate->exc_traceback = local_tb;
    #endif
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
#elif __PYX_LIMITED_VERSION_HEX >= 0x030b0000
    PyErr_SetHandledException(local_value);
    Py_XDECREF(local_value);
    Py_XDECREF(local_type);
    Py_XDECREF(local_tb);
#else
    PyErr_SetExcInfo(local_type, local_value, local_tb);
#endif
    return 0;
#if __PYX_LIMITED_VERSION_HEX <= 0x030C0000
bad:
    *type = 0;
    *value = 0;
    *tb = 0;
    Py_XDECREF(local_type);
    Py_XDECREF(local_value);
    Py_XDECREF(local_tb);
    return -1;
#endif
}

/* pep479 */
static void __Pyx_Generator_Replace_StopIteration(int in_async_gen) {
    PyObject *exc, *val, *tb, *cur_exc, *new_exc;
    __Pyx_PyThreadState_declare
    int is_async_stopiteration = 0;
    CYTHON_MAYBE_UNUSED_VAR(in_async_gen);
    __Pyx_PyThreadState_assign
    cur_exc = __Pyx_PyErr_CurrentExceptionType();
    if (likely(!__Pyx_PyErr_GivenExceptionMatches(cur_exc, PyExc_StopIteration))) {
        if (in_async_gen && unlikely(__Pyx_PyErr_GivenExceptionMatches(cur_exc, PyExc_StopAsyncIteration))) {
            is_async_stopiteration = 1;
        } else {
            return;
        }
    }
    __Pyx_GetException(&exc, &val, &tb);
    Py_XDECREF(exc);
    Py_XDECREF(tb);
    new_exc = PyObject_CallFunction(PyExc_RuntimeError, "s",
        is_async_stopiteration ? "async generator raised StopAsyncIteration" :
        in_async_gen ? "async generator raised StopIteration" :
        "generator raised StopIteration");
    if (!new_exc) {
        Py_XDECREF(val);
        return;
    }
    PyException_SetCause(new_exc, val); // steals ref to val
    PyErr_SetObject(PyExc_RuntimeError, new_exc);
    Py_DECREF(new_exc);
}

/* IterFinish (used by dict_iter) */
static CYTHON_INLINE int __Pyx_IterFinish(void) {
    PyObject* exc_type;
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    exc_type = __Pyx_PyErr_CurrentExceptionType();
    if (unlikely(exc_type)) {
        if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration)))
            return -1;
        __Pyx_PyErr_Clear();
        return 0;
    }
    return 0;
}

/* PyObjectCallNoArg (used by PyObjectCallMethod0) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) {
    PyObject *arg[2] = {NULL, NULL};
    return __Pyx_PyObject_FastCall(func, arg + 1, 0 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
}

/* PyObjectGetMethod (used by PyObjectCallMethod0) */
#if !(CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000)))
static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method) {
    PyObject *attr;
#if CYTHON_UNPACK_METHODS && CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_PYTYPE_LOOKUP
    __Pyx_TypeName type_name;
    PyTypeObject *tp = Py_TYPE(obj);
    PyObject *descr;
    descrgetfunc f = NULL;
    PyObject **dictptr, *dict;
    int meth_found = 0;
    assert (*method == NULL);
    if (unlikely(tp->tp_getattro != PyObject_GenericGetAttr)) {
        attr = __Pyx_PyObject_GetAttrStr(obj, name);
        goto try_unpack;
    }
    if (unlikely(tp->tp_dict == NULL) && unlikely(PyType_Ready(tp) < 0)) {
        return 0;
    }
    descr = _PyType_Lookup(tp, name);
    if (likely(descr != NULL)) {
        Py_INCREF(descr);
#if defined(Py_TPFLAGS_METHOD_DESCRIPTOR) && Py_TPFLAGS_METHOD_DESCRIPTOR
        if (__Pyx_PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_METHOD_DESCRIPTOR))
#else
        #ifdef __Pyx_CyFunction_USED
        if (likely(PyFunction_Check(descr) || __Pyx_IS_TYPE(descr, &PyMethodDescr_Type) || __Pyx_CyFunction_Check(descr)))
        #else
        if (likely(PyFunction_Check(descr) || __Pyx_IS_TYPE(descr, &PyMethodDescr_Type)))
        #endif
#endif
        {
            meth_found = 1;
        } else {
            f = Py_TYPE(descr)->tp_descr_get;
            if (f != NULL && PyDescr_IsData(descr)) {
                attr = f(descr, obj, (PyObject *)Py_TYPE(obj));
                Py_DECREF(descr);
                goto try_unpack;
            }
        }
    }
    dictptr = _PyObject_GetDictPtr(obj);
    if (dictptr != NULL && (dict = *dictptr) != NULL) {
        Py_INCREF(dict);
        attr = __Pyx_PyDict_GetItemStr(dict, name);
        if (attr != NULL) {
            Py_INCREF(attr);
            Py_DECREF(dict);
            Py_XDECREF(descr);
            goto try_unpack;
        }
        Py_DECREF(dict);
    }
    if (meth_found) {
        *method = descr;
        return 1;
    }
    if (f != NULL) {
        attr = f(descr, obj, (PyObject *)Py_TYPE(obj));
        Py_DECREF(descr);
        goto try_unpack;
    }
    if (likely(descr != NULL)) {
        *method = descr;
        return 0;
    }
    type_name = __Pyx_PyType_GetFullyQualifiedName(tp);
    PyErr_Format(PyExc_AttributeError,
                 "'" __Pyx_FMT_TYPENAME "' object has no attribute '%U'",
                 type_name, name);
    __Pyx_DECREF_TypeName(type_name);
    return 0;
#else
    attr = __Pyx_PyObject_GetAttrStr(obj, name);
    goto try_unpack;
#endif
try_unpack:
#if CYTHON_UNPACK_METHODS
    if (likely(attr) && PyMethod_Check(attr) && likely(PyMethod_GET_SELF(attr) == obj)) {
        PyObject *function = PyMethod_GET_FUNCTION(attr);
        Py_INCREF(function);
        Py_DECREF(attr);
        *method = function;
        return 1;
    }
#endif
    *method = attr;
    return 0;
}
#endif

/* PyObjectCallMethod0 (used by dict_iter) */
static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
#if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
    PyObject *args[1] = {obj};
    (void) __Pyx_PyObject_CallOneArg;
    (void) __Pyx_PyObject_CallNoArg;
    return PyObject_VectorcallMethod(method_name, args, 1 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
#else
    PyObject *method = NULL, *result = NULL;
    int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
    if (likely(is_method)) {
        result = __Pyx_PyObject_CallOneArg(method, obj);
        Py_DECREF(method);
        return result;
    }
    if (unlikely(!method)) goto bad;
    result = __Pyx_PyObject_CallNoArg(method);
    Py_DECREF(method);
bad:
    return result;
#endif
}

/* RaiseNeedMoreValuesToUnpack (used by UnpackTuple2) */
static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) {
    PyErr_Format(PyExc_ValueError,
                 "need more than %" CYTHON_FORMAT_SSIZE_T "d value%.1s to unpack",
                 index, (index == 1) ? "" : "s");
}

/* RaiseTooManyValuesToUnpack (used by UnpackItemEndCheck) */
static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected) {
    PyErr_Format(PyExc_ValueError,
                 "too many values to unpack (expected %" CYTHON_FORMAT_SSIZE_T "d)", expected);
}

/* UnpackItemEndCheck (used by UnpackTuple2) */
static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected) {
    if (unlikely(retval)) {
        Py_DECREF(retval);
        __Pyx_RaiseTooManyValuesError(expected);
        return -1;
    }
    return __Pyx_IterFinish();
}

/* RaiseNoneIterError (used by UnpackTupleError) */
static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
}

/* UnpackTupleError (used by UnpackTuple2) */
static void __Pyx_UnpackTupleError(PyObject *t, Py_ssize_t index) {
    if (t == Py_None) {
      __Pyx_RaiseNoneNotIterableError();
    } else {
      Py_ssize_t size = __Pyx_PyTuple_GET_SIZE(t);
 #if !CYTHON_ASSUME_SAFE_SIZE
      if (unlikely(size < 0)) return;
 #endif
      if (size < index) {
        __Pyx_RaiseNeedMoreValuesError(size);
      } else {
        __Pyx_RaiseTooManyValuesError(index);
      }
    }
}

/* UnpackTuple2 (used by dict_iter) */
static CYTHON_INLINE int __Pyx_unpack_tuple2(
        PyObject* tuple, PyObject** value1, PyObject** value2, int is_tuple, int has_known_size, int decref_tuple) {
    if (likely(is_tuple || PyTuple_Check(tuple))) {
        Py_ssize_t size;
        if (has_known_size) {
            return __Pyx_unpack_tuple2_exact(tuple, value1, value2, decref_tuple);
        }
        size = __Pyx_PyTuple_GET_SIZE(tuple);
        if (likely(size == 2)) {
            return __Pyx_unpack_tuple2_exact(tuple, value1, value2, decref_tuple);
        }
        if (size >= 0) {
            __Pyx_UnpackTupleError(tuple, 2);
        }
        return -1;
    } else {
        return __Pyx_unpack_tuple2_generic(tuple, value1, value2, has_known_size, decref_tuple);
    }
}
static CYTHON_INLINE int __Pyx_unpack_tuple2_exact(
        PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2, int decref_tuple) {
    PyObject *value1 = NULL, *value2 = NULL;
#if CYTHON_AVOID_BORROWED_REFS || !CYTHON_ASSUME_SAFE_MACROS
    value1 = __Pyx_PySequence_ITEM(tuple, 0);  if (unlikely(!value1)) goto bad;
    value2 = __Pyx_PySequence_ITEM(tuple, 1);  if (unlikely(!value2)) goto bad;
#else
    value1 = PyTuple_GET_ITEM(tuple, 0);  Py_INCREF(value1);
    value2 = PyTuple_GET_ITEM(tuple, 1);  Py_INCREF(value2);
#endif
    if (decref_tuple) {
        Py_DECREF(tuple);
    }
    *pvalue1 = value1;
    *pvalue2 = value2;
    return 0;
#if CYTHON_AVOID_BORROWED_REFS || !CYTHON_ASSUME_SAFE_MACROS
bad:
    Py_XDECREF(value1);
    Py_XDECREF(value2);
    if (decref_tuple) { Py_XDECREF(tuple); }
    return -1;
#endif
}
static int __Pyx_unpack_tuple2_generic(PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2,
                                       int has_known_size, int decref_tuple) {
    Py_ssize_t index;
    PyObject *value1 = NULL, *value2 = NULL, *iter = NULL;
    iternextfunc iternext;
    iter = PyObject_GetIter(tuple);
    if (unlikely(!iter)) goto bad;
    if (decref_tuple) { Py_DECREF(tuple); tuple = NULL; }
    iternext = __Pyx_PyObject_GetIterNextFunc(iter);
    value1 = iternext(iter); if (unlikely(!value1)) { index = 0; goto unpacking_failed; }
    value2 = iternext(iter); if (unlikely(!value2)) { index = 1; goto unpacking_failed; }
    if (!has_known_size && unlikely(__Pyx_IternextUnpackEndCheck(iternext(iter), 2))) goto bad;
    Py_DECREF(iter);
    *pvalue1 = value1;
    *pvalue2 = value2;
    return 0;
unpacking_failed:
    if (!has_known_size && __Pyx_IterFinish() == 0)
        __Pyx_RaiseNeedMoreValuesError(index);
bad:
    Py_XDECREF(iter);
    Py_XDECREF(value1);
    Py_XDECREF(value2);
    if (decref_tuple) { Py_XDECREF(tuple); }
    return -1;
}

/* dict_iter */
#if CYTHON_AVOID_BORROWED_REFS
#include <string.h>
#endif
static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* iterable, int is_dict, PyObject* method_name,
                                                   Py_ssize_t* p_orig_length, int* p_source_is_dict) {
    is_dict = is_dict || likely(PyDict_CheckExact(iterable));
    *p_source_is_dict = is_dict;
    if (is_dict) {
#if !CYTHON_AVOID_BORROWED_REFS
        *p_orig_length = PyDict_Size(iterable);
        Py_INCREF(iterable);
        return iterable;
#else
        static PyObject *py_items = NULL, *py_keys = NULL, *py_values = NULL;
        PyObject **pp = NULL;
        if (method_name) {
            const char *name = PyUnicode_AsUTF8(method_name);
            if (strcmp(name, "iteritems") == 0) pp = &py_items;
            else if (strcmp(name, "iterkeys") == 0) pp = &py_keys;
            else if (strcmp(name, "itervalues") == 0) pp = &py_values;
            if (pp) {
                if (!*pp) {
                    *pp = PyUnicode_FromString(name + 4);
                    if (!*pp)
                        return NULL;
                }
                method_name = *pp;
            }
        }
#endif
    }
    *p_orig_length = 0;
    if (method_name) {
        PyObject* iter;
        iterable = __Pyx_PyObject_CallMethod0(iterable, method_name);
        if (!iterable)
            return NULL;
#if !CYTHON_AVOID_BORROWED_REFS
        if (PyTuple_CheckExact(iterable) || PyList_CheckExact(iterable))
            return iterable;
#endif
        iter = PyObject_GetIter(iterable);
        Py_DECREF(iterable);
        return iter;
    }
    return PyObject_GetIter(iterable);
}
#if !CYTHON_AVOID_BORROWED_REFS
static CYTHON_INLINE int __Pyx_dict_iter_next_source_is_dict(
        PyObject* iter_obj, CYTHON_NCP_UNUSED Py_ssize_t orig_length, CYTHON_NCP_UNUSED Py_ssize_t* ppos,
        PyObject** pkey, PyObject** pvalue, PyObject** pitem) {
    PyObject *key, *value;
    if (unlikely(orig_length != PyDict_Size(iter_obj))) {
        PyErr_SetString(PyExc_RuntimeError, "dictionary changed size during iteration");
        return -1;
    }
    if (unlikely(!PyDict_Next(iter_obj, ppos, &key, &value))) {
        return 0;
    }
    if (pitem) {
        PyObject* tuple = PyTuple_New(2);
        if (unlikely(!tuple)) {
            return -1;
        }
        Py_INCREF(key);
        Py_INCREF(value);
        #if CYTHON_ASSUME_SAFE_MACROS
        PyTuple_SET_ITEM(tuple, 0, key);
        PyTuple_SET_ITEM(tuple, 1, value);
        #else
        if (unlikely(PyTuple_SetItem(tuple, 0, key) < 0)) {
            Py_DECREF(value);
            Py_DECREF(tuple);
            return -1;
        }
        if (unlikely(PyTuple_SetItem(tuple, 1, value) < 0)) {
            Py_DECREF(tuple);
            return -1;
        }
        #endif
        *pitem = tuple;
    } else {
        if (pkey) {
            Py_INCREF(key);
            *pkey = key;
        }
        if (pvalue) {
            Py_INCREF(value);
            *pvalue = value;
        }
    }
    return 1;
}
#endif
static CYTHON_INLINE int __Pyx_dict_iter_next(
        PyObject* iter_obj, CYTHON_NCP_UNUSED Py_ssize_t orig_length, CYTHON_NCP_UNUSED Py_ssize_t* ppos,
        PyObject** pkey, PyObject** pvalue, PyObject** pitem, int source_is_dict) {
    PyObject* next_item;
#if !CYTHON_AVOID_BORROWED_REFS
    if (source_is_dict) {
        int result;
#if PY_VERSION_HEX >= 0x030d0000 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_BEGIN_CRITICAL_SECTION(iter_obj);
#endif
        result = __Pyx_dict_iter_next_source_is_dict(iter_obj, orig_length, ppos, pkey, pvalue, pitem);
#if PY_VERSION_HEX >= 0x030d0000 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_END_CRITICAL_SECTION();
#endif
        return result;
    } else if (PyTuple_CheckExact(iter_obj)) {
        Py_ssize_t pos = *ppos;
        Py_ssize_t tuple_size = __Pyx_PyTuple_GET_SIZE(iter_obj);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(tuple_size < 0)) return -1;
        #endif
        if (unlikely(pos >= tuple_size)) return 0;
        *ppos = pos + 1;
        #if CYTHON_ASSUME_SAFE_MACROS
        next_item = PyTuple_GET_ITEM(iter_obj, pos);
        #else
        next_item = PyTuple_GetItem(iter_obj, pos);
        if (unlikely(!next_item)) return -1;
        #endif
        Py_INCREF(next_item);
    } else if (PyList_CheckExact(iter_obj)) {
        Py_ssize_t pos = *ppos;
        Py_ssize_t list_size = __Pyx_PyList_GET_SIZE(iter_obj);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(list_size < 0)) return -1;
        #endif
        if (unlikely(pos >= list_size)) return 0;
        *ppos = pos + 1;
        next_item = __Pyx_PyList_GetItemRef(iter_obj, pos);
        if (unlikely(!next_item)) return -1;
    } else
#endif
    {
        next_item = PyIter_Next(iter_obj);
        if (unlikely(!next_item)) {
            return __Pyx_IterFinish();
        }
    }
    if (pitem) {
        *pitem = next_item;
    } else if (pkey && pvalue) {
        if (__Pyx_unpack_tuple2(next_item, pkey, pvalue, source_is_dict, source_is_dict, 1))
            return -1;
    } else if (pkey) {
        *pkey = next_item;
    } else {
        *pvalue = next_item;
    }
    return 1;
}

/* PyUnicode_Unicode */
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_Unicode(PyObject *obj) {
    if (unlikely(obj == Py_None))
        obj = __pyx_mstate_global->__pyx_kp_u_None;
    return __Pyx_NewRef(obj);
}

/* RaiseUnexpectedTypeError */
static int
__Pyx_RaiseUnexpectedTypeError(const char *expected, PyObject *obj)
{
    __Pyx_TypeName obj_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(obj));
    PyErr_Format(PyExc_TypeError, "Expected %s, got " __Pyx_FMT_TYPENAME,
                 expected, obj_type_name);
    __Pyx_DECREF_TypeName(obj_type_name);
    return 0;
}

/* GetItemInt */
static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) {
    PyObject *r;
    if (unlikely(!j)) return NULL;
    r = PyObject_GetItem(o, j);
    Py_DECREF(j);
    return r;
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck, int unsafe_shared) {
    CYTHON_MAYBE_UNUSED_VAR(unsafe_shared);
#if CYTHON_ASSUME_SAFE_SIZE
    Py_ssize_t wrapped_i = i;
    if (wraparound & unlikely(i < 0)) {
        wrapped_i += PyList_GET_SIZE(o);
    }
    if ((CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS || !CYTHON_ASSUME_SAFE_MACROS)) {
        return __Pyx_PyList_GetItemRefFast(o, wrapped_i, unsafe_shared);
    } else
    if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyList_GET_SIZE(o)))) {
        return __Pyx_NewRef(PyList_GET_ITEM(o, wrapped_i));
    }
    return __Pyx_GetItemInt_Generic(o, PyLong_FromSsize_t(i));
#else
    (void)wraparound;
    (void)boundscheck;
    return PySequence_GetItem(o, i);
#endif
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck, int unsafe_shared) {
    CYTHON_MAYBE_UNUSED_VAR(unsafe_shared);
#if CYTHON_ASSUME_SAFE_SIZE && CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    Py_ssize_t wrapped_i = i;
    if (wraparound & unlikely(i < 0)) {
        wrapped_i += PyTuple_GET_SIZE(o);
    }
    if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyTuple_GET_SIZE(o)))) {
        return __Pyx_NewRef(PyTuple_GET_ITEM(o, wrapped_i));
    }
    return __Pyx_GetItemInt_Generic(o, PyLong_FromSsize_t(i));
#else
    (void)wraparound;
    (void)boundscheck;
    return PySequence_GetItem(o, i);
#endif
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list,
                                                     int wraparound, int boundscheck, int unsafe_shared) {
    CYTHON_MAYBE_UNUSED_VAR(unsafe_shared);
#if CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
    if (is_list || PyList_CheckExact(o)) {
        Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyList_GET_SIZE(o);
        if ((CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS)) {
            return __Pyx_PyList_GetItemRefFast(o, n, unsafe_shared);
        } else if ((!boundscheck) || (likely(__Pyx_is_valid_index(n, PyList_GET_SIZE(o))))) {
            return __Pyx_NewRef(PyList_GET_ITEM(o, n));
        }
    } else
    #if !CYTHON_AVOID_BORROWED_REFS
    if (PyTuple_CheckExact(o)) {
        Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyTuple_GET_SIZE(o);
        if ((!boundscheck) || likely(__Pyx_is_valid_index(n, PyTuple_GET_SIZE(o)))) {
            return __Pyx_NewRef(PyTuple_GET_ITEM(o, n));
        }
    } else
    #endif
#endif
#if CYTHON_USE_TYPE_SLOTS && !CYTHON_COMPILING_IN_PYPY
    {
        PyMappingMethods *mm = Py_TYPE(o)->tp_as_mapping;
        PySequenceMethods *sm = Py_TYPE(o)->tp_as_sequence;
        if (!is_list && mm && mm->mp_subscript) {
            PyObject *r, *key = PyLong_FromSsize_t(i);
            if (unlikely(!key)) return NULL;
            r = mm->mp_subscript(o, key);
            Py_DECREF(key);
            return r;
        }
        if (is_list || likely(sm && sm->sq_item)) {
            if (wraparound && unlikely(i < 0) && likely(sm->sq_length)) {
                Py_ssize_t l = sm->sq_length(o);
                if (likely(l >= 0)) {
                    i += l;
                } else {
                    if (!PyErr_ExceptionMatches(PyExc_OverflowError))
                        return NULL;
                    PyErr_Clear();
                }
            }
            return sm->sq_item(o, i);
        }
    }
#else
    if (is_list || !PyMapping_Check(o)) {
        return PySequence_GetItem(o, i);
    }
#endif
    (void)wraparound;
    (void)boundscheck;
    return __Pyx_GetItemInt_Generic(o, PyLong_FromSsize_t(i));
}

/* SwapException */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
  #if CYTHON_USE_EXC_INFO_STACK && PY_VERSION_HEX >= 0x030B00a4
    _PyErr_StackItem *exc_info = tstate->exc_info;
    tmp_value = exc_info->exc_value;
    exc_info->exc_value = *value;
    if (tmp_value == NULL || tmp_value == Py_None) {
        Py_XDECREF(tmp_value);
        tmp_value = NULL;
        tmp_type = NULL;
        tmp_tb = NULL;
    } else {
        tmp_type = (PyObject*) Py_TYPE(tmp_value);
        Py_INCREF(tmp_type);
        #if CYTHON_COMPILING_IN_CPYTHON
        tmp_tb = ((PyBaseExceptionObject*) tmp_value)->traceback;
        Py_XINCREF(tmp_tb);
        #else
        tmp_tb = PyException_GetTraceback(tmp_value);
        #endif
    }
  #elif CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = tstate->exc_info;
    tmp_type = exc_info->exc_type;
    tmp_value = exc_info->exc_value;
    tmp_tb = exc_info->exc_traceback;
    exc_info->exc_type = *type;
    exc_info->exc_value = *value;
    exc_info->exc_traceback = *tb;
  #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = *type;
    tstate->exc_value = *value;
    tstate->exc_traceback = *tb;
  #endif
    *type = tmp_type;
    *value = tmp_value;
    *tb = tmp_tb;
}
#else
static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    PyErr_GetExcInfo(&tmp_type, &tmp_value, &tmp_tb);
    PyErr_SetExcInfo(*type, *value, *tb);
    *type = tmp_type;
    *value = tmp_value;
    *tb = tmp_tb;
}
#endif

/* GetTopmostException (used by SaveResetException) */
#if CYTHON_USE_EXC_INFO_STACK && CYTHON_FAST_THREAD_STATE
static _PyErr_StackItem *
__Pyx_PyErr_GetTopmostException(PyThreadState *tstate)
{
    _PyErr_StackItem *exc_info = tstate->exc_info;
    while ((exc_info->exc_value == NULL || exc_info->exc_value == Py_None) &&
           exc_info->previous_item != NULL)
    {
        exc_info = exc_info->previous_item;
    }
    return exc_info;
}
#endif

/* SaveResetException */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
  #if CYTHON_USE_EXC_INFO_STACK && PY_VERSION_HEX >= 0x030B00a4
    _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate);
    PyObject *exc_value = exc_info->exc_value;
    if (exc_value == NULL || exc_value == Py_None) {
        *value = NULL;
        *type = NULL;
        *tb = NULL;
    } else {
        *value = exc_value;
        Py_INCREF(*value);
        *type = (PyObject*) Py_TYPE(exc_value);
        Py_INCREF(*type);
        *tb = PyException_GetTraceback(exc_value);
    }
  #elif CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate);
    *type = exc_info->exc_type;
    *value = exc_info->exc_value;
    *tb = exc_info->exc_traceback;
    Py_XINCREF(*type);
    Py_XINCREF(*value);
    Py_XINCREF(*tb);
  #else
    *type = tstate->exc_type;
    *value = tstate->exc_value;
    *tb = tstate->exc_traceback;
    Py_XINCREF(*type);
    Py_XINCREF(*value);
    Py_XINCREF(*tb);
  #endif
}
static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
  #if CYTHON_USE_EXC_INFO_STACK && PY_VERSION_HEX >= 0x030B00a4
    _PyErr_StackItem *exc_info = tstate->exc_info;
    PyObject *tmp_value = exc_info->exc_value;
    exc_info->exc_value = value;
    Py_XDECREF(tmp_value);
    Py_XDECREF(type);
    Py_XDECREF(tb);
  #else
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    #if CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = tstate->exc_info;
    tmp_type = exc_info->exc_type;
    tmp_value = exc_info->exc_value;
    tmp_tb = exc_info->exc_traceback;
    exc_info->exc_type = type;
    exc_info->exc_value = value;
    exc_info->exc_traceback = tb;
    #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = type;
    tstate->exc_value = value;
    tstate->exc_traceback = tb;
    #endif
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
  #endif
}
#endif

/* PyObjectVectorCallKwBuilder */
#if CYTHON_VECTORCALL
static int __Pyx_VectorcallBuilder_AddArg(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n) {
    (void)__Pyx_PyObject_FastCallDict;
    Py_INCREF(key);
    if (__Pyx_PyTuple_SET_ITEM(builder, n, key) != (0)) return -1;
    args[n] = value;
    return 0;
}
CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n) {
    (void)__Pyx_VectorcallBuilder_AddArgStr;
    if (unlikely(!PyUnicode_Check(key))) {
        PyErr_SetString(PyExc_TypeError, "keywords must be strings");
        return -1;
    }
    return __Pyx_VectorcallBuilder_AddArg(key, value, builder, args, n);
}
static int __Pyx_VectorcallBuilder_AddArgStr(const char *key, PyObject *value, PyObject *builder, PyObject **args, int n) {
    PyObject *pyKey = PyUnicode_FromString(key);
    if (!pyKey) return -1;
    return __Pyx_VectorcallBuilder_AddArg(pyKey, value, builder, args, n);
}
#else // CYTHON_VECTORCALL
CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, CYTHON_UNUSED PyObject **args, CYTHON_UNUSED int n) {
    if (unlikely(!PyUnicode_Check(key))) {
        PyErr_SetString(PyExc_TypeError, "keywords must be strings");
        return -1;
    }
    return PyDict_SetItem(builder, key, value);
}
#endif

/* PyLongBinop */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_Fallback___Pyx_PyLong_AddObjC(PyObject *op1, PyObject *op2, int inplace) {
    return (inplace ? PyNumber_InPlaceAdd : PyNumber_Add)(op1, op2);
}
#if CYTHON_USE_PYLONG_INTERNALS
static PyObject* __Pyx_Unpacked___Pyx_PyLong_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(inplace);
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long b = intval;
    long a;
    const PY_LONG_LONG llb = intval;
    PY_LONG_LONG lla;
    if (unlikely(__Pyx_PyLong_IsZero(op1))) {
        return __Pyx_NewRef(op2);
    }
    const int is_positive = __Pyx_PyLong_IsPos(op1);
    const digit* digits = __Pyx_PyLong_Digits(op1);
    const Py_ssize_t size = __Pyx_PyLong_DigitCount(op1);
    if (likely(size == 1)) {
        a = (long) digits[0];
        if (!is_positive) a *= -1;
    } else {
        switch (size) {
            case 2:
                if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                    a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
            case 3:
                if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                    a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
            case 4:
                if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                    a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
        }
        return PyLong_Type.tp_as_number->nb_add(op1, op2);
    }
    calculate_long:
        {
            long x;
            x = a + b;
            return PyLong_FromLong(x);
        }
    calculate_long_long:
        {
            PY_LONG_LONG llx;
            llx = lla + llb;
            return PyLong_FromLongLong(llx);
        }
    
}
#endif
static PyObject* __Pyx_Float___Pyx_PyLong_AddObjC(PyObject *float_val, long intval, int zerodivision_check) {
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long b = intval;
    double a = __Pyx_PyFloat_AS_DOUBLE(float_val);
        double result;
        
        result = ((double)a) + (double)b;
        return PyFloat_FromDouble(result);
}
static CYTHON_INLINE PyObject* __Pyx_PyLong_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(intval);
    CYTHON_UNUSED_VAR(zerodivision_check);
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        return __Pyx_Unpacked___Pyx_PyLong_AddObjC(op1, op2, intval, inplace, zerodivision_check);
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        return __Pyx_Float___Pyx_PyLong_AddObjC(op1, intval, zerodivision_check);
    }
    return __Pyx_Fallback___Pyx_PyLong_AddObjC(op1, op2, inplace);
}
#endif

/* PyLongBinop */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_Fallback___Pyx_PyLong_MultiplyObjC(PyObject *op1, PyObject *op2, int inplace) {
    return (inplace ? PyNumber_InPlaceMultiply : PyNumber_Multiply)(op1, op2);
}
#if CYTHON_USE_PYLONG_INTERNALS
static PyObject* __Pyx_Unpacked___Pyx_PyLong_MultiplyObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(inplace);
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long b = intval;
    long a;
    const PY_LONG_LONG llb = intval;
    PY_LONG_LONG lla;
    if (unlikely(__Pyx_PyLong_IsZero(op1))) {
        return __Pyx_NewRef(op1);
    }
    const int is_positive = __Pyx_PyLong_IsPos(op1);
    const digit* digits = __Pyx_PyLong_Digits(op1);
    const Py_ssize_t size = __Pyx_PyLong_DigitCount(op1);
    if (likely(size == 1)) {
        a = (long) digits[0];
        if (!is_positive) a *= -1;
    } else {
        switch (size) {
            case 2:
                if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT+30) {
                    a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT+30) {
                    lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
            case 3:
                if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT+30) {
                    a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT+30) {
                    lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
            case 4:
                if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT+30) {
                    a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT+30) {
                    lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
        }
        return PyLong_Type.tp_as_number->nb_multiply(op1, op2);
    }
    calculate_long:
        CYTHON_UNUSED_VAR(a);
        CYTHON_UNUSED_VAR(b);
        lla = a;
        goto calculate_long_long;
    calculate_long_long:
        {
            PY_LONG_LONG llx;
            llx = lla * llb;
            return PyLong_FromLongLong(llx);
        }
    
}
#endif
static PyObject* __Pyx_Float___Pyx_PyLong_MultiplyObjC(PyObject *float_val, long intval, int zerodivision_check) {
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long b = intval;
    double a = __Pyx_PyFloat_AS_DOUBLE(float_val);
        double result;
        
        result = ((double)a) * (double)b;
        return PyFloat_FromDouble(result);
}
static CYTHON_INLINE PyObject* __Pyx_PyLong_MultiplyObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(intval);
    CYTHON_UNUSED_VAR(zerodivision_check);
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        return __Pyx_Unpacked___Pyx_PyLong_MultiplyObjC(op1, op2, intval, inplace, zerodivision_check);
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        return __Pyx_Float___Pyx_PyLong_MultiplyObjC(op1, intval, zerodivision_check);
    }
    return __Pyx_Fallback___Pyx_PyLong_MultiplyObjC(op1, op2, inplace);
}
#endif

/* CIntToDigits (used by CIntToPyUnicode) */
static const char DIGIT_PAIRS_10[2*10*10+1] = {
    "00010203040506070809"
    "10111213141516171819"
    "20212223242526272829"
    "30313233343536373839"
    "40414243444546474849"
    "50515253545556575859"
    "60616263646566676869"
    "70717273747576777879"
    "80818283848586878889"
    "90919293949596979899"
};
static const char DIGIT_PAIRS_8[2*8*8+1] = {
    "0001020304050607"
    "1011121314151617"
    "2021222324252627"
    "3031323334353637"
    "4041424344454647"
    "5051525354555657"
    "6061626364656667"
    "7071727374757677"
};
static const char DIGITS_HEX[2*16+1] = {
    "0123456789abcdef"
    "0123456789ABCDEF"
};

/* BuildPyUnicode (used by COrdinalToPyUnicode) */
static PyObject* __Pyx_PyUnicode_BuildFromAscii(Py_ssize_t ulength, const char* chars, int clength,
                                                int prepend_sign, char padding_char) {
    PyObject *uval;
    Py_ssize_t uoffset = ulength - clength;
#if CYTHON_USE_UNICODE_INTERNALS
    Py_ssize_t i;
    void *udata;
    uval = PyUnicode_New(ulength, 127);
    if (unlikely(!uval)) return NULL;
    udata = PyUnicode_DATA(uval);
    if (uoffset > 0) {
        i = 0;
        if (prepend_sign) {
            __Pyx_PyUnicode_WRITE(PyUnicode_1BYTE_KIND, udata, 0, '-');
            i++;
        }
        for (; i < uoffset; i++) {
            __Pyx_PyUnicode_WRITE(PyUnicode_1BYTE_KIND, udata, i, padding_char);
        }
    }
    for (i=0; i < clength; i++) {
        __Pyx_PyUnicode_WRITE(PyUnicode_1BYTE_KIND, udata, uoffset+i, chars[i]);
    }
#else
    {
        PyObject *sign = NULL, *padding = NULL;
        uval = NULL;
        if (uoffset > 0) {
            prepend_sign = !!prepend_sign;
            if (uoffset > prepend_sign) {
                padding = PyUnicode_FromOrdinal(padding_char);
                if (likely(padding) && uoffset > prepend_sign + 1) {
                    PyObject *tmp = PySequence_Repeat(padding, uoffset - prepend_sign);
                    Py_DECREF(padding);
                    padding = tmp;
                }
                if (unlikely(!padding)) goto done_or_error;
            }
            if (prepend_sign) {
                sign = PyUnicode_FromOrdinal('-');
                if (unlikely(!sign)) goto done_or_error;
            }
        }
        uval = PyUnicode_DecodeASCII(chars, clength, NULL);
        if (likely(uval) && padding) {
            PyObject *tmp = PyUnicode_Concat(padding, uval);
            Py_DECREF(uval);
            uval = tmp;
        }
        if (likely(uval) && sign) {
            PyObject *tmp = PyUnicode_Concat(sign, uval);
            Py_DECREF(uval);
            uval = tmp;
        }
done_or_error:
        Py_XDECREF(padding);
        Py_XDECREF(sign);
    }
#endif
    return uval;
}

/* COrdinalToPyUnicode (used by CIntToPyUnicode) */
static CYTHON_INLINE int __Pyx_CheckUnicodeValue(int value) {
    return value <= 1114111;
}
static PyObject* __Pyx_PyUnicode_FromOrdinal_Padded(int value, Py_ssize_t ulength, char padding_char) {
    Py_ssize_t padding_length = ulength - 1;
    if (likely((padding_length <= 250) && (value < 0xD800 || value > 0xDFFF))) {
        char chars[256];
        if (value <= 255) {
            memset(chars, padding_char, (size_t) padding_length);
            chars[ulength-1] = (char) value;
            return PyUnicode_DecodeLatin1(chars, ulength, NULL);
        }
        char *cpos = chars + sizeof(chars);
        if (value < 0x800) {
            *--cpos = (char) (0x80 | (value & 0x3f));
            value >>= 6;
            *--cpos = (char) (0xc0 | (value & 0x1f));
        } else if (value < 0x10000) {
            *--cpos = (char) (0x80 | (value & 0x3f));
            value >>= 6;
            *--cpos = (char) (0x80 | (value & 0x3f));
            value >>= 6;
            *--cpos = (char) (0xe0 | (value & 0x0f));
        } else {
            *--cpos = (char) (0x80 | (value & 0x3f));
            value >>= 6;
            *--cpos = (char) (0x80 | (value & 0x3f));
            value >>= 6;
            *--cpos = (char) (0x80 | (value & 0x3f));
            value >>= 6;
            *--cpos = (char) (0xf0 | (value & 0x07));
        }
        cpos -= padding_length;
        memset(cpos, padding_char, (size_t) padding_length);
        return PyUnicode_DecodeUTF8(cpos, chars + sizeof(chars) - cpos, NULL);
    }
    if (value <= 127 && CYTHON_USE_UNICODE_INTERNALS) {
        const char chars[1] = {(char) value};
        return __Pyx_PyUnicode_BuildFromAscii(ulength, chars, 1, 0, padding_char);
    }
    {
        PyObject *uchar, *padding_uchar, *padding, *result;
        padding_uchar = PyUnicode_FromOrdinal(padding_char);
        if (unlikely(!padding_uchar)) return NULL;
        padding = PySequence_Repeat(padding_uchar, padding_length);
        Py_DECREF(padding_uchar);
        if (unlikely(!padding)) return NULL;
        uchar = PyUnicode_FromOrdinal(value);
        if (unlikely(!uchar)) {
            Py_DECREF(padding);
            return NULL;
        }
        result = PyUnicode_Concat(padding, uchar);
        Py_DECREF(padding);
        Py_DECREF(uchar);
        return result;
    }
}

/* CIntToPyUnicode */
static CYTHON_INLINE PyObject* __Pyx_uchar___Pyx_PyUnicode_From_Py_ssize_t(Py_ssize_t value, Py_ssize_t width, char padding_char) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const Py_ssize_t neg_one = (Py_ssize_t) -1, const_zero = (Py_ssize_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!(is_unsigned || value == 0 || value > 0) ||
                    !(sizeof(value) <= 2 || value & ~ (Py_ssize_t) 0x01fffff || __Pyx_CheckUnicodeValue((int) value)))) {
        PyErr_SetString(PyExc_OverflowError, "%c arg not in range(0x110000)");
        return NULL;
    }
    if (width <= 1) {
        return PyUnicode_FromOrdinal((int) value);
    }
    return __Pyx_PyUnicode_FromOrdinal_Padded((int) value, width, padding_char);
}
static CYTHON_INLINE PyObject* __Pyx____Pyx_PyUnicode_From_Py_ssize_t(Py_ssize_t value, Py_ssize_t width, char padding_char, char format_char) {
    char digits[sizeof(Py_ssize_t)*3+2];
    char *dpos, *end = digits + sizeof(Py_ssize_t)*3+2;
    const char *hex_digits = DIGITS_HEX;
    Py_ssize_t length, ulength;
    int prepend_sign, last_one_off;
    Py_ssize_t remaining;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const Py_ssize_t neg_one = (Py_ssize_t) -1, const_zero = (Py_ssize_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (format_char == 'X') {
        hex_digits += 16;
        format_char = 'x';
    }
    remaining = value;
    last_one_off = 0;
    dpos = end;
    do {
        int digit_pos;
        switch (format_char) {
        case 'o':
            digit_pos = abs((int)(remaining % (8*8)));
            remaining = (Py_ssize_t) (remaining / (8*8));
            dpos -= 2;
            memcpy(dpos, DIGIT_PAIRS_8 + digit_pos * 2, 2);
            last_one_off = (digit_pos < 8);
            break;
        case 'd':
            digit_pos = abs((int)(remaining % (10*10)));
            remaining = (Py_ssize_t) (remaining / (10*10));
            dpos -= 2;
            memcpy(dpos, DIGIT_PAIRS_10 + digit_pos * 2, 2);
            last_one_off = (digit_pos < 10);
            break;
        case 'x':
            *(--dpos) = hex_digits[abs((int)(remaining % 16))];
            remaining = (Py_ssize_t) (remaining / 16);
            break;
        default:
            assert(0);
            break;
        }
    } while (unlikely(remaining != 0));
    assert(!last_one_off || *dpos == '0');
    dpos += last_one_off;
    length = end - dpos;
    ulength = length;
    prepend_sign = 0;
    if (!is_unsigned && value <= neg_one) {
        if (padding_char == ' ' || width <= length + 1) {
            *(--dpos) = '-';
            ++length;
        } else {
            prepend_sign = 1;
        }
        ++ulength;
    }
    if (width > ulength) {
        ulength = width;
    }
    if (ulength == 1) {
        return PyUnicode_FromOrdinal(*dpos);
    }
    return __Pyx_PyUnicode_BuildFromAscii(ulength, dpos, (int) length, prepend_sign, padding_char);
}

/* PyObjectCall2Args (used by PyObjectCallMethod1) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2) {
    PyObject *args[3] = {NULL, arg1, arg2};
    return __Pyx_PyObject_FastCall(function, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
}

/* PyObjectCallMethod1 (used by StringJoin) */
#if !(CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000)))
static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
    PyObject *result = __Pyx_PyObject_CallOneArg(method, arg);
    Py_DECREF(method);
    return result;
}
#endif
static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg) {
#if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
    PyObject *args[2] = {obj, arg};
    (void) __Pyx_PyObject_CallOneArg;
    (void) __Pyx_PyObject_Call2Args;
    return PyObject_VectorcallMethod(method_name, args, 2 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
#else
    PyObject *method = NULL, *result;
    int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
    if (likely(is_method)) {
        result = __Pyx_PyObject_Call2Args(method, obj, arg);
        Py_DECREF(method);
        return result;
    }
    if (unlikely(!method)) return NULL;
    return __Pyx__PyObject_CallMethod1(method, arg);
#endif
}

/* StringJoin */
static CYTHON_INLINE PyObject* __Pyx_PyBytes_Join(PyObject* sep, PyObject* values) {
    (void) __Pyx_PyObject_CallMethod1;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030e0000 || defined(PyBytes_Join)
    return PyBytes_Join(sep, values);
#elif CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030d0000 || defined(_PyBytes_Join)
    return _PyBytes_Join(sep, values);
#else
    return __Pyx_PyObject_CallMethod1(sep, __pyx_mstate_global->__pyx_n_u_join, values);
#endif
}

/* pyfloat_simplify */
static CYTHON_INLINE int __Pyx_PyFloat_FromNumber(PyObject **number_var, const char *argname, int accept_none) {
    PyObject *number = *number_var;
    if (likely((accept_none && number == Py_None) || PyFloat_CheckExact(number))) {
        return 0;
    }
    PyObject *float_object;
    if (likely(PyLong_CheckExact(number))) {
        double val;
#if CYTHON_USE_PYLONG_INTERNALS
        if (likely(__Pyx_PyLong_IsCompact(number))) {
            val = (double) __Pyx_PyLong_CompactValue(number);
        } else
#endif
        {
            val = PyLong_AsDouble(number);
            if (unlikely(val == -1.0 && PyErr_Occurred())) goto bad;
        }
        float_object = PyFloat_FromDouble(val);
    }
    else if (PyNumber_Check(number)) {
        float_object = PyNumber_Float(number);
    } else {
        __Pyx_PyBuiltin_Invalid(number, "float", argname);
        goto bad;
    }
    if (unlikely(!float_object)) goto bad;
    *number_var = float_object;
    Py_DECREF(number);
    return 0;
bad:
    *number_var = NULL;
    Py_DECREF(number);
    return -1;
}

/* SliceTupleAndList */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE void __Pyx_crop_slice(Py_ssize_t* _start, Py_ssize_t* _stop, Py_ssize_t* _length) {
    Py_ssize_t start = *_start, stop = *_stop, length = *_length;
    if (start < 0) {
        start += length;
        if (start < 0)
            start = 0;
    }
    if (stop < 0)
        stop += length;
    else if (stop > length)
        stop = length;
    *_length = stop - start;
    *_start = start;
    *_stop = stop;
}
static CYTHON_INLINE PyObject* __Pyx_PyTuple_GetSlice(
            PyObject* src, Py_ssize_t start, Py_ssize_t stop) {
    Py_ssize_t length = PyTuple_GET_SIZE(src);
    __Pyx_crop_slice(&start, &stop, &length);
    return __Pyx_PyTuple_FromArray(((PyTupleObject*)src)->ob_item + start, length);
}
static CYTHON_INLINE PyObject* __Pyx_PyList_GetSlice_locked(
            PyObject* src, Py_ssize_t start, Py_ssize_t stop) {
    Py_ssize_t length = PyList_GET_SIZE(src);
    __Pyx_crop_slice(&start, &stop, &length);
    if (length <= 0) {
        return PyList_New(0);
    }
    return __Pyx_PyList_FromArray(((PyListObject*)src)->ob_item + start, length);
}
static CYTHON_INLINE PyObject* __Pyx_PyList_GetSlice(
            PyObject* src, Py_ssize_t start, Py_ssize_t stop) {
    PyObject *result;
    __Pyx_BEGIN_CRITICAL_SECTION(src);
    result = __Pyx_PyList_GetSlice_locked(src, start, stop);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
#endif // CYTHON_COMPILING_IN_CPYTHON

/* AllocateExtensionType */
static PyObject *__Pyx_AllocateExtensionType(PyTypeObject *t, int is_final) {
    if (is_final || likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) {
        allocfunc alloc_func = __Pyx_PyType_GetSlot(t, tp_alloc, allocfunc);
        return alloc_func(t, 0);
    } else {
        newfunc tp_new = __Pyx_PyType_TryGetSlot(&PyBaseObject_Type, tp_new, newfunc);
    #if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
        if (!tp_new) {
            PyObject *new_str = PyUnicode_FromString("__new__");
            if (likely(new_str)) {
                PyObject *o = PyObject_CallMethodObjArgs((PyObject *)&PyBaseObject_Type, new_str, t, NULL);
                Py_DECREF(new_str);
                return o;
            } else
                return NULL;
        } else
    #endif
        return tp_new(t, __pyx_mstate_global->__pyx_empty_tuple, 0);
    }
}

/* ValidateBasesTuple (used by PyType_Ready) */
#if CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_USE_TYPE_SPECS
static int __Pyx_validate_bases_tuple(const char *type_name, Py_ssize_t dictoffset, PyObject *bases) {
    Py_ssize_t i, n;
#if CYTHON_ASSUME_SAFE_SIZE
    n = PyTuple_GET_SIZE(bases);
#else
    n = PyTuple_Size(bases);
    if (unlikely(n < 0)) return -1;
#endif
    for (i = 1; i < n; i++)
    {
        PyTypeObject *b;
#if CYTHON_AVOID_BORROWED_REFS
        PyObject *b0 = PySequence_GetItem(bases, i);
        if (!b0) return -1;
#elif CYTHON_ASSUME_SAFE_MACROS
        PyObject *b0 = PyTuple_GET_ITEM(bases, i);
#else
        PyObject *b0 = PyTuple_GetItem(bases, i);
        if (!b0) return -1;
#endif
        b = (PyTypeObject*) b0;
        if (!__Pyx_PyType_HasFeature(b, Py_TPFLAGS_HEAPTYPE))
        {
            __Pyx_TypeName b_name = __Pyx_PyType_GetFullyQualifiedName(b);
            PyErr_Format(PyExc_TypeError,
                "base class '" __Pyx_FMT_TYPENAME "' is not a heap type", b_name);
            __Pyx_DECREF_TypeName(b_name);
#if CYTHON_AVOID_BORROWED_REFS
            Py_DECREF(b0);
#endif
            return -1;
        }
        if (dictoffset == 0)
        {
            Py_ssize_t b_dictoffset = 0;
#if CYTHON_USE_TYPE_SLOTS
            b_dictoffset = b->tp_dictoffset;
#else
            PyObject *py_b_dictoffset = PyObject_GetAttrString((PyObject*)b, "__dictoffset__");
            if (!py_b_dictoffset) goto dictoffset_return;
            b_dictoffset = PyLong_AsSsize_t(py_b_dictoffset);
            Py_DECREF(py_b_dictoffset);
            if (b_dictoffset == -1 && PyErr_Occurred()) goto dictoffset_return;
#endif
            if (b_dictoffset) {
                {
                    __Pyx_TypeName b_name = __Pyx_PyType_GetFullyQualifiedName(b);
                    PyErr_Format(PyExc_TypeError,
                        "extension type '%.200s' has no __dict__ slot, "
                        "but base type '" __Pyx_FMT_TYPENAME "' has: "
                        "either add 'cdef dict __dict__' to the extension type "
                        "or add '__slots__ = [...]' to the base type",
                        type_name, b_name);
                    __Pyx_DECREF_TypeName(b_name);
                }
#if !CYTHON_USE_TYPE_SLOTS
              dictoffset_return:
#endif
#if CYTHON_AVOID_BORROWED_REFS
                Py_DECREF(b0);
#endif
                return -1;
            }
        }
#if CYTHON_AVOID_BORROWED_REFS
        Py_DECREF(b0);
#endif
    }
    return 0;
}
#endif

/* PyType_Ready */
CYTHON_UNUSED static int __Pyx_PyType_HasMultipleInheritance(PyTypeObject *t) {
    while (t) {
        PyObject *bases = __Pyx_PyType_GetSlot(t, tp_bases, PyObject*);
        if (bases) {
            return 1;
        }
        t = __Pyx_PyType_GetSlot(t, tp_base, PyTypeObject*);
    }
    return 0;
}
static int __Pyx_PyType_Ready(PyTypeObject *t) {
#if CYTHON_USE_TYPE_SPECS || !CYTHON_COMPILING_IN_CPYTHON || defined(PYSTON_MAJOR_VERSION)
    (void)__Pyx_PyObject_CallMethod0;
#if CYTHON_USE_TYPE_SPECS
    (void)__Pyx_validate_bases_tuple;
#endif
    return PyType_Ready(t);
#else
    int r;
    if (!__Pyx_PyType_HasMultipleInheritance(t)) {
        return PyType_Ready(t);
    }
    PyObject *bases = __Pyx_PyType_GetSlot(t, tp_bases, PyObject*);
    if (bases && unlikely(__Pyx_validate_bases_tuple(t->tp_name, t->tp_dictoffset, bases) == -1))
        return -1;
#if !defined(PYSTON_MAJOR_VERSION)
    {
        int gc_was_enabled;
    #if PY_VERSION_HEX >= 0x030A00b1
        gc_was_enabled = PyGC_Disable();
        (void)__Pyx_PyObject_CallMethod0;
    #else
        PyObject *ret, *py_status;
        PyObject *gc = NULL;
        #if (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM+0 >= 0x07030400) &&\
                !CYTHON_COMPILING_IN_GRAAL
        gc = PyImport_GetModule(__pyx_mstate_global->__pyx_kp_u_gc);
        #endif
        if (unlikely(!gc)) gc = PyImport_Import(__pyx_mstate_global->__pyx_kp_u_gc);
        if (unlikely(!gc)) return -1;
        py_status = __Pyx_PyObject_CallMethod0(gc, __pyx_mstate_global->__pyx_kp_u_isenabled);
        if (unlikely(!py_status)) {
            Py_DECREF(gc);
            return -1;
        }
        gc_was_enabled = __Pyx_PyObject_IsTrue(py_status);
        Py_DECREF(py_status);
        if (gc_was_enabled > 0) {
            ret = __Pyx_PyObject_CallMethod0(gc, __pyx_mstate_global->__pyx_kp_u_disable);
            if (unlikely(!ret)) {
                Py_DECREF(gc);
                return -1;
            }
            Py_DECREF(ret);
        } else if (unlikely(gc_was_enabled == -1)) {
            Py_DECREF(gc);
            return -1;
        }
    #endif
        t->tp_flags |= Py_TPFLAGS_HEAPTYPE;
#if PY_VERSION_HEX >= 0x030A0000
        t->tp_flags |= Py_TPFLAGS_IMMUTABLETYPE;
#endif
#else
        (void)__Pyx_PyObject_CallMethod0;
#endif
    r = PyType_Ready(t);
#if !defined(PYSTON_MAJOR_VERSION)
        t->tp_flags &= ~Py_TPFLAGS_HEAPTYPE;
    #if PY_VERSION_HEX >= 0x030A00b1
        if (gc_was_enabled)
            PyGC_Enable();
    #else
        if (gc_was_enabled) {
            PyObject *tp, *v, *tb;
            PyErr_Fetch(&tp, &v, &tb);
            ret = __Pyx_PyObject_CallMethod0(gc, __pyx_mstate_global->__pyx_kp_u_enable);
            if (likely(ret || r == -1)) {
                Py_XDECREF(ret);
                PyErr_Restore(tp, v, tb);
            } else {
                Py_XDECREF(tp);
                Py_XDECREF(v);
                Py_XDECREF(tb);
                r = -1;
            }
        }
        Py_DECREF(gc);
    #endif
    }
#endif
    return r;
#endif
}

/* SetVTable */
static int __Pyx_SetVtable(PyTypeObject *type, void *vtable) {
    PyObject *ob = PyCapsule_New(vtable, 0, 0);
    if (unlikely(!ob))
        goto bad;
#if CYTHON_COMPILING_IN_LIMITED_API
    if (unlikely(PyObject_SetAttr((PyObject *) type, __pyx_mstate_global->__pyx_n_u_pyx_vtable, ob) < 0))
#else
    if (unlikely(PyDict_SetItem(type->tp_dict, __pyx_mstate_global->__pyx_n_u_pyx_vtable, ob) < 0))
#endif
        goto bad;
    Py_DECREF(ob);
    return 0;
bad:
    Py_XDECREF(ob);
    return -1;
}

/* GetVTable (used by MergeVTables) */
static void* __Pyx_GetVtable(PyTypeObject *type) {
    void* ptr;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *ob = PyObject_GetAttr((PyObject *)type, __pyx_mstate_global->__pyx_n_u_pyx_vtable);
#else
    PyObject *ob = PyObject_GetItem(type->tp_dict, __pyx_mstate_global->__pyx_n_u_pyx_vtable);
#endif
    if (!ob)
        goto bad;
    ptr = PyCapsule_GetPointer(ob, 0);
    if (!ptr && !PyErr_Occurred())
        PyErr_SetString(PyExc_RuntimeError, "invalid vtable found for imported type");
    Py_DECREF(ob);
    return ptr;
bad:
    Py_XDECREF(ob);
    return NULL;
}

/* MergeVTables */
static int __Pyx_MergeVtables(PyTypeObject *type) {
    int i=0;
    Py_ssize_t size;
    void** base_vtables;
    __Pyx_TypeName tp_base_name = NULL;
    __Pyx_TypeName base_name = NULL;
    void* unknown = (void*)-1;
    PyObject* bases = __Pyx_PyType_GetSlot(type, tp_bases, PyObject*);
    int base_depth = 0;
    {
        PyTypeObject* base = __Pyx_PyType_GetSlot(type, tp_base, PyTypeObject*);
        while (base) {
            base_depth += 1;
            base = __Pyx_PyType_GetSlot(base, tp_base, PyTypeObject*);
        }
    }
    base_vtables = (void**) PyMem_Malloc(sizeof(void*) * (size_t)(base_depth + 1));
    base_vtables[0] = unknown;
#if CYTHON_COMPILING_IN_LIMITED_API
    size = PyTuple_Size(bases);
    if (size < 0) goto other_failure;
#else
    size = PyTuple_GET_SIZE(bases);
#endif
    for (i = 1; i < size; i++) {
        PyObject *basei;
        void* base_vtable;
#if CYTHON_AVOID_BORROWED_REFS
        basei = PySequence_GetItem(bases, i);
        if (unlikely(!basei)) goto other_failure;
#elif !CYTHON_ASSUME_SAFE_MACROS
        basei = PyTuple_GetItem(bases, i);
        if (unlikely(!basei)) goto other_failure;
#else
        basei = PyTuple_GET_ITEM(bases, i);
#endif
        base_vtable = __Pyx_GetVtable((PyTypeObject*)basei);
#if CYTHON_AVOID_BORROWED_REFS
        Py_DECREF(basei);
#endif
        if (base_vtable != NULL) {
            int j;
            PyTypeObject* base = __Pyx_PyType_GetSlot(type, tp_base, PyTypeObject*);
            for (j = 0; j < base_depth; j++) {
                if (base_vtables[j] == unknown) {
                    base_vtables[j] = __Pyx_GetVtable(base);
                    base_vtables[j + 1] = unknown;
                }
                if (base_vtables[j] == base_vtable) {
                    break;
                } else if (base_vtables[j] == NULL) {
                    goto bad;
                }
                base = __Pyx_PyType_GetSlot(base, tp_base, PyTypeObject*);
            }
        }
    }
    PyErr_Clear();
    PyMem_Free(base_vtables);
    return 0;
bad:
    {
        PyTypeObject* basei = NULL;
        PyTypeObject* tp_base = __Pyx_PyType_GetSlot(type, tp_base, PyTypeObject*);
        tp_base_name = __Pyx_PyType_GetFullyQualifiedName(tp_base);
#if CYTHON_AVOID_BORROWED_REFS
        basei = (PyTypeObject*)PySequence_GetItem(bases, i);
        if (unlikely(!basei)) goto really_bad;
#elif !CYTHON_ASSUME_SAFE_MACROS
        basei = (PyTypeObject*)PyTuple_GetItem(bases, i);
        if (unlikely(!basei)) goto really_bad;
#else
        basei = (PyTypeObject*)PyTuple_GET_ITEM(bases, i);
#endif
        base_name = __Pyx_PyType_GetFullyQualifiedName(basei);
#if CYTHON_AVOID_BORROWED_REFS
        Py_DECREF(basei);
#endif
    }
    PyErr_Format(PyExc_TypeError,
        "multiple bases have vtable conflict: '" __Pyx_FMT_TYPENAME "' and '" __Pyx_FMT_TYPENAME "'", tp_base_name, base_name);
#if CYTHON_AVOID_BORROWED_REFS || !CYTHON_ASSUME_SAFE_MACROS
really_bad: // bad has failed!
#endif
    __Pyx_DECREF_TypeName(tp_base_name);
    __Pyx_DECREF_TypeName(base_name);
#if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_AVOID_BORROWED_REFS || !CYTHON_ASSUME_SAFE_MACROS
other_failure:
#endif
    PyMem_Free(base_vtables);
    return -1;
}

/* DelItemOnTypeDict (used by SetupReduce) */
static int __Pyx__DelItemOnTypeDict(PyTypeObject *tp, PyObject *k) {
    int result;
    PyObject *tp_dict;
#if CYTHON_COMPILING_IN_LIMITED_API
    tp_dict = __Pyx_GetTypeDict(tp);
    if (unlikely(!tp_dict)) return -1;
#else
    tp_dict = tp->tp_dict;
#endif
    result = PyDict_DelItem(tp_dict, k);
    if (likely(!result)) PyType_Modified(tp);
    return result;
}

/* SetupReduce */
static int __Pyx_setup_reduce_is_named(PyObject* meth, PyObject* name) {
  int ret;
  PyObject *name_attr;
  name_attr = __Pyx_PyObject_GetAttrStrNoError(meth, __pyx_mstate_global->__pyx_n_u_name);
  if (likely(name_attr)) {
      ret = PyObject_RichCompareBool(name_attr, name, Py_EQ);
  } else {
      ret = -1;
  }
  if (unlikely(ret < 0)) {
      PyErr_Clear();
      ret = 0;
  }
  Py_XDECREF(name_attr);
  return ret;
}
static int __Pyx_setup_reduce(PyObject* type_obj) {
    int ret = 0;
    PyObject *object_reduce = NULL;
    PyObject *object_getstate = NULL;
    PyObject *object_reduce_ex = NULL;
    PyObject *reduce = NULL;
    PyObject *reduce_ex = NULL;
    PyObject *reduce_cython = NULL;
    PyObject *setstate = NULL;
    PyObject *setstate_cython = NULL;
    PyObject *getstate = NULL;
#if CYTHON_USE_PYTYPE_LOOKUP
    getstate = _PyType_Lookup((PyTypeObject*)type_obj, __pyx_mstate_global->__pyx_n_u_getstate);
#else
    getstate = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_mstate_global->__pyx_n_u_getstate);
    if (!getstate && PyErr_Occurred()) {
        goto __PYX_BAD;
    }
#endif
    if (getstate) {
#if CYTHON_USE_PYTYPE_LOOKUP
        object_getstate = _PyType_Lookup(&PyBaseObject_Type, __pyx_mstate_global->__pyx_n_u_getstate);
#else
        object_getstate = __Pyx_PyObject_GetAttrStrNoError((PyObject*)&PyBaseObject_Type, __pyx_mstate_global->__pyx_n_u_getstate);
        if (!object_getstate && PyErr_Occurred()) {
            goto __PYX_BAD;
        }
#endif
        if (object_getstate != getstate) {
            goto __PYX_GOOD;
        }
    }
#if CYTHON_USE_PYTYPE_LOOKUP
    object_reduce_ex = _PyType_Lookup(&PyBaseObject_Type, __pyx_mstate_global->__pyx_n_u_reduce_ex); if (!object_reduce_ex) goto __PYX_BAD;
#else
    object_reduce_ex = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_mstate_global->__pyx_n_u_reduce_ex); if (!object_reduce_ex) goto __PYX_BAD;
#endif
    reduce_ex = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_mstate_global->__pyx_n_u_reduce_ex); if (unlikely(!reduce_ex)) goto __PYX_BAD;
    if (reduce_ex == object_reduce_ex) {
#if CYTHON_USE_PYTYPE_LOOKUP
        object_reduce = _PyType_Lookup(&PyBaseObject_Type, __pyx_mstate_global->__pyx_n_u_reduce); if (!object_reduce) goto __PYX_BAD;
#else
        object_reduce = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_mstate_global->__pyx_n_u_reduce); if (!object_reduce) goto __PYX_BAD;
#endif
        reduce = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_mstate_global->__pyx_n_u_reduce); if (unlikely(!reduce)) goto __PYX_BAD;
        if (reduce == object_reduce || __Pyx_setup_reduce_is_named(reduce, __pyx_mstate_global->__pyx_n_u_reduce_cython)) {
            reduce_cython = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_mstate_global->__pyx_n_u_reduce_cython);
            if (likely(reduce_cython)) {
                ret = __Pyx_SetItemOnTypeDict((PyTypeObject*)type_obj, __pyx_mstate_global->__pyx_n_u_reduce, reduce_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
                ret = __Pyx_DelItemOnTypeDict((PyTypeObject*)type_obj, __pyx_mstate_global->__pyx_n_u_reduce_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
            } else if (reduce == object_reduce || PyErr_Occurred()) {
                goto __PYX_BAD;
            }
            setstate = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_mstate_global->__pyx_n_u_setstate);
            if (!setstate) PyErr_Clear();
            if (!setstate || __Pyx_setup_reduce_is_named(setstate, __pyx_mstate_global->__pyx_n_u_setstate_cython)) {
                setstate_cython = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_mstate_global->__pyx_n_u_setstate_cython);
                if (likely(setstate_cython)) {
                    ret = __Pyx_SetItemOnTypeDict((PyTypeObject*)type_obj, __pyx_mstate_global->__pyx_n_u_setstate, setstate_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
                    ret = __Pyx_DelItemOnTypeDict((PyTypeObject*)type_obj, __pyx_mstate_global->__pyx_n_u_setstate_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
                } else if (!setstate || PyErr_Occurred()) {
                    goto __PYX_BAD;
                }
            }
            PyType_Modified((PyTypeObject*)type_obj);
        }
    }
    goto __PYX_GOOD;
__PYX_BAD:
    if (!PyErr_Occurred()) {
        __Pyx_TypeName type_obj_name =
            __Pyx_PyType_GetFullyQualifiedName((PyTypeObject*)type_obj);
        PyErr_Format(PyExc_RuntimeError,
            "Unable to initialize pickling for " __Pyx_FMT_TYPENAME, type_obj_name);
        __Pyx_DECREF_TypeName(type_obj_name);
    }
    ret = -1;
__PYX_GOOD:
#if !CYTHON_USE_PYTYPE_LOOKUP
    Py_XDECREF(object_reduce);
    Py_XDECREF(object_reduce_ex);
    Py_XDECREF(object_getstate);
    Py_XDECREF(getstate);
#endif
    Py_XDECREF(reduce);
    Py_XDECREF(reduce_ex);
    Py_XDECREF(reduce_cython);
    Py_XDECREF(setstate);
    Py_XDECREF(setstate_cython);
    return ret;
}

/* HasAttr (used by ImportImpl) */
#if __PYX_LIMITED_VERSION_HEX < 0x030d0000
static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) {
    PyObject *r;
    if (unlikely(!PyUnicode_Check(n))) {
        PyErr_SetString(PyExc_TypeError,
                        "hasattr(): attribute name must be string");
        return -1;
    }
    r = __Pyx_PyObject_GetAttrStrNoError(o, n);
    if (!r) {
        return (unlikely(PyErr_Occurred())) ? -1 : 0;
    } else {
        Py_DECREF(r);
        return 1;
    }
}
#endif

/* ImportImpl (used by Import) */
static int __Pyx__Import_GetModule(PyObject *qualname, PyObject **module) {
    PyObject *imported_module = PyImport_GetModule(qualname);
    if (unlikely(!imported_module)) {
        *module = NULL;
        if (PyErr_Occurred()) {
            return -1;
        }
        return 0;
    }
    *module = imported_module;
    return 1;
}
static int __Pyx__Import_Lookup(PyObject *qualname, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject **module) {
    PyObject *imported_module;
    PyObject *top_level_package_name;
    Py_ssize_t i;
    int status, module_found;
    Py_ssize_t dot_index;
    module_found = __Pyx__Import_GetModule(qualname, &imported_module);
    if (unlikely(!module_found || module_found == -1)) {
        *module = NULL;
        return module_found;
    }
    if (imported_names) {
        for (i = 0; i < len_imported_names; i++) {
            PyObject *imported_name = imported_names[i];
#if __PYX_LIMITED_VERSION_HEX < 0x030d0000
            int has_imported_attribute = PyObject_HasAttr(imported_module, imported_name);
#else
            int has_imported_attribute = PyObject_HasAttrWithError(imported_module, imported_name);
            if (unlikely(has_imported_attribute == -1)) goto error;
#endif
            if (!has_imported_attribute) {
                goto not_found;
            }
        }
        *module = imported_module;
        return 1;
    }
    dot_index = PyUnicode_FindChar(qualname, '.', 0, PY_SSIZE_T_MAX, 1);
    if (dot_index == -1) {
        *module = imported_module;
        return 1;
    }
    if (unlikely(dot_index == -2)) goto error;
    top_level_package_name = PyUnicode_Substring(qualname, 0, dot_index);
    if (unlikely(!top_level_package_name)) goto error;
    Py_DECREF(imported_module);
    status = __Pyx__Import_GetModule(top_level_package_name, module);
    Py_DECREF(top_level_package_name);
    return status;
error:
    Py_DECREF(imported_module);
    *module = NULL;
    return -1;
not_found:
    Py_DECREF(imported_module);
    *module = NULL;
    return 0;
}
static PyObject *__Pyx__Import(PyObject *name, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject *qualname, PyObject *moddict, int level) {
    PyObject *module = 0;
    PyObject *empty_dict = 0;
    PyObject *from_list = 0;
    int module_found;
    if (!qualname) {
        qualname = name;
    }
    module_found = __Pyx__Import_Lookup(qualname, imported_names, len_imported_names, &module);
    if (likely(module_found == 1)) {
        return module;
    } else if (unlikely(module_found == -1)) {
        return NULL;
    }
    empty_dict = PyDict_New();
    if (unlikely(!empty_dict))
        goto bad;
    if (imported_names) {
#if CYTHON_COMPILING_IN_CPYTHON
        from_list = __Pyx_PyList_FromArray(imported_names, len_imported_names);
        if (unlikely(!from_list))
            goto bad;
#else
        from_list = PyList_New(len_imported_names);
        if (unlikely(!from_list)) goto bad;
        for (Py_ssize_t i=0; i<len_imported_names; ++i) {
            if (PyList_SetItem(from_list, i, __Pyx_NewRef(imported_names[i])) < 0) goto bad;
        }
#endif
    }
    if (level == -1) {
        const char* package_sep = strchr(__Pyx_MODULE_NAME, '.');
        if (package_sep != (0)) {
            module = PyImport_ImportModuleLevelObject(
                name, moddict, empty_dict, from_list, 1);
            if (unlikely(!module)) {
                if (unlikely(!PyErr_ExceptionMatches(PyExc_ImportError)))
                    goto bad;
                PyErr_Clear();
            }
        }
        level = 0;
    }
    if (!module) {
        module = PyImport_ImportModuleLevelObject(
            name, moddict, empty_dict, from_list, level);
    }
bad:
    Py_XDECREF(from_list);
    Py_XDECREF(empty_dict);
    return module;
}

/* Import */
static PyObject *__Pyx_Import(PyObject *name, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject *qualname, int level) {
    return __Pyx__Import(name, imported_names, len_imported_names, qualname, __pyx_mstate_global->__pyx_d, level);
}

/* ImportFrom */
static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) {
    PyObject* value = __Pyx_PyObject_GetAttrStr(module, name);
    if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) {
        const char* module_name_str = 0;
        PyObject* module_name = 0;
        PyObject* module_dot = 0;
        PyObject* full_name = 0;
        PyErr_Clear();
        module_name_str = PyModule_GetName(module);
        if (unlikely(!module_name_str)) { goto modbad; }
        module_name = PyUnicode_FromString(module_name_str);
        if (unlikely(!module_name)) { goto modbad; }
        module_dot = PyUnicode_Concat(module_name, __pyx_mstate_global->__pyx_kp_u__11);
        if (unlikely(!module_dot)) { goto modbad; }
        full_name = PyUnicode_Concat(module_dot, name);
        if (unlikely(!full_name)) { goto modbad; }
        #if (CYTHON_COMPILING_IN_PYPY && PYPY_VERSION_NUM  < 0x07030400) ||\
                CYTHON_COMPILING_IN_GRAAL
        {
            PyObject *modules = PyImport_GetModuleDict();
            if (unlikely(!modules))
                goto modbad;
            value = PyObject_GetItem(modules, full_name);
        }
        #else
        value = PyImport_GetModule(full_name);
        #endif
      modbad:
        Py_XDECREF(full_name);
        Py_XDECREF(module_dot);
        Py_XDECREF(module_name);
    }
    if (unlikely(!value)) {
        PyErr_Format(PyExc_ImportError, "cannot import name %S", name);
    }
    return value;
}

/* Py3UpdateBases */
static PyObject*
__Pyx_PEP560_update_bases(PyObject *bases)
{
    Py_ssize_t i, j, size_bases;
    PyObject *base = NULL, *meth, *new_base, *result, *new_bases = NULL;
#if CYTHON_ASSUME_SAFE_SIZE
    size_bases = PyTuple_GET_SIZE(bases);
#else
    size_bases = PyTuple_Size(bases);
    if (size_bases < 0) return NULL;
#endif
    for (i = 0; i < size_bases; i++) {
#if CYTHON_AVOID_BORROWED_REFS
        Py_CLEAR(base);
#endif
#if CYTHON_ASSUME_SAFE_MACROS
        base = PyTuple_GET_ITEM(bases, i);
#else
        base = PyTuple_GetItem(bases, i);
        if (!base) goto error;
#endif
#if CYTHON_AVOID_BORROWED_REFS
        Py_INCREF(base);
#endif
        if (PyType_Check(base)) {
            if (new_bases) {
                if (PyList_Append(new_bases, base) < 0) {
                    goto error;
                }
            }
            continue;
        }
        meth = __Pyx_PyObject_GetAttrStrNoError(base, __pyx_mstate_global->__pyx_n_u_mro_entries);
        if (!meth && PyErr_Occurred()) {
            goto error;
        }
        if (!meth) {
            if (new_bases) {
                if (PyList_Append(new_bases, base) < 0) {
                    goto error;
                }
            }
            continue;
        }
        new_base = __Pyx_PyObject_CallOneArg(meth, bases);
        Py_DECREF(meth);
        if (!new_base) {
            goto error;
        }
        if (!PyTuple_Check(new_base)) {
            PyErr_SetString(PyExc_TypeError,
                            "__mro_entries__ must return a tuple");
            Py_DECREF(new_base);
            goto error;
        }
        if (!new_bases) {
            if (!(new_bases = PyList_New(i))) {
                goto error;
            }
            for (j = 0; j < i; j++) {
                PyObject *base_from_list;
#if CYTHON_ASSUME_SAFE_MACROS
                base_from_list = PyTuple_GET_ITEM(bases, j);
                PyList_SET_ITEM(new_bases, j, base_from_list);
                Py_INCREF(base_from_list);
#else
                base_from_list = PyTuple_GetItem(bases, j);
                if (!base_from_list) goto error;
                Py_INCREF(base_from_list);
                if (PyList_SetItem(new_bases, j, base_from_list) < 0) goto error;
#endif
            }
        }
#if CYTHON_ASSUME_SAFE_SIZE
        j = PyList_GET_SIZE(new_bases);
#else
        j = PyList_Size(new_bases);
        if (j < 0) goto error;
#endif
        if (PyList_SetSlice(new_bases, j, j, new_base) < 0) {
            goto error;
        }
        Py_DECREF(new_base);
    }
    if (!new_bases) {
        Py_INCREF(bases);
        return bases;
    }
    result = PyList_AsTuple(new_bases);
    Py_DECREF(new_bases);
#if CYTHON_AVOID_BORROWED_REFS
    Py_XDECREF(base);
#endif
    return result;
error:
    Py_XDECREF(new_bases);
#if CYTHON_AVOID_BORROWED_REFS
    Py_XDECREF(base);
#endif
    return NULL;
}

/* CalculateMetaclass */
static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases) {
    Py_ssize_t i, nbases;
#if CYTHON_ASSUME_SAFE_SIZE
    nbases = PyTuple_GET_SIZE(bases);
#else
    nbases = PyTuple_Size(bases);
    if (nbases < 0) return NULL;
#endif
    for (i=0; i < nbases; i++) {
        PyTypeObject *tmptype;
#if CYTHON_ASSUME_SAFE_MACROS
        PyObject *tmp = PyTuple_GET_ITEM(bases, i);
#else
        PyObject *tmp = PyTuple_GetItem(bases, i);
        if (!tmp) return NULL;
#endif
        tmptype = Py_TYPE(tmp);
        if (!metaclass) {
            metaclass = tmptype;
            continue;
        }
        if (PyType_IsSubtype(metaclass, tmptype))
            continue;
        if (PyType_IsSubtype(tmptype, metaclass)) {
            metaclass = tmptype;
            continue;
        }
        PyErr_SetString(PyExc_TypeError,
                        "metaclass conflict: "
                        "the metaclass of a derived class "
                        "must be a (non-strict) subclass "
                        "of the metaclasses of all its bases");
        return NULL;
    }
    if (!metaclass) {
        metaclass = &PyType_Type;
    }
    Py_INCREF((PyObject*) metaclass);
    return (PyObject*) metaclass;
}

/* PyObjectLookupSpecial (used by Py3ClassCreate) */
#if CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx__PyObject_LookupSpecial(PyObject* obj, PyObject* attr_name, int with_error) {
    PyObject *res;
    PyTypeObject *tp = Py_TYPE(obj);
    res = _PyType_Lookup(tp, attr_name);
    if (likely(res)) {
        descrgetfunc f = Py_TYPE(res)->tp_descr_get;
        if (!f) {
            Py_INCREF(res);
        } else {
            res = f(res, obj, (PyObject *)tp);
        }
    } else if (with_error) {
        PyErr_SetObject(PyExc_AttributeError, attr_name);
    }
    return res;
}
#endif

/* Py3ClassCreate */
static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name,
                                           PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc) {
    PyObject *ns;
    if (metaclass) {
        PyObject *prep = __Pyx_PyObject_GetAttrStrNoError(metaclass, __pyx_mstate_global->__pyx_n_u_prepare);
        if (prep) {
            PyObject *pargs[3] = {NULL, name, bases};
            ns = __Pyx_PyObject_FastCallDict(prep, pargs+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, mkw);
            Py_DECREF(prep);
        } else {
            if (unlikely(PyErr_Occurred()))
                return NULL;
            ns = PyDict_New();
        }
    } else {
        ns = PyDict_New();
    }
    if (unlikely(!ns))
        return NULL;
    if (unlikely(PyObject_SetItem(ns, __pyx_mstate_global->__pyx_n_u_module, modname) < 0)) goto bad;
    if (unlikely(PyObject_SetItem(ns, __pyx_mstate_global->__pyx_n_u_qualname, qualname) < 0)) goto bad;
    if (unlikely(doc && PyObject_SetItem(ns, __pyx_mstate_global->__pyx_n_u_doc, doc) < 0)) goto bad;
    return ns;
bad:
    Py_DECREF(ns);
    return NULL;
}
static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases,
                                      PyObject *dict, PyObject *mkw,
                                      int calculate_metaclass, int allow_py2_metaclass) {
    PyObject *result;
    PyObject *owned_metaclass = NULL;
    PyObject *margs[4] = {NULL, name, bases, dict};
    if (allow_py2_metaclass) {
        owned_metaclass = PyObject_GetItem(dict, __pyx_mstate_global->__pyx_n_u_metaclass);
        if (owned_metaclass) {
            metaclass = owned_metaclass;
        } else if (likely(PyErr_ExceptionMatches(PyExc_KeyError))) {
            PyErr_Clear();
        } else {
            return NULL;
        }
    }
    if (calculate_metaclass && (!metaclass || PyType_Check(metaclass))) {
        metaclass = __Pyx_CalculateMetaclass((PyTypeObject*) metaclass, bases);
        Py_XDECREF(owned_metaclass);
        if (unlikely(!metaclass))
            return NULL;
        owned_metaclass = metaclass;
    }
    result = __Pyx_PyObject_FastCallDict(metaclass, margs+1, 3 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, mkw);
    Py_XDECREF(owned_metaclass);
    return result;
}

/* ClassMethod */
static PyObject* __Pyx_Method_ClassMethod(PyObject *method) {
#if CYTHON_COMPILING_IN_PYPY && PYPY_VERSION_NUM <= 0x05080000
    if (PyObject_TypeCheck(method, &PyWrapperDescr_Type)) {
        return PyClassMethod_New(method);
    }
#else
#if CYTHON_COMPILING_IN_PYPY
    if (PyMethodDescr_Check(method))
#else
    if (__Pyx_TypeCheck(method, &PyMethodDescr_Type))
#endif
    {
#if CYTHON_COMPILING_IN_LIMITED_API
        return PyErr_Format(
            PyExc_SystemError,
            "Cython cannot yet handle classmethod on a MethodDescriptorType (%S) in limited API mode. "
            "This is most likely a classmethod in a cdef class method with binding=False. "
            "Try setting 'binding' to True.",
            method);
#elif CYTHON_COMPILING_IN_GRAAL && defined(GRAALPY_VERSION_NUM) && GRAALPY_VERSION_NUM > 0x19000000
        PyTypeObject *d_type = GraalPyDescrObject_GetType(method);
        return PyDescr_NewClassMethod(d_type, GraalPyMethodDescrObject_GetMethod(method));
#elif CYTHON_COMPILING_IN_GRAAL
        PyTypeObject *d_type = PyDescrObject_GetType(method);
        return PyDescr_NewClassMethod(d_type, PyMethodDescrObject_GetMethod(method));
#else
        PyMethodDescrObject *descr = (PyMethodDescrObject *)method;
        PyTypeObject *d_type = descr->d_common.d_type;
        return PyDescr_NewClassMethod(d_type, descr->d_method);
#endif
    }
#endif
#if !CYTHON_COMPILING_IN_LIMITED_API
    else if (PyMethod_Check(method)) {
        return PyClassMethod_New(PyMethod_GET_FUNCTION(method));
    }
    else {
        return PyClassMethod_New(method);
    }
#else
    {
        PyObject *func=NULL;
        PyObject *builtins, *classmethod, *classmethod_str, *result=NULL;
        if (__Pyx_TypeCheck(method, __pyx_mstate_global->__Pyx_CachedMethodType)) {
            func = PyObject_GetAttrString(method, "__func__");
            if (!func) goto bad;
        } else {
            func = method;
            Py_INCREF(func);
        }
        builtins = PyEval_GetBuiltins(); // borrowed
        if (unlikely(!builtins)) goto bad;
        classmethod_str = PyUnicode_FromString("classmethod");
        if (unlikely(!classmethod_str)) goto bad;
        classmethod = PyObject_GetItem(builtins, classmethod_str);
        Py_DECREF(classmethod_str);
        if (unlikely(!classmethod)) goto bad;
        result = PyObject_CallFunctionObjArgs(classmethod, func, NULL);
        Py_DECREF(classmethod);
        bad:
        Py_XDECREF(func);
        return result;
    }
#endif
}

/* GetNameInClass */
static PyObject *__Pyx__GetNameInClass(PyObject *nmspace, PyObject *name) {
    PyObject *result;
    PyObject *dict;
    assert(PyType_Check(nmspace));
#if CYTHON_USE_TYPE_SLOTS
    dict = ((PyTypeObject*)nmspace)->tp_dict;
    Py_XINCREF(dict);
#else
    dict = PyObject_GetAttr(nmspace, __pyx_mstate_global->__pyx_n_u_dict);
#endif
    if (likely(dict)) {
        result = PyObject_GetItem(dict, name);
        Py_DECREF(dict);
        if (result) {
            return result;
        }
    }
    PyErr_Clear();
    __Pyx_GetModuleGlobalNameUncached(result, name);
    return result;
}

/* CLineInTraceback (used by AddTraceback) */
#if CYTHON_CLINE_IN_TRACEBACK && CYTHON_CLINE_IN_TRACEBACK_RUNTIME
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
#define __Pyx_PyProbablyModule_GetDict(o) __Pyx_XNewRef(PyModule_GetDict(o))
#elif !CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __Pyx_PyProbablyModule_GetDict(o) PyObject_GenericGetDict(o, NULL);
#else
PyObject* __Pyx_PyProbablyModule_GetDict(PyObject *o) {
    PyObject **dict_ptr = _PyObject_GetDictPtr(o);
    return dict_ptr ? __Pyx_XNewRef(*dict_ptr) : NULL;
}
#endif
static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line) {
    PyObject *use_cline = NULL;
    PyObject *ptype, *pvalue, *ptraceback;
    PyObject *cython_runtime_dict;
    CYTHON_MAYBE_UNUSED_VAR(tstate);
    if (unlikely(!__pyx_mstate_global->__pyx_cython_runtime)) {
        return c_line;
    }
    __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
    cython_runtime_dict = __Pyx_PyProbablyModule_GetDict(__pyx_mstate_global->__pyx_cython_runtime);
    if (likely(cython_runtime_dict)) {
        __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
            use_cline, cython_runtime_dict,
            __Pyx_PyDict_SetDefault(cython_runtime_dict, __pyx_mstate_global->__pyx_n_u_cline_in_traceback, Py_False))
    }
    if (use_cline == NULL || use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) {
        c_line = 0;
    }
    Py_XDECREF(use_cline);
    Py_XDECREF(cython_runtime_dict);
    __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
    return c_line;
}
#endif

/* CodeObjectCache (used by AddTraceback) */
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) {
    int start = 0, mid = 0, end = count - 1;
    if (end >= 0 && code_line > entries[end].code_line) {
        return count;
    }
    while (start < end) {
        mid = start + (end - start) / 2;
        if (code_line < entries[mid].code_line) {
            end = mid;
        } else if (code_line > entries[mid].code_line) {
             start = mid + 1;
        } else {
            return mid;
        }
    }
    if (code_line <= entries[mid].code_line) {
        return mid;
    } else {
        return mid + 1;
    }
}
static __Pyx_CachedCodeObjectType *__pyx__find_code_object(struct __Pyx_CodeObjectCache *code_cache, int code_line) {
    __Pyx_CachedCodeObjectType* code_object;
    int pos;
    if (unlikely(!code_line) || unlikely(!code_cache->entries)) {
        return NULL;
    }
    pos = __pyx_bisect_code_objects(code_cache->entries, code_cache->count, code_line);
    if (unlikely(pos >= code_cache->count) || unlikely(code_cache->entries[pos].code_line != code_line)) {
        return NULL;
    }
    code_object = code_cache->entries[pos].code_object;
    Py_INCREF(code_object);
    return code_object;
}
static __Pyx_CachedCodeObjectType *__pyx_find_code_object(int code_line) {
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && !CYTHON_ATOMICS
    (void)__pyx__find_code_object;
    return NULL; // Most implementation should have atomics. But otherwise, don't make it thread-safe, just miss.
#else
    struct __Pyx_CodeObjectCache *code_cache = &__pyx_mstate_global->__pyx_code_cache;
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_nonatomic_int_type old_count = __pyx_atomic_incr_acq_rel(&code_cache->accessor_count);
    if (old_count < 0) {
        __pyx_atomic_decr_acq_rel(&code_cache->accessor_count);
        return NULL;
    }
#endif
    __Pyx_CachedCodeObjectType *result = __pyx__find_code_object(code_cache, code_line);
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_atomic_decr_acq_rel(&code_cache->accessor_count);
#endif
    return result;
#endif
}
static void __pyx__insert_code_object(struct __Pyx_CodeObjectCache *code_cache, int code_line, __Pyx_CachedCodeObjectType* code_object)
{
    int pos, i;
    __Pyx_CodeObjectCacheEntry* entries = code_cache->entries;
    if (unlikely(!code_line)) {
        return;
    }
    if (unlikely(!entries)) {
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry));
        if (likely(entries)) {
            code_cache->entries = entries;
            code_cache->max_count = 64;
            code_cache->count = 1;
            entries[0].code_line = code_line;
            entries[0].code_object = code_object;
            Py_INCREF(code_object);
        }
        return;
    }
    pos = __pyx_bisect_code_objects(code_cache->entries, code_cache->count, code_line);
    if ((pos < code_cache->count) && unlikely(code_cache->entries[pos].code_line == code_line)) {
        __Pyx_CachedCodeObjectType* tmp = entries[pos].code_object;
        entries[pos].code_object = code_object;
        Py_INCREF(code_object);
        Py_DECREF(tmp);
        return;
    }
    if (code_cache->count == code_cache->max_count) {
        int new_max = code_cache->max_count + 64;
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
            code_cache->entries, ((size_t)new_max) * sizeof(__Pyx_CodeObjectCacheEntry));
        if (unlikely(!entries)) {
            return;
        }
        code_cache->entries = entries;
        code_cache->max_count = new_max;
    }
    for (i=code_cache->count; i>pos; i--) {
        entries[i] = entries[i-1];
    }
    entries[pos].code_line = code_line;
    entries[pos].code_object = code_object;
    code_cache->count++;
    Py_INCREF(code_object);
}
static void __pyx_insert_code_object(int code_line, __Pyx_CachedCodeObjectType* code_object) {
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && !CYTHON_ATOMICS
    (void)__pyx__insert_code_object;
    return; // Most implementation should have atomics. But otherwise, don't make it thread-safe, just fail.
#else
    struct __Pyx_CodeObjectCache *code_cache = &__pyx_mstate_global->__pyx_code_cache;
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_nonatomic_int_type expected = 0;
    if (!__pyx_atomic_int_cmp_exchange(&code_cache->accessor_count, &expected, INT_MIN)) {
        return;
    }
#endif
    __pyx__insert_code_object(code_cache, code_line, code_object);
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_atomic_sub(&code_cache->accessor_count, INT_MIN);
#endif
#endif
}

/* AddTraceback */
#include "compile.h"
#include "frameobject.h"
#include "traceback.h"
#if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API && !defined(PYPY_VERSION)
  #ifndef Py_BUILD_CORE
    #define Py_BUILD_CORE 1
  #endif
  #include "internal/pycore_frame.h"
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *__Pyx_PyCode_Replace_For_AddTraceback(PyObject *code, PyObject *scratch_dict,
                                                       PyObject *firstlineno, PyObject *name) {
    PyObject *replace = NULL;
    if (unlikely(PyDict_SetItemString(scratch_dict, "co_firstlineno", firstlineno))) return NULL;
    if (unlikely(PyDict_SetItemString(scratch_dict, "co_name", name))) return NULL;
    replace = PyObject_GetAttrString(code, "replace");
    if (likely(replace)) {
        PyObject *result = PyObject_Call(replace, __pyx_mstate_global->__pyx_empty_tuple, scratch_dict);
        Py_DECREF(replace);
        return result;
    }
    PyErr_Clear();
    return NULL;
}
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename) {
    PyObject *code_object = NULL, *py_py_line = NULL, *py_funcname = NULL, *dict = NULL;
    PyObject *replace = NULL, *getframe = NULL, *frame = NULL;
    PyObject *exc_type, *exc_value, *exc_traceback;
    int success = 0;
    if (c_line) {
        c_line = __Pyx_CLineForTraceback(__Pyx_PyThreadState_Current, c_line);
    }
    PyErr_Fetch(&exc_type, &exc_value, &exc_traceback);
    code_object = __pyx_find_code_object(c_line ? -c_line : py_line);
    if (!code_object) {
        code_object = Py_CompileString("_getframe()", filename, Py_eval_input);
        if (unlikely(!code_object)) goto bad;
        py_py_line = PyLong_FromLong(py_line);
        if (unlikely(!py_py_line)) goto bad;
        if (c_line) {
            py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        } else {
            py_funcname = PyUnicode_FromString(funcname);
        }
        if (unlikely(!py_funcname)) goto bad;
        dict = PyDict_New();
        if (unlikely(!dict)) goto bad;
        {
            PyObject *old_code_object = code_object;
            code_object = __Pyx_PyCode_Replace_For_AddTraceback(code_object, dict, py_py_line, py_funcname);
            Py_DECREF(old_code_object);
        }
        if (unlikely(!code_object)) goto bad;
        __pyx_insert_code_object(c_line ? -c_line : py_line, code_object);
    } else {
        dict = PyDict_New();
    }
    getframe = PySys_GetObject("_getframe");
    if (unlikely(!getframe)) goto bad;
    if (unlikely(PyDict_SetItemString(dict, "_getframe", getframe))) goto bad;
    frame = PyEval_EvalCode(code_object, dict, dict);
    if (unlikely(!frame) || frame == Py_None) goto bad;
    success = 1;
  bad:
    PyErr_Restore(exc_type, exc_value, exc_traceback);
    Py_XDECREF(code_object);
    Py_XDECREF(py_py_line);
    Py_XDECREF(py_funcname);
    Py_XDECREF(dict);
    Py_XDECREF(replace);
    if (success) {
        PyTraceBack_Here(
            (struct _frame*)frame);
    }
    Py_XDECREF(frame);
}
#else
static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
            const char *funcname, int c_line,
            int py_line, const char *filename) {
    PyCodeObject *py_code = NULL;
    PyObject *py_funcname = NULL;
    if (c_line) {
        py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        if (!py_funcname) goto bad;
        funcname = PyUnicode_AsUTF8(py_funcname);
        if (!funcname) goto bad;
    }
    py_code = PyCode_NewEmpty(filename, funcname, py_line);
    Py_XDECREF(py_funcname);
    return py_code;
bad:
    Py_XDECREF(py_funcname);
    return NULL;
}
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename) {
    PyCodeObject *py_code = 0;
    PyFrameObject *py_frame = 0;
    PyThreadState *tstate = __Pyx_PyThreadState_Current;
    PyObject *ptype, *pvalue, *ptraceback;
    if (c_line) {
        c_line = __Pyx_CLineForTraceback(tstate, c_line);
    }
    py_code = __pyx_find_code_object(c_line ? -c_line : py_line);
    if (!py_code) {
        __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
        py_code = __Pyx_CreateCodeObjectForTraceback(
            funcname, c_line, py_line, filename);
        if (!py_code) {
            /* If the code object creation fails, then we should clear the
               fetched exception references and propagate the new exception */
            Py_XDECREF(ptype);
            Py_XDECREF(pvalue);
            Py_XDECREF(ptraceback);
            goto bad;
        }
        __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
        __pyx_insert_code_object(c_line ? -c_line : py_line, py_code);
    }
    py_frame = PyFrame_New(
        tstate,            /*PyThreadState *tstate,*/
        py_code,           /*PyCodeObject *code,*/
        __pyx_mstate_global->__pyx_d,    /*PyObject *globals,*/
        0                  /*PyObject *locals*/
    );
    if (!py_frame) goto bad;
    __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
    PyTraceBack_Here(py_frame);
bad:
    Py_XDECREF(py_code);
    Py_XDECREF(py_frame);
}
#endif

/* CIntFromPyVerify */
#define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\
    __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
#define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\
    __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1)
#define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\
    {\
        func_type value = func_value;\
        if (sizeof(target_type) < sizeof(func_type)) {\
            if (unlikely(value != (func_type) (target_type) value)) {\
                func_type zero = 0;\
                if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\
                    return (target_type) -1;\
                if (is_unsigned && unlikely(value < zero))\
                    goto raise_neg_overflow;\
                else\
                    goto raise_overflow;\
            }\
        }\
        return (target_type) value;\
    }

/* FromPyCTupleUtility */
#if CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE && !CYTHON_AVOID_BORROWED_REFS
static void __Pyx_tuple___pyx_convert__from_py___pyx_ctuple_ee55be__double__and_double__and_double__and_double__an__etc(PyObject * o, __pyx_ctuple_ee55be__double__and_double__and_double__and_double__an__etc *result) {
        result->f0 = __Pyx_PyFloat_AsDouble(PyTuple_GET_ITEM(o, 0));
        if ((result->f0 == (double)-1) && PyErr_Occurred()) goto bad;
        result->f1 = __Pyx_PyFloat_AsDouble(PyTuple_GET_ITEM(o, 1));
        if ((result->f1 == (double)-1) && PyErr_Occurred()) goto bad;
        result->f2 = __Pyx_PyFloat_AsDouble(PyTuple_GET_ITEM(o, 2));
        if ((result->f2 == (double)-1) && PyErr_Occurred()) goto bad;
        result->f3 = __Pyx_PyFloat_AsDouble(PyTuple_GET_ITEM(o, 3));
        if ((result->f3 == (double)-1) && PyErr_Occurred()) goto bad;
        result->f4 = __Pyx_PyFloat_AsDouble(PyTuple_GET_ITEM(o, 4));
        if ((result->f4 == (double)-1) && PyErr_Occurred()) goto bad;
        result->f5 = __Pyx_PyFloat_AsDouble(PyTuple_GET_ITEM(o, 5));
        if ((result->f5 == (double)-1) && PyErr_Occurred()) goto bad;
    return;
bad:
    return;
}
static void __Pyx_list___pyx_convert__from_py___pyx_ctuple_ee55be__double__and_double__and_double__and_double__an__etc(PyObject * o, __pyx_ctuple_ee55be__double__and_double__and_double__and_double__an__etc *result) {
        result->f0 = __Pyx_PyFloat_AsDouble(PyList_GET_ITEM(o, 0));
        if ((result->f0 == (double)-1) && PyErr_Occurred()) goto bad;
        result->f1 = __Pyx_PyFloat_AsDouble(PyList_GET_ITEM(o, 1));
        if ((result->f1 == (double)-1) && PyErr_Occurred()) goto bad;
        result->f2 = __Pyx_PyFloat_AsDouble(PyList_GET_ITEM(o, 2));
        if ((result->f2 == (double)-1) && PyErr_Occurred()) goto bad;
        result->f3 = __Pyx_PyFloat_AsDouble(PyList_GET_ITEM(o, 3));
        if ((result->f3 == (double)-1) && PyErr_Occurred()) goto bad;
        result->f4 = __Pyx_PyFloat_AsDouble(PyList_GET_ITEM(o, 4));
        if ((result->f4 == (double)-1) && PyErr_Occurred()) goto bad;
        result->f5 = __Pyx_PyFloat_AsDouble(PyList_GET_ITEM(o, 5));
        if ((result->f5 == (double)-1) && PyErr_Occurred()) goto bad;
    return;
bad:
    return;
}
#endif
static void __Pyx_seq___pyx_convert__from_py___pyx_ctuple_ee55be__double__and_double__and_double__and_double__an__etc(PyObject * o, __pyx_ctuple_ee55be__double__and_double__and_double__and_double__an__etc *result) {
    if (unlikely(!PySequence_Check(o))) {
        __Pyx_TypeName o_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(o));
        PyErr_Format(PyExc_TypeError,
                     "Expected a sequence of size %zd, got " __Pyx_FMT_TYPENAME, (Py_ssize_t) 6, o_type_name);
        __Pyx_DECREF_TypeName(o_type_name);
        goto bad;
    } else if (unlikely(PySequence_Length(o) != 6)) {
        PyErr_Format(PyExc_TypeError,
                     "Expected a sequence of size %zd, got size %zd", (Py_ssize_t) 6, PySequence_Length(o));
        goto bad;
    }
    {
        PyObject *item;
        item = __Pyx_PySequence_ITEM(o, 0);  if (unlikely(!item)) goto bad;
        result->f0 = __Pyx_PyFloat_AsDouble(item);
        Py_DECREF(item);
        if ((result->f0 == (double)-1) && PyErr_Occurred()) goto bad;
        item = __Pyx_PySequence_ITEM(o, 1);  if (unlikely(!item)) goto bad;
        result->f1 = __Pyx_PyFloat_AsDouble(item);
        Py_DECREF(item);
        if ((result->f1 == (double)-1) && PyErr_Occurred()) goto bad;
        item = __Pyx_PySequence_ITEM(o, 2);  if (unlikely(!item)) goto bad;
        result->f2 = __Pyx_PyFloat_AsDouble(item);
        Py_DECREF(item);
        if ((result->f2 == (double)-1) && PyErr_Occurred()) goto bad;
        item = __Pyx_PySequence_ITEM(o, 3);  if (unlikely(!item)) goto bad;
        result->f3 = __Pyx_PyFloat_AsDouble(item);
        Py_DECREF(item);
        if ((result->f3 == (double)-1) && PyErr_Occurred()) goto bad;
        item = __Pyx_PySequence_ITEM(o, 4);  if (unlikely(!item)) goto bad;
        result->f4 = __Pyx_PyFloat_AsDouble(item);
        Py_DECREF(item);
        if ((result->f4 == (double)-1) && PyErr_Occurred()) goto bad;
        item = __Pyx_PySequence_ITEM(o, 5);  if (unlikely(!item)) goto bad;
        result->f5 = __Pyx_PyFloat_AsDouble(item);
        Py_DECREF(item);
        if ((result->f5 == (double)-1) && PyErr_Occurred()) goto bad;
    }
    return;
bad:
    return;
}
static CYTHON_INLINE __pyx_ctuple_ee55be__double__and_double__and_double__and_double__an__etc __pyx_convert__from_py___pyx_ctuple_ee55be__double__and_double__and_double__and_double__an__etc(PyObject * o) {
    __pyx_ctuple_ee55be__double__and_double__and_double__and_double__an__etc result;
    #if CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE && !CYTHON_AVOID_BORROWED_REFS
    if (likely(PyTuple_Check(o) && PyTuple_GET_SIZE(o) == 6)) {
        __Pyx_tuple___pyx_convert__from_py___pyx_ctuple_ee55be__double__and_double__and_double__and_double__an__etc(o, &result);
    } else if (likely(PyList_Check(o) && PyList_GET_SIZE(o) == 6)) {
        __Pyx_list___pyx_convert__from_py___pyx_ctuple_ee55be__double__and_double__and_double__and_double__an__etc(o, &result);
    } else
    #endif
    {
        __Pyx_seq___pyx_convert__from_py___pyx_ctuple_ee55be__double__and_double__and_double__and_double__an__etc(o, &result);
    }
    return result;
}

/* FromPyCTupleUtility */
#if CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE && !CYTHON_AVOID_BORROWED_REFS
static void __Pyx_tuple___pyx_convert__from_py___pyx_ctuple_double__and_double(PyObject * o, __pyx_ctuple_double__and_double *result) {
        result->f0 = __Pyx_PyFloat_AsDouble(PyTuple_GET_ITEM(o, 0));
        if ((result->f0 == (double)-1) && PyErr_Occurred()) goto bad;
        result->f1 = __Pyx_PyFloat_AsDouble(PyTuple_GET_ITEM(o, 1));
        if ((result->f1 == (double)-1) && PyErr_Occurred()) goto bad;
    return;
bad:
    return;
}
static void __Pyx_list___pyx_convert__from_py___pyx_ctuple_double__and_double(PyObject * o, __pyx_ctuple_double__and_double *result) {
        result->f0 = __Pyx_PyFloat_AsDouble(PyList_GET_ITEM(o, 0));
        if ((result->f0 == (double)-1) && PyErr_Occurred()) goto bad;
        result->f1 = __Pyx_PyFloat_AsDouble(PyList_GET_ITEM(o, 1));
        if ((result->f1 == (double)-1) && PyErr_Occurred()) goto bad;
    return;
bad:
    return;
}
#endif
static void __Pyx_seq___pyx_convert__from_py___pyx_ctuple_double__and_double(PyObject * o, __pyx_ctuple_double__and_double *result) {
    if (unlikely(!PySequence_Check(o))) {
        __Pyx_TypeName o_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(o));
        PyErr_Format(PyExc_TypeError,
                     "Expected a sequence of size %zd, got " __Pyx_FMT_TYPENAME, (Py_ssize_t) 2, o_type_name);
        __Pyx_DECREF_TypeName(o_type_name);
        goto bad;
    } else if (unlikely(PySequence_Length(o) != 2)) {
        PyErr_Format(PyExc_TypeError,
                     "Expected a sequence of size %zd, got size %zd", (Py_ssize_t) 2, PySequence_Length(o));
        goto bad;
    }
    {
        PyObject *item;
        item = __Pyx_PySequence_ITEM(o, 0);  if (unlikely(!item)) goto bad;
        result->f0 = __Pyx_PyFloat_AsDouble(item);
        Py_DECREF(item);
        if ((result->f0 == (double)-1) && PyErr_Occurred()) goto bad;
        item = __Pyx_PySequence_ITEM(o, 1);  if (unlikely(!item)) goto bad;
        result->f1 = __Pyx_PyFloat_AsDouble(item);
        Py_DECREF(item);
        if ((result->f1 == (double)-1) && PyErr_Occurred()) goto bad;
    }
    return;
bad:
    return;
}
static CYTHON_INLINE __pyx_ctuple_double__and_double __pyx_convert__from_py___pyx_ctuple_double__and_double(PyObject * o) {
    __pyx_ctuple_double__and_double result;
    #if CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE && !CYTHON_AVOID_BORROWED_REFS
    if (likely(PyTuple_Check(o) && PyTuple_GET_SIZE(o) == 2)) {
        __Pyx_tuple___pyx_convert__from_py___pyx_ctuple_double__and_double(o, &result);
    } else if (likely(PyList_Check(o) && PyList_GET_SIZE(o) == 2)) {
        __Pyx_list___pyx_convert__from_py___pyx_ctuple_double__and_double(o, &result);
    } else
    #endif
    {
        __Pyx_seq___pyx_convert__from_py___pyx_ctuple_double__and_double(o, &result);
    }
    return result;
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_codepoint_t(hb_codepoint_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_codepoint_t neg_one = (hb_codepoint_t) -1, const_zero = (hb_codepoint_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(hb_codepoint_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_codepoint_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(hb_codepoint_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(hb_codepoint_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_codepoint_t) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(hb_codepoint_t),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(hb_codepoint_t));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_glyph_flags_t(hb_glyph_flags_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_glyph_flags_t neg_one = (hb_glyph_flags_t) -1, const_zero = (hb_glyph_flags_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(hb_glyph_flags_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_glyph_flags_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(hb_glyph_flags_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(hb_glyph_flags_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_glyph_flags_t) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(hb_glyph_flags_t),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(hb_glyph_flags_t));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_buffer_flags_t(hb_buffer_flags_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_buffer_flags_t neg_one = (hb_buffer_flags_t) -1, const_zero = (hb_buffer_flags_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(hb_buffer_flags_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_buffer_flags_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(hb_buffer_flags_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(hb_buffer_flags_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_buffer_flags_t) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(hb_buffer_flags_t),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(hb_buffer_flags_t));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_buffer_cluster_level_t(hb_buffer_cluster_level_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_buffer_cluster_level_t neg_one = (hb_buffer_cluster_level_t) -1, const_zero = (hb_buffer_cluster_level_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(hb_buffer_cluster_level_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_buffer_cluster_level_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(hb_buffer_cluster_level_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(hb_buffer_cluster_level_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_buffer_cluster_level_t) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(hb_buffer_cluster_level_t),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(hb_buffer_cluster_level_t));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_buffer_content_type_t(hb_buffer_content_type_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_buffer_content_type_t neg_one = (hb_buffer_content_type_t) -1, const_zero = (hb_buffer_content_type_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(hb_buffer_content_type_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_buffer_content_type_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(hb_buffer_content_type_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(hb_buffer_content_type_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_buffer_content_type_t) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(hb_buffer_content_type_t),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(hb_buffer_content_type_t));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_buffer_serialize_format_t(hb_buffer_serialize_format_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_buffer_serialize_format_t neg_one = (hb_buffer_serialize_format_t) -1, const_zero = (hb_buffer_serialize_format_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(hb_buffer_serialize_format_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_buffer_serialize_format_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(hb_buffer_serialize_format_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(hb_buffer_serialize_format_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_buffer_serialize_format_t) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(hb_buffer_serialize_format_t),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(hb_buffer_serialize_format_t));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_buffer_serialize_flags_t(hb_buffer_serialize_flags_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_buffer_serialize_flags_t neg_one = (hb_buffer_serialize_flags_t) -1, const_zero = (hb_buffer_serialize_flags_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(hb_buffer_serialize_flags_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_buffer_serialize_flags_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(hb_buffer_serialize_flags_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(hb_buffer_serialize_flags_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_buffer_serialize_flags_t) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(hb_buffer_serialize_flags_t),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(hb_buffer_serialize_flags_t));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_ot_var_axis_flags_t(hb_ot_var_axis_flags_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_ot_var_axis_flags_t neg_one = (hb_ot_var_axis_flags_t) -1, const_zero = (hb_ot_var_axis_flags_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(hb_ot_var_axis_flags_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_ot_var_axis_flags_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(hb_ot_var_axis_flags_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(hb_ot_var_axis_flags_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_ot_var_axis_flags_t) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(hb_ot_var_axis_flags_t),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(hb_ot_var_axis_flags_t));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_ot_color_palette_flags_t(hb_ot_color_palette_flags_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_ot_color_palette_flags_t neg_one = (hb_ot_color_palette_flags_t) -1, const_zero = (hb_ot_color_palette_flags_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(hb_ot_color_palette_flags_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_ot_color_palette_flags_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(hb_ot_color_palette_flags_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(hb_ot_color_palette_flags_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_ot_color_palette_flags_t) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(hb_ot_color_palette_flags_t),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(hb_ot_color_palette_flags_t));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_ot_layout_glyph_class_t(hb_ot_layout_glyph_class_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_ot_layout_glyph_class_t neg_one = (hb_ot_layout_glyph_class_t) -1, const_zero = (hb_ot_layout_glyph_class_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(hb_ot_layout_glyph_class_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_ot_layout_glyph_class_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(hb_ot_layout_glyph_class_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(hb_ot_layout_glyph_class_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_ot_layout_glyph_class_t) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(hb_ot_layout_glyph_class_t),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(hb_ot_layout_glyph_class_t));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_ot_name_id_predefined_t(hb_ot_name_id_predefined_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_ot_name_id_predefined_t neg_one = (hb_ot_name_id_predefined_t) -1, const_zero = (hb_ot_name_id_predefined_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(hb_ot_name_id_predefined_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_ot_name_id_predefined_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(hb_ot_name_id_predefined_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(hb_ot_name_id_predefined_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_ot_name_id_predefined_t) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(hb_ot_name_id_predefined_t),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(hb_ot_name_id_predefined_t));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntFromPy */
static CYTHON_INLINE int __Pyx_PyLong_As_int(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const int neg_one = (int) -1, const_zero = (int) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        int val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (int) -1;
        val = __Pyx_PyLong_As_int(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) >= 2 * PyLong_SHIFT)) {
                            return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) >= 3 * PyLong_SHIFT)) {
                            return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) >= 4 * PyLong_SHIFT)) {
                            return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        if (unlikely(Py_SIZE(x) < 0)) {
            goto raise_neg_overflow;
        }
#else
        {
            int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
            if (unlikely(result < 0))
                return (int) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(int) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(int) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(int) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
                            return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
                            return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
                            return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
                            return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
                            return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
                            return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(int) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x))
        } else if ((sizeof(int) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        int val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (int) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (int) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (int) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (int) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(int) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((int) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(int) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((int) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((int) 1) << (sizeof(int) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (int) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to int");
    return (int) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to int");
    return (int) -1;
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_paint_composite_mode_t(hb_paint_composite_mode_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_paint_composite_mode_t neg_one = (hb_paint_composite_mode_t) -1, const_zero = (hb_paint_composite_mode_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(hb_paint_composite_mode_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_paint_composite_mode_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(hb_paint_composite_mode_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(hb_paint_composite_mode_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_paint_composite_mode_t) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(hb_paint_composite_mode_t),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(hb_paint_composite_mode_t));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_paint_extend_t(hb_paint_extend_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_paint_extend_t neg_one = (hb_paint_extend_t) -1, const_zero = (hb_paint_extend_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(hb_paint_extend_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_paint_extend_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(hb_paint_extend_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(hb_paint_extend_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_paint_extend_t) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(hb_paint_extend_t),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(hb_paint_extend_t));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_ot_math_constant_t(hb_ot_math_constant_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_ot_math_constant_t neg_one = (hb_ot_math_constant_t) -1, const_zero = (hb_ot_math_constant_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(hb_ot_math_constant_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_ot_math_constant_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(hb_ot_math_constant_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(hb_ot_math_constant_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_ot_math_constant_t) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(hb_ot_math_constant_t),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(hb_ot_math_constant_t));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_ot_math_kern_t(hb_ot_math_kern_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_ot_math_kern_t neg_one = (hb_ot_math_kern_t) -1, const_zero = (hb_ot_math_kern_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(hb_ot_math_kern_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_ot_math_kern_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(hb_ot_math_kern_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(hb_ot_math_kern_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_ot_math_kern_t) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(hb_ot_math_kern_t),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(hb_ot_math_kern_t));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_ot_math_glyph_part_flags_t(hb_ot_math_glyph_part_flags_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_ot_math_glyph_part_flags_t neg_one = (hb_ot_math_glyph_part_flags_t) -1, const_zero = (hb_ot_math_glyph_part_flags_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(hb_ot_math_glyph_part_flags_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_ot_math_glyph_part_flags_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(hb_ot_math_glyph_part_flags_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(hb_ot_math_glyph_part_flags_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_ot_math_glyph_part_flags_t) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(hb_ot_math_glyph_part_flags_t),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(hb_ot_math_glyph_part_flags_t));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_ot_metrics_tag_t(hb_ot_metrics_tag_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_ot_metrics_tag_t neg_one = (hb_ot_metrics_tag_t) -1, const_zero = (hb_ot_metrics_tag_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(hb_ot_metrics_tag_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_ot_metrics_tag_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(hb_ot_metrics_tag_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(hb_ot_metrics_tag_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_ot_metrics_tag_t) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(hb_ot_metrics_tag_t),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(hb_ot_metrics_tag_t));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_style_tag_t(hb_style_tag_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_style_tag_t neg_one = (hb_style_tag_t) -1, const_zero = (hb_style_tag_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(hb_style_tag_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_style_tag_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(hb_style_tag_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(hb_style_tag_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_style_tag_t) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(hb_style_tag_t),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(hb_style_tag_t));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_raster_format_t(hb_raster_format_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_raster_format_t neg_one = (hb_raster_format_t) -1, const_zero = (hb_raster_format_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(hb_raster_format_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_raster_format_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(hb_raster_format_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(hb_raster_format_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_raster_format_t) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(hb_raster_format_t),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(hb_raster_format_t));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_subset_sets_t(hb_subset_sets_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_subset_sets_t neg_one = (hb_subset_sets_t) -1, const_zero = (hb_subset_sets_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(hb_subset_sets_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_subset_sets_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(hb_subset_sets_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(hb_subset_sets_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_subset_sets_t) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(hb_subset_sets_t),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(hb_subset_sets_t));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_subset_flags_t(hb_subset_flags_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_subset_flags_t neg_one = (hb_subset_flags_t) -1, const_zero = (hb_subset_flags_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(hb_subset_flags_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_subset_flags_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(hb_subset_flags_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(hb_subset_flags_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_subset_flags_t) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(hb_subset_flags_t),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(hb_subset_flags_t));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntFromPy */
static CYTHON_INLINE hb_codepoint_t __Pyx_PyLong_As_hb_codepoint_t(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_codepoint_t neg_one = (hb_codepoint_t) -1, const_zero = (hb_codepoint_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        hb_codepoint_t val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (hb_codepoint_t) -1;
        val = __Pyx_PyLong_As_hb_codepoint_t(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(hb_codepoint_t, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(hb_codepoint_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_codepoint_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_codepoint_t) >= 2 * PyLong_SHIFT)) {
                            return (hb_codepoint_t) (((((hb_codepoint_t)digits[1]) << PyLong_SHIFT) | (hb_codepoint_t)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(hb_codepoint_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_codepoint_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_codepoint_t) >= 3 * PyLong_SHIFT)) {
                            return (hb_codepoint_t) (((((((hb_codepoint_t)digits[2]) << PyLong_SHIFT) | (hb_codepoint_t)digits[1]) << PyLong_SHIFT) | (hb_codepoint_t)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(hb_codepoint_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_codepoint_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_codepoint_t) >= 4 * PyLong_SHIFT)) {
                            return (hb_codepoint_t) (((((((((hb_codepoint_t)digits[3]) << PyLong_SHIFT) | (hb_codepoint_t)digits[2]) << PyLong_SHIFT) | (hb_codepoint_t)digits[1]) << PyLong_SHIFT) | (hb_codepoint_t)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        if (unlikely(Py_SIZE(x) < 0)) {
            goto raise_neg_overflow;
        }
#else
        {
            int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
            if (unlikely(result < 0))
                return (hb_codepoint_t) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(hb_codepoint_t) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_codepoint_t, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(hb_codepoint_t) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_codepoint_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(hb_codepoint_t, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(hb_codepoint_t) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_codepoint_t, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_codepoint_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (hb_codepoint_t) (((hb_codepoint_t)-1)*(((((hb_codepoint_t)digits[1]) << PyLong_SHIFT) | (hb_codepoint_t)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(hb_codepoint_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_codepoint_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_codepoint_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (hb_codepoint_t) ((((((hb_codepoint_t)digits[1]) << PyLong_SHIFT) | (hb_codepoint_t)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(hb_codepoint_t) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_codepoint_t, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_codepoint_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (hb_codepoint_t) (((hb_codepoint_t)-1)*(((((((hb_codepoint_t)digits[2]) << PyLong_SHIFT) | (hb_codepoint_t)digits[1]) << PyLong_SHIFT) | (hb_codepoint_t)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(hb_codepoint_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_codepoint_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_codepoint_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (hb_codepoint_t) ((((((((hb_codepoint_t)digits[2]) << PyLong_SHIFT) | (hb_codepoint_t)digits[1]) << PyLong_SHIFT) | (hb_codepoint_t)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(hb_codepoint_t) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_codepoint_t, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_codepoint_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (hb_codepoint_t) (((hb_codepoint_t)-1)*(((((((((hb_codepoint_t)digits[3]) << PyLong_SHIFT) | (hb_codepoint_t)digits[2]) << PyLong_SHIFT) | (hb_codepoint_t)digits[1]) << PyLong_SHIFT) | (hb_codepoint_t)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(hb_codepoint_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_codepoint_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_codepoint_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (hb_codepoint_t) ((((((((((hb_codepoint_t)digits[3]) << PyLong_SHIFT) | (hb_codepoint_t)digits[2]) << PyLong_SHIFT) | (hb_codepoint_t)digits[1]) << PyLong_SHIFT) | (hb_codepoint_t)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(hb_codepoint_t) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_codepoint_t, long, PyLong_AsLong(x))
        } else if ((sizeof(hb_codepoint_t) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_codepoint_t, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        hb_codepoint_t val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (hb_codepoint_t) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (hb_codepoint_t) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (hb_codepoint_t) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (hb_codepoint_t) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(hb_codepoint_t) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((hb_codepoint_t) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(hb_codepoint_t) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((hb_codepoint_t) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((hb_codepoint_t) 1) << (sizeof(hb_codepoint_t) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (hb_codepoint_t) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to hb_codepoint_t");
    return (hb_codepoint_t) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to hb_codepoint_t");
    return (hb_codepoint_t) -1;
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_bool_t(hb_bool_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_bool_t neg_one = (hb_bool_t) -1, const_zero = (hb_bool_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(hb_bool_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_bool_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(hb_bool_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(hb_bool_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_bool_t) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(hb_bool_t),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(hb_bool_t));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_unsigned_long(unsigned long value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const unsigned long neg_one = (unsigned long) -1, const_zero = (unsigned long) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(unsigned long) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(unsigned long) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(unsigned long) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(unsigned long) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(unsigned long) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(unsigned long),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(unsigned long));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_mask_t(hb_mask_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_mask_t neg_one = (hb_mask_t) -1, const_zero = (hb_mask_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(hb_mask_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_mask_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(hb_mask_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(hb_mask_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_mask_t) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(hb_mask_t),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(hb_mask_t));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_position_t(hb_position_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_position_t neg_one = (hb_position_t) -1, const_zero = (hb_position_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(hb_position_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_position_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(hb_position_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(hb_position_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_position_t) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(hb_position_t),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(hb_position_t));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_unsigned_int(unsigned int value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const unsigned int neg_one = (unsigned int) -1, const_zero = (unsigned int) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(unsigned int) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(unsigned int) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(unsigned int) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(unsigned int) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(unsigned int) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(unsigned int),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(unsigned int));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntFromPy */
static CYTHON_INLINE unsigned int __Pyx_PyLong_As_unsigned_int(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const unsigned int neg_one = (unsigned int) -1, const_zero = (unsigned int) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        unsigned int val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (unsigned int) -1;
        val = __Pyx_PyLong_As_unsigned_int(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(unsigned int, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(unsigned int) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned int) >= 2 * PyLong_SHIFT)) {
                            return (unsigned int) (((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(unsigned int) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned int) >= 3 * PyLong_SHIFT)) {
                            return (unsigned int) (((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(unsigned int) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned int) >= 4 * PyLong_SHIFT)) {
                            return (unsigned int) (((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        if (unlikely(Py_SIZE(x) < 0)) {
            goto raise_neg_overflow;
        }
#else
        {
            int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
            if (unlikely(result < 0))
                return (unsigned int) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(unsigned int) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned int, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(unsigned int) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(unsigned int, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(unsigned int) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT)) {
                            return (unsigned int) (((unsigned int)-1)*(((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(unsigned int) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT)) {
                            return (unsigned int) ((((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT)) {
                            return (unsigned int) (((unsigned int)-1)*(((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(unsigned int) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT)) {
                            return (unsigned int) ((((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned int) - 1 > 4 * PyLong_SHIFT)) {
                            return (unsigned int) (((unsigned int)-1)*(((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(unsigned int) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned int) - 1 > 4 * PyLong_SHIFT)) {
                            return (unsigned int) ((((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(unsigned int) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned int, long, PyLong_AsLong(x))
        } else if ((sizeof(unsigned int) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned int, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        unsigned int val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (unsigned int) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (unsigned int) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (unsigned int) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (unsigned int) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(unsigned int) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((unsigned int) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(unsigned int) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((unsigned int) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((unsigned int) 1) << (sizeof(unsigned int) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (unsigned int) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to unsigned int");
    return (unsigned int) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to unsigned int");
    return (unsigned int) -1;
}

/* CIntFromPy */
static CYTHON_INLINE hb_buffer_flags_t __Pyx_PyLong_As_hb_buffer_flags_t(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_buffer_flags_t neg_one = (hb_buffer_flags_t) -1, const_zero = (hb_buffer_flags_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        hb_buffer_flags_t val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (hb_buffer_flags_t) -1;
        val = __Pyx_PyLong_As_hb_buffer_flags_t(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(hb_buffer_flags_t, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(hb_buffer_flags_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_flags_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_flags_t) >= 2 * PyLong_SHIFT)) {
                            return (hb_buffer_flags_t) (((((hb_buffer_flags_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_flags_t)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(hb_buffer_flags_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_flags_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_flags_t) >= 3 * PyLong_SHIFT)) {
                            return (hb_buffer_flags_t) (((((((hb_buffer_flags_t)digits[2]) << PyLong_SHIFT) | (hb_buffer_flags_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_flags_t)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(hb_buffer_flags_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_flags_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_flags_t) >= 4 * PyLong_SHIFT)) {
                            return (hb_buffer_flags_t) (((((((((hb_buffer_flags_t)digits[3]) << PyLong_SHIFT) | (hb_buffer_flags_t)digits[2]) << PyLong_SHIFT) | (hb_buffer_flags_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_flags_t)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        if (unlikely(Py_SIZE(x) < 0)) {
            goto raise_neg_overflow;
        }
#else
        {
            int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
            if (unlikely(result < 0))
                return (hb_buffer_flags_t) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(hb_buffer_flags_t) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_buffer_flags_t, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(hb_buffer_flags_t) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_buffer_flags_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(hb_buffer_flags_t, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(hb_buffer_flags_t) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_flags_t, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_flags_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (hb_buffer_flags_t) (((hb_buffer_flags_t)-1)*(((((hb_buffer_flags_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_flags_t)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(hb_buffer_flags_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_flags_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_flags_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (hb_buffer_flags_t) ((((((hb_buffer_flags_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_flags_t)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(hb_buffer_flags_t) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_flags_t, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_flags_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (hb_buffer_flags_t) (((hb_buffer_flags_t)-1)*(((((((hb_buffer_flags_t)digits[2]) << PyLong_SHIFT) | (hb_buffer_flags_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_flags_t)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(hb_buffer_flags_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_flags_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_flags_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (hb_buffer_flags_t) ((((((((hb_buffer_flags_t)digits[2]) << PyLong_SHIFT) | (hb_buffer_flags_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_flags_t)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(hb_buffer_flags_t) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_flags_t, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_flags_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (hb_buffer_flags_t) (((hb_buffer_flags_t)-1)*(((((((((hb_buffer_flags_t)digits[3]) << PyLong_SHIFT) | (hb_buffer_flags_t)digits[2]) << PyLong_SHIFT) | (hb_buffer_flags_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_flags_t)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(hb_buffer_flags_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_flags_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_flags_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (hb_buffer_flags_t) ((((((((((hb_buffer_flags_t)digits[3]) << PyLong_SHIFT) | (hb_buffer_flags_t)digits[2]) << PyLong_SHIFT) | (hb_buffer_flags_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_flags_t)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(hb_buffer_flags_t) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_buffer_flags_t, long, PyLong_AsLong(x))
        } else if ((sizeof(hb_buffer_flags_t) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_buffer_flags_t, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        hb_buffer_flags_t val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (hb_buffer_flags_t) -1;
#endif
        if (unlikely(ret))
            return (hb_buffer_flags_t) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to hb_buffer_flags_t");
    return (hb_buffer_flags_t) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to hb_buffer_flags_t");
    return (hb_buffer_flags_t) -1;
}

/* CIntFromPy */
static CYTHON_INLINE hb_buffer_cluster_level_t __Pyx_PyLong_As_hb_buffer_cluster_level_t(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_buffer_cluster_level_t neg_one = (hb_buffer_cluster_level_t) -1, const_zero = (hb_buffer_cluster_level_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        hb_buffer_cluster_level_t val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (hb_buffer_cluster_level_t) -1;
        val = __Pyx_PyLong_As_hb_buffer_cluster_level_t(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(hb_buffer_cluster_level_t, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(hb_buffer_cluster_level_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_cluster_level_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_cluster_level_t) >= 2 * PyLong_SHIFT)) {
                            return (hb_buffer_cluster_level_t) (((((hb_buffer_cluster_level_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_cluster_level_t)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(hb_buffer_cluster_level_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_cluster_level_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_cluster_level_t) >= 3 * PyLong_SHIFT)) {
                            return (hb_buffer_cluster_level_t) (((((((hb_buffer_cluster_level_t)digits[2]) << PyLong_SHIFT) | (hb_buffer_cluster_level_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_cluster_level_t)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(hb_buffer_cluster_level_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_cluster_level_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_cluster_level_t) >= 4 * PyLong_SHIFT)) {
                            return (hb_buffer_cluster_level_t) (((((((((hb_buffer_cluster_level_t)digits[3]) << PyLong_SHIFT) | (hb_buffer_cluster_level_t)digits[2]) << PyLong_SHIFT) | (hb_buffer_cluster_level_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_cluster_level_t)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        if (unlikely(Py_SIZE(x) < 0)) {
            goto raise_neg_overflow;
        }
#else
        {
            int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
            if (unlikely(result < 0))
                return (hb_buffer_cluster_level_t) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(hb_buffer_cluster_level_t) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_buffer_cluster_level_t, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(hb_buffer_cluster_level_t) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_buffer_cluster_level_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(hb_buffer_cluster_level_t, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(hb_buffer_cluster_level_t) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_cluster_level_t, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_cluster_level_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (hb_buffer_cluster_level_t) (((hb_buffer_cluster_level_t)-1)*(((((hb_buffer_cluster_level_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_cluster_level_t)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(hb_buffer_cluster_level_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_cluster_level_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_cluster_level_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (hb_buffer_cluster_level_t) ((((((hb_buffer_cluster_level_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_cluster_level_t)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(hb_buffer_cluster_level_t) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_cluster_level_t, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_cluster_level_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (hb_buffer_cluster_level_t) (((hb_buffer_cluster_level_t)-1)*(((((((hb_buffer_cluster_level_t)digits[2]) << PyLong_SHIFT) | (hb_buffer_cluster_level_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_cluster_level_t)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(hb_buffer_cluster_level_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_cluster_level_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_cluster_level_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (hb_buffer_cluster_level_t) ((((((((hb_buffer_cluster_level_t)digits[2]) << PyLong_SHIFT) | (hb_buffer_cluster_level_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_cluster_level_t)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(hb_buffer_cluster_level_t) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_cluster_level_t, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_cluster_level_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (hb_buffer_cluster_level_t) (((hb_buffer_cluster_level_t)-1)*(((((((((hb_buffer_cluster_level_t)digits[3]) << PyLong_SHIFT) | (hb_buffer_cluster_level_t)digits[2]) << PyLong_SHIFT) | (hb_buffer_cluster_level_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_cluster_level_t)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(hb_buffer_cluster_level_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_cluster_level_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_cluster_level_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (hb_buffer_cluster_level_t) ((((((((((hb_buffer_cluster_level_t)digits[3]) << PyLong_SHIFT) | (hb_buffer_cluster_level_t)digits[2]) << PyLong_SHIFT) | (hb_buffer_cluster_level_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_cluster_level_t)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(hb_buffer_cluster_level_t) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_buffer_cluster_level_t, long, PyLong_AsLong(x))
        } else if ((sizeof(hb_buffer_cluster_level_t) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_buffer_cluster_level_t, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        hb_buffer_cluster_level_t val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (hb_buffer_cluster_level_t) -1;
#endif
        if (unlikely(ret))
            return (hb_buffer_cluster_level_t) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to hb_buffer_cluster_level_t");
    return (hb_buffer_cluster_level_t) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to hb_buffer_cluster_level_t");
    return (hb_buffer_cluster_level_t) -1;
}

/* CIntFromPy */
static CYTHON_INLINE hb_buffer_content_type_t __Pyx_PyLong_As_hb_buffer_content_type_t(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_buffer_content_type_t neg_one = (hb_buffer_content_type_t) -1, const_zero = (hb_buffer_content_type_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        hb_buffer_content_type_t val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (hb_buffer_content_type_t) -1;
        val = __Pyx_PyLong_As_hb_buffer_content_type_t(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(hb_buffer_content_type_t, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(hb_buffer_content_type_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_content_type_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_content_type_t) >= 2 * PyLong_SHIFT)) {
                            return (hb_buffer_content_type_t) (((((hb_buffer_content_type_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_content_type_t)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(hb_buffer_content_type_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_content_type_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_content_type_t) >= 3 * PyLong_SHIFT)) {
                            return (hb_buffer_content_type_t) (((((((hb_buffer_content_type_t)digits[2]) << PyLong_SHIFT) | (hb_buffer_content_type_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_content_type_t)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(hb_buffer_content_type_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_content_type_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_content_type_t) >= 4 * PyLong_SHIFT)) {
                            return (hb_buffer_content_type_t) (((((((((hb_buffer_content_type_t)digits[3]) << PyLong_SHIFT) | (hb_buffer_content_type_t)digits[2]) << PyLong_SHIFT) | (hb_buffer_content_type_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_content_type_t)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        if (unlikely(Py_SIZE(x) < 0)) {
            goto raise_neg_overflow;
        }
#else
        {
            int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
            if (unlikely(result < 0))
                return (hb_buffer_content_type_t) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(hb_buffer_content_type_t) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_buffer_content_type_t, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(hb_buffer_content_type_t) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_buffer_content_type_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(hb_buffer_content_type_t, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(hb_buffer_content_type_t) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_content_type_t, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_content_type_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (hb_buffer_content_type_t) (((hb_buffer_content_type_t)-1)*(((((hb_buffer_content_type_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_content_type_t)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(hb_buffer_content_type_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_content_type_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_content_type_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (hb_buffer_content_type_t) ((((((hb_buffer_content_type_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_content_type_t)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(hb_buffer_content_type_t) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_content_type_t, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_content_type_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (hb_buffer_content_type_t) (((hb_buffer_content_type_t)-1)*(((((((hb_buffer_content_type_t)digits[2]) << PyLong_SHIFT) | (hb_buffer_content_type_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_content_type_t)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(hb_buffer_content_type_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_content_type_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_content_type_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (hb_buffer_content_type_t) ((((((((hb_buffer_content_type_t)digits[2]) << PyLong_SHIFT) | (hb_buffer_content_type_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_content_type_t)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(hb_buffer_content_type_t) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_content_type_t, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_content_type_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (hb_buffer_content_type_t) (((hb_buffer_content_type_t)-1)*(((((((((hb_buffer_content_type_t)digits[3]) << PyLong_SHIFT) | (hb_buffer_content_type_t)digits[2]) << PyLong_SHIFT) | (hb_buffer_content_type_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_content_type_t)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(hb_buffer_content_type_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_content_type_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_content_type_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (hb_buffer_content_type_t) ((((((((((hb_buffer_content_type_t)digits[3]) << PyLong_SHIFT) | (hb_buffer_content_type_t)digits[2]) << PyLong_SHIFT) | (hb_buffer_content_type_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_content_type_t)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(hb_buffer_content_type_t) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_buffer_content_type_t, long, PyLong_AsLong(x))
        } else if ((sizeof(hb_buffer_content_type_t) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_buffer_content_type_t, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        hb_buffer_content_type_t val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (hb_buffer_content_type_t) -1;
#endif
        if (unlikely(ret))
            return (hb_buffer_content_type_t) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to hb_buffer_content_type_t");
    return (hb_buffer_content_type_t) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to hb_buffer_content_type_t");
    return (hb_buffer_content_type_t) -1;
}

/* CIntFromPy */
static CYTHON_INLINE hb_buffer_serialize_format_t __Pyx_PyLong_As_hb_buffer_serialize_format_t(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_buffer_serialize_format_t neg_one = (hb_buffer_serialize_format_t) -1, const_zero = (hb_buffer_serialize_format_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        hb_buffer_serialize_format_t val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (hb_buffer_serialize_format_t) -1;
        val = __Pyx_PyLong_As_hb_buffer_serialize_format_t(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(hb_buffer_serialize_format_t, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(hb_buffer_serialize_format_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_serialize_format_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_serialize_format_t) >= 2 * PyLong_SHIFT)) {
                            return (hb_buffer_serialize_format_t) (((((hb_buffer_serialize_format_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_serialize_format_t)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(hb_buffer_serialize_format_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_serialize_format_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_serialize_format_t) >= 3 * PyLong_SHIFT)) {
                            return (hb_buffer_serialize_format_t) (((((((hb_buffer_serialize_format_t)digits[2]) << PyLong_SHIFT) | (hb_buffer_serialize_format_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_serialize_format_t)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(hb_buffer_serialize_format_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_serialize_format_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_serialize_format_t) >= 4 * PyLong_SHIFT)) {
                            return (hb_buffer_serialize_format_t) (((((((((hb_buffer_serialize_format_t)digits[3]) << PyLong_SHIFT) | (hb_buffer_serialize_format_t)digits[2]) << PyLong_SHIFT) | (hb_buffer_serialize_format_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_serialize_format_t)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        if (unlikely(Py_SIZE(x) < 0)) {
            goto raise_neg_overflow;
        }
#else
        {
            int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
            if (unlikely(result < 0))
                return (hb_buffer_serialize_format_t) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(hb_buffer_serialize_format_t) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_buffer_serialize_format_t, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(hb_buffer_serialize_format_t) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_buffer_serialize_format_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(hb_buffer_serialize_format_t, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(hb_buffer_serialize_format_t) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_serialize_format_t, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_serialize_format_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (hb_buffer_serialize_format_t) (((hb_buffer_serialize_format_t)-1)*(((((hb_buffer_serialize_format_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_serialize_format_t)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(hb_buffer_serialize_format_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_serialize_format_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_serialize_format_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (hb_buffer_serialize_format_t) ((((((hb_buffer_serialize_format_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_serialize_format_t)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(hb_buffer_serialize_format_t) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_serialize_format_t, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_serialize_format_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (hb_buffer_serialize_format_t) (((hb_buffer_serialize_format_t)-1)*(((((((hb_buffer_serialize_format_t)digits[2]) << PyLong_SHIFT) | (hb_buffer_serialize_format_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_serialize_format_t)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(hb_buffer_serialize_format_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_serialize_format_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_serialize_format_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (hb_buffer_serialize_format_t) ((((((((hb_buffer_serialize_format_t)digits[2]) << PyLong_SHIFT) | (hb_buffer_serialize_format_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_serialize_format_t)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(hb_buffer_serialize_format_t) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_serialize_format_t, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_serialize_format_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (hb_buffer_serialize_format_t) (((hb_buffer_serialize_format_t)-1)*(((((((((hb_buffer_serialize_format_t)digits[3]) << PyLong_SHIFT) | (hb_buffer_serialize_format_t)digits[2]) << PyLong_SHIFT) | (hb_buffer_serialize_format_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_serialize_format_t)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(hb_buffer_serialize_format_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_serialize_format_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_serialize_format_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (hb_buffer_serialize_format_t) ((((((((((hb_buffer_serialize_format_t)digits[3]) << PyLong_SHIFT) | (hb_buffer_serialize_format_t)digits[2]) << PyLong_SHIFT) | (hb_buffer_serialize_format_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_serialize_format_t)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(hb_buffer_serialize_format_t) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_buffer_serialize_format_t, long, PyLong_AsLong(x))
        } else if ((sizeof(hb_buffer_serialize_format_t) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_buffer_serialize_format_t, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        hb_buffer_serialize_format_t val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (hb_buffer_serialize_format_t) -1;
#endif
        if (unlikely(ret))
            return (hb_buffer_serialize_format_t) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to hb_buffer_serialize_format_t");
    return (hb_buffer_serialize_format_t) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to hb_buffer_serialize_format_t");
    return (hb_buffer_serialize_format_t) -1;
}

/* CIntFromPy */
static CYTHON_INLINE hb_buffer_serialize_flags_t __Pyx_PyLong_As_hb_buffer_serialize_flags_t(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_buffer_serialize_flags_t neg_one = (hb_buffer_serialize_flags_t) -1, const_zero = (hb_buffer_serialize_flags_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        hb_buffer_serialize_flags_t val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (hb_buffer_serialize_flags_t) -1;
        val = __Pyx_PyLong_As_hb_buffer_serialize_flags_t(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(hb_buffer_serialize_flags_t, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(hb_buffer_serialize_flags_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_serialize_flags_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_serialize_flags_t) >= 2 * PyLong_SHIFT)) {
                            return (hb_buffer_serialize_flags_t) (((((hb_buffer_serialize_flags_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_serialize_flags_t)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(hb_buffer_serialize_flags_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_serialize_flags_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_serialize_flags_t) >= 3 * PyLong_SHIFT)) {
                            return (hb_buffer_serialize_flags_t) (((((((hb_buffer_serialize_flags_t)digits[2]) << PyLong_SHIFT) | (hb_buffer_serialize_flags_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_serialize_flags_t)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(hb_buffer_serialize_flags_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_serialize_flags_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_serialize_flags_t) >= 4 * PyLong_SHIFT)) {
                            return (hb_buffer_serialize_flags_t) (((((((((hb_buffer_serialize_flags_t)digits[3]) << PyLong_SHIFT) | (hb_buffer_serialize_flags_t)digits[2]) << PyLong_SHIFT) | (hb_buffer_serialize_flags_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_serialize_flags_t)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        if (unlikely(Py_SIZE(x) < 0)) {
            goto raise_neg_overflow;
        }
#else
        {
            int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
            if (unlikely(result < 0))
                return (hb_buffer_serialize_flags_t) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(hb_buffer_serialize_flags_t) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_buffer_serialize_flags_t, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(hb_buffer_serialize_flags_t) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_buffer_serialize_flags_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(hb_buffer_serialize_flags_t, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(hb_buffer_serialize_flags_t) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_serialize_flags_t, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_serialize_flags_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (hb_buffer_serialize_flags_t) (((hb_buffer_serialize_flags_t)-1)*(((((hb_buffer_serialize_flags_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_serialize_flags_t)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(hb_buffer_serialize_flags_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_serialize_flags_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_serialize_flags_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (hb_buffer_serialize_flags_t) ((((((hb_buffer_serialize_flags_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_serialize_flags_t)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(hb_buffer_serialize_flags_t) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_serialize_flags_t, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_serialize_flags_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (hb_buffer_serialize_flags_t) (((hb_buffer_serialize_flags_t)-1)*(((((((hb_buffer_serialize_flags_t)digits[2]) << PyLong_SHIFT) | (hb_buffer_serialize_flags_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_serialize_flags_t)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(hb_buffer_serialize_flags_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_serialize_flags_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_serialize_flags_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (hb_buffer_serialize_flags_t) ((((((((hb_buffer_serialize_flags_t)digits[2]) << PyLong_SHIFT) | (hb_buffer_serialize_flags_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_serialize_flags_t)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(hb_buffer_serialize_flags_t) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_serialize_flags_t, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_serialize_flags_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (hb_buffer_serialize_flags_t) (((hb_buffer_serialize_flags_t)-1)*(((((((((hb_buffer_serialize_flags_t)digits[3]) << PyLong_SHIFT) | (hb_buffer_serialize_flags_t)digits[2]) << PyLong_SHIFT) | (hb_buffer_serialize_flags_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_serialize_flags_t)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(hb_buffer_serialize_flags_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_buffer_serialize_flags_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_buffer_serialize_flags_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (hb_buffer_serialize_flags_t) ((((((((((hb_buffer_serialize_flags_t)digits[3]) << PyLong_SHIFT) | (hb_buffer_serialize_flags_t)digits[2]) << PyLong_SHIFT) | (hb_buffer_serialize_flags_t)digits[1]) << PyLong_SHIFT) | (hb_buffer_serialize_flags_t)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(hb_buffer_serialize_flags_t) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_buffer_serialize_flags_t, long, PyLong_AsLong(x))
        } else if ((sizeof(hb_buffer_serialize_flags_t) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_buffer_serialize_flags_t, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        hb_buffer_serialize_flags_t val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (hb_buffer_serialize_flags_t) -1;
#endif
        if (unlikely(ret))
            return (hb_buffer_serialize_flags_t) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to hb_buffer_serialize_flags_t");
    return (hb_buffer_serialize_flags_t) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to hb_buffer_serialize_flags_t");
    return (hb_buffer_serialize_flags_t) -1;
}

/* CIntFromPy */
static CYTHON_INLINE uint8_t __Pyx_PyLong_As_uint8_t(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const uint8_t neg_one = (uint8_t) -1, const_zero = (uint8_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        uint8_t val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (uint8_t) -1;
        val = __Pyx_PyLong_As_uint8_t(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(uint8_t, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(uint8_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(uint8_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(uint8_t) >= 2 * PyLong_SHIFT)) {
                            return (uint8_t) (((((uint8_t)digits[1]) << PyLong_SHIFT) | (uint8_t)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(uint8_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(uint8_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(uint8_t) >= 3 * PyLong_SHIFT)) {
                            return (uint8_t) (((((((uint8_t)digits[2]) << PyLong_SHIFT) | (uint8_t)digits[1]) << PyLong_SHIFT) | (uint8_t)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(uint8_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(uint8_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(uint8_t) >= 4 * PyLong_SHIFT)) {
                            return (uint8_t) (((((((((uint8_t)digits[3]) << PyLong_SHIFT) | (uint8_t)digits[2]) << PyLong_SHIFT) | (uint8_t)digits[1]) << PyLong_SHIFT) | (uint8_t)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        if (unlikely(Py_SIZE(x) < 0)) {
            goto raise_neg_overflow;
        }
#else
        {
            int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
            if (unlikely(result < 0))
                return (uint8_t) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(uint8_t) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(uint8_t, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(uint8_t) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(uint8_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(uint8_t, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(uint8_t) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(uint8_t, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(uint8_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (uint8_t) (((uint8_t)-1)*(((((uint8_t)digits[1]) << PyLong_SHIFT) | (uint8_t)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(uint8_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(uint8_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(uint8_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (uint8_t) ((((((uint8_t)digits[1]) << PyLong_SHIFT) | (uint8_t)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(uint8_t) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(uint8_t, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(uint8_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (uint8_t) (((uint8_t)-1)*(((((((uint8_t)digits[2]) << PyLong_SHIFT) | (uint8_t)digits[1]) << PyLong_SHIFT) | (uint8_t)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(uint8_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(uint8_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(uint8_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (uint8_t) ((((((((uint8_t)digits[2]) << PyLong_SHIFT) | (uint8_t)digits[1]) << PyLong_SHIFT) | (uint8_t)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(uint8_t) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(uint8_t, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(uint8_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (uint8_t) (((uint8_t)-1)*(((((((((uint8_t)digits[3]) << PyLong_SHIFT) | (uint8_t)digits[2]) << PyLong_SHIFT) | (uint8_t)digits[1]) << PyLong_SHIFT) | (uint8_t)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(uint8_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(uint8_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(uint8_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (uint8_t) ((((((((((uint8_t)digits[3]) << PyLong_SHIFT) | (uint8_t)digits[2]) << PyLong_SHIFT) | (uint8_t)digits[1]) << PyLong_SHIFT) | (uint8_t)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(uint8_t) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(uint8_t, long, PyLong_AsLong(x))
        } else if ((sizeof(uint8_t) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(uint8_t, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        uint8_t val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (uint8_t) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (uint8_t) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (uint8_t) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (uint8_t) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(uint8_t) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((uint8_t) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(uint8_t) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((uint8_t) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((uint8_t) 1) << (sizeof(uint8_t) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (uint8_t) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to uint8_t");
    return (uint8_t) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to uint8_t");
    return (uint8_t) -1;
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_uint32_t(uint32_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const uint32_t neg_one = (uint32_t) -1, const_zero = (uint32_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(uint32_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(uint32_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(uint32_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(uint32_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(uint32_t) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(uint32_t),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(uint32_t));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntFromPy */
static CYTHON_INLINE uint32_t __Pyx_PyLong_As_uint32_t(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const uint32_t neg_one = (uint32_t) -1, const_zero = (uint32_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        uint32_t val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (uint32_t) -1;
        val = __Pyx_PyLong_As_uint32_t(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(uint32_t, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(uint32_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(uint32_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(uint32_t) >= 2 * PyLong_SHIFT)) {
                            return (uint32_t) (((((uint32_t)digits[1]) << PyLong_SHIFT) | (uint32_t)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(uint32_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(uint32_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(uint32_t) >= 3 * PyLong_SHIFT)) {
                            return (uint32_t) (((((((uint32_t)digits[2]) << PyLong_SHIFT) | (uint32_t)digits[1]) << PyLong_SHIFT) | (uint32_t)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(uint32_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(uint32_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(uint32_t) >= 4 * PyLong_SHIFT)) {
                            return (uint32_t) (((((((((uint32_t)digits[3]) << PyLong_SHIFT) | (uint32_t)digits[2]) << PyLong_SHIFT) | (uint32_t)digits[1]) << PyLong_SHIFT) | (uint32_t)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        if (unlikely(Py_SIZE(x) < 0)) {
            goto raise_neg_overflow;
        }
#else
        {
            int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
            if (unlikely(result < 0))
                return (uint32_t) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(uint32_t) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(uint32_t, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(uint32_t) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(uint32_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(uint32_t, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(uint32_t) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(uint32_t, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(uint32_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (uint32_t) (((uint32_t)-1)*(((((uint32_t)digits[1]) << PyLong_SHIFT) | (uint32_t)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(uint32_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(uint32_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(uint32_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (uint32_t) ((((((uint32_t)digits[1]) << PyLong_SHIFT) | (uint32_t)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(uint32_t) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(uint32_t, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(uint32_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (uint32_t) (((uint32_t)-1)*(((((((uint32_t)digits[2]) << PyLong_SHIFT) | (uint32_t)digits[1]) << PyLong_SHIFT) | (uint32_t)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(uint32_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(uint32_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(uint32_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (uint32_t) ((((((((uint32_t)digits[2]) << PyLong_SHIFT) | (uint32_t)digits[1]) << PyLong_SHIFT) | (uint32_t)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(uint32_t) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(uint32_t, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(uint32_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (uint32_t) (((uint32_t)-1)*(((((((((uint32_t)digits[3]) << PyLong_SHIFT) | (uint32_t)digits[2]) << PyLong_SHIFT) | (uint32_t)digits[1]) << PyLong_SHIFT) | (uint32_t)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(uint32_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(uint32_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(uint32_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (uint32_t) ((((((((((uint32_t)digits[3]) << PyLong_SHIFT) | (uint32_t)digits[2]) << PyLong_SHIFT) | (uint32_t)digits[1]) << PyLong_SHIFT) | (uint32_t)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(uint32_t) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(uint32_t, long, PyLong_AsLong(x))
        } else if ((sizeof(uint32_t) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(uint32_t, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        uint32_t val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (uint32_t) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (uint32_t) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (uint32_t) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (uint32_t) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(uint32_t) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((uint32_t) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(uint32_t) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((uint32_t) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((uint32_t) 1) << (sizeof(uint32_t) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (uint32_t) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to uint32_t");
    return (uint32_t) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to uint32_t");
    return (uint32_t) -1;
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_uint8_t(uint8_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const uint8_t neg_one = (uint8_t) -1, const_zero = (uint8_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(uint8_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(uint8_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(uint8_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(uint8_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(uint8_t) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(uint8_t),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(uint8_t));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_hb_ot_name_id_t(hb_ot_name_id_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_ot_name_id_t neg_one = (hb_ot_name_id_t) -1, const_zero = (hb_ot_name_id_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(hb_ot_name_id_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_ot_name_id_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(hb_ot_name_id_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(hb_ot_name_id_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(hb_ot_name_id_t) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(hb_ot_name_id_t),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(hb_ot_name_id_t));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntFromPy */
static CYTHON_INLINE hb_ot_name_id_t __Pyx_PyLong_As_hb_ot_name_id_t(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_ot_name_id_t neg_one = (hb_ot_name_id_t) -1, const_zero = (hb_ot_name_id_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        hb_ot_name_id_t val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (hb_ot_name_id_t) -1;
        val = __Pyx_PyLong_As_hb_ot_name_id_t(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(hb_ot_name_id_t, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(hb_ot_name_id_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_name_id_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_name_id_t) >= 2 * PyLong_SHIFT)) {
                            return (hb_ot_name_id_t) (((((hb_ot_name_id_t)digits[1]) << PyLong_SHIFT) | (hb_ot_name_id_t)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(hb_ot_name_id_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_name_id_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_name_id_t) >= 3 * PyLong_SHIFT)) {
                            return (hb_ot_name_id_t) (((((((hb_ot_name_id_t)digits[2]) << PyLong_SHIFT) | (hb_ot_name_id_t)digits[1]) << PyLong_SHIFT) | (hb_ot_name_id_t)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(hb_ot_name_id_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_name_id_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_name_id_t) >= 4 * PyLong_SHIFT)) {
                            return (hb_ot_name_id_t) (((((((((hb_ot_name_id_t)digits[3]) << PyLong_SHIFT) | (hb_ot_name_id_t)digits[2]) << PyLong_SHIFT) | (hb_ot_name_id_t)digits[1]) << PyLong_SHIFT) | (hb_ot_name_id_t)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        if (unlikely(Py_SIZE(x) < 0)) {
            goto raise_neg_overflow;
        }
#else
        {
            int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
            if (unlikely(result < 0))
                return (hb_ot_name_id_t) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(hb_ot_name_id_t) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_ot_name_id_t, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(hb_ot_name_id_t) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_ot_name_id_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(hb_ot_name_id_t, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(hb_ot_name_id_t) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_name_id_t, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_name_id_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (hb_ot_name_id_t) (((hb_ot_name_id_t)-1)*(((((hb_ot_name_id_t)digits[1]) << PyLong_SHIFT) | (hb_ot_name_id_t)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(hb_ot_name_id_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_name_id_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_name_id_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (hb_ot_name_id_t) ((((((hb_ot_name_id_t)digits[1]) << PyLong_SHIFT) | (hb_ot_name_id_t)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(hb_ot_name_id_t) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_name_id_t, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_name_id_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (hb_ot_name_id_t) (((hb_ot_name_id_t)-1)*(((((((hb_ot_name_id_t)digits[2]) << PyLong_SHIFT) | (hb_ot_name_id_t)digits[1]) << PyLong_SHIFT) | (hb_ot_name_id_t)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(hb_ot_name_id_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_name_id_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_name_id_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (hb_ot_name_id_t) ((((((((hb_ot_name_id_t)digits[2]) << PyLong_SHIFT) | (hb_ot_name_id_t)digits[1]) << PyLong_SHIFT) | (hb_ot_name_id_t)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(hb_ot_name_id_t) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_name_id_t, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_name_id_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (hb_ot_name_id_t) (((hb_ot_name_id_t)-1)*(((((((((hb_ot_name_id_t)digits[3]) << PyLong_SHIFT) | (hb_ot_name_id_t)digits[2]) << PyLong_SHIFT) | (hb_ot_name_id_t)digits[1]) << PyLong_SHIFT) | (hb_ot_name_id_t)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(hb_ot_name_id_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_name_id_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_name_id_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (hb_ot_name_id_t) ((((((((((hb_ot_name_id_t)digits[3]) << PyLong_SHIFT) | (hb_ot_name_id_t)digits[2]) << PyLong_SHIFT) | (hb_ot_name_id_t)digits[1]) << PyLong_SHIFT) | (hb_ot_name_id_t)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(hb_ot_name_id_t) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_ot_name_id_t, long, PyLong_AsLong(x))
        } else if ((sizeof(hb_ot_name_id_t) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_ot_name_id_t, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        hb_ot_name_id_t val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (hb_ot_name_id_t) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (hb_ot_name_id_t) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (hb_ot_name_id_t) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (hb_ot_name_id_t) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(hb_ot_name_id_t) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((hb_ot_name_id_t) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(hb_ot_name_id_t) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((hb_ot_name_id_t) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((hb_ot_name_id_t) 1) << (sizeof(hb_ot_name_id_t) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (hb_ot_name_id_t) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to hb_ot_name_id_t");
    return (hb_ot_name_id_t) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to hb_ot_name_id_t");
    return (hb_ot_name_id_t) -1;
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_int(int value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const int neg_one = (int) -1, const_zero = (int) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(int) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(int) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(int) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(int),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(int));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_long(long value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const long neg_one = (long) -1, const_zero = (long) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(long) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(long) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(long) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(long),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(long));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntFromPy */
static CYTHON_INLINE hb_bool_t __Pyx_PyLong_As_hb_bool_t(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_bool_t neg_one = (hb_bool_t) -1, const_zero = (hb_bool_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        hb_bool_t val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (hb_bool_t) -1;
        val = __Pyx_PyLong_As_hb_bool_t(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(hb_bool_t, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(hb_bool_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_bool_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_bool_t) >= 2 * PyLong_SHIFT)) {
                            return (hb_bool_t) (((((hb_bool_t)digits[1]) << PyLong_SHIFT) | (hb_bool_t)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(hb_bool_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_bool_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_bool_t) >= 3 * PyLong_SHIFT)) {
                            return (hb_bool_t) (((((((hb_bool_t)digits[2]) << PyLong_SHIFT) | (hb_bool_t)digits[1]) << PyLong_SHIFT) | (hb_bool_t)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(hb_bool_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_bool_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_bool_t) >= 4 * PyLong_SHIFT)) {
                            return (hb_bool_t) (((((((((hb_bool_t)digits[3]) << PyLong_SHIFT) | (hb_bool_t)digits[2]) << PyLong_SHIFT) | (hb_bool_t)digits[1]) << PyLong_SHIFT) | (hb_bool_t)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        if (unlikely(Py_SIZE(x) < 0)) {
            goto raise_neg_overflow;
        }
#else
        {
            int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
            if (unlikely(result < 0))
                return (hb_bool_t) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(hb_bool_t) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_bool_t, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(hb_bool_t) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_bool_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(hb_bool_t, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(hb_bool_t) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_bool_t, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_bool_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (hb_bool_t) (((hb_bool_t)-1)*(((((hb_bool_t)digits[1]) << PyLong_SHIFT) | (hb_bool_t)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(hb_bool_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_bool_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_bool_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (hb_bool_t) ((((((hb_bool_t)digits[1]) << PyLong_SHIFT) | (hb_bool_t)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(hb_bool_t) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_bool_t, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_bool_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (hb_bool_t) (((hb_bool_t)-1)*(((((((hb_bool_t)digits[2]) << PyLong_SHIFT) | (hb_bool_t)digits[1]) << PyLong_SHIFT) | (hb_bool_t)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(hb_bool_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_bool_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_bool_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (hb_bool_t) ((((((((hb_bool_t)digits[2]) << PyLong_SHIFT) | (hb_bool_t)digits[1]) << PyLong_SHIFT) | (hb_bool_t)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(hb_bool_t) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_bool_t, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_bool_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (hb_bool_t) (((hb_bool_t)-1)*(((((((((hb_bool_t)digits[3]) << PyLong_SHIFT) | (hb_bool_t)digits[2]) << PyLong_SHIFT) | (hb_bool_t)digits[1]) << PyLong_SHIFT) | (hb_bool_t)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(hb_bool_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_bool_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_bool_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (hb_bool_t) ((((((((((hb_bool_t)digits[3]) << PyLong_SHIFT) | (hb_bool_t)digits[2]) << PyLong_SHIFT) | (hb_bool_t)digits[1]) << PyLong_SHIFT) | (hb_bool_t)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(hb_bool_t) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_bool_t, long, PyLong_AsLong(x))
        } else if ((sizeof(hb_bool_t) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_bool_t, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        hb_bool_t val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (hb_bool_t) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (hb_bool_t) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (hb_bool_t) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (hb_bool_t) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(hb_bool_t) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((hb_bool_t) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(hb_bool_t) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((hb_bool_t) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((hb_bool_t) 1) << (sizeof(hb_bool_t) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (hb_bool_t) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to hb_bool_t");
    return (hb_bool_t) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to hb_bool_t");
    return (hb_bool_t) -1;
}

/* CIntFromPy */
static CYTHON_INLINE hb_ot_math_constant_t __Pyx_PyLong_As_hb_ot_math_constant_t(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_ot_math_constant_t neg_one = (hb_ot_math_constant_t) -1, const_zero = (hb_ot_math_constant_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        hb_ot_math_constant_t val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (hb_ot_math_constant_t) -1;
        val = __Pyx_PyLong_As_hb_ot_math_constant_t(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(hb_ot_math_constant_t, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(hb_ot_math_constant_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_math_constant_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_math_constant_t) >= 2 * PyLong_SHIFT)) {
                            return (hb_ot_math_constant_t) (((((hb_ot_math_constant_t)digits[1]) << PyLong_SHIFT) | (hb_ot_math_constant_t)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(hb_ot_math_constant_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_math_constant_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_math_constant_t) >= 3 * PyLong_SHIFT)) {
                            return (hb_ot_math_constant_t) (((((((hb_ot_math_constant_t)digits[2]) << PyLong_SHIFT) | (hb_ot_math_constant_t)digits[1]) << PyLong_SHIFT) | (hb_ot_math_constant_t)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(hb_ot_math_constant_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_math_constant_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_math_constant_t) >= 4 * PyLong_SHIFT)) {
                            return (hb_ot_math_constant_t) (((((((((hb_ot_math_constant_t)digits[3]) << PyLong_SHIFT) | (hb_ot_math_constant_t)digits[2]) << PyLong_SHIFT) | (hb_ot_math_constant_t)digits[1]) << PyLong_SHIFT) | (hb_ot_math_constant_t)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        if (unlikely(Py_SIZE(x) < 0)) {
            goto raise_neg_overflow;
        }
#else
        {
            int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
            if (unlikely(result < 0))
                return (hb_ot_math_constant_t) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(hb_ot_math_constant_t) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_ot_math_constant_t, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(hb_ot_math_constant_t) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_ot_math_constant_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(hb_ot_math_constant_t, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(hb_ot_math_constant_t) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_math_constant_t, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_math_constant_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (hb_ot_math_constant_t) (((hb_ot_math_constant_t)-1)*(((((hb_ot_math_constant_t)digits[1]) << PyLong_SHIFT) | (hb_ot_math_constant_t)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(hb_ot_math_constant_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_math_constant_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_math_constant_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (hb_ot_math_constant_t) ((((((hb_ot_math_constant_t)digits[1]) << PyLong_SHIFT) | (hb_ot_math_constant_t)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(hb_ot_math_constant_t) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_math_constant_t, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_math_constant_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (hb_ot_math_constant_t) (((hb_ot_math_constant_t)-1)*(((((((hb_ot_math_constant_t)digits[2]) << PyLong_SHIFT) | (hb_ot_math_constant_t)digits[1]) << PyLong_SHIFT) | (hb_ot_math_constant_t)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(hb_ot_math_constant_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_math_constant_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_math_constant_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (hb_ot_math_constant_t) ((((((((hb_ot_math_constant_t)digits[2]) << PyLong_SHIFT) | (hb_ot_math_constant_t)digits[1]) << PyLong_SHIFT) | (hb_ot_math_constant_t)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(hb_ot_math_constant_t) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_math_constant_t, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_math_constant_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (hb_ot_math_constant_t) (((hb_ot_math_constant_t)-1)*(((((((((hb_ot_math_constant_t)digits[3]) << PyLong_SHIFT) | (hb_ot_math_constant_t)digits[2]) << PyLong_SHIFT) | (hb_ot_math_constant_t)digits[1]) << PyLong_SHIFT) | (hb_ot_math_constant_t)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(hb_ot_math_constant_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_math_constant_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_math_constant_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (hb_ot_math_constant_t) ((((((((((hb_ot_math_constant_t)digits[3]) << PyLong_SHIFT) | (hb_ot_math_constant_t)digits[2]) << PyLong_SHIFT) | (hb_ot_math_constant_t)digits[1]) << PyLong_SHIFT) | (hb_ot_math_constant_t)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(hb_ot_math_constant_t) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_ot_math_constant_t, long, PyLong_AsLong(x))
        } else if ((sizeof(hb_ot_math_constant_t) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_ot_math_constant_t, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        hb_ot_math_constant_t val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (hb_ot_math_constant_t) -1;
#endif
        if (unlikely(ret))
            return (hb_ot_math_constant_t) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to hb_ot_math_constant_t");
    return (hb_ot_math_constant_t) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to hb_ot_math_constant_t");
    return (hb_ot_math_constant_t) -1;
}

/* CIntFromPy */
static CYTHON_INLINE hb_ot_math_kern_t __Pyx_PyLong_As_hb_ot_math_kern_t(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_ot_math_kern_t neg_one = (hb_ot_math_kern_t) -1, const_zero = (hb_ot_math_kern_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        hb_ot_math_kern_t val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (hb_ot_math_kern_t) -1;
        val = __Pyx_PyLong_As_hb_ot_math_kern_t(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(hb_ot_math_kern_t, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(hb_ot_math_kern_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_math_kern_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_math_kern_t) >= 2 * PyLong_SHIFT)) {
                            return (hb_ot_math_kern_t) (((((hb_ot_math_kern_t)digits[1]) << PyLong_SHIFT) | (hb_ot_math_kern_t)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(hb_ot_math_kern_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_math_kern_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_math_kern_t) >= 3 * PyLong_SHIFT)) {
                            return (hb_ot_math_kern_t) (((((((hb_ot_math_kern_t)digits[2]) << PyLong_SHIFT) | (hb_ot_math_kern_t)digits[1]) << PyLong_SHIFT) | (hb_ot_math_kern_t)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(hb_ot_math_kern_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_math_kern_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_math_kern_t) >= 4 * PyLong_SHIFT)) {
                            return (hb_ot_math_kern_t) (((((((((hb_ot_math_kern_t)digits[3]) << PyLong_SHIFT) | (hb_ot_math_kern_t)digits[2]) << PyLong_SHIFT) | (hb_ot_math_kern_t)digits[1]) << PyLong_SHIFT) | (hb_ot_math_kern_t)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        if (unlikely(Py_SIZE(x) < 0)) {
            goto raise_neg_overflow;
        }
#else
        {
            int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
            if (unlikely(result < 0))
                return (hb_ot_math_kern_t) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(hb_ot_math_kern_t) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_ot_math_kern_t, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(hb_ot_math_kern_t) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_ot_math_kern_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(hb_ot_math_kern_t, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(hb_ot_math_kern_t) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_math_kern_t, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_math_kern_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (hb_ot_math_kern_t) (((hb_ot_math_kern_t)-1)*(((((hb_ot_math_kern_t)digits[1]) << PyLong_SHIFT) | (hb_ot_math_kern_t)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(hb_ot_math_kern_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_math_kern_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_math_kern_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (hb_ot_math_kern_t) ((((((hb_ot_math_kern_t)digits[1]) << PyLong_SHIFT) | (hb_ot_math_kern_t)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(hb_ot_math_kern_t) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_math_kern_t, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_math_kern_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (hb_ot_math_kern_t) (((hb_ot_math_kern_t)-1)*(((((((hb_ot_math_kern_t)digits[2]) << PyLong_SHIFT) | (hb_ot_math_kern_t)digits[1]) << PyLong_SHIFT) | (hb_ot_math_kern_t)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(hb_ot_math_kern_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_math_kern_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_math_kern_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (hb_ot_math_kern_t) ((((((((hb_ot_math_kern_t)digits[2]) << PyLong_SHIFT) | (hb_ot_math_kern_t)digits[1]) << PyLong_SHIFT) | (hb_ot_math_kern_t)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(hb_ot_math_kern_t) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_math_kern_t, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_math_kern_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (hb_ot_math_kern_t) (((hb_ot_math_kern_t)-1)*(((((((((hb_ot_math_kern_t)digits[3]) << PyLong_SHIFT) | (hb_ot_math_kern_t)digits[2]) << PyLong_SHIFT) | (hb_ot_math_kern_t)digits[1]) << PyLong_SHIFT) | (hb_ot_math_kern_t)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(hb_ot_math_kern_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_math_kern_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_math_kern_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (hb_ot_math_kern_t) ((((((((((hb_ot_math_kern_t)digits[3]) << PyLong_SHIFT) | (hb_ot_math_kern_t)digits[2]) << PyLong_SHIFT) | (hb_ot_math_kern_t)digits[1]) << PyLong_SHIFT) | (hb_ot_math_kern_t)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(hb_ot_math_kern_t) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_ot_math_kern_t, long, PyLong_AsLong(x))
        } else if ((sizeof(hb_ot_math_kern_t) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_ot_math_kern_t, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        hb_ot_math_kern_t val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (hb_ot_math_kern_t) -1;
#endif
        if (unlikely(ret))
            return (hb_ot_math_kern_t) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to hb_ot_math_kern_t");
    return (hb_ot_math_kern_t) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to hb_ot_math_kern_t");
    return (hb_ot_math_kern_t) -1;
}

/* CIntFromPy */
static CYTHON_INLINE hb_position_t __Pyx_PyLong_As_hb_position_t(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_position_t neg_one = (hb_position_t) -1, const_zero = (hb_position_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        hb_position_t val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (hb_position_t) -1;
        val = __Pyx_PyLong_As_hb_position_t(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(hb_position_t, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(hb_position_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_position_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_position_t) >= 2 * PyLong_SHIFT)) {
                            return (hb_position_t) (((((hb_position_t)digits[1]) << PyLong_SHIFT) | (hb_position_t)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(hb_position_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_position_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_position_t) >= 3 * PyLong_SHIFT)) {
                            return (hb_position_t) (((((((hb_position_t)digits[2]) << PyLong_SHIFT) | (hb_position_t)digits[1]) << PyLong_SHIFT) | (hb_position_t)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(hb_position_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_position_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_position_t) >= 4 * PyLong_SHIFT)) {
                            return (hb_position_t) (((((((((hb_position_t)digits[3]) << PyLong_SHIFT) | (hb_position_t)digits[2]) << PyLong_SHIFT) | (hb_position_t)digits[1]) << PyLong_SHIFT) | (hb_position_t)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        if (unlikely(Py_SIZE(x) < 0)) {
            goto raise_neg_overflow;
        }
#else
        {
            int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
            if (unlikely(result < 0))
                return (hb_position_t) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(hb_position_t) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_position_t, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(hb_position_t) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_position_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(hb_position_t, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(hb_position_t) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_position_t, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_position_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (hb_position_t) (((hb_position_t)-1)*(((((hb_position_t)digits[1]) << PyLong_SHIFT) | (hb_position_t)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(hb_position_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_position_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_position_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (hb_position_t) ((((((hb_position_t)digits[1]) << PyLong_SHIFT) | (hb_position_t)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(hb_position_t) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_position_t, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_position_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (hb_position_t) (((hb_position_t)-1)*(((((((hb_position_t)digits[2]) << PyLong_SHIFT) | (hb_position_t)digits[1]) << PyLong_SHIFT) | (hb_position_t)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(hb_position_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_position_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_position_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (hb_position_t) ((((((((hb_position_t)digits[2]) << PyLong_SHIFT) | (hb_position_t)digits[1]) << PyLong_SHIFT) | (hb_position_t)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(hb_position_t) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_position_t, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_position_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (hb_position_t) (((hb_position_t)-1)*(((((((((hb_position_t)digits[3]) << PyLong_SHIFT) | (hb_position_t)digits[2]) << PyLong_SHIFT) | (hb_position_t)digits[1]) << PyLong_SHIFT) | (hb_position_t)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(hb_position_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_position_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_position_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (hb_position_t) ((((((((((hb_position_t)digits[3]) << PyLong_SHIFT) | (hb_position_t)digits[2]) << PyLong_SHIFT) | (hb_position_t)digits[1]) << PyLong_SHIFT) | (hb_position_t)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(hb_position_t) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_position_t, long, PyLong_AsLong(x))
        } else if ((sizeof(hb_position_t) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_position_t, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        hb_position_t val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (hb_position_t) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (hb_position_t) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (hb_position_t) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (hb_position_t) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(hb_position_t) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((hb_position_t) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(hb_position_t) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((hb_position_t) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((hb_position_t) 1) << (sizeof(hb_position_t) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (hb_position_t) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to hb_position_t");
    return (hb_position_t) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to hb_position_t");
    return (hb_position_t) -1;
}

/* CIntFromPy */
static CYTHON_INLINE hb_ot_metrics_tag_t __Pyx_PyLong_As_hb_ot_metrics_tag_t(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_ot_metrics_tag_t neg_one = (hb_ot_metrics_tag_t) -1, const_zero = (hb_ot_metrics_tag_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        hb_ot_metrics_tag_t val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (hb_ot_metrics_tag_t) -1;
        val = __Pyx_PyLong_As_hb_ot_metrics_tag_t(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(hb_ot_metrics_tag_t, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(hb_ot_metrics_tag_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_metrics_tag_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_metrics_tag_t) >= 2 * PyLong_SHIFT)) {
                            return (hb_ot_metrics_tag_t) (((((hb_ot_metrics_tag_t)digits[1]) << PyLong_SHIFT) | (hb_ot_metrics_tag_t)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(hb_ot_metrics_tag_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_metrics_tag_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_metrics_tag_t) >= 3 * PyLong_SHIFT)) {
                            return (hb_ot_metrics_tag_t) (((((((hb_ot_metrics_tag_t)digits[2]) << PyLong_SHIFT) | (hb_ot_metrics_tag_t)digits[1]) << PyLong_SHIFT) | (hb_ot_metrics_tag_t)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(hb_ot_metrics_tag_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_metrics_tag_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_metrics_tag_t) >= 4 * PyLong_SHIFT)) {
                            return (hb_ot_metrics_tag_t) (((((((((hb_ot_metrics_tag_t)digits[3]) << PyLong_SHIFT) | (hb_ot_metrics_tag_t)digits[2]) << PyLong_SHIFT) | (hb_ot_metrics_tag_t)digits[1]) << PyLong_SHIFT) | (hb_ot_metrics_tag_t)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        if (unlikely(Py_SIZE(x) < 0)) {
            goto raise_neg_overflow;
        }
#else
        {
            int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
            if (unlikely(result < 0))
                return (hb_ot_metrics_tag_t) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(hb_ot_metrics_tag_t) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_ot_metrics_tag_t, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(hb_ot_metrics_tag_t) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_ot_metrics_tag_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(hb_ot_metrics_tag_t, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(hb_ot_metrics_tag_t) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_metrics_tag_t, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_metrics_tag_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (hb_ot_metrics_tag_t) (((hb_ot_metrics_tag_t)-1)*(((((hb_ot_metrics_tag_t)digits[1]) << PyLong_SHIFT) | (hb_ot_metrics_tag_t)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(hb_ot_metrics_tag_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_metrics_tag_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_metrics_tag_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (hb_ot_metrics_tag_t) ((((((hb_ot_metrics_tag_t)digits[1]) << PyLong_SHIFT) | (hb_ot_metrics_tag_t)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(hb_ot_metrics_tag_t) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_metrics_tag_t, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_metrics_tag_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (hb_ot_metrics_tag_t) (((hb_ot_metrics_tag_t)-1)*(((((((hb_ot_metrics_tag_t)digits[2]) << PyLong_SHIFT) | (hb_ot_metrics_tag_t)digits[1]) << PyLong_SHIFT) | (hb_ot_metrics_tag_t)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(hb_ot_metrics_tag_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_metrics_tag_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_metrics_tag_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (hb_ot_metrics_tag_t) ((((((((hb_ot_metrics_tag_t)digits[2]) << PyLong_SHIFT) | (hb_ot_metrics_tag_t)digits[1]) << PyLong_SHIFT) | (hb_ot_metrics_tag_t)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(hb_ot_metrics_tag_t) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_metrics_tag_t, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_metrics_tag_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (hb_ot_metrics_tag_t) (((hb_ot_metrics_tag_t)-1)*(((((((((hb_ot_metrics_tag_t)digits[3]) << PyLong_SHIFT) | (hb_ot_metrics_tag_t)digits[2]) << PyLong_SHIFT) | (hb_ot_metrics_tag_t)digits[1]) << PyLong_SHIFT) | (hb_ot_metrics_tag_t)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(hb_ot_metrics_tag_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_ot_metrics_tag_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_ot_metrics_tag_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (hb_ot_metrics_tag_t) ((((((((((hb_ot_metrics_tag_t)digits[3]) << PyLong_SHIFT) | (hb_ot_metrics_tag_t)digits[2]) << PyLong_SHIFT) | (hb_ot_metrics_tag_t)digits[1]) << PyLong_SHIFT) | (hb_ot_metrics_tag_t)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(hb_ot_metrics_tag_t) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_ot_metrics_tag_t, long, PyLong_AsLong(x))
        } else if ((sizeof(hb_ot_metrics_tag_t) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_ot_metrics_tag_t, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        hb_ot_metrics_tag_t val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (hb_ot_metrics_tag_t) -1;
#endif
        if (unlikely(ret))
            return (hb_ot_metrics_tag_t) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to hb_ot_metrics_tag_t");
    return (hb_ot_metrics_tag_t) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to hb_ot_metrics_tag_t");
    return (hb_ot_metrics_tag_t) -1;
}

/* CIntFromPy */
static CYTHON_INLINE hb_style_tag_t __Pyx_PyLong_As_hb_style_tag_t(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_style_tag_t neg_one = (hb_style_tag_t) -1, const_zero = (hb_style_tag_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        hb_style_tag_t val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (hb_style_tag_t) -1;
        val = __Pyx_PyLong_As_hb_style_tag_t(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(hb_style_tag_t, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(hb_style_tag_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_style_tag_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_style_tag_t) >= 2 * PyLong_SHIFT)) {
                            return (hb_style_tag_t) (((((hb_style_tag_t)digits[1]) << PyLong_SHIFT) | (hb_style_tag_t)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(hb_style_tag_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_style_tag_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_style_tag_t) >= 3 * PyLong_SHIFT)) {
                            return (hb_style_tag_t) (((((((hb_style_tag_t)digits[2]) << PyLong_SHIFT) | (hb_style_tag_t)digits[1]) << PyLong_SHIFT) | (hb_style_tag_t)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(hb_style_tag_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_style_tag_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_style_tag_t) >= 4 * PyLong_SHIFT)) {
                            return (hb_style_tag_t) (((((((((hb_style_tag_t)digits[3]) << PyLong_SHIFT) | (hb_style_tag_t)digits[2]) << PyLong_SHIFT) | (hb_style_tag_t)digits[1]) << PyLong_SHIFT) | (hb_style_tag_t)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        if (unlikely(Py_SIZE(x) < 0)) {
            goto raise_neg_overflow;
        }
#else
        {
            int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
            if (unlikely(result < 0))
                return (hb_style_tag_t) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(hb_style_tag_t) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_style_tag_t, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(hb_style_tag_t) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_style_tag_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(hb_style_tag_t, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(hb_style_tag_t) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_style_tag_t, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_style_tag_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (hb_style_tag_t) (((hb_style_tag_t)-1)*(((((hb_style_tag_t)digits[1]) << PyLong_SHIFT) | (hb_style_tag_t)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(hb_style_tag_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_style_tag_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_style_tag_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (hb_style_tag_t) ((((((hb_style_tag_t)digits[1]) << PyLong_SHIFT) | (hb_style_tag_t)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(hb_style_tag_t) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_style_tag_t, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_style_tag_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (hb_style_tag_t) (((hb_style_tag_t)-1)*(((((((hb_style_tag_t)digits[2]) << PyLong_SHIFT) | (hb_style_tag_t)digits[1]) << PyLong_SHIFT) | (hb_style_tag_t)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(hb_style_tag_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_style_tag_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_style_tag_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (hb_style_tag_t) ((((((((hb_style_tag_t)digits[2]) << PyLong_SHIFT) | (hb_style_tag_t)digits[1]) << PyLong_SHIFT) | (hb_style_tag_t)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(hb_style_tag_t) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_style_tag_t, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_style_tag_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (hb_style_tag_t) (((hb_style_tag_t)-1)*(((((((((hb_style_tag_t)digits[3]) << PyLong_SHIFT) | (hb_style_tag_t)digits[2]) << PyLong_SHIFT) | (hb_style_tag_t)digits[1]) << PyLong_SHIFT) | (hb_style_tag_t)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(hb_style_tag_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_style_tag_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_style_tag_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (hb_style_tag_t) ((((((((((hb_style_tag_t)digits[3]) << PyLong_SHIFT) | (hb_style_tag_t)digits[2]) << PyLong_SHIFT) | (hb_style_tag_t)digits[1]) << PyLong_SHIFT) | (hb_style_tag_t)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(hb_style_tag_t) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_style_tag_t, long, PyLong_AsLong(x))
        } else if ((sizeof(hb_style_tag_t) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_style_tag_t, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        hb_style_tag_t val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (hb_style_tag_t) -1;
#endif
        if (unlikely(ret))
            return (hb_style_tag_t) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to hb_style_tag_t");
    return (hb_style_tag_t) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to hb_style_tag_t");
    return (hb_style_tag_t) -1;
}

/* CIntFromPy */
static CYTHON_INLINE char __Pyx_PyLong_As_char(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const char neg_one = (char) -1, const_zero = (char) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        char val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (char) -1;
        val = __Pyx_PyLong_As_char(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(char, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(char) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(char) >= 2 * PyLong_SHIFT)) {
                            return (char) (((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(char) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(char) >= 3 * PyLong_SHIFT)) {
                            return (char) (((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(char) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(char) >= 4 * PyLong_SHIFT)) {
                            return (char) (((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        if (unlikely(Py_SIZE(x) < 0)) {
            goto raise_neg_overflow;
        }
#else
        {
            int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
            if (unlikely(result < 0))
                return (char) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(char) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(char, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(char) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(char, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(char, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(char) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(char, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
                            return (char) (((char)-1)*(((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(char) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
                            return (char) ((((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(char, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
                            return (char) (((char)-1)*(((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(char) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
                            return (char) ((((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(char, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(char) - 1 > 4 * PyLong_SHIFT)) {
                            return (char) (((char)-1)*(((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(char) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(char) - 1 > 4 * PyLong_SHIFT)) {
                            return (char) ((((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(char) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(char, long, PyLong_AsLong(x))
        } else if ((sizeof(char) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(char, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        char val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (char) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (char) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (char) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (char) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(char) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((char) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(char) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((char) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((char) 1) << (sizeof(char) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (char) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to char");
    return (char) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to char");
    return (char) -1;
}

/* CIntFromPy */
static CYTHON_INLINE hb_raster_format_t __Pyx_PyLong_As_hb_raster_format_t(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_raster_format_t neg_one = (hb_raster_format_t) -1, const_zero = (hb_raster_format_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        hb_raster_format_t val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (hb_raster_format_t) -1;
        val = __Pyx_PyLong_As_hb_raster_format_t(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(hb_raster_format_t, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(hb_raster_format_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_raster_format_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_raster_format_t) >= 2 * PyLong_SHIFT)) {
                            return (hb_raster_format_t) (((((hb_raster_format_t)digits[1]) << PyLong_SHIFT) | (hb_raster_format_t)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(hb_raster_format_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_raster_format_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_raster_format_t) >= 3 * PyLong_SHIFT)) {
                            return (hb_raster_format_t) (((((((hb_raster_format_t)digits[2]) << PyLong_SHIFT) | (hb_raster_format_t)digits[1]) << PyLong_SHIFT) | (hb_raster_format_t)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(hb_raster_format_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_raster_format_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_raster_format_t) >= 4 * PyLong_SHIFT)) {
                            return (hb_raster_format_t) (((((((((hb_raster_format_t)digits[3]) << PyLong_SHIFT) | (hb_raster_format_t)digits[2]) << PyLong_SHIFT) | (hb_raster_format_t)digits[1]) << PyLong_SHIFT) | (hb_raster_format_t)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        if (unlikely(Py_SIZE(x) < 0)) {
            goto raise_neg_overflow;
        }
#else
        {
            int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
            if (unlikely(result < 0))
                return (hb_raster_format_t) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(hb_raster_format_t) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_raster_format_t, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(hb_raster_format_t) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_raster_format_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(hb_raster_format_t, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(hb_raster_format_t) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_raster_format_t, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_raster_format_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (hb_raster_format_t) (((hb_raster_format_t)-1)*(((((hb_raster_format_t)digits[1]) << PyLong_SHIFT) | (hb_raster_format_t)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(hb_raster_format_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_raster_format_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_raster_format_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (hb_raster_format_t) ((((((hb_raster_format_t)digits[1]) << PyLong_SHIFT) | (hb_raster_format_t)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(hb_raster_format_t) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_raster_format_t, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_raster_format_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (hb_raster_format_t) (((hb_raster_format_t)-1)*(((((((hb_raster_format_t)digits[2]) << PyLong_SHIFT) | (hb_raster_format_t)digits[1]) << PyLong_SHIFT) | (hb_raster_format_t)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(hb_raster_format_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_raster_format_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_raster_format_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (hb_raster_format_t) ((((((((hb_raster_format_t)digits[2]) << PyLong_SHIFT) | (hb_raster_format_t)digits[1]) << PyLong_SHIFT) | (hb_raster_format_t)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(hb_raster_format_t) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_raster_format_t, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_raster_format_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (hb_raster_format_t) (((hb_raster_format_t)-1)*(((((((((hb_raster_format_t)digits[3]) << PyLong_SHIFT) | (hb_raster_format_t)digits[2]) << PyLong_SHIFT) | (hb_raster_format_t)digits[1]) << PyLong_SHIFT) | (hb_raster_format_t)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(hb_raster_format_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_raster_format_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_raster_format_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (hb_raster_format_t) ((((((((((hb_raster_format_t)digits[3]) << PyLong_SHIFT) | (hb_raster_format_t)digits[2]) << PyLong_SHIFT) | (hb_raster_format_t)digits[1]) << PyLong_SHIFT) | (hb_raster_format_t)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(hb_raster_format_t) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_raster_format_t, long, PyLong_AsLong(x))
        } else if ((sizeof(hb_raster_format_t) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_raster_format_t, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        hb_raster_format_t val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (hb_raster_format_t) -1;
#endif
        if (unlikely(ret))
            return (hb_raster_format_t) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to hb_raster_format_t");
    return (hb_raster_format_t) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to hb_raster_format_t");
    return (hb_raster_format_t) -1;
}

/* CIntFromPy */
static CYTHON_INLINE size_t __Pyx_PyLong_As_size_t(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const size_t neg_one = (size_t) -1, const_zero = (size_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        size_t val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (size_t) -1;
        val = __Pyx_PyLong_As_size_t(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(size_t, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(size_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(size_t) >= 2 * PyLong_SHIFT)) {
                            return (size_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(size_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(size_t) >= 3 * PyLong_SHIFT)) {
                            return (size_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(size_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(size_t) >= 4 * PyLong_SHIFT)) {
                            return (size_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        if (unlikely(Py_SIZE(x) < 0)) {
            goto raise_neg_overflow;
        }
#else
        {
            int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
            if (unlikely(result < 0))
                return (size_t) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(size_t) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(size_t, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(size_t) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(size_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(size_t, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(size_t) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(size_t, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(size_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (size_t) (((size_t)-1)*(((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(size_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(size_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (size_t) ((((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(size_t) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(size_t, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(size_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (size_t) (((size_t)-1)*(((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(size_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(size_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (size_t) ((((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(size_t) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(size_t, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(size_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (size_t) (((size_t)-1)*(((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(size_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(size_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (size_t) ((((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(size_t) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(size_t, long, PyLong_AsLong(x))
        } else if ((sizeof(size_t) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(size_t, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        size_t val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (size_t) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (size_t) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (size_t) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (size_t) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(size_t) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((size_t) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(size_t) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((size_t) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((size_t) 1) << (sizeof(size_t) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (size_t) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to size_t");
    return (size_t) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to size_t");
    return (size_t) -1;
}

/* CIntFromPy */
static CYTHON_INLINE hb_subset_sets_t __Pyx_PyLong_As_hb_subset_sets_t(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const hb_subset_sets_t neg_one = (hb_subset_sets_t) -1, const_zero = (hb_subset_sets_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        hb_subset_sets_t val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (hb_subset_sets_t) -1;
        val = __Pyx_PyLong_As_hb_subset_sets_t(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(hb_subset_sets_t, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(hb_subset_sets_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_subset_sets_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_subset_sets_t) >= 2 * PyLong_SHIFT)) {
                            return (hb_subset_sets_t) (((((hb_subset_sets_t)digits[1]) << PyLong_SHIFT) | (hb_subset_sets_t)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(hb_subset_sets_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_subset_sets_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_subset_sets_t) >= 3 * PyLong_SHIFT)) {
                            return (hb_subset_sets_t) (((((((hb_subset_sets_t)digits[2]) << PyLong_SHIFT) | (hb_subset_sets_t)digits[1]) << PyLong_SHIFT) | (hb_subset_sets_t)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(hb_subset_sets_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_subset_sets_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_subset_sets_t) >= 4 * PyLong_SHIFT)) {
                            return (hb_subset_sets_t) (((((((((hb_subset_sets_t)digits[3]) << PyLong_SHIFT) | (hb_subset_sets_t)digits[2]) << PyLong_SHIFT) | (hb_subset_sets_t)digits[1]) << PyLong_SHIFT) | (hb_subset_sets_t)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        if (unlikely(Py_SIZE(x) < 0)) {
            goto raise_neg_overflow;
        }
#else
        {
            int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
            if (unlikely(result < 0))
                return (hb_subset_sets_t) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(hb_subset_sets_t) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_subset_sets_t, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(hb_subset_sets_t) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_subset_sets_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(hb_subset_sets_t, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(hb_subset_sets_t) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_subset_sets_t, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_subset_sets_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (hb_subset_sets_t) (((hb_subset_sets_t)-1)*(((((hb_subset_sets_t)digits[1]) << PyLong_SHIFT) | (hb_subset_sets_t)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(hb_subset_sets_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_subset_sets_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_subset_sets_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (hb_subset_sets_t) ((((((hb_subset_sets_t)digits[1]) << PyLong_SHIFT) | (hb_subset_sets_t)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(hb_subset_sets_t) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_subset_sets_t, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_subset_sets_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (hb_subset_sets_t) (((hb_subset_sets_t)-1)*(((((((hb_subset_sets_t)digits[2]) << PyLong_SHIFT) | (hb_subset_sets_t)digits[1]) << PyLong_SHIFT) | (hb_subset_sets_t)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(hb_subset_sets_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_subset_sets_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_subset_sets_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (hb_subset_sets_t) ((((((((hb_subset_sets_t)digits[2]) << PyLong_SHIFT) | (hb_subset_sets_t)digits[1]) << PyLong_SHIFT) | (hb_subset_sets_t)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(hb_subset_sets_t) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_subset_sets_t, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_subset_sets_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (hb_subset_sets_t) (((hb_subset_sets_t)-1)*(((((((((hb_subset_sets_t)digits[3]) << PyLong_SHIFT) | (hb_subset_sets_t)digits[2]) << PyLong_SHIFT) | (hb_subset_sets_t)digits[1]) << PyLong_SHIFT) | (hb_subset_sets_t)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(hb_subset_sets_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(hb_subset_sets_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(hb_subset_sets_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (hb_subset_sets_t) ((((((((((hb_subset_sets_t)digits[3]) << PyLong_SHIFT) | (hb_subset_sets_t)digits[2]) << PyLong_SHIFT) | (hb_subset_sets_t)digits[1]) << PyLong_SHIFT) | (hb_subset_sets_t)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(hb_subset_sets_t) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_subset_sets_t, long, PyLong_AsLong(x))
        } else if ((sizeof(hb_subset_sets_t) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(hb_subset_sets_t, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        hb_subset_sets_t val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (hb_subset_sets_t) -1;
#endif
        if (unlikely(ret))
            return (hb_subset_sets_t) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to hb_subset_sets_t");
    return (hb_subset_sets_t) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to hb_subset_sets_t");
    return (hb_subset_sets_t) -1;
}

/* CIntFromPy */
static CYTHON_INLINE unsigned long __Pyx_PyLong_As_unsigned_long(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const unsigned long neg_one = (unsigned long) -1, const_zero = (unsigned long) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        unsigned long val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (unsigned long) -1;
        val = __Pyx_PyLong_As_unsigned_long(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(unsigned long, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(unsigned long) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned long) >= 2 * PyLong_SHIFT)) {
                            return (unsigned long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned long) >= 3 * PyLong_SHIFT)) {
                            return (unsigned long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned long) >= 4 * PyLong_SHIFT)) {
                            return (unsigned long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        if (unlikely(Py_SIZE(x) < 0)) {
            goto raise_neg_overflow;
        }
#else
        {
            int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
            if (unlikely(result < 0))
                return (unsigned long) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(unsigned long) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned long, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(unsigned long) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(unsigned long, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(unsigned long) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned long) - 1 > 2 * PyLong_SHIFT)) {
                            return (unsigned long) (((unsigned long)-1)*(((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(unsigned long) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned long) - 1 > 2 * PyLong_SHIFT)) {
                            return (unsigned long) ((((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(unsigned long) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned long) - 1 > 3 * PyLong_SHIFT)) {
                            return (unsigned long) (((unsigned long)-1)*(((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned long) - 1 > 3 * PyLong_SHIFT)) {
                            return (unsigned long) ((((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(unsigned long) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned long) - 1 > 4 * PyLong_SHIFT)) {
                            return (unsigned long) (((unsigned long)-1)*(((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned long) - 1 > 4 * PyLong_SHIFT)) {
                            return (unsigned long) ((((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(unsigned long) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned long, long, PyLong_AsLong(x))
        } else if ((sizeof(unsigned long) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned long, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        unsigned long val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (unsigned long) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (unsigned long) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (unsigned long) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (unsigned long) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(unsigned long) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((unsigned long) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(unsigned long) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((unsigned long) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((unsigned long) 1) << (sizeof(unsigned long) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (unsigned long) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to unsigned long");
    return (unsigned long) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to unsigned long");
    return (unsigned long) -1;
}

/* FormatTypeName */
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030d0000
static __Pyx_TypeName
__Pyx_PyType_GetFullyQualifiedName(PyTypeObject* tp)
{
    PyObject *module = NULL, *name = NULL, *result = NULL;
    #if __PYX_LIMITED_VERSION_HEX < 0x030b0000
    name = __Pyx_PyObject_GetAttrStr((PyObject *)tp,
                                               __pyx_mstate_global->__pyx_n_u_qualname);
    #else
    name = PyType_GetQualName(tp);
    #endif
    if (unlikely(name == NULL) || unlikely(!PyUnicode_Check(name))) goto bad;
    module = __Pyx_PyObject_GetAttrStr((PyObject *)tp,
                                               __pyx_mstate_global->__pyx_n_u_module);
    if (unlikely(module == NULL) || unlikely(!PyUnicode_Check(module))) goto bad;
    if (PyUnicode_CompareWithASCIIString(module, "builtins") == 0) {
        result = name;
        name = NULL;
        goto done;
    }
    result = PyUnicode_FromFormat("%U.%U", module, name);
    if (unlikely(result == NULL)) goto bad;
  done:
    Py_XDECREF(name);
    Py_XDECREF(module);
    return result;
  bad:
    PyErr_Clear();
    if (name) {
        result = name;
        name = NULL;
    } else {
        result = __Pyx_NewRef(__pyx_mstate_global->__pyx_kp_u__12);
    }
    goto done;
}
#endif

/* CIntFromPy */
static CYTHON_INLINE long __Pyx_PyLong_As_long(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const long neg_one = (long) -1, const_zero = (long) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        long val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (long) -1;
        val = __Pyx_PyLong_As_long(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) >= 2 * PyLong_SHIFT)) {
                            return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) >= 3 * PyLong_SHIFT)) {
                            return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) >= 4 * PyLong_SHIFT)) {
                            return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        if (unlikely(Py_SIZE(x) < 0)) {
            goto raise_neg_overflow;
        }
#else
        {
            int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
            if (unlikely(result < 0))
                return (long) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(long) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(long) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(long) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
                            return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
                            return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
                            return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
                            return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
                            return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
                            return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(long) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x))
        } else if ((sizeof(long) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        long val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (long) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (long) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (long) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (long) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(long) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((long) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(long) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((long) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((long) 1) << (sizeof(long) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (long) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to long");
    return (long) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to long");
    return (long) -1;
}

/* FastTypeChecks */
#if CYTHON_COMPILING_IN_CPYTHON
static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) {
    while (a) {
        a = __Pyx_PyType_GetSlot(a, tp_base, PyTypeObject*);
        if (a == b)
            return 1;
    }
    return b == &PyBaseObject_Type;
}
static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) {
    PyObject *mro;
    if (a == b) return 1;
    mro = a->tp_mro;
    if (likely(mro)) {
        Py_ssize_t i, n;
        n = PyTuple_GET_SIZE(mro);
        for (i = 0; i < n; i++) {
            if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b)
                return 1;
        }
        return 0;
    }
    return __Pyx_InBases(a, b);
}
static CYTHON_INLINE int __Pyx_IsAnySubtype2(PyTypeObject *cls, PyTypeObject *a, PyTypeObject *b) {
    PyObject *mro;
    if (cls == a || cls == b) return 1;
    mro = cls->tp_mro;
    if (likely(mro)) {
        Py_ssize_t i, n;
        n = PyTuple_GET_SIZE(mro);
        for (i = 0; i < n; i++) {
            PyObject *base = PyTuple_GET_ITEM(mro, i);
            if (base == (PyObject *)a || base == (PyObject *)b)
                return 1;
        }
        return 0;
    }
    return __Pyx_InBases(cls, a) || __Pyx_InBases(cls, b);
}
static CYTHON_INLINE int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) {
    if (exc_type1) {
        return __Pyx_IsAnySubtype2((PyTypeObject*)err, (PyTypeObject*)exc_type1, (PyTypeObject*)exc_type2);
    } else {
        return __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2);
    }
}
static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
    Py_ssize_t i, n;
    assert(PyExceptionClass_Check(exc_type));
    n = PyTuple_GET_SIZE(tuple);
    for (i=0; i<n; i++) {
        if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
    }
    for (i=0; i<n; i++) {
        PyObject *t = PyTuple_GET_ITEM(tuple, i);
        if (likely(PyExceptionClass_Check(t))) {
            if (__Pyx_inner_PyErr_GivenExceptionMatches2(exc_type, NULL, t)) return 1;
        } else {
        }
    }
    return 0;
}
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject* exc_type) {
    if (likely(err == exc_type)) return 1;
    if (likely(PyExceptionClass_Check(err))) {
        if (likely(PyExceptionClass_Check(exc_type))) {
            return __Pyx_inner_PyErr_GivenExceptionMatches2(err, NULL, exc_type);
        } else if (likely(PyTuple_Check(exc_type))) {
            return __Pyx_PyErr_GivenExceptionMatchesTuple(err, exc_type);
        } else {
        }
    }
    return PyErr_GivenExceptionMatches(err, exc_type);
}
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *exc_type1, PyObject *exc_type2) {
    assert(PyExceptionClass_Check(exc_type1));
    assert(PyExceptionClass_Check(exc_type2));
    if (likely(err == exc_type1 || err == exc_type2)) return 1;
    if (likely(PyExceptionClass_Check(err))) {
        return __Pyx_inner_PyErr_GivenExceptionMatches2(err, exc_type1, exc_type2);
    }
    return (PyErr_GivenExceptionMatches(err, exc_type1) || PyErr_GivenExceptionMatches(err, exc_type2));
}
#endif

/* GetRuntimeVersion */
#if __PYX_LIMITED_VERSION_HEX < 0x030b0000
void __Pyx_init_runtime_version(void) {
    if (__Pyx_cached_runtime_version == 0) {
        const char* rt_version = Py_GetVersion();
        unsigned long version = 0;
        unsigned long factor = 0x01000000UL;
        unsigned int digit = 0;
        int i = 0;
        while (factor) {
            while ('0' <= rt_version[i] && rt_version[i] <= '9') {
                digit = digit * 10 + (unsigned int) (rt_version[i] - '0');
                ++i;
            }
            version += factor * digit;
            if (rt_version[i] != '.')
                break;
            digit = 0;
            factor >>= 8;
            ++i;
        }
        __Pyx_cached_runtime_version = version;
    }
}
#endif
static unsigned long __Pyx_get_runtime_version(void) {
#if __PYX_LIMITED_VERSION_HEX >= 0x030b0000
    return Py_Version & ~0xFFUL;
#else
    return __Pyx_cached_runtime_version;
#endif
}

/* IterNextPlain (used by CoroutineBase) */
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
static PyObject *__Pyx_GetBuiltinNext_LimitedAPI(void) {
    if (unlikely(!__pyx_mstate_global->__Pyx_GetBuiltinNext_LimitedAPI_cache))
        __pyx_mstate_global->__Pyx_GetBuiltinNext_LimitedAPI_cache = __Pyx_GetBuiltinName(__pyx_mstate_global->__pyx_n_u_next);
    return __pyx_mstate_global->__Pyx_GetBuiltinNext_LimitedAPI_cache;
}
#endif
static CYTHON_INLINE PyObject *__Pyx_PyIter_Next_Plain(PyObject *iterator) {
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
    PyObject *result;
    PyObject *next = __Pyx_GetBuiltinNext_LimitedAPI();
    if (unlikely(!next)) return NULL;
    result = PyObject_CallFunctionObjArgs(next, iterator, NULL);
    return result;
#else
    (void)__Pyx_GetBuiltinName; // only for early limited API
    iternextfunc iternext = __Pyx_PyObject_GetIterNextFunc(iterator);
    assert(iternext);
    return iternext(iterator);
#endif
}

/* ReturnWithStopIteration (used by CoroutineBase) */
static void __Pyx__ReturnWithStopIteration(PyObject* value, int async);
static CYTHON_INLINE void __Pyx_ReturnWithStopIteration(PyObject* value, int async, int iternext) {
    if (value == Py_None) {
        if (async || !iternext)
            PyErr_SetNone(async ? PyExc_StopAsyncIteration : PyExc_StopIteration);
        return;
    }
    __Pyx__ReturnWithStopIteration(value, async);
}
static void __Pyx__ReturnWithStopIteration(PyObject* value, int async) {
#if CYTHON_COMPILING_IN_CPYTHON
    __Pyx_PyThreadState_declare
#endif
    PyObject *exc;
    PyObject *exc_type = async ? PyExc_StopAsyncIteration : PyExc_StopIteration;
#if CYTHON_COMPILING_IN_CPYTHON
    if ((PY_VERSION_HEX >= (0x030C00A6)) || unlikely(PyTuple_Check(value) || PyExceptionInstance_Check(value))) {
        if (PY_VERSION_HEX >= (0x030e00A1)) {
            exc = __Pyx_PyObject_CallOneArg(exc_type, value);
        } else {
            PyObject *args_tuple = PyTuple_New(1);
            if (unlikely(!args_tuple)) return;
            Py_INCREF(value);
            PyTuple_SET_ITEM(args_tuple, 0, value);
            exc = PyObject_Call(exc_type, args_tuple, NULL);
            Py_DECREF(args_tuple);
        }
        if (unlikely(!exc)) return;
    } else {
        Py_INCREF(value);
        exc = value;
    }
    #if CYTHON_FAST_THREAD_STATE
    __Pyx_PyThreadState_assign
    #if CYTHON_USE_EXC_INFO_STACK
    if (!__pyx_tstate->exc_info->exc_value)
    #else
    if (!__pyx_tstate->exc_type)
    #endif
    {
        Py_INCREF(exc_type);
        __Pyx_ErrRestore(exc_type, exc, NULL);
        return;
    }
    #endif
#else
    exc = __Pyx_PyObject_CallOneArg(exc_type, value);
    if (unlikely(!exc)) return;
#endif
    PyErr_SetObject(exc_type, exc);
    Py_DECREF(exc);
}

/* CoroutineBase (used by Generator) */
#if !CYTHON_COMPILING_IN_LIMITED_API
#include <frameobject.h>
#if PY_VERSION_HEX >= 0x030b00a6 && !defined(PYPY_VERSION)
  #ifndef Py_BUILD_CORE
    #define Py_BUILD_CORE 1
  #endif
  #include "internal/pycore_frame.h"
#endif
#endif // CYTHON_COMPILING_IN_LIMITED_API
static CYTHON_INLINE void
__Pyx_Coroutine_Undelegate(__pyx_CoroutineObject *gen) {
#if CYTHON_USE_AM_SEND
    gen->yieldfrom_am_send = NULL;
#endif
    Py_CLEAR(gen->yieldfrom);
}
static int __Pyx_PyGen__FetchStopIterationValue(PyThreadState *__pyx_tstate, PyObject **pvalue) {
    PyObject *et, *ev, *tb;
    PyObject *value = NULL;
    CYTHON_UNUSED_VAR(__pyx_tstate);
    __Pyx_ErrFetch(&et, &ev, &tb);
    if (!et) {
        Py_XDECREF(tb);
        Py_XDECREF(ev);
        Py_INCREF(Py_None);
        *pvalue = Py_None;
        return 0;
    }
    if (likely(et == PyExc_StopIteration)) {
        if (!ev) {
            Py_INCREF(Py_None);
            value = Py_None;
        }
        else if (likely(__Pyx_IS_TYPE(ev, (PyTypeObject*)PyExc_StopIteration))) {
            #if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_GRAAL
            value = PyObject_GetAttr(ev, __pyx_mstate_global->__pyx_n_u_value);
            if (unlikely(!value)) goto limited_api_failure;
            #else
            value = ((PyStopIterationObject *)ev)->value;
            Py_INCREF(value);
            #endif
            Py_DECREF(ev);
        }
        else if (unlikely(PyTuple_Check(ev))) {
            Py_ssize_t tuple_size = __Pyx_PyTuple_GET_SIZE(ev);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely(tuple_size < 0)) {
                Py_XDECREF(tb);
                Py_DECREF(ev);
                Py_DECREF(et);
                return -1;
            }
            #endif
            if (tuple_size >= 1) {
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
                value = PyTuple_GET_ITEM(ev, 0);
                Py_INCREF(value);
#elif CYTHON_ASSUME_SAFE_MACROS
                value = PySequence_ITEM(ev, 0);
#else
                value = PySequence_GetItem(ev, 0);
                if (!value) goto limited_api_failure;
#endif
            } else {
                Py_INCREF(Py_None);
                value = Py_None;
            }
            Py_DECREF(ev);
        }
        else if (!__Pyx_TypeCheck(ev, (PyTypeObject*)PyExc_StopIteration)) {
            value = ev;
        }
        if (likely(value)) {
            Py_XDECREF(tb);
            Py_DECREF(et);
            *pvalue = value;
            return 0;
        }
    } else if (!__Pyx_PyErr_GivenExceptionMatches(et, PyExc_StopIteration)) {
        __Pyx_ErrRestore(et, ev, tb);
        return -1;
    }
    PyErr_NormalizeException(&et, &ev, &tb);
    if (unlikely(!PyObject_TypeCheck(ev, (PyTypeObject*)PyExc_StopIteration))) {
        __Pyx_ErrRestore(et, ev, tb);
        return -1;
    }
    Py_XDECREF(tb);
    Py_DECREF(et);
#if CYTHON_COMPILING_IN_LIMITED_API
    value = PyObject_GetAttr(ev, __pyx_mstate_global->__pyx_n_u_value);
#else
    value = ((PyStopIterationObject *)ev)->value;
    Py_INCREF(value);
#endif
    Py_DECREF(ev);
#if CYTHON_COMPILING_IN_LIMITED_API
    if (unlikely(!value)) return -1;
#endif
    *pvalue = value;
    return 0;
#if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_GRAAL || !CYTHON_ASSUME_SAFE_MACROS
  limited_api_failure:
    Py_XDECREF(et);
    Py_XDECREF(tb);
    Py_XDECREF(ev);
    return -1;
#endif
}
static CYTHON_INLINE
__Pyx_PySendResult __Pyx_Coroutine_status_from_result(PyObject **retval) {
    if (*retval) {
        return PYGEN_NEXT;
    } else if (likely(__Pyx_PyGen__FetchStopIterationValue(__Pyx_PyThreadState_Current, retval) == 0)) {
        return PYGEN_RETURN;
    } else {
        return PYGEN_ERROR;
    }
}
static CYTHON_INLINE
void __Pyx_Coroutine_ExceptionClear(__Pyx_ExcInfoStruct *exc_state) {
#if PY_VERSION_HEX >= 0x030B00a4
    Py_CLEAR(exc_state->exc_value);
#else
    PyObject *t, *v, *tb;
    t = exc_state->exc_type;
    v = exc_state->exc_value;
    tb = exc_state->exc_traceback;
    exc_state->exc_type = NULL;
    exc_state->exc_value = NULL;
    exc_state->exc_traceback = NULL;
    Py_XDECREF(t);
    Py_XDECREF(v);
    Py_XDECREF(tb);
#endif
}
#define __Pyx_Coroutine_AlreadyRunningError(gen)  (__Pyx__Coroutine_AlreadyRunningError(gen), (PyObject*)NULL)
static void __Pyx__Coroutine_AlreadyRunningError(__pyx_CoroutineObject *gen) {
    const char *msg;
    CYTHON_MAYBE_UNUSED_VAR(gen);
    if ((0)) {
    #ifdef __Pyx_Coroutine_USED
    } else if (__Pyx_Coroutine_Check((PyObject*)gen)) {
        msg = "coroutine already executing";
    #endif
    #ifdef __Pyx_AsyncGen_USED
    } else if (__Pyx_AsyncGen_CheckExact((PyObject*)gen)) {
        msg = "async generator already executing";
    #endif
    } else {
        msg = "generator already executing";
    }
    PyErr_SetString(PyExc_ValueError, msg);
}
static void __Pyx_Coroutine_AlreadyTerminatedError(PyObject *gen, PyObject *value, int closing) {
    CYTHON_MAYBE_UNUSED_VAR(gen);
    CYTHON_MAYBE_UNUSED_VAR(closing);
    #ifdef __Pyx_Coroutine_USED
    if (!closing && __Pyx_Coroutine_Check(gen)) {
        PyErr_SetString(PyExc_RuntimeError, "cannot reuse already awaited coroutine");
    } else
    #endif
    if (value) {
        #ifdef __Pyx_AsyncGen_USED
        if (__Pyx_AsyncGen_CheckExact(gen))
            PyErr_SetNone(PyExc_StopAsyncIteration);
        else
        #endif
        PyErr_SetNone(PyExc_StopIteration);
    }
}
static
__Pyx_PySendResult __Pyx_Coroutine_SendEx(__pyx_CoroutineObject *self, PyObject *value, PyObject **result, int closing) {
    __Pyx_PyThreadState_declare
    PyThreadState *tstate;
    __Pyx_ExcInfoStruct *exc_state;
    PyObject *retval;
    assert(__Pyx_Coroutine_get_is_running(self));  // Callers should ensure is_running
    if (unlikely(self->resume_label == -1)) {
        __Pyx_Coroutine_AlreadyTerminatedError((PyObject*)self, value, closing);
        return PYGEN_ERROR;
    }
#if CYTHON_FAST_THREAD_STATE
    __Pyx_PyThreadState_assign
    tstate = __pyx_tstate;
#else
    tstate = __Pyx_PyThreadState_Current;
#endif
    exc_state = &self->gi_exc_state;
    if (exc_state->exc_value) {
        #if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY
        #else
        PyObject *exc_tb;
        #if PY_VERSION_HEX >= 0x030B00a4 && !CYTHON_COMPILING_IN_CPYTHON
        exc_tb = PyException_GetTraceback(exc_state->exc_value);
        #elif PY_VERSION_HEX >= 0x030B00a4
        exc_tb = ((PyBaseExceptionObject*) exc_state->exc_value)->traceback;
        #else
        exc_tb = exc_state->exc_traceback;
        #endif
        if (exc_tb) {
            PyTracebackObject *tb = (PyTracebackObject *) exc_tb;
            PyFrameObject *f = tb->tb_frame;
            assert(f->f_back == NULL);
            #if PY_VERSION_HEX >= 0x030B00A1
            f->f_back = PyThreadState_GetFrame(tstate);
            #else
            Py_XINCREF(tstate->frame);
            f->f_back = tstate->frame;
            #endif
            #if PY_VERSION_HEX >= 0x030B00a4 && !CYTHON_COMPILING_IN_CPYTHON
            Py_DECREF(exc_tb);
            #endif
        }
        #endif
    }
#if CYTHON_USE_EXC_INFO_STACK
    exc_state->previous_item = tstate->exc_info;
    tstate->exc_info = exc_state;
#else
    if (exc_state->exc_type) {
        __Pyx_ExceptionSwap(&exc_state->exc_type, &exc_state->exc_value, &exc_state->exc_traceback);
    } else {
        __Pyx_Coroutine_ExceptionClear(exc_state);
        __Pyx_ExceptionSave(&exc_state->exc_type, &exc_state->exc_value, &exc_state->exc_traceback);
    }
#endif
    retval = self->body(self, tstate, value);
#if CYTHON_USE_EXC_INFO_STACK
    exc_state = &self->gi_exc_state;
    tstate->exc_info = exc_state->previous_item;
    exc_state->previous_item = NULL;
    __Pyx_Coroutine_ResetFrameBackpointer(exc_state);
#endif
    *result = retval;
    if (self->resume_label == -1) {
        return likely(retval) ? PYGEN_RETURN : PYGEN_ERROR;
    }
    return PYGEN_NEXT;
}
static CYTHON_INLINE void __Pyx_Coroutine_ResetFrameBackpointer(__Pyx_ExcInfoStruct *exc_state) {
#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API
    CYTHON_UNUSED_VAR(exc_state);
#else
    PyObject *exc_tb;
    #if PY_VERSION_HEX >= 0x030B00a4
    if (!exc_state->exc_value) return;
    exc_tb = PyException_GetTraceback(exc_state->exc_value);
    #else
    exc_tb = exc_state->exc_traceback;
    #endif
    if (likely(exc_tb)) {
        PyTracebackObject *tb = (PyTracebackObject *) exc_tb;
        PyFrameObject *f = tb->tb_frame;
        Py_CLEAR(f->f_back);
        #if PY_VERSION_HEX >= 0x030B00a4
        Py_DECREF(exc_tb);
        #endif
    }
#endif
}
#define __Pyx_Coroutine_MethodReturnFromResult(gen, result, retval, iternext)\
    ((result) == PYGEN_NEXT ? (retval) : __Pyx__Coroutine_MethodReturnFromResult(gen, result, retval, iternext))
static PyObject *
__Pyx__Coroutine_MethodReturnFromResult(PyObject* gen, __Pyx_PySendResult result, PyObject *retval, int iternext) {
    CYTHON_MAYBE_UNUSED_VAR(gen);
    if (likely(result == PYGEN_RETURN)) {
        int is_async = 0;
        #ifdef __Pyx_AsyncGen_USED
        is_async = __Pyx_AsyncGen_CheckExact(gen);
        #endif
        __Pyx_ReturnWithStopIteration(retval, is_async, iternext);
        Py_XDECREF(retval);
    }
    return NULL;
}
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE
PyObject *__Pyx_PyGen_Send(PyGenObject *gen, PyObject *arg) {
#if PY_VERSION_HEX <= 0x030A00A1
    return _PyGen_Send(gen, arg);
#else
    PyObject *result;
    if (PyIter_Send((PyObject*)gen, arg ? arg : Py_None, &result) == PYGEN_RETURN) {
        if (PyAsyncGen_CheckExact(gen)) {
            assert(result == Py_None);
            PyErr_SetNone(PyExc_StopAsyncIteration);
        }
        else if (result == Py_None) {
            PyErr_SetNone(PyExc_StopIteration);
        }
        else {
#if PY_VERSION_HEX < 0x030d00A1
            _PyGen_SetStopIterationValue(result);
#else
            if (!PyTuple_Check(result) && !PyExceptionInstance_Check(result)) {
                PyErr_SetObject(PyExc_StopIteration, result);
            } else {
                PyObject *exc = __Pyx_PyObject_CallOneArg(PyExc_StopIteration, result);
                if (likely(exc != NULL)) {
                    PyErr_SetObject(PyExc_StopIteration, exc);
                    Py_DECREF(exc);
                }
            }
#endif
        }
        Py_DECREF(result);
        result = NULL;
    }
    return result;
#endif
}
#endif
static CYTHON_INLINE __Pyx_PySendResult
__Pyx_Coroutine_FinishDelegation(__pyx_CoroutineObject *gen, PyObject** retval) {
    __Pyx_PySendResult result;
    PyObject *val = NULL;
    assert(__Pyx_Coroutine_get_is_running(gen));
    __Pyx_Coroutine_Undelegate(gen);
    __Pyx_PyGen__FetchStopIterationValue(__Pyx_PyThreadState_Current, &val);
    result = __Pyx_Coroutine_SendEx(gen, val, retval, 0);
    Py_XDECREF(val);
    return result;
}
#if CYTHON_USE_AM_SEND
static __Pyx_PySendResult
__Pyx_Coroutine_SendToDelegate(__pyx_CoroutineObject *gen, __Pyx_pyiter_sendfunc gen_am_send, PyObject *value, PyObject **retval) {
    PyObject *ret = NULL;
    __Pyx_PySendResult delegate_result, result;
    assert(__Pyx_Coroutine_get_is_running(gen));
    delegate_result = gen_am_send(gen->yieldfrom, value, &ret);
    if (delegate_result == PYGEN_NEXT) {
        assert (ret != NULL);
        *retval = ret;
        return PYGEN_NEXT;
    }
    assert (delegate_result != PYGEN_ERROR || ret == NULL);
    __Pyx_Coroutine_Undelegate(gen);
    result = __Pyx_Coroutine_SendEx(gen, ret, retval, 0);
    Py_XDECREF(ret);
    return result;
}
#endif
static PyObject *__Pyx_Coroutine_Send(PyObject *self, PyObject *value) {
    PyObject *retval = NULL;
    __Pyx_PySendResult result = __Pyx_Coroutine_AmSend(self, value, &retval);
    return __Pyx_Coroutine_MethodReturnFromResult(self, result, retval, 0);
}
static __Pyx_PySendResult
__Pyx_Coroutine_AmSend(PyObject *self, PyObject *value, PyObject **retval) {
    __Pyx_PySendResult result;
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject*) self;
    if (unlikely(__Pyx_Coroutine_test_and_set_is_running(gen))) {
        *retval = __Pyx_Coroutine_AlreadyRunningError(gen);
        return PYGEN_ERROR;
    }
    #if CYTHON_USE_AM_SEND
    if (gen->yieldfrom_am_send) {
        result = __Pyx_Coroutine_SendToDelegate(gen, gen->yieldfrom_am_send, value, retval);
    } else
    #endif
    if (gen->yieldfrom) {
        PyObject *yf = gen->yieldfrom;
        PyObject *ret;
      #if !CYTHON_USE_AM_SEND
        #ifdef __Pyx_Generator_USED
        if (__Pyx_Generator_CheckExact(yf)) {
            ret = __Pyx_Coroutine_Send(yf, value);
        } else
        #endif
        #ifdef __Pyx_Coroutine_USED
        if (__Pyx_Coroutine_Check(yf)) {
            ret = __Pyx_Coroutine_Send(yf, value);
        } else
        #endif
        #ifdef __Pyx_AsyncGen_USED
        if (__pyx_PyAsyncGenASend_CheckExact(yf)) {
            ret = __Pyx_async_gen_asend_send(yf, value);
        } else
        #endif
        #if CYTHON_COMPILING_IN_CPYTHON
        if (PyGen_CheckExact(yf)) {
            ret = __Pyx_PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
        } else
        if (PyCoro_CheckExact(yf)) {
            ret = __Pyx_PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
        } else
        #endif
      #endif
        {
            #if !CYTHON_COMPILING_IN_LIMITED_API || __PYX_LIMITED_VERSION_HEX >= 0x03080000
            if (value == Py_None && PyIter_Check(yf))
                ret = __Pyx_PyIter_Next_Plain(yf);
            else
            #endif
                ret = __Pyx_PyObject_CallMethod1(yf, __pyx_mstate_global->__pyx_n_u_send, value);
        }
        if (likely(ret)) {
            __Pyx_Coroutine_unset_is_running(gen);
            *retval = ret;
            return PYGEN_NEXT;
        }
        result = __Pyx_Coroutine_FinishDelegation(gen, retval);
    } else {
        result = __Pyx_Coroutine_SendEx(gen, value, retval, 0);
    }
    __Pyx_Coroutine_unset_is_running(gen);
    return result;
}
static int __Pyx_Coroutine_CloseIter(__pyx_CoroutineObject *gen, PyObject *yf) {
    __Pyx_PySendResult result;
    PyObject *retval = NULL;
    CYTHON_UNUSED_VAR(gen);
    assert(__Pyx_Coroutine_get_is_running(gen));
    #ifdef __Pyx_Generator_USED
    if (__Pyx_Generator_CheckExact(yf)) {
        result = __Pyx_Coroutine_Close(yf, &retval);
    } else
    #endif
    #ifdef __Pyx_Coroutine_USED
    if (__Pyx_Coroutine_Check(yf)) {
        result = __Pyx_Coroutine_Close(yf, &retval);
    } else
    if (__Pyx_CoroutineAwait_CheckExact(yf)) {
        result = __Pyx_CoroutineAwait_Close((__pyx_CoroutineAwaitObject*)yf);
    } else
    #endif
    #ifdef __Pyx_AsyncGen_USED
    if (__pyx_PyAsyncGenASend_CheckExact(yf)) {
        retval = __Pyx_async_gen_asend_close(yf, NULL);
        result = PYGEN_RETURN;
    } else
    if (__pyx_PyAsyncGenAThrow_CheckExact(yf)) {
        retval = __Pyx_async_gen_athrow_close(yf, NULL);
        result = PYGEN_RETURN;
    } else
    #endif
    {
        PyObject *meth;
        result = PYGEN_RETURN;
        meth = __Pyx_PyObject_GetAttrStrNoError(yf, __pyx_mstate_global->__pyx_n_u_close);
        if (unlikely(!meth)) {
            if (unlikely(PyErr_Occurred())) {
                PyErr_WriteUnraisable(yf);
            }
        } else {
            retval = __Pyx_PyObject_CallNoArg(meth);
            Py_DECREF(meth);
            if (unlikely(!retval)) {
                result = PYGEN_ERROR;
            }
        }
    }
    Py_XDECREF(retval);
    return result == PYGEN_ERROR ? -1 : 0;
}
static PyObject *__Pyx_Generator_Next(PyObject *self) {
    __Pyx_PySendResult result;
    PyObject *retval = NULL;
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject*) self;
    if (unlikely(__Pyx_Coroutine_test_and_set_is_running(gen))) {
        return __Pyx_Coroutine_AlreadyRunningError(gen);
    }
    #if CYTHON_USE_AM_SEND
    if (gen->yieldfrom_am_send) {
        result = __Pyx_Coroutine_SendToDelegate(gen, gen->yieldfrom_am_send, Py_None, &retval);
    } else
    #endif
    if (gen->yieldfrom) {
        PyObject *yf = gen->yieldfrom;
        PyObject *ret;
        #ifdef __Pyx_Generator_USED
        if (__Pyx_Generator_CheckExact(yf)) {
            ret = __Pyx_Generator_Next(yf);
        } else
        #endif
        #ifdef __Pyx_Coroutine_USED
        if (__Pyx_Coroutine_CheckExact(yf)) {
            ret = __Pyx_Coroutine_Send(yf, Py_None);
        } else
        #endif
        #if CYTHON_COMPILING_IN_CPYTHON && (PY_VERSION_HEX < 0x030A00A3 || !CYTHON_USE_AM_SEND)
        if (PyGen_CheckExact(yf)) {
            ret = __Pyx_PyGen_Send((PyGenObject*)yf, NULL);
        } else
        #endif
            ret = __Pyx_PyIter_Next_Plain(yf);
        if (likely(ret)) {
            __Pyx_Coroutine_unset_is_running(gen);
            return ret;
        }
        result = __Pyx_Coroutine_FinishDelegation(gen, &retval);
    } else {
        result = __Pyx_Coroutine_SendEx(gen, Py_None, &retval, 0);
    }
    __Pyx_Coroutine_unset_is_running(gen);
    return __Pyx_Coroutine_MethodReturnFromResult(self, result, retval, 1);
}
static PyObject *__Pyx_Coroutine_Close_Method(PyObject *self, PyObject *arg) {
    PyObject *retval = NULL;
    __Pyx_PySendResult result;
    CYTHON_UNUSED_VAR(arg);
    result = __Pyx_Coroutine_Close(self, &retval);
    if (unlikely(result == PYGEN_ERROR))
        return NULL;
    Py_XDECREF(retval);
    Py_RETURN_NONE;
}
static __Pyx_PySendResult
__Pyx_Coroutine_Close(PyObject *self, PyObject **retval) {
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self;
    __Pyx_PySendResult result;
    PyObject *yf;
    int err = 0;
    if (unlikely(__Pyx_Coroutine_test_and_set_is_running(gen))) {
        *retval = __Pyx_Coroutine_AlreadyRunningError(gen);
        return PYGEN_ERROR;
    }
    yf = gen->yieldfrom;
    if (yf) {
        Py_INCREF(yf);
        err = __Pyx_Coroutine_CloseIter(gen, yf);
        __Pyx_Coroutine_Undelegate(gen);
        Py_DECREF(yf);
    }
    if (err == 0)
        PyErr_SetNone(PyExc_GeneratorExit);
    result = __Pyx_Coroutine_SendEx(gen, NULL, retval, 1);
    if (result == PYGEN_ERROR) {
        __Pyx_PyThreadState_declare
        __Pyx_PyThreadState_assign
        __Pyx_Coroutine_unset_is_running(gen);
        if (!__Pyx_PyErr_Occurred()) {
            return PYGEN_RETURN;
        } else if (likely(__Pyx_PyErr_ExceptionMatches2(PyExc_GeneratorExit, PyExc_StopIteration))) {
            __Pyx_PyErr_Clear();
            return PYGEN_RETURN;
        }
        return PYGEN_ERROR;
    } else if (likely(result == PYGEN_RETURN && *retval == Py_None)) {
        __Pyx_Coroutine_unset_is_running(gen);
        return PYGEN_RETURN;
    } else {
        const char *msg;
        Py_DECREF(*retval);
        *retval = NULL;
        if ((0)) {
        #ifdef __Pyx_Coroutine_USED
        } else if (__Pyx_Coroutine_Check(self)) {
            msg = "coroutine ignored GeneratorExit";
        #endif
        #ifdef __Pyx_AsyncGen_USED
        } else if (__Pyx_AsyncGen_CheckExact(self)) {
            msg = "async generator ignored GeneratorExit";
        #endif
        } else {
            msg = "generator ignored GeneratorExit";
        }
        PyErr_SetString(PyExc_RuntimeError, msg);
        __Pyx_Coroutine_unset_is_running(gen);
        return PYGEN_ERROR;
    }
}
static PyObject *__Pyx__Coroutine_Throw(PyObject *self, PyObject *typ, PyObject *val, PyObject *tb,
                                        PyObject *args, int close_on_genexit) {
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self;
    PyObject *yf;
    if (unlikely(__Pyx_Coroutine_test_and_set_is_running(gen)))
        return __Pyx_Coroutine_AlreadyRunningError(gen);
    yf = gen->yieldfrom;
    if (yf) {
        __Pyx_PySendResult result;
        PyObject *ret;
        Py_INCREF(yf);
        if (__Pyx_PyErr_GivenExceptionMatches(typ, PyExc_GeneratorExit) && close_on_genexit) {
            int err = __Pyx_Coroutine_CloseIter(gen, yf);
            Py_DECREF(yf);
            __Pyx_Coroutine_Undelegate(gen);
            if (err < 0)
                goto propagate_exception;
            goto throw_here;
        }
        if (0
        #ifdef __Pyx_Generator_USED
            || __Pyx_Generator_CheckExact(yf)
        #endif
        #ifdef __Pyx_Coroutine_USED
            || __Pyx_Coroutine_Check(yf)
        #endif
            ) {
            ret = __Pyx__Coroutine_Throw(yf, typ, val, tb, args, close_on_genexit);
        #ifdef __Pyx_Coroutine_USED
        } else if (__Pyx_CoroutineAwait_CheckExact(yf)) {
            ret = __Pyx__Coroutine_Throw(((__pyx_CoroutineAwaitObject*)yf)->coroutine, typ, val, tb, args, close_on_genexit);
        #endif
        } else {
            PyObject *meth = __Pyx_PyObject_GetAttrStrNoError(yf, __pyx_mstate_global->__pyx_n_u_throw);
            if (unlikely(!meth)) {
                Py_DECREF(yf);
                if (unlikely(PyErr_Occurred())) {
                    __Pyx_Coroutine_unset_is_running(gen);
                    return NULL;
                }
                __Pyx_Coroutine_Undelegate(gen);
                goto throw_here;
            }
            if (likely(args)) {
                ret = __Pyx_PyObject_Call(meth, args, NULL);
            } else {
                PyObject *cargs[4] = {NULL, typ, val, tb};
                size_t nargs = 1U + (val != NULL) + (tb != NULL);
                ret = __Pyx_PyObject_FastCall(meth, cargs+1, nargs | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
            }
            Py_DECREF(meth);
        }
        Py_DECREF(yf);
        if (ret) {
            __Pyx_Coroutine_unset_is_running(gen);
            return ret;
        }
        result = __Pyx_Coroutine_FinishDelegation(gen, &ret);
        __Pyx_Coroutine_unset_is_running(gen);
        return __Pyx_Coroutine_MethodReturnFromResult(self, result, ret, 0);
    }
throw_here:
    __Pyx_Raise(typ, val, tb, NULL);
propagate_exception:
    {
        PyObject *retval = NULL;
        __Pyx_PySendResult result = __Pyx_Coroutine_SendEx(gen, NULL, &retval, 0);
        __Pyx_Coroutine_unset_is_running(gen);
        return __Pyx_Coroutine_MethodReturnFromResult(self, result, retval, 0);
    }
}
static PyObject *__Pyx_Coroutine_Throw(PyObject *self, PyObject *args) {
    PyObject *typ;
    PyObject *val = NULL;
    PyObject *tb = NULL;
    if (unlikely(!PyArg_UnpackTuple(args, "throw", 1, 3, &typ, &val, &tb)))
        return NULL;
    return __Pyx__Coroutine_Throw(self, typ, val, tb, args, 1);
}
static CYTHON_INLINE int __Pyx_Coroutine_traverse_excstate(__Pyx_ExcInfoStruct *exc_state, visitproc visit, void *arg) {
#if PY_VERSION_HEX >= 0x030B00a4
    Py_VISIT(exc_state->exc_value);
#else
    Py_VISIT(exc_state->exc_type);
    Py_VISIT(exc_state->exc_value);
    Py_VISIT(exc_state->exc_traceback);
#endif
    return 0;
}
static int __Pyx_Coroutine_traverse(__pyx_CoroutineObject *gen, visitproc visit, void *arg) {
    {
        int e = __Pyx_call_type_traverse((PyObject*)gen, 1, visit, arg);
        if (e) return e;
    }
    Py_VISIT(gen->closure);
    Py_VISIT(gen->classobj);
    Py_VISIT(gen->yieldfrom);
    return __Pyx_Coroutine_traverse_excstate(&gen->gi_exc_state, visit, arg);
}
static int __Pyx_Coroutine_clear(PyObject *self) {
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self;
    Py_CLEAR(gen->closure);
    Py_CLEAR(gen->classobj);
    __Pyx_Coroutine_Undelegate(gen);
    __Pyx_Coroutine_ExceptionClear(&gen->gi_exc_state);
#ifdef __Pyx_AsyncGen_USED
    if (__Pyx_AsyncGen_CheckExact(self)) {
        Py_CLEAR(((__pyx_PyAsyncGenObject*)gen)->ag_finalizer);
    }
#endif
    Py_CLEAR(gen->gi_code);
    Py_CLEAR(gen->gi_frame);
    Py_CLEAR(gen->gi_name);
    Py_CLEAR(gen->gi_qualname);
    Py_CLEAR(gen->gi_modulename);
    return 0;
}
static void __Pyx_Coroutine_dealloc(PyObject *self) {
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self;
    PyObject_GC_UnTrack(gen);
    #if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    if (gen->gi_weakreflist != NULL)
    #endif
        PyObject_ClearWeakRefs(self);
    if (gen->resume_label >= 0) {
        PyObject_GC_Track(self);
#if CYTHON_USE_TP_FINALIZE
        if (unlikely(PyObject_CallFinalizerFromDealloc(self)))
#else
        {
            destructor del = __Pyx_PyObject_GetSlot(gen, tp_del, destructor);
            if (del) del(self);
        }
        if (unlikely(Py_REFCNT(self) > 0))
#endif
        {
            return;
        }
        PyObject_GC_UnTrack(self);
    }
#ifdef __Pyx_AsyncGen_USED
    if (__Pyx_AsyncGen_CheckExact(self)) {
        /* We have to handle this case for asynchronous generators
           right here, because this code has to be between UNTRACK
           and GC_Del. */
        Py_CLEAR(((__pyx_PyAsyncGenObject*)self)->ag_finalizer);
    }
#endif
    __Pyx_Coroutine_clear(self);
    __Pyx_PyHeapTypeObject_GC_Del(gen);
}
#if CYTHON_USE_TP_FINALIZE
static void __Pyx_Coroutine_del(PyObject *self) {
    PyObject *error_type, *error_value, *error_traceback;
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self;
    __Pyx_PyThreadState_declare
    if (gen->resume_label < 0) {
        return;
    }
    __Pyx_PyThreadState_assign
    __Pyx_ErrFetch(&error_type, &error_value, &error_traceback);
#ifdef __Pyx_AsyncGen_USED
    if (__Pyx_AsyncGen_CheckExact(self)) {
        __pyx_PyAsyncGenObject *agen = (__pyx_PyAsyncGenObject*)self;
        PyObject *finalizer = agen->ag_finalizer;
        if (finalizer && !agen->ag_closed) {
            PyObject *res = __Pyx_PyObject_CallOneArg(finalizer, self);
            if (unlikely(!res)) {
                PyErr_WriteUnraisable(self);
            } else {
                Py_DECREF(res);
            }
            __Pyx_ErrRestore(error_type, error_value, error_traceback);
            return;
        }
    }
#endif
    if (unlikely(gen->resume_label == 0 && !error_value)) {
#ifdef __Pyx_Coroutine_USED
#ifdef __Pyx_Generator_USED
    if (!__Pyx_Generator_CheckExact(self))
#endif
        {
        PyObject_GC_UnTrack(self);
        if (unlikely(PyErr_WarnFormat(PyExc_RuntimeWarning, 1, "coroutine '%.50S' was never awaited", gen->gi_qualname) < 0))
            PyErr_WriteUnraisable(self);
        PyObject_GC_Track(self);
        }
#endif
    } else {
        PyObject *retval = NULL;
        __Pyx_PySendResult result = __Pyx_Coroutine_Close(self, &retval);
        if (result == PYGEN_ERROR) {
            PyErr_WriteUnraisable(self);
        } else {
            Py_XDECREF(retval);
        }
    }
    __Pyx_ErrRestore(error_type, error_value, error_traceback);
}
#endif
static PyObject *
__Pyx_Coroutine_get_name(__pyx_CoroutineObject *self, void *context)
{
    PyObject *name = self->gi_name;
    CYTHON_UNUSED_VAR(context);
    if (unlikely(!name)) name = Py_None;
    Py_INCREF(name);
    return name;
}
static int
__Pyx_Coroutine_set_name(__pyx_CoroutineObject *self, PyObject *value, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (unlikely(value == NULL || !PyUnicode_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__name__ must be set to a string object");
        return -1;
    }
    Py_INCREF(value);
    __Pyx_Py_XDECREF_SET(self->gi_name, value);
    return 0;
}
static PyObject *
__Pyx_Coroutine_get_qualname(__pyx_CoroutineObject *self, void *context)
{
    PyObject *name = self->gi_qualname;
    CYTHON_UNUSED_VAR(context);
    if (unlikely(!name)) name = Py_None;
    Py_INCREF(name);
    return name;
}
static int
__Pyx_Coroutine_set_qualname(__pyx_CoroutineObject *self, PyObject *value, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (unlikely(value == NULL || !PyUnicode_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__qualname__ must be set to a string object");
        return -1;
    }
    Py_INCREF(value);
    __Pyx_Py_XDECREF_SET(self->gi_qualname, value);
    return 0;
}
#if !CYTHON_COMPILING_IN_LIMITED_API
static PyObject *
__Pyx__Coroutine_get_frame_locked(__pyx_CoroutineObject *self) {
    PyObject *frame;
    frame = self->gi_frame;
    if (!frame) {
        if (unlikely(!self->gi_code)) {
            Py_RETURN_NONE;
        }
        PyObject *globals = PyDict_New();
        if (unlikely(!globals)) return NULL;
        frame = (PyObject *) PyFrame_New(
            PyThreadState_Get(),            /*PyThreadState *tstate,*/
            (PyCodeObject*) self->gi_code,  /*PyCodeObject *code,*/
            globals,                        /*PyObject *globals,*/
            0                               /*PyObject *locals*/
        );
        Py_DECREF(globals);
        if (unlikely(!frame))
            return NULL;
        if (unlikely(self->gi_frame)) {
            Py_DECREF(frame);
            frame = self->gi_frame;
        } else {
            self->gi_frame = frame;
        }
    }
    Py_INCREF(frame);
    return frame;
}
#endif
static PyObject *
__Pyx__Coroutine_get_frame(__pyx_CoroutineObject *self)
{
#if !CYTHON_COMPILING_IN_LIMITED_API
    PyObject *frame;
    __Pyx_BEGIN_CRITICAL_SECTION((PyObject*)self);
    frame = __Pyx__Coroutine_get_frame_locked(self);
    __Pyx_END_CRITICAL_SECTION();
    return frame;
#else
    CYTHON_UNUSED_VAR(self);
    Py_RETURN_NONE;
#endif
}
static PyObject *
__Pyx_Coroutine_get_frame(__pyx_CoroutineObject *self, void *context) {
    CYTHON_UNUSED_VAR(context);
    PyObject *frame = self->gi_frame;
    if (frame)
        return __Pyx_NewRef(frame);
    return __Pyx__Coroutine_get_frame(self);
}
static __pyx_CoroutineObject *__Pyx__Coroutine_New(
            PyTypeObject* type, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure,
            PyObject *name, PyObject *qualname, PyObject *module_name) {
    __pyx_CoroutineObject *gen = PyObject_GC_New(__pyx_CoroutineObject, type);
    if (unlikely(!gen))
        return NULL;
    return __Pyx__Coroutine_NewInit(gen, body, code, closure, name, qualname, module_name);
}
static __pyx_CoroutineObject *__Pyx__Coroutine_NewInit(
            __pyx_CoroutineObject *gen, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure,
            PyObject *name, PyObject *qualname, PyObject *module_name) {
    gen->body = body;
    gen->closure = closure;
    Py_XINCREF(closure);
    gen->is_running = 0;
    gen->resume_label = 0;
    gen->classobj = NULL;
    gen->yieldfrom = NULL;
    gen->yieldfrom_am_send = NULL;
    #if PY_VERSION_HEX >= 0x030B00a4 && !CYTHON_COMPILING_IN_LIMITED_API
    gen->gi_exc_state.exc_value = NULL;
    #else
    gen->gi_exc_state.exc_type = NULL;
    gen->gi_exc_state.exc_value = NULL;
    gen->gi_exc_state.exc_traceback = NULL;
    #endif
#if CYTHON_USE_EXC_INFO_STACK
    gen->gi_exc_state.previous_item = NULL;
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    gen->gi_weakreflist = NULL;
#endif
    Py_XINCREF(qualname);
    gen->gi_qualname = qualname;
    Py_XINCREF(name);
    gen->gi_name = name;
    Py_XINCREF(module_name);
    gen->gi_modulename = module_name;
    Py_XINCREF(code);
    gen->gi_code = code;
    gen->gi_frame = NULL;
    PyObject_GC_Track(gen);
    return gen;
}
static char __Pyx_Coroutine_test_and_set_is_running(__pyx_CoroutineObject *gen) {
    char result;
    __Pyx_BEGIN_CRITICAL_SECTION((PyObject*)gen);
    result = gen->is_running;
    gen->is_running = 1;
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static void __Pyx_Coroutine_unset_is_running(__pyx_CoroutineObject *gen) {
    __Pyx_BEGIN_CRITICAL_SECTION((PyObject*)gen);
    assert(gen->is_running);
    gen->is_running = 0;
    __Pyx_END_CRITICAL_SECTION();
}
static char __Pyx_Coroutine_get_is_running(__pyx_CoroutineObject *gen) {
    char result;
    __Pyx_BEGIN_CRITICAL_SECTION((PyObject*)gen);
    result = gen->is_running;
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static PyObject *__Pyx_Coroutine_get_is_running_getter(PyObject *gen, void *closure) {
    CYTHON_UNUSED_VAR(closure);
    char result = __Pyx_Coroutine_get_is_running((__pyx_CoroutineObject*)gen);
    if (result) Py_RETURN_TRUE;
    else Py_RETURN_FALSE;
}
#if __PYX_HAS_PY_AM_SEND == 2
static void __Pyx_SetBackportTypeAmSend(PyTypeObject *type, __Pyx_PyAsyncMethodsStruct *static_amsend_methods, __Pyx_pyiter_sendfunc am_send) {
    Py_ssize_t ptr_offset = (char*)(type->tp_as_async) - (char*)type;
    if (ptr_offset < 0 || ptr_offset > type->tp_basicsize) {
        return;
    }
    memcpy((void*)static_amsend_methods, (void*)(type->tp_as_async), sizeof(*type->tp_as_async));
    static_amsend_methods->am_send = am_send;
    type->tp_as_async = __Pyx_SlotTpAsAsync(static_amsend_methods);
}
#endif
static PyObject *__Pyx_Coroutine_fail_reduce_ex(PyObject *self, PyObject *arg) {
    CYTHON_UNUSED_VAR(arg);
    __Pyx_TypeName self_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE((PyObject*)self));
    PyErr_Format(PyExc_TypeError, "cannot pickle '" __Pyx_FMT_TYPENAME "' object",
                         self_type_name);
    __Pyx_DECREF_TypeName(self_type_name);
    return NULL;
}

/* Generator */
static PyMethodDef __pyx_Generator_methods[] = {
    {"send", (PyCFunction) __Pyx_Coroutine_Send, METH_O,
     PyDoc_STR("send(arg) -> send 'arg' into generator,\nreturn next yielded value or raise StopIteration.")},
    {"throw", (PyCFunction) __Pyx_Coroutine_Throw, METH_VARARGS,
     PyDoc_STR("throw(typ[,val[,tb]]) -> raise exception in generator,\nreturn next yielded value or raise StopIteration.")},
    {"close", (PyCFunction) __Pyx_Coroutine_Close_Method, METH_NOARGS,
     PyDoc_STR("close() -> raise GeneratorExit inside generator.")},
    {"__reduce_ex__", (PyCFunction) __Pyx_Coroutine_fail_reduce_ex, METH_O, 0},
    {"__reduce__", (PyCFunction) __Pyx_Coroutine_fail_reduce_ex, METH_NOARGS, 0},
    {0, 0, 0, 0}
};
static PyMemberDef __pyx_Generator_memberlist[] = {
    {"gi_yieldfrom", T_OBJECT, offsetof(__pyx_CoroutineObject, yieldfrom), READONLY,
     PyDoc_STR("object being iterated by 'yield from', or None")},
    {"gi_code", T_OBJECT, offsetof(__pyx_CoroutineObject, gi_code), READONLY, NULL},
    {"__module__", T_OBJECT, offsetof(__pyx_CoroutineObject, gi_modulename), 0, 0},
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    {"__weaklistoffset__", T_PYSSIZET, offsetof(__pyx_CoroutineObject, gi_weakreflist), READONLY, 0},
#endif
    {0, 0, 0, 0, 0}
};
static PyGetSetDef __pyx_Generator_getsets[] = {
    {"__name__", (getter)__Pyx_Coroutine_get_name, (setter)__Pyx_Coroutine_set_name,
     PyDoc_STR("name of the generator"), 0},
    {"__qualname__", (getter)__Pyx_Coroutine_get_qualname, (setter)__Pyx_Coroutine_set_qualname,
     PyDoc_STR("qualified name of the generator"), 0},
    {"gi_frame", (getter)__Pyx_Coroutine_get_frame, NULL,
     PyDoc_STR("Frame of the generator"), 0},
    {"gi_running", __Pyx_Coroutine_get_is_running_getter, NULL, NULL, NULL},
    {0, 0, 0, 0, 0}
};
static PyType_Slot __pyx_GeneratorType_slots[] = {
    {Py_tp_dealloc, (void *)__Pyx_Coroutine_dealloc},
    {Py_tp_traverse, (void *)__Pyx_Coroutine_traverse},
    {Py_tp_iter, (void *)PyObject_SelfIter},
    {Py_tp_iternext, (void *)__Pyx_Generator_Next},
    {Py_tp_methods, (void *)__pyx_Generator_methods},
    {Py_tp_members, (void *)__pyx_Generator_memberlist},
    {Py_tp_getset, (void *)__pyx_Generator_getsets},
    {Py_tp_getattro, (void *) PyObject_GenericGetAttr},
#if CYTHON_USE_TP_FINALIZE
    {Py_tp_finalize, (void *)__Pyx_Coroutine_del},
#endif
#if __PYX_HAS_PY_AM_SEND == 1
    {Py_am_send, (void *)__Pyx_Coroutine_AmSend},
#endif
    {0, 0},
};
static PyType_Spec __pyx_GeneratorType_spec = {
    __PYX_TYPE_MODULE_PREFIX "generator",
    sizeof(__pyx_CoroutineObject),
    0,
#if PY_VERSION_HEX >= 0x030C0000 && !CYTHON_COMPILING_IN_LIMITED_API
    Py_TPFLAGS_MANAGED_WEAKREF |
#endif
    Py_TPFLAGS_IMMUTABLETYPE | Py_TPFLAGS_DISALLOW_INSTANTIATION |
    Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | __Pyx_TPFLAGS_HAVE_AM_SEND,
    __pyx_GeneratorType_slots
};
#if __PYX_HAS_PY_AM_SEND == 2
static __Pyx_PyAsyncMethodsStruct __pyx_Generator_as_async;
#endif
static int __pyx_Generator_init(PyObject *module) {
    __pyx_mstatetype *mstate = __Pyx_PyModule_GetState(module);
    mstate->__pyx_GeneratorType = __Pyx_FetchCommonTypeFromSpec(
        mstate->__pyx_CommonTypesMetaclassType, module, &__pyx_GeneratorType_spec, NULL);
    if (unlikely(!mstate->__pyx_GeneratorType)) {
        return -1;
    }
#if __PYX_HAS_PY_AM_SEND == 2
    __Pyx_SetBackportTypeAmSend(mstate->__pyx_GeneratorType, &__pyx_Generator_as_async, &__Pyx_Coroutine_AmSend);
#endif
    return 0;
}
static PyObject *__Pyx_Generator_GetInlinedResult(PyObject *self) {
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject*) self;
    PyObject *retval = NULL;
    if (unlikely(__Pyx_Coroutine_test_and_set_is_running(gen))) {
        return __Pyx_Coroutine_AlreadyRunningError(gen);
    }
    __Pyx_PySendResult result = __Pyx_Coroutine_SendEx(gen, Py_None, &retval, 0);
    __Pyx_Coroutine_unset_is_running(gen);
    (void) result;
    assert (result == PYGEN_RETURN || result == PYGEN_ERROR);
    assert ((result == PYGEN_RETURN && retval != NULL) || (result == PYGEN_ERROR && retval == NULL));
    return retval;
}

/* CheckBinaryVersion */
static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer) {
    const unsigned long MAJOR_MINOR = 0xFFFF0000UL;
    if ((rt_version & MAJOR_MINOR) == (ct_version & MAJOR_MINOR))
        return 0;
    if (likely(allow_newer && (rt_version & MAJOR_MINOR) > (ct_version & MAJOR_MINOR)))
        return 1;
    {
        char message[200];
        PyOS_snprintf(message, sizeof(message),
                      "compile time Python version %d.%d "
                      "of module '%.100s' "
                      "%s "
                      "runtime version %d.%d",
                       (int) (ct_version >> 24), (int) ((ct_version >> 16) & 0xFF),
                       __Pyx_MODULE_NAME,
                       (allow_newer) ? "was newer than" : "does not match",
                       (int) (rt_version >> 24), (int) ((rt_version >> 16) & 0xFF)
       );
        return PyErr_WarnEx(NULL, message, 1);
    }
}

/* NewCodeObj */
#if CYTHON_COMPILING_IN_LIMITED_API
    static PyObject* __Pyx__PyCode_New(int a, int p, int k, int l, int s, int f,
                                       PyObject *code, PyObject *c, PyObject* n, PyObject *v,
                                       PyObject *fv, PyObject *cell, PyObject* fn,
                                       PyObject *name, int fline, PyObject *lnos) {
        PyObject *exception_table = NULL;
        PyObject *types_module=NULL, *code_type=NULL, *result=NULL;
        #if __PYX_LIMITED_VERSION_HEX < 0x030b0000
        PyObject *version_info;
        PyObject *py_minor_version = NULL;
        #endif
        long minor_version = 0;
        PyObject *type, *value, *traceback;
        PyErr_Fetch(&type, &value, &traceback);
        #if __PYX_LIMITED_VERSION_HEX >= 0x030b0000
        minor_version = 11;
        #else
        if (!(version_info = PySys_GetObject("version_info"))) goto end;
        if (!(py_minor_version = PySequence_GetItem(version_info, 1))) goto end;
        minor_version = PyLong_AsLong(py_minor_version);
        Py_DECREF(py_minor_version);
        if (minor_version == -1 && PyErr_Occurred()) goto end;
        #endif
        if (!(types_module = PyImport_ImportModule("types"))) goto end;
        if (!(code_type = PyObject_GetAttrString(types_module, "CodeType"))) goto end;
        if (minor_version <= 7) {
            (void)p;
            result = PyObject_CallFunction(code_type, "iiiiiOOOOOOiOOO", a, k, l, s, f, code,
                          c, n, v, fn, name, fline, lnos, fv, cell);
        } else if (minor_version <= 10) {
            result = PyObject_CallFunction(code_type, "iiiiiiOOOOOOiOOO", a,p, k, l, s, f, code,
                          c, n, v, fn, name, fline, lnos, fv, cell);
        } else {
            if (!(exception_table = PyBytes_FromStringAndSize(NULL, 0))) goto end;
            result = PyObject_CallFunction(code_type, "iiiiiiOOOOOOOiOOOO", a,p, k, l, s, f, code,
                          c, n, v, fn, name, name, fline, lnos, exception_table, fv, cell);
        }
    end:
        Py_XDECREF(code_type);
        Py_XDECREF(exception_table);
        Py_XDECREF(types_module);
        if (type) {
            PyErr_Restore(type, value, traceback);
        }
        return result;
    }
#elif PY_VERSION_HEX >= 0x030B0000
  static PyCodeObject* __Pyx__PyCode_New(int a, int p, int k, int l, int s, int f,
                                         PyObject *code, PyObject *c, PyObject* n, PyObject *v,
                                         PyObject *fv, PyObject *cell, PyObject* fn,
                                         PyObject *name, int fline, PyObject *lnos) {
    PyCodeObject *result;
    result =
      #if PY_VERSION_HEX >= 0x030C0000
        PyUnstable_Code_NewWithPosOnlyArgs
      #else
        PyCode_NewWithPosOnlyArgs
      #endif
        (a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, name, fline, lnos, __pyx_mstate_global->__pyx_empty_bytes);
    #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030c00A1
    if (likely(result))
        result->_co_firsttraceable = 0;
    #endif
    return result;
  }
#elif !CYTHON_COMPILING_IN_PYPY
  #define __Pyx__PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_NewWithPosOnlyArgs(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#else
  #define __Pyx__PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#endif
static PyObject* __Pyx_PyCode_New(
        const __Pyx_PyCode_New_function_description descr,
        PyObject * const *varnames,
        PyObject *filename,
        PyObject *funcname,
        PyObject *line_table,
        PyObject *tuple_dedup_map
) {
    PyObject *code_obj = NULL, *varnames_tuple_dedup = NULL, *code_bytes = NULL;
    Py_ssize_t var_count = (Py_ssize_t) descr.nlocals;
    PyObject *varnames_tuple = PyTuple_New(var_count);
    if (unlikely(!varnames_tuple)) return NULL;
    for (Py_ssize_t i=0; i < var_count; i++) {
        Py_INCREF(varnames[i]);
        if (__Pyx_PyTuple_SET_ITEM(varnames_tuple, i, varnames[i]) != (0)) goto done;
    }
    #if CYTHON_COMPILING_IN_LIMITED_API
    varnames_tuple_dedup = PyDict_GetItem(tuple_dedup_map, varnames_tuple);
    if (!varnames_tuple_dedup) {
        if (unlikely(PyDict_SetItem(tuple_dedup_map, varnames_tuple, varnames_tuple) < 0)) goto done;
        varnames_tuple_dedup = varnames_tuple;
    }
    #else
    varnames_tuple_dedup = PyDict_SetDefault(tuple_dedup_map, varnames_tuple, varnames_tuple);
    if (unlikely(!varnames_tuple_dedup)) goto done;
    #endif
    #if CYTHON_AVOID_BORROWED_REFS
    Py_INCREF(varnames_tuple_dedup);
    #endif
    if (__PYX_LIMITED_VERSION_HEX >= (0x030b0000) && line_table != NULL && !CYTHON_COMPILING_IN_GRAAL) {
        Py_ssize_t line_table_length = __Pyx_PyBytes_GET_SIZE(line_table);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(line_table_length == -1)) goto done;
        #endif
        Py_ssize_t code_len = (line_table_length * 2 + 4) & ~3LL;
        code_bytes = PyBytes_FromStringAndSize(NULL, code_len);
        if (unlikely(!code_bytes)) goto done;
        char* c_code_bytes = PyBytes_AsString(code_bytes);
        if (unlikely(!c_code_bytes)) goto done;
        memset(c_code_bytes, 0, (size_t) code_len);
    }
    code_obj = (PyObject*) __Pyx__PyCode_New(
        (int) descr.argcount,
        (int) descr.num_posonly_args,
        (int) descr.num_kwonly_args,
        (int) descr.nlocals,
        0,
        (int) descr.flags,
        code_bytes ? code_bytes : __pyx_mstate_global->__pyx_empty_bytes,
        __pyx_mstate_global->__pyx_empty_tuple,
        __pyx_mstate_global->__pyx_empty_tuple,
        varnames_tuple_dedup,
        __pyx_mstate_global->__pyx_empty_tuple,
        __pyx_mstate_global->__pyx_empty_tuple,
        filename,
        funcname,
        (int) descr.first_line,
        (__PYX_LIMITED_VERSION_HEX >= (0x030b0000) && line_table) ? line_table : __pyx_mstate_global->__pyx_empty_bytes
    );
done:
    Py_XDECREF(code_bytes);
    #if CYTHON_AVOID_BORROWED_REFS
    Py_XDECREF(varnames_tuple_dedup);
    #endif
    Py_DECREF(varnames_tuple);
    return code_obj;
}

/* DecompressString */
static PyObject *__Pyx_DecompressString(const char *s, Py_ssize_t length, int algo) {
    PyObject *module = NULL, *decompress, *compressed_bytes, *decompressed;
    const char* module_name = algo == 3 ? "compression.zstd" : algo == 2 ? "bz2" : "zlib";
    PyObject *methodname = PyUnicode_FromString("decompress");
    if (unlikely(!methodname)) return NULL;
    #if __PYX_LIMITED_VERSION_HEX >= 0x030e0000
    if (algo == 3) {
        PyObject *fromlist = Py_BuildValue("[O]", methodname);
        if (unlikely(!fromlist)) goto bad;
        module = PyImport_ImportModuleLevel("compression.zstd", NULL, NULL, fromlist, 0);
        Py_DECREF(fromlist);
    } else
    #endif
        module = PyImport_ImportModule(module_name);
    if (unlikely(!module)) goto import_failed;
    decompress = PyObject_GetAttr(module, methodname);
    if (unlikely(!decompress)) goto import_failed;
    {
        #ifdef __cplusplus
            char *memview_bytes = const_cast<char*>(s);
        #else
            #if defined(__clang__)
              #pragma clang diagnostic push
              #pragma clang diagnostic ignored "-Wcast-qual"
            #elif !defined(__INTEL_COMPILER) && defined(__GNUC__)
              #pragma GCC diagnostic push
              #pragma GCC diagnostic ignored "-Wcast-qual"
            #endif
            char *memview_bytes = (char*) s;
            #if defined(__clang__)
              #pragma clang diagnostic pop
            #elif !defined(__INTEL_COMPILER) && defined(__GNUC__)
              #pragma GCC diagnostic pop
            #endif
        #endif
        #if CYTHON_COMPILING_IN_LIMITED_API && !defined(PyBUF_READ)
        int memview_flags = 0x100;
        #else
        int memview_flags = PyBUF_READ;
        #endif
        compressed_bytes = PyMemoryView_FromMemory(memview_bytes, length, memview_flags);
    }
    if (unlikely(!compressed_bytes)) {
        Py_DECREF(decompress);
        goto bad;
    }
    decompressed = PyObject_CallFunctionObjArgs(decompress, compressed_bytes, NULL);
    Py_DECREF(compressed_bytes);
    Py_DECREF(decompress);
    Py_DECREF(module);
    Py_DECREF(methodname);
    return decompressed;
import_failed:
    PyErr_Format(PyExc_ImportError,
        "Failed to import '%.20s.decompress' - cannot initialise module strings. "
        "String compression was configured with the C macro 'CYTHON_COMPRESS_STRINGS=%d'.",
        module_name, algo);
bad:
    Py_XDECREF(module);
    Py_DECREF(methodname);
    return NULL;
}

#include <string.h>
static CYTHON_INLINE Py_ssize_t __Pyx_ssize_strlen(const char *s) {
    size_t len = strlen(s);
    if (unlikely(len > (size_t) PY_SSIZE_T_MAX)) {
        PyErr_SetString(PyExc_OverflowError, "byte string is too long");
        return -1;
    }
    return (Py_ssize_t) len;
}
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
    Py_ssize_t len = __Pyx_ssize_strlen(c_str);
    if (unlikely(len < 0)) return NULL;
    return __Pyx_PyUnicode_FromStringAndSize(c_str, len);
}
static CYTHON_INLINE PyObject* __Pyx_PyByteArray_FromString(const char* c_str) {
    Py_ssize_t len = __Pyx_ssize_strlen(c_str);
    if (unlikely(len < 0)) return NULL;
    return PyByteArray_FromStringAndSize(c_str, len);
}
static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject* o) {
    Py_ssize_t ignore;
    return __Pyx_PyObject_AsStringAndSize(o, &ignore);
}
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_UTF8
static CYTHON_INLINE const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
    if (unlikely(__Pyx_PyUnicode_READY(o) == -1)) return NULL;
#if CYTHON_COMPILING_IN_LIMITED_API
    {
        const char* result;
        Py_ssize_t unicode_length;
        CYTHON_MAYBE_UNUSED_VAR(unicode_length); // only for __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
        #if __PYX_LIMITED_VERSION_HEX < 0x030A0000
        if (unlikely(PyArg_Parse(o, "s#", &result, length) < 0)) return NULL;
        #else
        result = PyUnicode_AsUTF8AndSize(o, length);
        #endif
        #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
        unicode_length = PyUnicode_GetLength(o);
        if (unlikely(unicode_length < 0)) return NULL;
        if (unlikely(unicode_length != *length)) {
            PyUnicode_AsASCIIString(o);
            return NULL;
        }
        #endif
        return result;
    }
#else
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
    if (likely(PyUnicode_IS_ASCII(o))) {
        *length = PyUnicode_GET_LENGTH(o);
        return PyUnicode_AsUTF8(o);
    } else {
        PyUnicode_AsASCIIString(o);
        return NULL;
    }
#else
    return PyUnicode_AsUTF8AndSize(o, length);
#endif
#endif
}
#endif
static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_UTF8
    if (PyUnicode_Check(o)) {
        return __Pyx_PyUnicode_AsStringAndSize(o, length);
    } else
#endif
    if (PyByteArray_Check(o)) {
#if (CYTHON_ASSUME_SAFE_SIZE && CYTHON_ASSUME_SAFE_MACROS) || (CYTHON_COMPILING_IN_PYPY && (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE)))
        *length = PyByteArray_GET_SIZE(o);
        return PyByteArray_AS_STRING(o);
#else
        *length = PyByteArray_Size(o);
        if (*length == -1) return NULL;
        return PyByteArray_AsString(o);
#endif
    } else
    {
        char* result;
        int r = PyBytes_AsStringAndSize(o, &result, length);
        if (unlikely(r < 0)) {
            return NULL;
        } else {
            return result;
        }
    }
}
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
   int is_true = x == Py_True;
   if (is_true | (x == Py_False) | (x == Py_None)) return is_true;
   else return PyObject_IsTrue(x);
}
static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject* x) {
    int retval;
    if (unlikely(!x)) return -1;
    retval = __Pyx_PyObject_IsTrue(x);
    Py_DECREF(x);
    return retval;
}
static PyObject* __Pyx_PyNumber_LongWrongResultType(PyObject* result) {
    __Pyx_TypeName result_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(result));
    if (PyLong_Check(result)) {
        if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1,
                "__int__ returned non-int (type " __Pyx_FMT_TYPENAME ").  "
                "The ability to return an instance of a strict subclass of int is deprecated, "
                "and may be removed in a future version of Python.",
                result_type_name)) {
            __Pyx_DECREF_TypeName(result_type_name);
            Py_DECREF(result);
            return NULL;
        }
        __Pyx_DECREF_TypeName(result_type_name);
        return result;
    }
    PyErr_Format(PyExc_TypeError,
                 "__int__ returned non-int (type " __Pyx_FMT_TYPENAME ")",
                 result_type_name);
    __Pyx_DECREF_TypeName(result_type_name);
    Py_DECREF(result);
    return NULL;
}
static CYTHON_INLINE PyObject* __Pyx_PyNumber_Long(PyObject* x) {
#if CYTHON_USE_TYPE_SLOTS
  PyNumberMethods *m;
#endif
  PyObject *res = NULL;
  if (likely(PyLong_Check(x)))
      return __Pyx_NewRef(x);
#if CYTHON_USE_TYPE_SLOTS
  m = Py_TYPE(x)->tp_as_number;
  if (likely(m && m->nb_int)) {
      res = m->nb_int(x);
  }
#else
  if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) {
      res = PyNumber_Long(x);
  }
#endif
  if (likely(res)) {
      if (unlikely(!PyLong_CheckExact(res))) {
          return __Pyx_PyNumber_LongWrongResultType(res);
      }
  }
  else if (!PyErr_Occurred()) {
      PyErr_SetString(PyExc_TypeError,
                      "an integer is required");
  }
  return res;
}
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
  Py_ssize_t ival;
  PyObject *x;
  if (likely(PyLong_CheckExact(b))) {
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(__Pyx_PyLong_IsCompact(b))) {
        return __Pyx_PyLong_CompactValue(b);
    } else {
      const digit* digits = __Pyx_PyLong_Digits(b);
      const Py_ssize_t size = __Pyx_PyLong_SignedDigitCount(b);
      switch (size) {
         case 2:
           if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -2:
           if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case 3:
           if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -3:
           if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case 4:
           if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -4:
           if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
      }
    }
    #endif
    return PyLong_AsSsize_t(b);
  }
  x = PyNumber_Index(b);
  if (!x) return -1;
  ival = PyLong_AsSsize_t(x);
  Py_DECREF(x);
  return ival;
}
static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject* o) {
  if (sizeof(Py_hash_t) == sizeof(Py_ssize_t)) {
    return (Py_hash_t) __Pyx_PyIndex_AsSsize_t(o);
  } else {
    Py_ssize_t ival;
    PyObject *x;
    x = PyNumber_Index(o);
    if (!x) return -1;
    ival = PyLong_AsLong(x);
    Py_DECREF(x);
    return ival;
  }
}
static CYTHON_INLINE PyObject *__Pyx_Owned_Py_None(int b) {
    CYTHON_UNUSED_VAR(b);
    return __Pyx_NewRef(Py_None);
}
static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b) {
  return __Pyx_NewRef(b ? Py_True: Py_False);
}
static CYTHON_INLINE PyObject * __Pyx_PyLong_FromSize_t(size_t ival) {
    return PyLong_FromSize_t(ival);
}


/* MultiPhaseInitModuleState */
#if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
#ifndef CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
#if (CYTHON_COMPILING_IN_LIMITED_API || PY_VERSION_HEX >= 0x030C0000)
  #define CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE 1
#else
  #define CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE 0
#endif
#endif
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE && !CYTHON_ATOMICS
#error "Module state with PEP489 requires atomics. Currently that's one of\
 C11, C++11, gcc atomic intrinsics or MSVC atomic intrinsics"
#endif
#if !CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
#define __Pyx_ModuleStateLookup_Lock()
#define __Pyx_ModuleStateLookup_Unlock()
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d0000
static PyMutex __Pyx_ModuleStateLookup_mutex = {0};
#define __Pyx_ModuleStateLookup_Lock() PyMutex_Lock(&__Pyx_ModuleStateLookup_mutex)
#define __Pyx_ModuleStateLookup_Unlock() PyMutex_Unlock(&__Pyx_ModuleStateLookup_mutex)
#elif defined(__cplusplus) && __cplusplus >= 201103L
#include <mutex>
static std::mutex __Pyx_ModuleStateLookup_mutex;
#define __Pyx_ModuleStateLookup_Lock() __Pyx_ModuleStateLookup_mutex.lock()
#define __Pyx_ModuleStateLookup_Unlock() __Pyx_ModuleStateLookup_mutex.unlock()
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ > 201112L) && !defined(__STDC_NO_THREADS__)
#include <threads.h>
static mtx_t __Pyx_ModuleStateLookup_mutex;
static once_flag __Pyx_ModuleStateLookup_mutex_once_flag = ONCE_FLAG_INIT;
static void __Pyx_ModuleStateLookup_initialize_mutex(void) {
    mtx_init(&__Pyx_ModuleStateLookup_mutex, mtx_plain);
}
#define __Pyx_ModuleStateLookup_Lock()\
  call_once(&__Pyx_ModuleStateLookup_mutex_once_flag, __Pyx_ModuleStateLookup_initialize_mutex);\
  mtx_lock(&__Pyx_ModuleStateLookup_mutex)
#define __Pyx_ModuleStateLookup_Unlock() mtx_unlock(&__Pyx_ModuleStateLookup_mutex)
#elif defined(HAVE_PTHREAD_H)
#include <pthread.h>
static pthread_mutex_t __Pyx_ModuleStateLookup_mutex = PTHREAD_MUTEX_INITIALIZER;
#define __Pyx_ModuleStateLookup_Lock() pthread_mutex_lock(&__Pyx_ModuleStateLookup_mutex)
#define __Pyx_ModuleStateLookup_Unlock() pthread_mutex_unlock(&__Pyx_ModuleStateLookup_mutex)
#elif defined(_WIN32)
#include <Windows.h>  // synchapi.h on its own doesn't work
static SRWLOCK __Pyx_ModuleStateLookup_mutex = SRWLOCK_INIT;
#define __Pyx_ModuleStateLookup_Lock() AcquireSRWLockExclusive(&__Pyx_ModuleStateLookup_mutex)
#define __Pyx_ModuleStateLookup_Unlock() ReleaseSRWLockExclusive(&__Pyx_ModuleStateLookup_mutex)
#else
#error "No suitable lock available for CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE.\
 Requires C standard >= C11, or C++ standard >= C++11,\
 or pthreads, or the Windows 32 API, or Python >= 3.13."
#endif
typedef struct {
    int64_t id;
    PyObject *module;
} __Pyx_InterpreterIdAndModule;
typedef struct {
    char interpreter_id_as_index;
    Py_ssize_t count;
    Py_ssize_t allocated;
    __Pyx_InterpreterIdAndModule table[1];
} __Pyx_ModuleStateLookupData;
#define __PYX_MODULE_STATE_LOOKUP_SMALL_SIZE 32
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
static __pyx_atomic_int_type __Pyx_ModuleStateLookup_read_counter = 0;
#endif
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
static __pyx_atomic_ptr_type __Pyx_ModuleStateLookup_data = 0;
#else
static __Pyx_ModuleStateLookupData* __Pyx_ModuleStateLookup_data = NULL;
#endif
static __Pyx_InterpreterIdAndModule* __Pyx_State_FindModuleStateLookupTableLowerBound(
        __Pyx_InterpreterIdAndModule* table,
        Py_ssize_t count,
        int64_t interpreterId) {
    __Pyx_InterpreterIdAndModule* begin = table;
    __Pyx_InterpreterIdAndModule* end = begin + count;
    if (begin->id == interpreterId) {
        return begin;
    }
    while ((end - begin) > __PYX_MODULE_STATE_LOOKUP_SMALL_SIZE) {
        __Pyx_InterpreterIdAndModule* halfway = begin + (end - begin)/2;
        if (halfway->id == interpreterId) {
            return halfway;
        }
        if (halfway->id < interpreterId) {
            begin = halfway;
        } else {
            end = halfway;
        }
    }
    for (; begin < end; ++begin) {
        if (begin->id >= interpreterId) return begin;
    }
    return begin;
}
static PyObject *__Pyx_State_FindModule(CYTHON_UNUSED void* dummy) {
    int64_t interpreter_id = PyInterpreterState_GetID(__Pyx_PyInterpreterState_Get());
    if (interpreter_id == -1) return NULL;
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __Pyx_ModuleStateLookupData* data = (__Pyx_ModuleStateLookupData*)__pyx_atomic_pointer_load_relaxed(&__Pyx_ModuleStateLookup_data);
    {
        __pyx_atomic_incr_acq_rel(&__Pyx_ModuleStateLookup_read_counter);
        if (likely(data)) {
            __Pyx_ModuleStateLookupData* new_data = (__Pyx_ModuleStateLookupData*)__pyx_atomic_pointer_load_acquire(&__Pyx_ModuleStateLookup_data);
            if (likely(data == new_data)) {
                goto read_finished;
            }
        }
        __pyx_atomic_decr_acq_rel(&__Pyx_ModuleStateLookup_read_counter);
        __Pyx_ModuleStateLookup_Lock();
        __pyx_atomic_incr_relaxed(&__Pyx_ModuleStateLookup_read_counter);
        data = (__Pyx_ModuleStateLookupData*)__pyx_atomic_pointer_load_relaxed(&__Pyx_ModuleStateLookup_data);
        __Pyx_ModuleStateLookup_Unlock();
    }
  read_finished:;
#else
    __Pyx_ModuleStateLookupData* data = __Pyx_ModuleStateLookup_data;
#endif
    __Pyx_InterpreterIdAndModule* found = NULL;
    if (unlikely(!data)) goto end;
    if (data->interpreter_id_as_index) {
        if (interpreter_id < data->count) {
            found = data->table+interpreter_id;
        }
    } else {
        found = __Pyx_State_FindModuleStateLookupTableLowerBound(
            data->table, data->count, interpreter_id);
    }
  end:
    {
        PyObject *result=NULL;
        if (found && found->id == interpreter_id) {
            result = found->module;
        }
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
        __pyx_atomic_decr_acq_rel(&__Pyx_ModuleStateLookup_read_counter);
#endif
        return result;
    }
}
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
static void __Pyx_ModuleStateLookup_wait_until_no_readers(void) {
    while (__pyx_atomic_load(&__Pyx_ModuleStateLookup_read_counter) != 0);
}
#else
#define __Pyx_ModuleStateLookup_wait_until_no_readers()
#endif
static int __Pyx_State_AddModuleInterpIdAsIndex(__Pyx_ModuleStateLookupData **old_data, PyObject* module, int64_t interpreter_id) {
    Py_ssize_t to_allocate = (*old_data)->allocated;
    while (to_allocate <= interpreter_id) {
        if (to_allocate == 0) to_allocate = 1;
        else to_allocate *= 2;
    }
    __Pyx_ModuleStateLookupData *new_data = *old_data;
    if (to_allocate != (*old_data)->allocated) {
         new_data = (__Pyx_ModuleStateLookupData *)realloc(
            *old_data,
            sizeof(__Pyx_ModuleStateLookupData)+(to_allocate-1)*sizeof(__Pyx_InterpreterIdAndModule));
        if (!new_data) {
            PyErr_NoMemory();
            return -1;
        }
        for (Py_ssize_t i = new_data->allocated; i < to_allocate; ++i) {
            new_data->table[i].id = i;
            new_data->table[i].module = NULL;
        }
        new_data->allocated = to_allocate;
    }
    new_data->table[interpreter_id].module = module;
    if (new_data->count < interpreter_id+1) {
        new_data->count = interpreter_id+1;
    }
    *old_data = new_data;
    return 0;
}
static void __Pyx_State_ConvertFromInterpIdAsIndex(__Pyx_ModuleStateLookupData *data) {
    __Pyx_InterpreterIdAndModule *read = data->table;
    __Pyx_InterpreterIdAndModule *write = data->table;
    __Pyx_InterpreterIdAndModule *end = read + data->count;
    for (; read<end; ++read) {
        if (read->module) {
            write->id = read->id;
            write->module = read->module;
            ++write;
        }
    }
    data->count = write - data->table;
    for (; write<end; ++write) {
        write->id = 0;
        write->module = NULL;
    }
    data->interpreter_id_as_index = 0;
}
static int __Pyx_State_AddModule(PyObject* module, CYTHON_UNUSED void* dummy) {
    int64_t interpreter_id = PyInterpreterState_GetID(__Pyx_PyInterpreterState_Get());
    if (interpreter_id == -1) return -1;
    int result = 0;
    __Pyx_ModuleStateLookup_Lock();
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __Pyx_ModuleStateLookupData *old_data = (__Pyx_ModuleStateLookupData *)
            __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, 0);
#else
    __Pyx_ModuleStateLookupData *old_data = __Pyx_ModuleStateLookup_data;
#endif
    __Pyx_ModuleStateLookupData *new_data = old_data;
    if (!new_data) {
        new_data = (__Pyx_ModuleStateLookupData *)calloc(1, sizeof(__Pyx_ModuleStateLookupData));
        if (!new_data) {
            result = -1;
            PyErr_NoMemory();
            goto end;
        }
        new_data->allocated = 1;
        new_data->interpreter_id_as_index = 1;
    }
    __Pyx_ModuleStateLookup_wait_until_no_readers();
    if (new_data->interpreter_id_as_index) {
        if (interpreter_id < __PYX_MODULE_STATE_LOOKUP_SMALL_SIZE) {
            result = __Pyx_State_AddModuleInterpIdAsIndex(&new_data, module, interpreter_id);
            goto end;
        }
        __Pyx_State_ConvertFromInterpIdAsIndex(new_data);
    }
    {
        Py_ssize_t insert_at = 0;
        {
            __Pyx_InterpreterIdAndModule* lower_bound = __Pyx_State_FindModuleStateLookupTableLowerBound(
                new_data->table, new_data->count, interpreter_id);
            assert(lower_bound);
            insert_at = lower_bound - new_data->table;
            if (unlikely(insert_at < new_data->count && lower_bound->id == interpreter_id)) {
                lower_bound->module = module;
                goto end;  // already in table, nothing more to do
            }
        }
        if (new_data->count+1 >= new_data->allocated) {
            Py_ssize_t to_allocate = (new_data->count+1)*2;
            new_data =
                (__Pyx_ModuleStateLookupData*)realloc(
                    new_data,
                    sizeof(__Pyx_ModuleStateLookupData) +
                    (to_allocate-1)*sizeof(__Pyx_InterpreterIdAndModule));
            if (!new_data) {
                result = -1;
                new_data = old_data;
                PyErr_NoMemory();
                goto end;
            }
            new_data->allocated = to_allocate;
        }
        ++new_data->count;
        int64_t last_id = interpreter_id;
        PyObject *last_module = module;
        for (Py_ssize_t i=insert_at; i<new_data->count; ++i) {
            int64_t current_id = new_data->table[i].id;
            new_data->table[i].id = last_id;
            last_id = current_id;
            PyObject *current_module = new_data->table[i].module;
            new_data->table[i].module = last_module;
            last_module = current_module;
        }
    }
  end:
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, new_data);
#else
    __Pyx_ModuleStateLookup_data = new_data;
#endif
    __Pyx_ModuleStateLookup_Unlock();
    return result;
}
static int __Pyx_State_RemoveModule(CYTHON_UNUSED void* dummy) {
    int64_t interpreter_id = PyInterpreterState_GetID(__Pyx_PyInterpreterState_Get());
    if (interpreter_id == -1) return -1;
    __Pyx_ModuleStateLookup_Lock();
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __Pyx_ModuleStateLookupData *data = (__Pyx_ModuleStateLookupData *)
            __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, 0);
#else
    __Pyx_ModuleStateLookupData *data = __Pyx_ModuleStateLookup_data;
#endif
    if (data->interpreter_id_as_index) {
        if (interpreter_id < data->count) {
            data->table[interpreter_id].module = NULL;
        }
        goto done;
    }
    {
        __Pyx_ModuleStateLookup_wait_until_no_readers();
        __Pyx_InterpreterIdAndModule* lower_bound = __Pyx_State_FindModuleStateLookupTableLowerBound(
            data->table, data->count, interpreter_id);
        if (!lower_bound) goto done;
        if (lower_bound->id != interpreter_id) goto done;
        __Pyx_InterpreterIdAndModule *end = data->table+data->count;
        for (;lower_bound<end-1; ++lower_bound) {
            lower_bound->id = (lower_bound+1)->id;
            lower_bound->module = (lower_bound+1)->module;
        }
    }
    --data->count;
    if (data->count == 0) {
        free(data);
        data = NULL;
    }
  done:
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, data);
#else
    __Pyx_ModuleStateLookup_data = data;
#endif
    __Pyx_ModuleStateLookup_Unlock();
    return 0;
}
#endif

/* #### Code section: utility_code_pragmas_end ### */
#ifdef _MSC_VER
#pragma warning( pop )
#endif



/* #### Code section: end ### */
#endif /* Py_PYTHON_H */
