【TMP】Font Asset Creator - Error Code [Invalid_File_Format] has occurred trying to load the [Tripfive-EX] font file. This typically results from the use of an incompatible or corrupted font file.

Unity报错具体内容:

Font Asset Creator - Error Code [Invalid_File_Format] has occurred trying to load the [<FontName>] font file. This typically results from the use of an incompatible or corrupted font file.
UnityEngine.Debug:Log (object,UnityEngine.Object)
TMPro.EditorUtilities.TMPro_FontAssetCreatorWindow:DrawControls () (at Library/PackageCache/com.unity.textmeshpro@3.0.6/Scripts/Editor/TMPro_FontAssetCreatorWindow.cs:696)
TMPro.EditorUtilities.TMPro_FontAssetCreatorWindow:OnGUI () (at Library/PackageCache/com.unity.textmeshpro@3.0.6/Scripts/Editor/TMPro_FontAssetCreatorWindow.cs:262)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

原因:
字体资源创建器使用.ttf、.ttc 和.otf的源字体文件。

目前不支持 .fontsettings 格式。此 .fontsettings 文件实质上包含字符和字形数据,其中包括图集纹理中这些字形的 UV 坐标。
.fontsettings 文件中的数据格式不同,其 UV 布局可能会被翻转,但应该可以手动或通过创建一些编辑器工具将此数据转换为字体资源格式。

posted @ 2022-03-24 18:57  yassine  阅读(773)  评论(0编辑  收藏  举报