Update Cryville.Common.Logging.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
using Cryville.Common.Logging;
|
||||
using Cryville.Culture;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -311,7 +310,7 @@ namespace Cryville.Common.Font {
|
||||
bool flag = false;
|
||||
while (_matcher.Match(lang, supported, out var match, out var distance)) {
|
||||
if (distance > 40) break;
|
||||
Logger.Log("main", 0, "UI", "Matching fonts for language {0}, distance = {1}", match, distance);
|
||||
Shared.Logger.Log(0, "UI", "Matching fonts for language {0}, distance = {1}", match, distance);
|
||||
if (match.Script.Equals(UltimateFallbackScript, StringComparison.OrdinalIgnoreCase)) {
|
||||
flag = true;
|
||||
}
|
||||
@@ -322,7 +321,7 @@ namespace Cryville.Common.Font {
|
||||
supported.Remove(match);
|
||||
}
|
||||
if (flag) yield break;
|
||||
Logger.Log("main", 0, "UI", "Matching fallback fonts");
|
||||
Shared.Logger.Log(0, "UI", "Matching fallback fonts");
|
||||
foreach (var typeface in EnumerateTypefaces(MapScriptToTypefaces[UltimateFallbackScript], distinctFamily)) {
|
||||
yield return typeface;
|
||||
}
|
||||
|
Reference in New Issue
Block a user