0002-Require-a-recent-fontforge-for-reproducibility.patch 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. From 9dd7a8b9376b4fb6b82422899e0ed7b8606c73ce Mon Sep 17 00:00:00 2001
  2. From: Andrew Robbins <contact@andrewrobbins.info>
  3. Date: Thu, 27 Dec 2018 23:37:07 -0500
  4. Subject: [PATCH] Require a recent fontforge for reproducibility
  5. The required version is set to 20171220 which is the earliest
  6. date from which fontforge built from source was able to produce
  7. the non-LGC subset of DejaVu deterministically. "20171220" refers
  8. to upstream revision 69e561773b91e37096a855f0353b1d6781a61250
  9. Note there was not an actual dejavu-fonts release made on 2017-12-20;
  10. the date is intended to be both a reference point, as previously
  11. described, and a mechanism to prevent non-deterministic fonts being
  12. produced by Libreboot's build system due to an unsupported version
  13. of fontforge being used.
  14. ---
  15. scripts/generate.pe | 4 ++--
  16. scripts/generate.py | 2 +-
  17. 2 files changed, 3 insertions(+), 3 deletions(-)
  18. diff --git a/scripts/generate.pe b/scripts/generate.pe
  19. index 5d9d03d..144e8b1 100755
  20. --- a/scripts/generate.pe
  21. +++ b/scripts/generate.pe
  22. @@ -16,8 +16,8 @@
  23. def_gen_flags = 0x20 + 0x40 + 0x800
  24. exp_gen_flags = def_gen_flags + 8
  25. -if ($version < "20080330")
  26. - Error("Your version of FontForge is too old - 20080330 or newer is required");
  27. +if ($version < "20171220")
  28. + Error("Your version of FontForge is too old - 20171220 or newer is required");
  29. endif
  30. # FoundryName is not used in TTF generation
  31. SetPref("FoundryName", "DejaVu")
  32. diff --git a/scripts/generate.py b/scripts/generate.py
  33. index 467d52b..168a2be 100755
  34. --- a/scripts/generate.py
  35. +++ b/scripts/generate.py
  36. @@ -7,7 +7,7 @@
  37. # chmod +x generate.pe
  38. # ./generate.pe *.sfd
  39. import fontforge, sys;
  40. -required_version = "20080330"
  41. +required_version = "20171220"
  42. # font generation flags:
  43. # omit-instructions => do not include TT instructions (for experimental typefaces)
  44. --
  45. 2.7.4