split stringBuffer into various methods, change default font to courier so as to support ios