Fix numerous errors in text.go and font.go