Update font pangram
Some checks failed
MSBuild / build (push) Has been cancelled
MSBuild / publish (push) Has been cancelled

This commit is contained in:
ema
2025-05-29 18:48:24 +08:00
parent 2fb23a94bf
commit 833222507b
4 changed files with 61 additions and 50 deletions

View File

@@ -132,9 +132,14 @@ public class Plugin : IViewer
}
}
// https://en.wikipedia.org/wiki/Pangram
string translationFile = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "Translations.config");
string pangram = TranslationHelper.Get("SAMPLE_TEXT", translationFile);
html = html.Replace("--font-family;", $"font-family: '{fontFamilyName}';")
.Replace("--font-url;", cssUrl)
.Replace("{{h1}}", fontFamilyName ?? fileName);
.Replace("{{h1}}", fontFamilyName ?? fileName)
.Replace("{{pangram}}", pangram ?? "The quick brown fox jumps over the lazy dog. 0123456789");
return html;
}