针对泰语调整
This commit is contained in:
parent
dd47afbfb0
commit
fecad6fb58
@ -244,27 +244,13 @@ namespace BFEditor.Resource
|
||||
}
|
||||
}
|
||||
|
||||
static private void GetThaiWords(List<string> luaFolderPaths, out string words)
|
||||
static private void GetThaiWords(List<string> luaFolderPaths, out uint[] words)
|
||||
{
|
||||
words = string.Empty;
|
||||
//是否开发模式
|
||||
var text = LocalizationMenuTools.CatWordsFromLuaConfig(new List<string>(){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<string>();
|
||||
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
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user