summaryrefslogtreecommitdiffstats
path: root/fastchart-rpm.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2026-05-21 16:53:21 +0200
committerRemi Collet <remi@php.net>2026-05-21 16:53:21 +0200
commita5dde92584f430e3ed001256db7e40f5703d15ca (patch)
tree7d026924c7b4c547ed001f2135d547dea66fa122 /fastchart-rpm.patch
parent8243434f684a373cac5226d684c6e168c8e3a45e (diff)
update to 1.1.1HEADmaster
drop patches merged upstream
Diffstat (limited to 'fastchart-rpm.patch')
-rw-r--r--fastchart-rpm.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/fastchart-rpm.patch b/fastchart-rpm.patch
new file mode 100644
index 0000000..431ad19
--- /dev/null
+++ b/fastchart-rpm.patch
@@ -0,0 +1,19 @@
+diff -up ./fastchart.c.rpm ./fastchart.c
+--- ./fastchart.c.rpm 2026-05-21 16:46:56.682594380 +0200
++++ ./fastchart.c 2026-05-21 16:47:36.271977657 +0200
+@@ -1961,14 +1961,10 @@ FASTCHART_DEFINE_LIFECYCLE(vector, fa
+ * NULL, so without a Windows entry every
+ * chart renders blank text. */
+ static const char *FASTCHART_DEFAULT_FONT_CANDIDATES[] = {
++ "/usr/share/fonts/dejavu-sans-fonts/DejaVuSans.ttf", /* RPM case first */
+ "/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf",
+- "/usr/share/fonts/dejavu-sans-fonts/DejaVuSans.ttf",
+ "/usr/share/fonts/TTF/DejaVuSans.ttf",
+ "/usr/share/fonts/dejavu/DejaVuSans.ttf",
+- "/Library/Fonts/Arial.ttf",
+- "/System/Library/Fonts/Helvetica.ttc",
+- "C:\\Windows\\Fonts\\arial.ttf",
+- "C:\\Windows\\Fonts\\segoeui.ttf",
+ NULL,
+ };
+