@@ -1548,7 +1548,7 @@ PYBIND11_MODULE(ft2font, m, py::mod_gil_not_used())
15481548 .value (" BOLD" , StyleFlags::BOLD )
15491549 .finalize ();
15501550
1551- py::class_ <FT2Image>(m, " FT2Image" , py::is_final (), py::buffer_protocol (),
1551+ py::classh <FT2Image>(m, " FT2Image" , py::is_final (), py::buffer_protocol (),
15521552 PyFT2Image__doc__)
15531553 .def (py::init (
15541554 [](double_or_<long > width, double_or_<long > height) {
@@ -1571,7 +1571,7 @@ PYBIND11_MODULE(ft2font, m, py::mod_gil_not_used())
15711571 return py::buffer_info (self.get_buffer (), shape, strides);
15721572 });
15731573
1574- py::class_ <PyGlyph>(m, " Glyph" , py::is_final (), PyGlyph__doc__)
1574+ py::classh <PyGlyph>(m, " Glyph" , py::is_final (), PyGlyph__doc__)
15751575 .def (py::init<>([]() -> PyGlyph {
15761576 // Glyph is not useful from Python, so mark it as not constructible.
15771577 throw std::runtime_error (" Glyph is not constructible" );
@@ -1595,7 +1595,7 @@ PYBIND11_MODULE(ft2font, m, py::mod_gil_not_used())
15951595 .def_property_readonly (" bbox" , &PyGlyph_get_bbox,
15961596 " The control box of the glyph." );
15971597
1598- py::class_ <PyFT2Font>(m, " FT2Font" , py::is_final (), py::buffer_protocol (),
1598+ py::classh <PyFT2Font>(m, " FT2Font" , py::is_final (), py::buffer_protocol (),
15991599 PyFT2Font__doc__)
16001600 .def (py::init (&PyFT2Font_init),
16011601 " filename" _a, " hinting_factor" _a=8 , py::kw_only (),
0 commit comments