cherry-pick.FILE5_37-47-g62de35af.disable-gem-gdos-fonts-for-now-needs-to-be-stronger.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. Subject: Disable GEM GDOS fonts for now, needs to be stronger
  2. Origin: FILE5_37-47-g62de35af <https://github.com/file/file/commit/FILE5_37-47-g62de35af>
  3. Upstream-Author: Christos Zoulas <christos@zoulas.com>
  4. Date: Sat Jul 6 19:31:36 2019 +0000
  5. --- a/magic/Magdir/fonts
  6. +++ b/magic/Magdir/fonts
  7. @@ -133,19 +133,19 @@
  8. # Reference: http://cd.textfiles.com/ataricompendium/BOOK/HTML/APPENDC.HTM#cnt
  9. #
  10. # usual case with lightening mask and skewing mask 5555h~UU
  11. -62 ulelong 0x55555555
  12. ->0 use gdos-font
  13. +#62 ulelong 0x55555555
  14. +#>0 use gdos-font
  15. # BOX18.GFT COWBOY30.GFT ROYALK30.GFT
  16. -62 ulelong 0
  17. +#62 ulelong 0
  18. # skip ISO 9660 CD-ROM ./filesystem by looking for low positive face size
  19. ->2 uleshort >2
  20. +#>2 uleshort >2
  21. # skip DOS 2.0 backup id file ./msdos by looking for face size lower/equal 48
  22. ->>2 uleshort <49
  23. +#>>2 uleshort <49
  24. # skip MS Windows ICO ./msdos by looking for valid face name
  25. ->>>4 ubeshort >0x1F00
  26. +#>>>4 ubeshort >0x1F00
  27. # skip DOS executable BACKM212.COM by looking for horizontal offset table after header
  28. #>>>>68 ulelong >87 OFFSET_OK
  29. ->>>>0 use gdos-font
  30. +#>>>>0 use gdos-font
  31. 0 name gdos-font
  32. >0 uleshort x GEM GDOS font
  33. !:mime application/x-font-gdos