For a java app I'm working we store some Ubuntu fonts in our git repository. Keep in mind, this all works as expected for other devs on other machines with a similar setup.
This issue occurs only using WSL Git and not Git for Windows/Git Bash (gitforwindows.org).
Windows (specifically System32/fontview.exe), and our application for that matter, cannot open/load these font files when they're in a git repo.
The requested file ... is not a valid font file.
mving that same file to any location outside of a Git repository, Windows is able to open the file. The file is the same
sha1sum < fontfile.ttf).
The same error is also thrown when copying that file into a newly initialized Git repository.
This is true for all ttf files, even if they're newly downloaded from the web.
rm -rf .git the files still cannot be opened/loaded.
That specific directory name somehow becomes permanently affected.
The problem persists after a reboot.