Figured out why text.size() was zero when rendering text from a char*, fixed it.