unity6 FairyGUI下textmeshpro无法显示字体

unity6  使用textmeshpro(采用动态) 在使用ugui可以正常显示
但是在fairygui 无法显示字体
 
备注:用官方的示例测试一下,也是无法显示。
 
已邀请:
将TMFont.cs里的defaultFontWeight改成Regular试试
2025.3.23记,这里也需要改(希望谷主能抽空修复下)

override public void SetFormat(TextFormat format, float fontSizeScale)
 
 { _format = format; _formatVersion++; _fontSizeScale = fontSizeScale; float size = _format.size * fontSizeScale; if (_format.specialStyle == TextFormat.SpecialStyle.Subscript || _format.specialStyle == TextFormat.SpecialStyle.Superscript) size *= SupScale; _scale = size / _fontAsset.faceInfo.pointSize * _fontAsset.faceInfo.scale; _style = FontStyles.Normal; if (_format.bold) { _style |= FontStyles.Bold; 
 
// ProjectA Change Start
 // _fontWeight = FontWeight.Bold; 
_fontWeight = _defaultFontWeight;
 // ProjectA Change End
 
 _boldMultiplier = 1 + _fontAsset.boldSpacing * 0.01f; } else { _fontWeight = _defaultFontWeight; _boldMultiplier = 1.0f; } if (_format.italic) _style |= FontStyles.Italic; _format.FillVertexColors(vertexColors); }
 

showwho

赞同来自:

改成Regular,目前看起来是正常的了

要回复问题请先登录注册