Skip to content

Commit 20517a2

Browse files
committed
Documentation update
1 parent adb3369 commit 20517a2

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

FontInstallationIssues.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,53 @@
1-
#Font Installation Issues
1+
# Font Installation Issues
22

33
When creating this setup, and when deploying this setup to 200+ machines, I faced some issues that come from the fact that Windows is not very smart when handling fonts. This file lists the issues I'm aware of.
44

5-
##Font files can be damaged
5+
## Font files can be damaged
66

77
For whatever reason, sometimes the *.ttf files are broken and depending how exactly they are broken can lead to all sorts of effects, from "Font can't be used" to "Some glyphs are broken".
88

99
*HackWindowsInstaller* uses SHA-1 hashes to compare the files that should be installed with the files actually installed. This has the side effect that always the files included with the setup are installed, even if one font file was already manually updated to a newer version.
1010

11-
##The FONTS applet might save fonts as (Fontname)_X.ttf
11+
## The FONTS applet might save fonts as (Fontname)_X.ttf
1212

1313
When copying TTF files by simply dropping them onto the *Fonts* applet from Control Panel and the file that is copied is currently locked in *C:\WINDOWS\FONTS*, the applet will just append `_0` to the filename without extension and register this new file to the registry. For example, dropping `Hack-Regular.ttf` to FONTS when this file is locked will save the file as `Hack-Regular_0.ttf` to *C:\WINDOWS\FONTS*.
1414

1515
Depending on the application and the caching method it can happen that the application continues to use the old font file.
1616

1717
*HackWindowsInstaller* will delete any *(Fontname)_X.ttf* for each font file it installs. However, if a font file was renamed, *HackWindowsInstaller* won’t delete the old _0.ttf file because this deletion is executed upon installation and depends on the current font names.
1818

19-
##Some fonts can be locked when in use
19+
## Some fonts can be locked when in use
2020

2121
As soon as a font is used, the TTF file for it is locked and can’t be updated to a newer version.
2222

2323
*HackWindowsInstaller* will try to replace any locked file five times and if this doesn’t work, it will use `PendingFileOperations` to replace the file in question upon next boot.
2424

25-
##The FontCache service can lock fonts during installation
25+
## The FontCache service can lock fonts during installation
2626

2727
For performance reasons, Windows includes a cache for all installed fonts. Because it is sometime to “eager” to read the information from a file, the installation can fail because the file is locked during the installation.
2828

2929
*HackWindowsInstaller* will stop `FontCache` (and `FontCache3.0.0.0` for .NET if it exists) during installation.
30-
##The font data in the registry and the font files can be different
30+
31+
## The font data in the registry and the font files can be different
3132

3233
Depending what else has gone wrong, the font registration data (Name and File) inside the registry can be different from the actual fonts installed in C:\WINDOWS\FONTS. When this happens, the fonts can go “crazy” - see issue [#152 for Hack](https://github.com/chrissimpkins/Hack/issues/152).
3334

3435
*HackWindowsInstaller* will ensure that the files and the registration data are exactly as desired and reinstall the font if this is not the case.
3536

36-
##A new font is not visible directly after installation
37+
## A new font is not visible directly after installation
3738

3839
When a new font is installed, Windows expects the broadcast message WM_FONTCHANGE before the font can be used.
3940

4041
*HackWindowsInstaller* will sent this message if any new font is installed. However, some applications do not react on this message so a restart will be requested when the installation is finished.
4142

42-
##A font cannot be updated without restart
43+
## A font cannot be updated without restart
4344

4445
The [MSDN docs](https://msdn.microsoft.com/en-us/library/windows/desktop/dd183326%28v=vs.85%29.aspx) say that a call to RemoveFontResource() requires a restart before this font is really removed. However, it does not say anything if updating a font also requires this. Based on the current findings, I think it is required.
4546

4647
*HackWindowsInstaller* will always request a restart when the installation is finished.
4748

4849

49-
##Not fixed: The cache files of the FontCache service can be corrupted
50+
## Not fixed: The cache files of the FontCache service can be corrupted
5051

5152
This issue is not yet fixed by *HackWindowsInstaller* mostly because I never experienced this defect.
5253

@@ -58,7 +59,7 @@ After that, restart the computer.
5859

5960

6061
----------
61-
2016-04-25
62+
2016-04-25 (Updated 2017-07-11)
6263

6364
~Michael 'Tex' Hex
6465

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ This installer addresses most of the [commonly obeserved issues](https://github.
1313
- Double click `HackWindowsInstaller.exe`
1414
- If you see a *Windows protected your PC* message, click on `More info` and select `Run anyway`. This *Windows SmartScreen warning* can be safely ignored, the installer is virus and addware free (see VirusTotal report for each release)
1515
- Follow the installation instructions
16+
- At the end, the installer will request a reboot
1617

1718
## Installer Source
1819

0 commit comments

Comments
 (0)