| | |
| | | |
| | | public class FontUtility |
| | | { |
| | | // T044: Fonts must be pre-loaded via StartupEssential preload config |
| | | // (location: "Assets/ResourcesOut/BuiltIn/Font") |
| | | // T044: Fonts loaded via FontUtility.InitAsync or UILoader.LoadFont |
| | | // Actual location: Assets/ResourcesOut/Font/ |
| | | |
| | | public static Font preferred |
| | | { |
| | | get { return ResourceCacheManager.Instance.GetCached<Font>("Assets/ResourcesOut/BuiltIn/Font/GameFont1.ttf"); } |
| | | get { return ResourceCacheManager.Instance.GetCached<Font>("Assets/ResourcesOut/Font/GameFont1.ttf"); } |
| | | } |
| | | |
| | | public static Font secondary |
| | | { |
| | | get { return ResourceCacheManager.Instance.GetCached<Font>("Assets/ResourcesOut/BuiltIn/Font/GameFont2.ttf"); } |
| | | get { return ResourceCacheManager.Instance.GetCached<Font>("Assets/ResourcesOut/Font/GameFont2.ttf"); } |
| | | } |
| | | |
| | | /// <summary> |