refactor: Update Unity to 2022.3.62
This commit is contained in:
@@ -12,7 +12,7 @@ namespace Cryville.Common.Font {
|
||||
public class FallbackListFontMatcher : FontMatcher {
|
||||
readonly LanguageMatching _matcher;
|
||||
static readonly string UltimateFallbackScript = "zzzz";
|
||||
public Dictionary<string, List<string>> MapScriptToTypefaces = new Dictionary<string, List<string>>();
|
||||
public Dictionary<string, List<string>> MapScriptToTypefaces = new();
|
||||
public static Dictionary<string, List<string>> GetDefaultWindowsFallbackMap() {
|
||||
var map = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
|
||||
FillKeysWithScripts(map, () => new List<string>());
|
||||
@@ -333,8 +333,7 @@ namespace Cryville.Common.Font {
|
||||
yield return typeface1;
|
||||
}
|
||||
if (distinctFamily) continue;
|
||||
IReadOnlyCollection<Typeface> typefaces2;
|
||||
if (Manager.MapNameToTypefaces.TryGetValue(candidate, out typefaces2)) {
|
||||
if (Manager.MapNameToTypefaces.TryGetValue(candidate, out IReadOnlyCollection<Typeface> typefaces2)) {
|
||||
foreach (var typeface in typefaces2) {
|
||||
if (typeface1 == typeface) continue;
|
||||
yield return typeface;
|
||||
|
Reference in New Issue
Block a user