Skip to content

Commit 8506531

Browse files
committed
JBR-1987 Korean/Thai characters not printed properly in annotation tooltip (e.g. spellchecker)
This changes the fonts JDK uses for font fallback on Windows. These used to be DokChampa (for Thai) and Batang/Gulim/Gulim (for Korean). Those fonts are not available by default on Windows 10, user needs to install supplementary font language packs to get them. Now the following fonts will be used - Tahoma (for Thai) and Malgun Gothic (for Korean). They are available by default on Windows 7, 8 and 10.
1 parent 7108e07 commit 8506531

File tree

1 file changed

+24
-27
lines changed

1 file changed

+24
-27
lines changed

make/data/fontconfig/windows.fontconfig.properties

Lines changed: 24 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -42,148 +42,148 @@ allfonts.myanmar=Myanmar Text
4242
allfonts.dingbats=Wingdings
4343
allfonts.symbol=Symbol
4444
allfonts.symbols=Segoe UI Symbol
45-
allfonts.thai=DokChampa
45+
allfonts.thai=Tahoma
4646
allfonts.georgian=Sylfaen
4747

4848
serif.plain.alphabetic=Times New Roman
4949
serif.plain.chinese-ms950=MingLiU
5050
serif.plain.chinese-ms950-extb=MingLiU-ExtB
5151
serif.plain.hebrew=David
5252
serif.plain.japanese=MS Mincho
53-
serif.plain.korean=Batang
53+
serif.plain.korean=Malgun Gothic
5454

5555
serif.bold.alphabetic=Times New Roman Bold
5656
serif.bold.chinese-ms950=PMingLiU
5757
serif.bold.chinese-ms950-extb=PMingLiU-ExtB
5858
serif.bold.hebrew=David Bold
5959
serif.bold.japanese=MS Mincho
60-
serif.bold.korean=Batang
60+
serif.bold.korean=Malgun Gothic
6161

6262
serif.italic.alphabetic=Times New Roman Italic
6363
serif.italic.chinese-ms950=PMingLiU
6464
serif.italic.chinese-ms950-extb=PMingLiU-ExtB
6565
serif.italic.hebrew=David
6666
serif.italic.japanese=MS Mincho
67-
serif.italic.korean=Batang
67+
serif.italic.korean=Malgun Gothic
6868

6969
serif.bolditalic.alphabetic=Times New Roman Bold Italic
7070
serif.bolditalic.chinese-ms950=PMingLiU
7171
serif.bolditalic.chinese-ms950-extb=PMingLiU-ExtB
7272
serif.bolditalic.hebrew=David Bold
7373
serif.bolditalic.japanese=MS Mincho
74-
serif.bolditalic.korean=Batang
74+
serif.bolditalic.korean=Malgun Gothic
7575

7676
sansserif.plain.alphabetic=Arial
7777
sansserif.plain.chinese-ms950=MingLiU
7878
sansserif.plain.chinese-ms950-extb=MingLiU-ExtB
7979
sansserif.plain.hebrew=David
8080
sansserif.plain.japanese=MS Gothic
81-
sansserif.plain.korean=Gulim
81+
sansserif.plain.korean=Malgun Gothic
8282

8383
sansserif.bold.alphabetic=Arial Bold
8484
sansserif.bold.chinese-ms950=PMingLiU
8585
sansserif.bold.chinese-ms950-extb=PMingLiU-ExtB
8686
sansserif.bold.hebrew=David Bold
8787
sansserif.bold.japanese=MS Gothic
88-
sansserif.bold.korean=Gulim
88+
sansserif.bold.korean=Malgun Gothic
8989

9090
sansserif.italic.alphabetic=Arial Italic
9191
sansserif.italic.chinese-ms950=PMingLiU
9292
sansserif.italic.chinese-ms950-extb=PMingLiU-ExtB
9393
sansserif.italic.hebrew=David
9494
sansserif.italic.japanese=MS Gothic
95-
sansserif.italic.korean=Gulim
95+
sansserif.italic.korean=Malgun Gothic
9696

9797
sansserif.bolditalic.alphabetic=Arial Bold Italic
9898
sansserif.bolditalic.chinese-ms950=PMingLiU
9999
sansserif.bolditalic.chinese-ms950-extb=PMingLiU-ExtB
100100
sansserif.bolditalic.hebrew=David Bold
101101
sansserif.bolditalic.japanese=MS Gothic
102-
sansserif.bolditalic.korean=Gulim
102+
sansserif.bolditalic.korean=Malgun Gothic
103103

104104
monospaced.plain.alphabetic=Courier New
105105
monospaced.plain.chinese-ms950=MingLiU
106106
monospaced.plain.chinese-ms950-extb=MingLiU-ExtB
107107
monospaced.plain.hebrew=Courier New
108108
monospaced.plain.japanese=MS Gothic
109-
monospaced.plain.korean=GulimChe
109+
monospaced.plain.korean=Malgun Gothic
110110

111111
monospaced.bold.alphabetic=Courier New Bold
112112
monospaced.bold.chinese-ms950=PMingLiU
113113
monospaced.bold.chinese-ms950-extb=PMingLiU-ExtB
114114
monospaced.bold.hebrew=Courier New Bold
115115
monospaced.bold.japanese=MS Gothic
116-
monospaced.bold.korean=GulimChe
116+
monospaced.bold.korean=Malgun Gothic
117117

