summaryrefslogtreecommitdiffstats
path: root/meta/packages/xorg-lib/libxfont/scalable.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/xorg-lib/libxfont/scalable.patch')
-rw-r--r--meta/packages/xorg-lib/libxfont/scalable.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/packages/xorg-lib/libxfont/scalable.patch b/meta/packages/xorg-lib/libxfont/scalable.patch
new file mode 100644
index 0000000000..7f97b9a8f6
--- /dev/null
+++ b/meta/packages/xorg-lib/libxfont/scalable.patch
@@ -0,0 +1,27 @@
1Index: fontfile/fontdir.c
2===================================================================
3RCS file: /cvs/xlibs/Xfont/fontfile/fontdir.c,v
4retrieving revision 3.22
5diff -u -r3.22 fontdir.c
6--- xfont/fontfile/fontdir.c 7 Jul 2003 16:40:11 -0000 3.22
7+++ xfont/fontfile/fontdir.c 30 Dec 2004 20:37:12 -0000
8@@ -699,6 +699,11 @@
9 */
10 if (isscale)
11 {
12+ /* If the fontname says it is scalable, make sure that the
13+ * renderer supports OpenScalable and GetInfoScalable.
14+ */
15+ if (renderer->OpenScalable && renderer->GetInfoScalable)
16+ {
17 if (vals.values_supplied & SIZE_SPECIFY_MASK)
18 {
19 bzero((char *)&zeroVals, sizeof(zeroVals));
20@@ -798,6 +803,7 @@
21 bitmap->name.name);
22 }
23 }
24+ }
25 }
26 return TRUE;
27 }