【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 布局可能会被翻转,但应该可以手动或通过创建一些编辑器工具将此数据转换为字体资源格式。
分类:
Unity Debug
标签:
UnityDebug
, TextMeshPro
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 地球OL攻略 —— 某应届生求职总结
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 提示词工程——AI应用必不可少的技术
· .NET周刊【3月第1期 2025-03-02】