aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/fontconfig/files
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/fontconfig/files')
-rw-r--r--recipes/fontconfig/files/01fc-cache4
-rw-r--r--recipes/fontconfig/files/local.conf19
-rw-r--r--recipes/fontconfig/files/one-j-too-many.patch24
3 files changed, 47 insertions, 0 deletions
diff --git a/recipes/fontconfig/files/01fc-cache b/recipes/fontconfig/files/01fc-cache
new file mode 100644
index 0000000000..963aaec8ca
--- /dev/null
+++ b/recipes/fontconfig/files/01fc-cache
@@ -0,0 +1,4 @@
+#!/bin/sh
+# Author: Rolf Leggewie
+
+fc-cache
diff --git a/recipes/fontconfig/files/local.conf b/recipes/fontconfig/files/local.conf
new file mode 100644
index 0000000000..d678878f3e
--- /dev/null
+++ b/recipes/fontconfig/files/local.conf
@@ -0,0 +1,19 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<!-- /etc/fonts/local.conf file for local customizations -->
+<fontconfig>
+<!--
+ Enable sub-pixel rendering
+ <match target="font">
+ <test qual="all" name="rgba">
+ <const>unknown</const>
+ </test>
+ <edit name="rgba" mode="assign"><const>rgb</const></edit>
+ </match>
+-->
+
+<!-- X11R7.0 installs fonts to a new location -->
+ <dir>/usr/lib/X11/fonts/misc</dir>
+ <dir>/usr/lib/X11/fonts/Type1</dir>
+ <dir>/usr/lib/X11/fonts/75dpi</dir>
+</fontconfig>
diff --git a/recipes/fontconfig/files/one-j-too-many.patch b/recipes/fontconfig/files/one-j-too-many.patch
new file mode 100644
index 0000000000..04d8e0237e
--- /dev/null
+++ b/recipes/fontconfig/files/one-j-too-many.patch
@@ -0,0 +1,24 @@
+--- fontconfig-2.3.95/src/fcname.c.orig 2006-07-26 15:20:01.469770388 +0200
++++ fontconfig-2.3.95/src/fcname.c 2006-07-26 15:22:38.415239062 +0200
+@@ -305,17 +305,16 @@
+ FcObjectPtrU (FcObjectPtr si)
+ {
+ const FcObjectTypeList *l;
+- int i, j;
++ int i;
+
+ if (si > 0)
+ {
+ if (si < biggest_known_ntypes)
+ return biggest_known_types[si].object;
+
+- j = 0;
+ for (l = _FcObjectTypes; l; l = l->next)
+- for (i = 0; i < l->ntypes; i++, j++)
+- if (j == si)
++ for (i = 0; i < l->ntypes; i++)
++ if (l->basic_offset+i == si)
+ return l->types[i].object;
+ }
+
+