diff --git a/Assets/Editor/BFResourceTools/FontTools/TMPTools.cs b/Assets/Editor/BFResourceTools/FontTools/TMPTools.cs index 94eb7c54a..ca7d8c589 100644 --- a/Assets/Editor/BFResourceTools/FontTools/TMPTools.cs +++ b/Assets/Editor/BFResourceTools/FontTools/TMPTools.cs @@ -244,27 +244,13 @@ namespace BFEditor.Resource } } - static private void GetThaiWords(List luaFolderPaths, out string words) + static private void GetThaiWords(List luaFolderPaths, out uint[] words) { - words = string.Empty; - //是否开发模式 - var text = LocalizationMenuTools.CatWordsFromLuaConfig(new List(){Application.dataPath + "/Developer/lua/app/config/strings/th"}); - text += "ิ"; - text += "ี"; - text += "ึ"; - text += "ื"; - text += "ำ"; - text += "ั"; - text += "ํ"; - - text += "่"; - text += "้"; - text += "๊"; - text += "๋"; - foreach (var w in text) + words = new uint[128]; + uint begin = 3584; //0E00-0E7F + for (uint i = 0; i < 128; i++) { - if (!words.Contains(w.ToString())) - words += w; + words[i] = begin + i; } } @@ -325,7 +311,7 @@ namespace BFEditor.Resource { var luaFolderPaths = new List(); luaFolderPaths.Add(Application.dataPath + "/Developer/lua/app/config/strings/th"); - var words = string.Empty; + var words = new uint[128];//泰语 GetThaiWords(luaFolderPaths, out words); Debug.Log("泰语字符集:" + words); fontAsset.TryAddCharacters(words); @@ -754,5 +740,4 @@ namespace BFEditor.Resource } - } diff --git a/Assets/prefabs/ui/common/hero_cell.prefab b/Assets/prefabs/ui/common/hero_cell.prefab index 8d9407c0e..3e0d5b68c 100644 --- a/Assets/prefabs/ui/common/hero_cell.prefab +++ b/Assets/prefabs/ui/common/hero_cell.prefab @@ -92,8 +92,8 @@ MonoBehaviour: m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_fontSize: 18 - m_fontSizeBase: 18 + m_fontSize: 16 + m_fontSizeBase: 16 m_fontWeight: 400 m_enableAutoSizing: 0 m_fontSizeMin: 18 diff --git a/Assets/prefabs/ui/mail/mail_ui.prefab b/Assets/prefabs/ui/mail/mail_ui.prefab index 37ed70214..7cd5fb486 100644 --- a/Assets/prefabs/ui/mail/mail_ui.prefab +++ b/Assets/prefabs/ui/mail/mail_ui.prefab @@ -1457,7 +1457,7 @@ MonoBehaviour: m_fontSizeBase: 22 m_fontWeight: 400 m_enableAutoSizing: 1 - m_fontSizeMin: 18 + m_fontSizeMin: 16 m_fontSizeMax: 22 m_fontStyle: 0 m_HorizontalAlignment: 1