Commits

pygame  committed 74fe0c4

unicode font fix

  • Participants
  • Parent commits e047f85

Comments (0)

Files changed (2)

 # BREAK = change breaks existing code
 # BUG	= fixed a bug that was (or could have been) crashing
 
+November 14, 2002
+	fix unicode bugs in Font (thanks, hcyun)
+
 November 12, 2002
 	AdvanceMAME Scale2X scaling now in transform.scale2x()
 
 	if(PyUnicode_Check(text))
 	{
 		PyObject* strob = PyEval_CallMethod(text, "encode", "(s)", "utf-8");
-		char *string = PyString_AsString(text);
+		char *string = PyString_AsString(strob);
 
 		if(aa)
 		{
 	if(PyUnicode_Check(text))
 	{
 		PyObject* strob = PyEval_CallMethod(text, "encode", "(s)", "utf-8");
-		char *string = PyString_AsString(text);
+		char *string = PyString_AsString(strob);
 
 		TTF_SizeUTF8(font, string, &w, &h);