This commit is contained in:
2025-06-09 00:11:54 +08:00
parent d8c6eb0bd6
commit c773a6bb8d
11207 changed files with 48929 additions and 304 deletions

View File

@@ -31,7 +31,7 @@ namespace NBC
public void AddLanguage(SystemLanguage language)
{
var configDic = Lan.Inst.GetLanguageFontConfig(LanguageConst.languageMap[language]);
string fontLocation = "Assets/Resources/Fonts/";
string fontLocation = "Fonts/";//"Assets/Resources/Fonts/";
//字体使用前需要先注册
foreach (var config in configDic.Values)
{
@@ -39,6 +39,7 @@ namespace NBC
{
DynamicFont font = new DynamicFont();
font.name = config.Name;
var nmsl = Resources.Load<Font>(fontLocation + config.RelativePath);
font.nativeFont = Resources.Load<Font>(fontLocation + config.RelativePath);
FontManager.RegisterFont(font);
}