Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
windows_font resource causes run to hang if font is already installed #8779
When using the
Over winrm this causes the run to just hang, but locally you can cancel or accept.
I believe this is the fault of the assumption that all resulting fonts will be in
Add a font to your cookbook files then create a resource like this:
Run the resulting cookbook twice. The first run should succeed and the second hang.
It hangs right at the end of this line and does not proceed
As a follow up to this @tas50 the resource, as it is currently, works fine on Windows 10 1803 as well as older platforms (like Windows 7, which I know isn't really supported anyway). If my research is correct the behavior of how fonts are installed changed in Windows 10 1809.
As a work around in newer versions of Windows 10 I've been directly adding the font to the system fonts folder and writing the registry entry which goes in
A WIP but, for anyone else with this issue, here is what that looks like:
Not 100% certain of the format for the registry string name, but it seems as long as the value points to the correct file that was copied to the system fonts folder then its available to use.
This article was my starting place.