config.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. #ifndef FZ_CONFIG_H
  2. #define FZ_CONFIG_H
  3. /*
  4. Choose which plotters we need.
  5. By default we build the greyscale, RGB and CMYK plotters in,
  6. but omit the arbitrary plotters. To avoid building
  7. plotters in that aren't needed, define the unwanted
  8. FZ_PLOTTERS_... define to 0.
  9. */
  10. /* #define FZ_PLOTTERS_G 1 */
  11. /* #define FZ_PLOTTERS_RGB 1 */
  12. /* #define FZ_PLOTTERS_CMYK 1 */
  13. /* #define FZ_PLOTTERS_N 0 */
  14. /*
  15. Choose which document agents to include.
  16. By default all but GPRF are enabled. To avoid building unwanted
  17. ones, define FZ_ENABLE_... to 0.
  18. */
  19. /* #define FZ_ENABLE_PDF 1 */
  20. /* #define FZ_ENABLE_XPS 1 */
  21. /* #define FZ_ENABLE_SVG 1 */
  22. /* #define FZ_ENABLE_CBZ 1 */
  23. /* #define FZ_ENABLE_IMG 1 */
  24. /* #define FZ_ENABLE_TIFF 1 */
  25. /* #define FZ_ENABLE_HTML 1 */
  26. /* #define FZ_ENABLE_EPUB 1 */
  27. /* #define FZ_ENABLE_GPRF 1 */
  28. /*
  29. Choose whether to enable JPEG2000 decoding.
  30. By default, it is enabled, but due to frequent security
  31. issues with the third party libraries we support disabling
  32. it with this flag.
  33. */
  34. /* #define FZ_ENABLE_JPX 1 */
  35. /*
  36. Choose whether to enable JavaScript.
  37. By default JavaScript is enabled both for mutool and PDF interactivity.
  38. */
  39. /* #define FZ_ENABLE_JS 1 */
  40. /*
  41. Choose which fonts to include.
  42. By default we include the base 14 PDF fonts,
  43. DroidSansFallback from Android for CJK, and
  44. Charis SIL from SIL for epub/html.
  45. Enable the following defines to AVOID including
  46. unwanted fonts.
  47. */
  48. /* To avoid all noto fonts except CJK, enable: */
  49. /* #define TOFU */
  50. /* To skip the CJK font, enable: (this implicitly enables TOFU_CJK_EXT and TOFU_CJK_LANG) */
  51. /* #define TOFU_CJK */
  52. /* To skip CJK Extension A, enable: (this implicitly enables TOFU_CJK_LANG) */
  53. /* #define TOFU_CJK_EXT */
  54. /* To skip CJK language specific fonts, enable: */
  55. /* #define TOFU_CJK_LANG */
  56. /* To skip the Emoji font, enable: */
  57. /* #define TOFU_EMOJI */
  58. /* To skip the ancient/historic scripts, enable: */
  59. /* #define TOFU_HISTORIC */
  60. /* To skip the symbol font, enable: */
  61. /* #define TOFU_SYMBOL */
  62. /* To skip the SIL fonts, enable: */
  63. /* #define TOFU_SIL */
  64. /* To skip the Base14 fonts, enable: */
  65. /* #define TOFU_BASE14 */
  66. /* (You probably really don't want to do that except for measurement purposes!) */
  67. /* ---------- DO NOT EDIT ANYTHING UNDER THIS LINE ---------- */
  68. #ifndef FZ_PLOTTERS_G
  69. #define FZ_PLOTTERS_G 1
  70. #endif /* FZ_PLOTTERS_G */
  71. #ifndef FZ_PLOTTERS_RGB
  72. #define FZ_PLOTTERS_RGB 1
  73. #endif /* FZ_PLOTTERS_RGB */
  74. #ifndef FZ_PLOTTERS_CMYK
  75. #define FZ_PLOTTERS_CMYK 1
  76. #endif /* FZ_PLOTTERS_CMYK */
  77. #ifndef FZ_PLOTTERS_N
  78. #define FZ_PLOTTERS_N 0
  79. #endif /* FZ_PLOTTERS_N */
  80. /* We need at least 1 plotter defined */
  81. #if FZ_PLOTTERS_G == 0 && FZ_PLOTTERS_RGB == 0 && FZ_PLOTTERS_CMYK == 0
  82. #undef FZ_PLOTTERS_N
  83. #define FZ_PLOTTERS_N 1
  84. #endif
  85. #ifndef FZ_ENABLE_PDF
  86. #define FZ_ENABLE_PDF 1
  87. #endif /* FZ_ENABLE_PDF */
  88. #ifndef FZ_ENABLE_XPS
  89. #define FZ_ENABLE_XPS 1
  90. #endif /* FZ_ENABLE_XPS */
  91. #ifndef FZ_ENABLE_SVG
  92. #define FZ_ENABLE_SVG 1
  93. #endif /* FZ_ENABLE_SVG */
  94. #ifndef FZ_ENABLE_CBZ
  95. #define FZ_ENABLE_CBZ 1
  96. #endif /* FZ_ENABLE_CBZ */
  97. #ifndef FZ_ENABLE_IMG
  98. #define FZ_ENABLE_IMG 1
  99. #endif /* FZ_ENABLE_IMG */
  100. #ifndef FZ_ENABLE_TIFF
  101. #define FZ_ENABLE_TIFF 1
  102. #endif /* FZ_ENABLE_TIFF */
  103. #ifndef FZ_ENABLE_HTML
  104. #define FZ_ENABLE_HTML 1
  105. #endif /* FZ_ENABLE_HTML */
  106. #ifndef FZ_ENABLE_EPUB
  107. #define FZ_ENABLE_EPUB 1
  108. #endif /* FZ_ENABLE_EPUB */
  109. #ifndef FZ_ENABLE_GPRF
  110. #define FZ_ENABLE_GPRF 0
  111. #endif /* FZ_ENABLE_GPRF */
  112. #ifndef FZ_ENABLE_JPX
  113. #define FZ_ENABLE_JPX 1
  114. #endif /* FZ_ENABLE_JPX */
  115. #ifndef FZ_ENABLE_JS
  116. #define FZ_ENABLE_JS 1
  117. #endif /* FZ_ENABLE_JS */
  118. /* If Epub and HTML are both disabled, disable SIL fonts */
  119. #if FZ_ENABLE_HTML == 0 && FZ_ENABLE_EPUB == 0
  120. #undef TOFU_SIL
  121. #define TOFU_SIL
  122. #endif
  123. #endif /* FZ_CONFIG_H */