@@ -597,7 +597,7 @@ FT2Font::image_as_str(const Py::Tuple & args) {
597597 _VERBOSE (" FT2Font::image_as_str" );
598598 args.verify_length (0 );
599599
600- return Py::Object (
600+ return Py::asObject (
601601 Py_BuildValue (" lls#" ,
602602 image.width ,
603603 image.height ,
@@ -850,8 +850,8 @@ FT2Font::get_name_index(const Py::Tuple & args) {
850850 args.verify_length (1 );
851851 std::string glyphname = Py::String (args[0 ]);
852852
853- return Py::Object ( Py:: Long ((long )
854- FT_Get_Name_Index (face, (FT_String *) glyphname.c_str () )));
853+ return Py::Long ((long )
854+ FT_Get_Name_Index (face, (FT_String *) glyphname.c_str ()));
855855}
856856
857857char FT2Font::get_ps_font_info__doc__[] =
@@ -916,7 +916,7 @@ FT2Font::get_sfnt_table(const Py::Tuple & args) {
916916 char head_dict[] = " {s:(h,h), s:(h,h), s:l, s:l, s:i, s:i,"
917917 " s:(l,l), s:(l,l), s:h, s:h, s:h, s:h, s:i, s:i, s:h, s:h, s:h}" ;
918918 TT_Header *t = (TT_Header *)table;
919- return Py::Object (Py_BuildValue (head_dict,
919+ return Py::asObject (Py_BuildValue (head_dict,
920920 " version" ,
921921 FIXED_MAJOR (t->Table_Version ),
922922 FIXED_MINOR (t->Table_Version ),
@@ -944,7 +944,7 @@ FT2Font::get_sfnt_table(const Py::Tuple & args) {
944944 char maxp_dict[] = " {s:(h,h), s:i, s:i, s:i, s:i, s:i, s:i,"
945945 " s:i, s:i, s:i, s:i, s:i, s:i, s:i, s:i}" ;
946946 TT_MaxProfile *t = (TT_MaxProfile *)table;
947- return Py::Object (Py_BuildValue (maxp_dict,
947+ return Py::asObject (Py_BuildValue (maxp_dict,
948948 " version" ,
949949 FIXED_MAJOR (t->version ),
950950 FIXED_MINOR (t->version ),
@@ -975,7 +975,7 @@ FT2Font::get_sfnt_table(const Py::Tuple & args) {
975975 " s:h, s:h, s:h, s:h, s:h, s:h, s:h, s:h, s:s#, s:(llll),"
976976 " s:s#, s:h, s:h, s:h}" ;
977977 TT_OS2 *t = (TT_OS2 *)table;
978- return Py::Object (Py_BuildValue (os_2_dict,
978+ return Py::asObject (Py_BuildValue (os_2_dict,
979979 " version" , (unsigned )t->version ,
980980 " xAvgCharWidth" , t->xAvgCharWidth ,
981981 " usWeightClass" , (unsigned )t->usWeightClass ,
@@ -1008,7 +1008,7 @@ FT2Font::get_sfnt_table(const Py::Tuple & args) {
10081008 char hhea_dict[] = " {s:(h,h), s:h, s:h, s:h, s:i, s:h, s:h, s:h,"
10091009 " s:h, s:h, s:h, s:h, s:i}" ;
10101010 TT_HoriHeader *t = (TT_HoriHeader *)table;
1011- return Py::Object (Py_BuildValue (hhea_dict,
1011+ return Py::asObject (Py_BuildValue (hhea_dict,
10121012 " version" ,
10131013 FIXED_MAJOR (t->Version ),
10141014 FIXED_MINOR (t->Version ),
@@ -1031,7 +1031,7 @@ FT2Font::get_sfnt_table(const Py::Tuple & args) {
10311031 char vhea_dict[] = " {s:(h,h), s:h, s:h, s:h, s:i, s:h, s:h, s:h,"
10321032 " s:h, s:h, s:h, s:h, s:i}" ;
10331033 TT_VertHeader *t = (TT_VertHeader *)table;
1034- return Py::Object (Py_BuildValue (vhea_dict,
1034+ return Py::asObject (Py_BuildValue (vhea_dict,
10351035 " version" ,
10361036 FIXED_MAJOR (t->Version ),
10371037 FIXED_MINOR (t->Version ),
0 commit comments