浏览代码

don't print warning if character is control category

/main
fzhangtj 6 年前
当前提交
f3de354c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      Runtime/ui/painting/txt/font_manager.cs

2
Runtime/ui/painting/txt/font_manager.cs


{
CharacterInfo info;
bool success = font.GetCharacterInfo(ch, out info, fontSize, fontStyle);
if (!success) {
if (!success && !char.IsControl(ch)) {
Debug.LogWarning($"character info not found from the given font: character '{ch}' (code{(int)ch}) font: ${font.name}");
}
return info;

正在加载...
取消
保存