fix: win32 cpp-tests sometimes cannot display font correctly

Pass FILE_SHARE_READ to the 3rd parameter of CreateFileW. Otherwise, it
may fail to get date from the font file.
Merge pull request #7934 from wohaaitinciu/loc_ver

fix: win32 cpp-tests sometimes cannot display font correctly