【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 @   yassine  阅读(889)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 地球OL攻略 —— 某应届生求职总结
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 提示词工程——AI应用必不可少的技术
· .NET周刊【3月第1期 2025-03-02】
点击右上角即可分享
微信分享提示