var fontManager = SKFontManager.Default; var emojiTypeface = fontManager.MatchCharacter('时'); var textPaint = new SKPaint(){ Color = Option.TipTextColor.ToSKColor(), TextSize = fontSize * fontSizeScale, Typeface = emojiTypeface };
这样可以解决中文乱码
var fontManager = SKFontManager.Default; var emojiTypeface = fontManager.MatchCharacter('时'); var textPaint = new SKPaint(){ Color = Option.TipTextColor.ToSKColor(), TextSize = fontSize * fontSizeScale, Typeface = emojiTypeface };
这样可以解决中文乱码
转载于:https://www.cnblogs.com/IWings/p/9461845.html