free-fonts.patch 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --- reportlab-3.5.6.orig/setup.py 2018-08-06 07:48:32.000000000 -0500
  2. +++ reportlab-3.5.6/setup.py 2018-08-29 16:22:01.988572223 -0500
  3. @@ -308,8 +308,6 @@
  4. xitmsg = "not downloading T1 font curve files"
  5. else:
  6. try:
  7. - infoline("Downloading standard T1 font curves")
  8. - zipdata = url2data("http://www.reportlab.com/ftp/pfbfer-20180109.zip")
  9. archive = zipfile.ZipFile(zipdata)
  10. dst = pjoin(rl_dir, 'fonts')
  11. @@ -320,7 +318,6 @@
  12. xitmsg = "Finished download of standard T1 font curves"
  13. except:
  14. xitmsg = "Failed to download standard T1 font curves"
  15. - infoline(xitmsg)
  16. def get_glyphlist_module(PACKAGE_DIR):
  17. try:
  18. --- reportlab-3.5.6.orig/src/reportlab/pdfbase/_fontdata.py 2017-11-06 04:30:20.000000000 -0500
  19. +++ reportlab-3.5.6/src/reportlab/pdfbase/_fontdata.py 2018-08-29 14:08:12.683088319 -0500
  20. @@ -72,20 +72,20 @@
  21. }
  22. if sys.platform in ('linux2',):
  23. _font2fnrMapLinux2 ={
  24. - 'symbol': 'Symbol',
  25. - 'zapfdingbats': 'ZapfDingbats',
  26. - 'helvetica': 'Arial',
  27. - 'helvetica-bold': 'Arial-Bold',
  28. - 'helvetica-boldoblique': 'Arial-BoldItalic',
  29. - 'helvetica-oblique': 'Arial-Italic',
  30. - 'times-bold': 'TimesNewRoman-Bold',
  31. - 'times-bolditalic':'TimesNewRoman-BoldItalic',
  32. - 'times-italic': 'TimesNewRoman-Italic',
  33. - 'times-roman': 'TimesNewRoman',
  34. - 'courier-bold': 'Courier-Bold',
  35. - 'courier-boldoblique': 'Courier-BoldOblique',
  36. - 'courier': 'Courier',
  37. - 'courier-oblique': 'Courier-Oblique',
  38. + 'symbol': 's050000l.pfb',
  39. + 'zapfdingbats': 'd050000l.pfb',
  40. + 'helvetica': 'n019003l.pfb',
  41. + 'helvetica-bold': 'n019004l.pfb',
  42. + 'helvetica-boldoblique': 'n019024l.pfb',
  43. + 'helvetica-oblique': 'n019023l.pfb',
  44. + 'times-bold': 'n021004l.pfb',
  45. + 'times-bolditalic':'n021024l.pfb',
  46. + 'times-italic': 'n021023l.pfb',
  47. + 'times-roman': 'n021003l.pfb',
  48. + 'courier-bold': 'n022004l.pfb',
  49. + 'courier-boldoblique': 'n022024l.pfb',
  50. + 'courier': 'n022003l.pfb',
  51. + 'courier-oblique': 'n022023l.pfb',
  52. }
  53. _font2fnrMap = _font2fnrMapLinux2
  54. for k, v in _font2fnrMap.items():