static void OnBeginContainer(IMGUIContainer c) { if (!s_FontInitialized) { s_FontInitialized = true; LocalizedEditorFontManager.LocalizeEditorFonts(); } HandleUtility.BeginHandles(); }
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")); } }
static void OnBeginContainer(IMGUIContainer c) { LocalizedEditorFontManager.LocalizeEditorFonts(); HandleUtility.BeginHandles(); }