OpenGL で UTF-8 文字列を表示できる Python モジュールはありますか?
pyFTGL を見つけましたが、次のコードを実行すると:
glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, [1, 1, 1, 1])
font = FTGL.PolygonFont("NeoTechStd-Medium.ttf")
font.FaceSize(8)
font.line_height
font.Render("Angle = ? \u03C4")
次のエラーが表示されます。
font.Render(u"Weld Head Angle = ? \u03C4")
Boost.Python.ArgumentError: Python argument types in
PolygonFont.Render(PolygonFont, unicode)
did not match C++ signature:
Render(FontWrapper<FTPolygonFont> {lvalue}, char const*, double)
Render(FontWrapper<FTPolygonFont> {lvalue}, char const*)
DEBUG:Helpers.opengl_pipe:Redrawing contents of GLArea.