Don't call FcConfigSubstitute and FcDefaultSubstitute, because
XftFontMatch calls these functions by itself.

It does not fix any bugs, just reduces the amount of code.
From eae63c757866a58e9436057cd5a8a2011deceb3e Mon Sep 17 00:00:00 2001
From: Alexander Krotov <ilab...@gmail.com>
Date: Thu, 9 Aug 2018 02:50:33 +0300
Subject: [PATCH] drw.c: don't call FcConfigSubstitute and FcDefaultSubstitute

XftFontMatch calls these functions again inside
---
 drw.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drw.c b/drw.c
index c1582e7..0169594 100644
--- a/drw.c
+++ b/drw.c
@@ -338,8 +338,6 @@ drw_text(Drw *drw, int x, int y, unsigned int w, unsigned int h, unsigned int lp
 			FcPatternAddCharSet(fcpattern, FC_CHARSET, fccharset);
 			FcPatternAddBool(fcpattern, FC_SCALABLE, FcTrue);
 
-			FcConfigSubstitute(NULL, fcpattern, FcMatchPattern);
-			FcDefaultSubstitute(fcpattern);
 			match = XftFontMatch(drw->dpy, drw->screen, fcpattern, &result);
 
 			FcCharSetDestroy(fccharset);
-- 
2.18.0

Reply via email to