Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1dbba28

Browse files
committed
releasing 0.73
svn path=/trunk/matplotlib/; revision=1087
1 parent 38c1c0b commit 1dbba28

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

src/ft2font.cpp

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff 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));

0 commit comments

Comments
 (0)