蠢鸟之xamarin.forms下面加载字体之二

把字符存到后台。在代码中加载的时候,转义丢失了。字符不显示了。

int fontid= Convert.ToInt32(item.menuicon.Replace("\\x", "").Replace("\\n",""), 16);

span.Text = $"{char.ConvertFromUtf32(fontid)}\n";

 

posted @ 2022-06-17 16:49  forhells  阅读(41)  评论(0)    收藏  举报