dx
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user