mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-17 22:12:38 +00:00
Update font pangram
This commit is contained in:
@@ -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}';")
|
html = html.Replace("--font-family;", $"font-family: '{fontFamilyName}';")
|
||||||
.Replace("--font-url;", cssUrl)
|
.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;
|
return html;
|
||||||
}
|
}
|
||||||
|
@@ -149,17 +149,17 @@
|
|||||||
abcdefghijklmnopqrstuvwxyz <br />
|
abcdefghijklmnopqrstuvwxyz <br />
|
||||||
ABCDEFGHIJKLMNOPQRSTUVWXYZ <br /> 0123456789.:,;()*!?'@#<>$%&^+-=~
|
ABCDEFGHIJKLMNOPQRSTUVWXYZ <br /> 0123456789.:,;()*!?'@#<>$%&^+-=~
|
||||||
</p>
|
</p>
|
||||||
<p class="s10" style="font-size: 10px;">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;">The quick brown fox jumps over the lazy dog. 0123456789</p>
|
<p class="s11" style="font-size: 11px;">{{pangram}}</p>
|
||||||
<p class="s12" style="font-size: 12px;">The quick brown fox jumps over the lazy dog. 0123456789</p>
|
<p class="s12" style="font-size: 12px;">{{pangram}}</p>
|
||||||
<p class="s14" style="font-size: 14px;">The quick brown fox jumps over the lazy dog. 0123456789</p>
|
<p class="s14" style="font-size: 14px;">{{pangram}}</p>
|
||||||
<p class="s18" style="font-size: 18px;">The quick brown fox jumps over the lazy dog. 0123456789</p>
|
<p class="s18" style="font-size: 18px;">{{pangram}}</p>
|
||||||
<p class="s24" style="font-size: 24px;">The quick brown fox jumps over the lazy dog. 0123456789</p>
|
<p class="s24" style="font-size: 24px;">{{pangram}}</p>
|
||||||
<p class="s30" style="font-size: 30px;">The quick brown fox jumps over the lazy dog. 0123456789</p>
|
<p class="s30" style="font-size: 30px;">{{pangram}}</p>
|
||||||
<p class="s36" style="font-size: 36px;">The quick brown fox jumps over the lazy dog. 0123456789</p>
|
<p class="s36" style="font-size: 36px;">{{pangram}}</p>
|
||||||
<p class="s48" style="font-size: 48px;">The quick brown fox jumps over the lazy dog. 0123456789</p>
|
<p class="s48" style="font-size: 48px;">{{pangram}}</p>
|
||||||
<p class="s60" style="font-size: 60px;">The quick brown fox jumps over the lazy dog. 0123456789</p>
|
<p class="s60" style="font-size: 60px;">{{pangram}}</p>
|
||||||
<p class="s72" style="font-size: 72px;">The quick brown fox jumps over the lazy dog. 0123456789</p>
|
<p class="s72" style="font-size: 72px;">{{pangram}}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -4,4 +4,10 @@
|
|||||||
<en>
|
<en>
|
||||||
<SAMPLE_TEXT>The quick brown fox jumped over the lazy dog. 1234567890</SAMPLE_TEXT>
|
<SAMPLE_TEXT>The quick brown fox jumped over the lazy dog. 1234567890</SAMPLE_TEXT>
|
||||||
</en>
|
</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>
|
</Translations>
|
||||||
|
Reference in New Issue
Block a user