summaryrefslogtreecommitdiffstats
path: root/accessibility/svkbd/old_fontconfig.diff
diff options
context:
space:
mode:
Diffstat (limited to 'accessibility/svkbd/old_fontconfig.diff')
-rw-r--r--accessibility/svkbd/old_fontconfig.diff29
1 files changed, 29 insertions, 0 deletions
diff --git a/accessibility/svkbd/old_fontconfig.diff b/accessibility/svkbd/old_fontconfig.diff
new file mode 100644
index 0000000000..a076227512
--- /dev/null
+++ b/accessibility/svkbd/old_fontconfig.diff
@@ -0,0 +1,29 @@
+diff -Naur svkbd-0.2.1/drw.c svkbd-0.2.1.patched/drw.c
+--- svkbd-0.2.1/drw.c 2020-09-18 07:02:35.000000000 -0400
++++ svkbd-0.2.1.patched/drw.c 2020-11-02 12:45:36.377138299 -0500
+@@ -133,6 +133,7 @@
+ die("no font specified.");
+ }
+
++#ifdef FC_COLOR
+ /* Do not allow using color fonts. This is a workaround for a BadLength
+ * error from Xft with color glyphs. Modelled on the Xterm workaround. See
+ * https://bugzilla.redhat.com/show_bug.cgi?id=1498269
+@@ -145,6 +146,7 @@
+ XftFontClose(drw->dpy, xfont);
+ return NULL;
+ }
++#endif
+
+ font = ecalloc(1, sizeof(Fnt));
+ font->xfont = xfont;
+@@ -351,7 +353,9 @@
+ fcpattern = FcPatternDuplicate(drw->fonts->pattern);
+ FcPatternAddCharSet(fcpattern, FC_CHARSET, fccharset);
+ FcPatternAddBool(fcpattern, FC_SCALABLE, FcTrue);
++#ifdef FC_COLOR
+ FcPatternAddBool(fcpattern, FC_COLOR, FcFalse);
++#endif
+
+ FcConfigSubstitute(NULL, fcpattern, FcMatchPattern);
+ FcDefaultSubstitute(fcpattern);