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;
}

View File

@@ -149,17 +149,17 @@
abcdefghijklmnopqrstuvwxyz <br />
ABCDEFGHIJKLMNOPQRSTUVWXYZ <br /> 0123456789.:,;()*!?'@#<>$%&^+-=~
</p>
<p class="s10" style="font-size: 10px;">The quick brown fox jumps over the lazy dog. 0123456789</p>
<p class="s11" style="font-size: 11px;">The quick brown fox jumps over the lazy dog. 0123456789</p>
<p class="s12" style="font-size: 12px;">The quick brown fox jumps over the lazy dog. 0123456789</p>
<p class="s14" style="font-size: 14px;">The quick brown fox jumps over the lazy dog. 0123456789</p>
<p class="s18" style="font-size: 18px;">The quick brown fox jumps over the lazy dog. 0123456789</p>
<p class="s24" style="font-size: 24px;">The quick brown fox jumps over the lazy dog. 0123456789</p>
<p class="s30" style="font-size: 30px;">The quick brown fox jumps over the lazy dog. 0123456789</p>
<p class="s36" style="font-size: 36px;">The quick brown fox jumps over the lazy dog. 0123456789</p>
<p class="s48" style="font-size: 48px;">The quick brown fox jumps over the lazy dog. 0123456789</p>
<p class="s60" style="font-size: 60px;">The quick brown fox jumps over the lazy dog. 0123456789</p>
<p class="s72" style="font-size: 72px;">The quick brown fox jumps over the lazy dog. 0123456789</p>
<p class="s10" style="font-size: 10px;">{{pangram}}</p>
<p class="s11" style="font-size: 11px;">{{pangram}}</p>
<p class="s12" style="font-size: 12px;">{{pangram}}</p>
<p class="s14" style="font-size: 14px;">{{pangram}}</p>
<p class="s18" style="font-size: 18px;">{{pangram}}</p>
<p class="s24" style="font-size: 24px;">{{pangram}}</p>
<p class="s30" style="font-size: 30px;">{{pangram}}</p>
<p class="s36" style="font-size: 36px;">{{pangram}}</p>
<p class="s48" style="font-size: 48px;">{{pangram}}</p>
<p class="s60" style="font-size: 60px;">{{pangram}}</p>
<p class="s72" style="font-size: 72px;">{{pangram}}</p>
</div>
</div>
</div>

View File

@@ -4,4 +4,10 @@
<en>
<SAMPLE_TEXT>The quick brown fox jumped over the lazy dog. 1234567890</SAMPLE_TEXT>
</en>
<zh-CN>
<SAMPLE_TEXT>Innovation in China 中国智造,惠及全球 0123456789</SAMPLE_TEXT>
</zh-CN>
<zh-TW>
<SAMPLE_TEXT>Innovation in China 中國智造,惠及全球 0123456789</SAMPLE_TEXT>
</zh-TW>
</Translations>