File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -351,20 +351,7 @@ FT2Font::FT2Font(std::string facefile)
351351
352352 setattr (" postscript_name" , Py::String (ps_name));
353353 setattr (" num_faces" , Py::Int (face->num_faces ));
354-
355- std::cout << " trying to set string " << facefile << std::endl;
356- try {
357- Py::String s (face->family_name , " utf-16" , NULL );
358- }
359- catch (...) { // todo; catch specific exception and figure out unicode
360- std::cout << " oops, exception" << std::endl;
361- std::ostringstream s;
362- s << " Could not access facename for facefile " << facefile << " may be unicode limitation" << std::endl;
363- throw Py::RuntimeError (s.str ());
364- }
365- std::cout << " done trying to set string" << std::endl;
366-
367- setattr (" family_name" , Py::String (face->family_name );
354+ setattr (" family_name" , Py::String (face->family_name ));
368355 setattr (" style_name" , Py::String (face->style_name ));
369356 setattr (" face_flags" , Py::Int (face->face_flags ));
370357 setattr (" style_flags" , Py::Int (face->style_flags ));
You can’t perform that action at this time.
0 commit comments