Skip to content

Commit f63c4db

Browse files
[release/8.0] Adding simsun-extg font to support more character (#10922)
* Adding simsun-extg font to globalUserInterface * fixing the unicode range for SimSun-ExtG * fixing range for SimSun-ExtB --------- Co-authored-by: Kuldeep LNU <[email protected]>
1 parent 4189ac0 commit f63c4db

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

src/Microsoft.DotNet.Wpf/src/PresentationCore/Fonts/GlobalUserInterface.CompositeFont

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1745,9 +1745,13 @@
17451745
Target = "MingLiU-ExtB"
17461746
Scale = "1.0" />
17471747
<!-- Other -->
1748+
<!-- CHT/KO/All
1749+
MingLiU-ExtB is not in UapFonts so Yu Gothic is specified as a fallback.
1750+
YaHei, Simsun-ExtB, and MingLiU_HKSCS-ExtB are included at the end of this catch-all category because each includes some characters
1751+
not present in other fonts. -->
17481752
<FontFamilyMap
17491753
Unicode = "20000-2A6DF"
1750-
Target = "MingLiU-ExtB"
1754+
Target = "MingLiU-ExtB, Yu Gothic UI, Microsoft YaHei UI, Simsun-ExtB, MingLiU_HKSCS-ExtB"
17511755
Scale = "1.0" />
17521756

17531757
<!-- (unassigned) 2A6E0-2A6FF -->
@@ -1790,9 +1794,13 @@
17901794
Target = "MingLiU-ExtB"
17911795
Scale = "1.0" />
17921796
<!-- Other -->
1797+
<!-- All
1798+
MingLiU-ExtB is not in UapFonts so Yu Gothic is specified as a fallback.
1799+
YaHei, Simsun-ExtB, and MingLiU_HKSCS-ExtB are included at the end of this catch-all category because each includes some characters
1800+
not present in other fonts. -->
17931801
<FontFamilyMap
17941802
Unicode = "2A700-2B81F"
1795-
Target = "MingLiU-ExtB"
1803+
Target = "MingLiU-ExtB, Yu Gothic UI, Microsoft YaHei UI, Simsun-ExtB, MingLiU_HKSCS-ExtB"
17961804
Scale = "1.0" />
17971805

17981806
<!--
@@ -1801,10 +1809,13 @@
18011809
-->
18021810
<FontFamilyMap
18031811
Unicode = "2B820-2EBEF"
1804-
Target = "SimSun-ExtB"
1812+
Target = "SimSun-ExtB, Yu Gothic UI, Yu Gothic, Microsoft YaHei UI, Microsoft YaHei"
18051813
Scale = "1.0" />
18061814

1807-
<!-- (unassigned) 2EBF0-2F7FF -->
1815+
<FontFamilyMap
1816+
Unicode = "2EBF0-2EE5F"
1817+
Target = "SimSun-ExtG"
1818+
Scale = "1.0" />
18081819

18091820
<!-- CJK Compatibility Ideographs Supplement 2F800-2FA1F -->
18101821
<!-- Vista, Win7, Win8:
@@ -1845,12 +1856,15 @@
18451856
<!-- Other -->
18461857
<FontFamilyMap
18471858
Unicode = "2F800-2FA1F"
1848-
Target = "Yu Gothic UI, Meiryo UI, Meiryo, MingLiU-ExtB"
1859+
Target = "Yu Gothic UI, Meiryo UI, Meiryo, MingLiU-ExtB, MingLiU_MSCS-ExtB"
18491860
Scale = "1.0" />
18501861

18511862
<!-- (unassigned) 2FA20-2FFFF -->
18521863

1853-
<!-- (unassigned) 30000-3FFFF -->
1864+
<FontFamilyMap
1865+
Unicode = "30000-323AF"
1866+
Target = "SimSun-ExtG"
1867+
Scale = "1.0" />
18541868

18551869
<!-- Ignoring planes 4 to 16 -->
18561870

0 commit comments

Comments
 (0)