118118
monospaced.italic.alphabetic=Courier New Italic
119119
monospaced.italic.chinese-ms950=PMingLiU
120120
monospaced.italic.chinese-ms950-extb=PMingLiU-ExtB
121121
monospaced.italic.hebrew=Courier New
122122
monospaced.italic.japanese=MS Gothic
123-
monospaced.italic.korean=GulimChe
123+
monospaced.italic.korean=Malgun Gothic
124124

125125
monospaced.bolditalic.alphabetic=Courier New Bold Italic
126126
monospaced.bolditalic.chinese-ms950=PMingLiU
127127
monospaced.bolditalic.chinese-ms950-extb=PMingLiU-ExtB
128128
monospaced.bolditalic.hebrew=Courier New Bold
129129
monospaced.bolditalic.japanese=MS Gothic
130-
monospaced.bolditalic.korean=GulimChe
130+
monospaced.bolditalic.korean=Malgun Gothic
131131

132132
dialog.plain.alphabetic=Arial
133133
dialog.plain.chinese-ms950=MingLiU
134134
dialog.plain.chinese-ms950-extb=MingLiU-ExtB
135135
dialog.plain.hebrew=David
136136
dialog.plain.japanese=MS Gothic
137-
dialog.plain.korean=Gulim
137+
dialog.plain.korean=Malgun Gothic
138138

139139
dialog.bold.alphabetic=Arial Bold
140140
dialog.bold.chinese-ms950=PMingLiU
141141
dialog.bold.chinese-ms950-extb=PMingLiU-ExtB
142142
dialog.bold.hebrew=David Bold
143143
dialog.bold.japanese=MS Gothic
144-
dialog.bold.korean=Gulim
144+
dialog.bold.korean=Malgun Gothic
145145

146146
dialog.italic.alphabetic=Arial Italic
147147
dialog.italic.chinese-ms950=PMingLiU
148148
dialog.italic.chinese-ms950-extb=PMingLiU-ExtB
149149
dialog.italic.hebrew=David
150150
dialog.italic.japanese=MS Gothic
151-
dialog.italic.korean=Gulim
151+
dialog.italic.korean=Malgun Gothic
152152

153153
dialog.bolditalic.alphabetic=Arial Bold Italic
154154
dialog.bolditalic.chinese-ms950=PMingLiU
155155
dialog.bolditalic.chinese-ms950-extb=PMingLiU-ExtB
156156
dialog.bolditalic.hebrew=David Bold
157157
dialog.bolditalic.japanese=MS Gothic
158-
dialog.bolditalic.korean=Gulim
158+
dialog.bolditalic.korean=Malgun Gothic
159159

160160
dialoginput.plain.alphabetic=Courier New
161161
dialoginput.plain.chinese-ms950=MingLiU
162162
dialoginput.plain.chinese-ms950-extb=MingLiU-ExtB
163163
dialoginput.plain.hebrew=David
164164
dialoginput.plain.japanese=MS Gothic
165-
dialoginput.plain.korean=Gulim
165+
dialoginput.plain.korean=Malgun Gothic
166166

167167
dialoginput.bold.alphabetic=Courier New Bold
168168
dialoginput.bold.chinese-ms950=PMingLiU
169169
dialoginput.bold.chinese-ms950-extb=PMingLiU-ExtB
170170
dialoginput.bold.hebrew=David Bold
171171
dialoginput.bold.japanese=MS Gothic
172-
dialoginput.bold.korean=Gulim
172+
dialoginput.bold.korean=Malgun Gothic
173173

174174
dialoginput.italic.alphabetic=Courier New Italic
175175
dialoginput.italic.chinese-ms950=PMingLiU
176176
dialoginput.italic.chinese-ms950-extb=PMingLiU-ExtB
177177
dialoginput.italic.hebrew=David
178178
dialoginput.italic.japanese=MS Gothic
179-
dialoginput.italic.korean=Gulim
179+
dialoginput.italic.korean=Malgun Gothic
180180

181181
dialoginput.bolditalic.alphabetic=Courier New Bold Italic
182182
dialoginput.bolditalic.chinese-ms950=PMingLiU
183183
dialoginput.bolditalic.chinese-ms950-extb=PMingLiU-ExtB
184184
dialoginput.bolditalic.hebrew=David Bold
185185
dialoginput.bolditalic.japanese=MS Gothic
186-
dialoginput.bolditalic.korean=Gulim
186+
dialoginput.bolditalic.korean=Malgun Gothic
187187

188188
# Search Sequences
189189

@@ -241,7 +241,7 @@ sequence.allfonts.x-windows-874=alphabetic,thai,dingbats,symbol
241241
sequence.fallback=symbols,\
242242
chinese-ms950,chinese-hkscs,chinese-ms936,chinese-gb18030,\
243243
japanese,korean,chinese-ms950-extb,chinese-ms936-extb,\
244-
georgian,kannada,myanmar
244+
georgian,kannada,thai,myanmar
245245

246246
# Exclusion Ranges
247247

@@ -291,11 +291,8 @@ filename.MS_PMincho=MSMINCHO.TTC
291291
filename.MS_Gothic=MSGOTHIC.TTC
292292
filename.MS_PGothic=MSGOTHIC.TTC
293293

294-
filename.Gulim=gulim.TTC
295-
filename.Batang=batang.TTC
296-
filename.GulimChe=gulim.TTC
297-
298-
filename.DokChampa=dokchamp.ttf
294+
filename.Malgun_Gothic=malgun.ttf
295+
filename.Tahoma=tahoma.ttf
299296
filename.Mangal=MANGAL.TTF
300297
filename.Tunga=TUNGA.TTF
301298
filename.Myanmar_Text=mmrtext.ttf

0 commit comments

Comments
 (0)