28 lines
1.1 KiB
C#
28 lines
1.1 KiB
C#
using Cryville.Common.Font;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Cryville.Crtr {
|
|
internal static class PlatformConfig {
|
|
#if UNITY_STANDALONE_WIN
|
|
public static readonly string Name = "windows";
|
|
#elif UNITY_ANDROID
|
|
public static readonly string Name = "android";
|
|
#else
|
|
#error Unknown platform.
|
|
#endif
|
|
#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
|
|
public static readonly string FileProtocolPrefix = "file:///";
|
|
public static readonly FontManager FontManager = new FontManagerWindows();
|
|
public static Dictionary<string, List<string>> ScriptFontMap => FallbackListFontMatcher.GetDefaultWindowsFallbackMap();
|
|
public static readonly string TextShader = "TextMesh Pro/Shaders/TMP_SDF SSD";
|
|
#elif UNITY_ANDROID
|
|
public static readonly string FileProtocolPrefix = "file://";
|
|
public static readonly FontManager FontManager = new FontManagerAndroid();
|
|
public static Dictionary<string, List<string>> ScriptFontMap => FallbackListFontMatcher.GetDefaultAndroidFallbackMap();
|
|
public static readonly string TextShader = "TextMesh Pro/Shaders/TMP_SDF-Mobile SSD";
|
|
#else
|
|
#error Unknown platform.
|
|
#endif
|
|
}
|
|
}
|