public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/kmscon] f44: Fix filter non monospace fonts patch for fontconfig < 2.18.
@ 2026-10-09 14:36 Jocelyn Falempe
  0 siblings, 0 replies; only message in thread
From: Jocelyn Falempe @ 2026-10-09 14:36 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/kmscon
Branch : f44
Commit : bf656a5f19a5c1662f127e6c9c5665fb328ba992
Author : Jocelyn Falempe <jfalempe@redhat.com>
Date   : 2026-10-09T16:34:44+02:00
Stats  : +3/-3 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/kmscon/c/bf656a5f19a5c1662f127e6c9c5665fb328ba992?branch=f44

Log:
Fix filter non monospace fonts patch for fontconfig < 2.18.

---
diff --git a/freetype-filter-out-non-monospace-fonts-completely.patch b/freetype-filter-out-non-monospace-fonts-completely.patch
index ff9845f..2509d94 100644
--- a/freetype-filter-out-non-monospace-fonts-completely.patch
+++ b/freetype-filter-out-non-monospace-fonts-completely.patch
@@ -50,8 +50,8 @@ index e1dd9ec..2ecdbee 100644
 +	int spacing;
 +
 +	if (FcPatternGetInteger(pat, FC_SPACING, 0, &spacing) == FcResultMatch) {
-+		if (spacing == FC_SPACING_CHARCELL || spacing == FC_SPACING_MONO ||
-+		    spacing == FC_SPACING_DUAL)
++		if (spacing == FC_CHARCELL || spacing == FC_MONO ||
++		    spacing == FC_DUAL)
 +			return FcTrue;
 +	}
 +	/* non-monospace font doesn't have FC_SPACING property */

diff --git a/kmscon.spec b/kmscon.spec
index 4d32f8a..3d0a388 100644
--- a/kmscon.spec
+++ b/kmscon.spec
@@ -17,7 +17,7 @@ BuildRequires:  xsltproc
 BuildRequires:  xz
 BuildRequires:  systemd-rpm-macros
 BuildRequires:  pkgconfig(egl)
-BuildRequires:  pkgconfig(fontconfig)
+BuildRequires:  pkgconfig(fontconfig) >= 2.16.0
 BuildRequires:  pkgconfig(freetype2)
 BuildRequires:  pkgconfig(gbm)
 BuildRequires:  pkgconfig(glesv2)

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-09 14:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-09 14:36 [rpms/kmscon] f44: Fix filter non monospace fonts patch for fontconfig < 2.18 Jocelyn Falempe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox