http://www.xuanyusong.com/archives/3587
void Start () {
Font font = Resources.Load<Font>("FZCQJW");
int fontsize=35;
string text = "宣雨松MOMO";
font.RequestCharactersInTexture(text,fontsize,FontStyle.Normal);
CharacterInfo characterInfo;
float width=0f;
for(int i=0; i<text.Length;i++){
font.GetCharacterInfo(text[i],out characterInfo,fontsize);
//width+=characterInfo.width; unity5.x提示此方法将来要废弃
width+=characterInfo.advance;
}
Debug.Log("width : " + width);
}