summaryrefslogtreecommitdiff
path: root/packages/xorg-lib/libxfont/scalable.patch
blob: 7f97b9a8f62f56aca563c61097546b07c35065fe (plain)
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
27
Index: fontfile/fontdir.c
===================================================================
RCS file: /cvs/xlibs/Xfont/fontfile/fontdir.c,v
retrieving revision 3.22
diff -u -r3.22 fontdir.c
--- xfont/fontfile/fontdir.c	7 Jul 2003 16:40:11 -0000	3.22
+++ xfont/fontfile/fontdir.c	30 Dec 2004 20:37:12 -0000
@@ -699,6 +699,11 @@
      */
     if (isscale)
     {
+      /* If the fontname says it is scalable, make sure that the
+       * renderer supports OpenScalable and GetInfoScalable.
+       */
+      if (renderer->OpenScalable && renderer->GetInfoScalable)
+      {
 	if (vals.values_supplied & SIZE_SPECIFY_MASK)
 	{
 	    bzero((char *)&zeroVals, sizeof(zeroVals));
@@ -798,6 +803,7 @@
                                            bitmap->name.name);
             }
 	}
+      }
     }
     return TRUE;
 }