📜 ⬆️ ⬇️

Problem with displaying Verdana font on UTF-8 encoded sites

Recently found an interesting bug in Internet Explorer in some version of Windows. Rather, Windows is more to blame than IE.

If you use the UTF-8 encoding on the site (the possibility of this glitch may emerge in some other encodings), then IE does not display it, and finds the replacement nearest to it - for example, Arial.

Searching the Internet for a solution to this problem was convinced that the problem is common, but on Habré it seems like no one wrote about it.
')
So, the solution was found:

Step # 1 - In the registry along the path [HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion \ FontSubstitutes], all keys must be removed;
Step 2 - create a file with the .reg extension and with the following content:

Windows Registry Editor Version 5.00

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"Arial CE,238"="Arial,238"
"Arial CYR,204"="Arial,204"
"Arial Greek,161"="Arial,161"
"Arial TUR,162"="Arial,162"
"Courier New CE,238"="Courier New,238"
"Courier New CYR,204"="Courier New,204"
"Courier New Greek,161"="Courier New,161"
"Courier New TUR,162"="Courier New,162"
"Helv"="MS Sans Serif"
"Helvetica"="MS Sans Serif"
"MS Shell Dlg 2"="Tahoma"
"Times"="Times New Roman"
"Times New Roman CE,238"="Times New Roman,238"
"Times New Roman CYR,204"="Times New Roman,204"
"Times New Roman Greek,161"="Times New Roman,161"
"Times New Roman TUR,162"="Times New Roman,162"
"Tms Rmn"="MS Serif"
"Arial Baltic,186"="Arial,186"
"Courier New Baltic,186"="Courier New,186"
"Times New Roman Baltic,186"="Times New Roman,186"
"System,0"="System,204"
"Fixedsys,0"="Fixedsys,204"
"Small Fonts,0"="Small Fonts,204"
"MS Serif,0"="MS Serif,204"
"MS Sans Serif,0"="MS Sans Serif,204"
"Courier,0"="Courier New,204"
"Arial Cyr,0"="Arial,204"
"Courier New Cyr,0"="Courier New,204"
"Times New Roman Cyr,0"="Times New Roman,204"
"Helv,0"="MS Sans Serif,204"
"Tms Rmn,0"="MS Serif,204"
"MS Shell Dlg"="MS Sans Serif"


It was checked on freshly reinstalled Windows XP SP2 and SP3, practically without software.

Source: http://www.rsdn.ru/forum/

Source: https://habr.com/ru/post/55376/


All Articles