We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92ed201 commit be0c7e5Copy full SHA for be0c7e5
src/ft2font.cpp
@@ -1036,6 +1036,7 @@ FT2Font::get_glyph(const Py::Tuple & args){
1036
if ( (size_t)num >= gms.size())
1037
throw Py::ValueError("Glyph index out of range");
1038
1039
+ Py_INCREF(gm);
1040
return Py::asObject(gms[num]);
1041
}
1042
@@ -1093,6 +1094,7 @@ FT2Font::load_char(const Py::Tuple & args, const Py::Dict & kwargs) {
1093
1094
glyphs.push_back(thisGlyph);
1095
Glyph* gm = new Glyph(face, thisGlyph, num);
1096
gms.push_back(gm);
1097
1098
return Py::asObject( gm);
1099
1100
0 commit comments