1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Description: Show the FreeType fonts found
Author: Rafael Laboissière <rafael@debian.org>
Forwarded: https://sourceforge.net/p/plplot/mailman/message/37175375/
Last-Update: 2020-12-13
--- plplot-5.15.0+dfsg.orig/cmake/modules/freetype.cmake
+++ plplot-5.15.0+dfsg/cmake/modules/freetype.cmake
@@ -108,13 +108,15 @@ if (WITH_FREETYPE)
# Check a couple of fonts actually exists
if (EXISTS ${PL_FREETYPE_FONT_DIR}${PL_FREETYPE_SANS})
- if (EXISTS ${PL_FREETYPE_FONT_DIR}${PL_FREETYPE_SYMBOL})
- else (EXISTS ${PL_FREETYPE_FONT_DIR}${PL_FREETYPE_SYMBOL})
+ message(STATUS "FreeType Sans = ${PL_FREETYPE_FONT_DIR}${PL_FREETYPE_SANS}")
+ if (EXISTS ${PL_FREETYPE_FONT_DIR}${PL_FREETYPE_MONO})
+ message(STATUS "FreeType Mono = ${PL_FREETYPE_FONT_DIR}${PL_FREETYPE_MONO}")
+ else (EXISTS ${PL_FREETYPE_FONT_DIR}${PL_FREETYPE_MONO})
message("Fonts not found - disabling freetype")
set(WITH_FREETYPE OFF CACHE BOOL
"Enable driver options for using freetype library for fonts" FORCE
)
- endif (EXISTS ${PL_FREETYPE_FONT_DIR}${PL_FREETYPE_SYMBOL})
+ endif (EXISTS ${PL_FREETYPE_FONT_DIR}${PL_FREETYPE_MONO})
else (EXISTS ${PL_FREETYPE_FONT_DIR}${PL_FREETYPE_SANS})
message("Fonts not found - disabling freetype")
set(WITH_FREETYPE OFF CACHE BOOL
|