File: show-freetype-fonts.patch

package info (click to toggle)
plplot 5.15.0%2Bdfsg2-17
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,484 kB
  • sloc: ansic: 79,703; xml: 28,583; cpp: 20,033; ada: 19,456; tcl: 12,081; f90: 11,431; ml: 7,276; java: 6,863; python: 6,792; sh: 3,274; perl: 828; lisp: 75; makefile: 74; sed: 34; fortran: 6
file content (26 lines) | stat: -rw-r--r-- 1,302 bytes parent folder | download | duplicates (4)
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