-
Notifications
You must be signed in to change notification settings - Fork 3
/
DeleteFonts.bat
335 lines (257 loc) · 12.5 KB
/
DeleteFonts.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
REM Rename Fonts directory
REM Debloat extra fonts
REM Windows 95/98 uses Microsoft Sans Serif
REM Windows 95/98/2000 use "Marlett" for GUI icons
REM Windows XP/7 uses Tahoma
REM Windows 10 uses Segoe UI
REM Windows 10 uses "Segoe MDL2 Assets" for GUI icons
REM Windows 11 uses Segoe UI Variable
REM Windows 11 uses "Segoe Fluent Icons" for GUI icons
REM You must have segoeui.ttf in the "C:\Windows\Fonts" directory, or Windows black screens at login
REM Manually delete the Segoe font family via entering the C:\Windows\Fonts directory to change Windows default font (Login screen and certain GUI fonts are unchangable)
REM Copying another font and naming it segoeui.ttf will not change the default Windows font, and results in black screen at login
REM Deleting fonts via entering the C:\Windows\Fonts directory does NOT delete the actual font files inside the directory, it only disables the font and leaves the files behind
REM Deleting fonts manually using cmd will delete the font, but still show up when entering the C:\Windows\Fonts directory
REM Both "%WINDIR%\Fonts" and "%USERPROFILE%\AppData\Local\Microsoft\Windows\Fonts" are linked together
REM Monospaced fonts (IBM Plex Mono) use up too much space in GUI and cut off text, NOT RECOMMENDED
REM Microsoft Sans Serif Regular (micross.ttf) is the new TrueType version
REM MS Sans Serif Regular (ssee1257.fon) is the old bitmap version
REM If segoeui.ttf is removed which creates black screen at login, boot into WinRE and open cmd prompt
REM notepad then open
REM you must copy and paste the Fonts folder using the mouse, using keyboard shortcuts will cause an out of memory error and not copy the files
REM if Windows.old\Fonts is not found, copy X:\Windows\Fonts into C:\Windows\Fonts (uses same font scheme as WinRE shell such as italic desktop icons) (missing lots of fonts like Arial)
copy "%WINDIR%\Fonts\micross.ttf" "%USERPROFILE%\Downloads"
copy "%WINDIR%\Fonts\arial.ttf" "%USERPROFILE%\Downloads"
REM Manual removal of fonts needed
REM Deleting certain fonts breaks games like CS1.6, find out what fonts games use
REM takeown /s %computername% /u %username% /f "%WINDIR%\Fonts"
REM icacls "%WINDIR%\Fonts" /grant:r %username%:F
REM ren "%WINDIR%\Fonts" "Fonts.bak"
REM rmdir /s /q "%WINDIR%\Fonts"
REM rmdir /s /q "%USERPROFILE%\AppData\Local\Microsoft\Windows\Fonts"
REM copy "%USERPROFILE%\Downloads\micross.ttf" "%WINDIR%\Fonts"
REM copy "%USERPROFILE%\Downloads\arial.ttf" "%WINDIR%\Fonts"
REM Remove bloat Segoe* fonts (except Segoe UI, segoeui.ttf is required or black screen occurs at login)
REM Windows 11 uses "Segoe Fluent Icons" for GUI icons
REM Segoe Fluent Icons Regular
del "%WINDIR%\Fonts\SegoeIcons.ttf"
REM Windows 10 uses "Segoe MDL2 Assets" for GUI icons
REM Segoe MDL2 Assets Regular
del "%WINDIR%\Fonts\segmdl2.ttf"
REM Segoe Print
del "%WINDIR%\Fonts\segoepr.ttf"
del "%WINDIR%\Fonts\segoeprb.ttf"
REM Segoe Script
del "%WINDIR%\Fonts\segoesc.ttf"
del "%WINDIR%\Fonts\segoescb.ttf"
REM Segoe UI (segoeui.ttf is required or black screen occurs at login)
REM del "%WINDIR%\Fonts\segoeui.ttf"
del "%WINDIR%\Fonts\segoeuib.ttf"
del "%WINDIR%\Fonts\segoeuii.ttf"
del "%WINDIR%\Fonts\segoeuil.ttf"
del "%WINDIR%\Fonts\segoeuisl.ttf"
del "%WINDIR%\Fonts\segoeuiz.ttf"
del "%WINDIR%\Fonts\seguibl.ttf"
del "%WINDIR%\Fonts\seguibli.ttf"
del "%WINDIR%\Fonts\seguili.ttf"
del "%WINDIR%\Fonts\seguisb.ttf"
del "%WINDIR%\Fonts\seguisbi.ttf"
del "%WINDIR%\Fonts\seguisli.ttf"
REM Segoe UI Emoji Regular
del "%WINDIR%\Fonts\seguiemj.ttf"
REM Segoe UI Historic Regular
del "%WINDIR%\Fonts\seguihis.ttf"
REM Segoe UI Symbol Regular
del "%WINDIR%\Fonts\seguisym.ttf"
REM Segoe UI Variable
del "%WINDIR%\Fonts\SegUIVar.ttf"
REM Remove bloat fonts
REM app fonts
del "%WINDIR%\Fonts\app*"
REM 8514oem Regular
del "%WINDIR%\Fonts\8514oemt.fon"
del "%WINDIR%\Fonts\c8514fix.fon"
del "%WINDIR%\Fonts\c8514oem.fon"
del "%WINDIR%\Fonts\c8514sys.fon"
del "%WINDIR%\Fonts\h8514fix.fon"
del "%WINDIR%\Fonts\h8514oem.fon"
del "%WINDIR%\Fonts\h8514sys.fon"
del "%WINDIR%\Fonts\j8514fix.fon"
del "%WINDIR%\Fonts\j8514oem.fon"
del "%WINDIR%\Fonts\j8514sys.fon"
del "%WINDIR%\Fonts\s8514fix.fon"
del "%WINDIR%\Fonts\s8514oem.fon"
del "%WINDIR%\Fonts\s8514sys.fon"
del "%WINDIR%\Fonts\85*"
REM cga fonts
del "%WINDIR%\Fonts\cga*"
REM ega fonts
del "%WINDIR%\Fonts\ega*"
REM vga fonts
del "%WINDIR%\Fonts\vga*"
REM svga fonts
del "%WINDIR%\Fonts\svgafix.fon"
del "%WINDIR%\Fonts\svgasys.fon"
REM jvga fonts
del "%WINDIR%\Fonts\jvgafix.fon"
del "%WINDIR%\Fonts\jvgasys.fon"
REM hvga fonts
del "%WINDIR%\Fonts\hvgafix.fon"
del "%WINDIR%\Fonts\hvgasys.fon"
REM Yu Gothic / Yu Gothic UI
del "%WINDIR%\Fonts\YuGothB.ttc"
del "%WINDIR%\Fonts\YuGothL.ttc"
del "%WINDIR%\Fonts\YuGothM.ttc"
del "%WINDIR%\Fonts\YuGothR.ttc"
REM Wingdings Regular
del "%WINDIR%\Fonts\wingding.ttf"
REM Webdings Regular
del "%WINDIR%\Fonts\webdings.ttf"
REM Terminal Greek 869 Bold
del "%WINDIR%\Fonts\dos869.fon"
REM Terminal Greek 737 (437G) Regular
del "%WINDIR%\Fonts\8514oemg.fon"
REM Symbol Regular
del "%WINDIR%\Fonts\symbol.ttf"
REM Sylfaen Regular
del "%WINDIR%\Fonts\sylfaen.ttf"
REM Sitka
del "%WINDIR%\Fonts\SitkaVF.ttf"
del "%WINDIR%\Fonts\SitkaVF-Italic.ttf"
REM SimSun-ExtB Regular
del "%WINDIR%\Fonts\simsunb.ttf"
REM SimSun Regular / NSimSun Regular
del "%WINDIR%\Fonts\simsun.ttc"
REM Script Regular
del "%WINDIR%\Fonts\script.fon"
REM MingLiU-ExtB Regular / MingLiU_HKSCS-ExtB Regular / MingLiU_MSCS-ExtB Regular / PMingLiU-ExtB Regular
del "%WINDIR%\Fonts\mingliub.ttc"
REM Palatino Linotype
del "%WINDIR%\Fonts\pala.ttf"
del "%WINDIR%\Fonts\palab.ttf"
del "%WINDIR%\Fonts\palabi.ttf"
del "%WINDIR%\Fonts\palai.ttf"
REM Nirmala UI / Nirmala Text
del "%WINDIR%\Fonts\Nirmala.ttc"
REM Myanmar Text
del "%WINDIR%\Fonts\mmrtext.ttf"
del "%WINDIR%\Fonts\mmrtextb.ttf"
REM MV Boli Reuglar
del "%WINDIR%\Fonts\mvboli.ttf"
REM Mongolian Baiti Regular
del "%WINDIR%\Fonts\monbaiti.ttf"
REM Modern Regular
del "%WINDIR%\Fonts\modern.fon"
REM Microsoft Yi Baiti Regular
del "%WINDIR%\Fonts\msyi.ttf"
REM Microsoft YaHei / Microsoft YaHei UI
del "%WINDIR%\Fonts\msyh.ttc"
del "%WINDIR%\Fonts\msyhbd.ttc"
del "%WINDIR%\Fonts\msyhl.ttc"
REM Microsoft Tai Le
del "%WINDIR%\Fonts\taile.ttf
del "%WINDIR%\Fonts\taileb.ttf"
REM Microsoft PhagsPa
del "%WINDIR%\Fonts\phagspa.ttf"
del "%WINDIR%\Fonts\phagspab.ttf"
REM Microsoft New Tai Lue
del "%WINDIR%\Fonts\ntailu.ttf"
del "%WINDIR%\Fonts\ntailub.ttf"
REM Microsoft JhengHei / Microsoft JhengHei UI
del "%WINDIR%\Fonts\msjh.ttc"
del "%WINDIR%\Fonts\msjhbd.ttc"
del "%WINDIR%\Fonts\msjhl.ttc"
REM Microsoft Himalaya Regular
del "%WINDIR%\Fonts\himalaya.ttf"
REM Malgun Gothic
del "%WINDIR%\Fonts\malgun.ttf"
del "%WINDIR%\Fonts\malgunbd.ttf"
del "%WINDIR%\Fonts\malgunsl.ttf"
REM Leelawadee UI
del "%WINDIR%\Fonts\LeelaUIb.ttf"
del "%WINDIR%\Fonts\LeelawUI.ttf"
del "%WINDIR%\Fonts\LeelUIsl.ttf"
REM Javanese Text Regular
del "%WINDIR%\Fonts\javatext.ttf"
REM Ink Free Regular
del "%WINDIR%\Fonts\Inkfree.ttf"
REM Impact Regular
del "%WINDIR%\Fonts\impact.ttf"
REM HoloLens MDL2 Assets Regular
del "%WINDIR%\Fonts\holomdl2.ttf"
REM Gadugi
del "%WINDIR%\Fonts\gadugi.ttf"
del "%WINDIR%\Fonts\gadugib.ttf"
REM Ebrima
del "%WINDIR%\Fonts\ebrima.ttf"
del "%WINDIR%\Fonts\ebrimabd.ttf"
REM Bahnschrift
del "%WINDIR%\Fonts\bahnschrift.ttf"
REM Calibri
del "%WINDIR%\Fonts\calibri.ttf"
del "%WINDIR%\Fonts\calibrib.ttf"
del "%WINDIR%\Fonts\calibrii.ttf"
del "%WINDIR%\Fonts\calibril.ttf"
del "%WINDIR%\Fonts\calibrili.ttf"
del "%WINDIR%\Fonts\calibriz.ttf"
REM Cambria / Cambria Math Regular
del "%WINDIR%\Fonts\cambria.ttf"
del "%WINDIR%\Fonts\cambriab.ttf"
del "%WINDIR%\Fonts\cambriai.ttf"
del "%WINDIR%\Fonts\cambriaz.ttf"
REM Candara
del "%WINDIR%\Fonts\Candara.ttf"
del "%WINDIR%\Fonts\Candarab.ttf"
del "%WINDIR%\Fonts\Candarai.ttf"
del "%WINDIR%\Fonts\Candaral.ttf"
del "%WINDIR%\Fonts\Candarali.ttf"
del "%WINDIR%\Fonts\Candaraz.ttf"
REM Constantia
del "%WINDIR%\Fonts\constan.ttf"
del "%WINDIR%\Fonts\constanb.ttf"
del "%WINDIR%\Fonts\constani.ttf"
del "%WINDIR%\Fonts\constanz.ttf"
REM Corbel
del "%WINDIR%\Fonts\corbel.ttf"
del "%WINDIR%\Fonts\corbelb.ttf"
del "%WINDIR%\Fonts\corbeli.ttf"
del "%WINDIR%\Fonts\corbell.ttf"
del "%WINDIR%\Fonts\corbelli.ttf"
del "%WINDIR%\Fonts\corbelz.ttf"
REM Gabriola Regular
del "%WINDIR%\Fonts\Gabriola.ttf"
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "Segoe UI (TrueType)" /t REG_SZ /d "" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "Segoe UI Black (TrueType)" /t REG_SZ /d "" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "Segoe UI Black Italic (TrueType)" /t REG_SZ /d "" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "Segoe UI Emoji (TrueType)" /t REG_SZ /d "" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "Segoe UI Historic (TrueType)" /t REG_SZ /d "" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "Segoe UI Light Italic (TrueType)" /t REG_SZ /d "" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "Segoe UI Semibold Italic (TrueType)" /t REG_SZ /d "" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "Segoe UI Semilight (TrueType)" /t REG_SZ /d "" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "Segoe UI Semilight Italic (TrueType)" /t REG_SZ /d "" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "Segoe UI Bold (TrueType)" /t REG_SZ /d "" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "Segoe UI Bold Italic (TrueType)" /t REG_SZ /d "" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "Segoe UI Italic (TrueType)" /t REG_SZ /d "" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "Segoe UI Light (TrueType)" /t REG_SZ /d "" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "Segoe UI Semibold (TrueType)" /t REG_SZ /d "" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "Segoe UI Symbol (TrueType)" /t REG_SZ /d "" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "Segoe UI Variable (TrueType)" /t REG_SZ /d "" /f
REM .FON fonts are not supported (MS Sans Serif Regular)
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes" /v "Segoe UI" /t REG_SZ /d "Microsoft Sans Serif Regular" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes" /v "Segoe UI Variable" /t REG_SZ /d "Microsoft Sans Serif Regular" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes" /v "Segoe UI Black" /t REG_SZ /d "Microsoft Sans Serif Regular" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes" /v "Segoe UI Black Italic" /t REG_SZ /d "Microsoft Sans Serif Regular" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes" /v "Segoe UI Emoji" /t REG_SZ /d "Microsoft Sans Serif Regular" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes" /v "Segoe UI Historic" /t REG_SZ /d "Microsoft Sans Serif Regular" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes" /v "Segoe UI Light Italic" /t REG_SZ /d "Microsoft Sans Serif Regular" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes" /v "Segoe UI Semibold Italic" /t REG_SZ /d "Microsoft Sans Serif Regular" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes" /v "Segoe UI Semilight" /t REG_SZ /d "Microsoft Sans Serif Regular" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes" /v "Segoe UI Semilight Italic" /t REG_SZ /d "Microsoft Sans Serif Regular" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes" /v "Segoe UI Bold" /t REG_SZ /d "Microsoft Sans Serif Regular" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes" /v "Segoe UI Bold Italic" /t REG_SZ /d "Microsoft Sans Serif Regular" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes" /v "Segoe UI Italic" /t REG_SZ /d "Microsoft Sans Serif Regular" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes" /v "Segoe UI Light" /t REG_SZ /d "Microsoft Sans Serif Regular" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes" /v "Segoe UI Semibold" /t REG_SZ /d "Microsoft Sans Serif Regular" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes" /v "Segoe UI Symbol" /t REG_SZ /d "Microsoft Sans Serif Regular" /f
PAUSE