コード例 #1
0
 static void OnBeginContainer(IMGUIContainer c)
 {
     if (!s_FontInitialized)
     {
         s_FontInitialized = true;
         LocalizedEditorFontManager.LocalizeEditorFonts();
     }
     HandleUtility.BeginHandles();
 }
コード例 #2
0
 public static void LocalizeEditorFonts()
 {
     LocalizedEditorFontManager.ReadFontSettings();
     LocalizedEditorFontManager.FontDictionary fontDictionary = LocalizedEditorFontManager.GetFontDictionary(LocalizationDatabase.currentEditorLanguage);
     if (fontDictionary != null)
     {
         LocalizedEditorFontManager.ReplaceFontForLocalization(fontDictionary, (Font)EditorGUIUtility.LoadRequired(EditorResourcesUtility.fontsPath + "Lucida Grande.ttf"));
         LocalizedEditorFontManager.ReplaceFontForLocalization(fontDictionary, (Font)EditorGUIUtility.LoadRequired(EditorResourcesUtility.fontsPath + "Lucida Grande Bold.ttf"));
         LocalizedEditorFontManager.ReplaceFontForLocalization(fontDictionary, (Font)EditorGUIUtility.LoadRequired(EditorResourcesUtility.fontsPath + "Lucida Grande Small.ttf"));
         LocalizedEditorFontManager.ReplaceFontForLocalization(fontDictionary, (Font)EditorGUIUtility.LoadRequired(EditorResourcesUtility.fontsPath + "Lucida Grande Small Bold.ttf"));
         LocalizedEditorFontManager.ReplaceFontForLocalization(fontDictionary, (Font)EditorGUIUtility.LoadRequired(EditorResourcesUtility.fontsPath + "Lucida Grande Big.ttf"));
     }
 }
コード例 #3
0
 static void OnBeginContainer(IMGUIContainer c)
 {
     LocalizedEditorFontManager.LocalizeEditorFonts();
     HandleUtility.BeginHandles();
 }