From owner-freebsd-x11@freebsd.org Wed Dec 25 18:08:02 2019 Return-Path: Delivered-To: freebsd-x11@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A4D5F1E1F02 for ; Wed, 25 Dec 2019 18:08:02 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 47jh023y9sz47DP for ; Wed, 25 Dec 2019 18:08:02 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id 85E491E1F01; Wed, 25 Dec 2019 18:08:02 +0000 (UTC) Delivered-To: x11@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8494C1E1F00 for ; Wed, 25 Dec 2019 18:08:02 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail.allbsd.org (mx.allbsd.org [IPv6:2001:2f0:104:e001::41]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail.allbsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47jh015NKwz47DN for ; Wed, 25 Dec 2019 18:08:01 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail-d.allbsd.org ([IPv6:2409:11:a740:4700:58:65ff:fe00:b0b]) (authenticated bits=56) by mail.allbsd.org (8.15.2/8.15.2) with ESMTPSA id xBPI7ULa084850 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=OK) (Client CN "/CN=mail-d.allbsd.org", Issuer "/C=US/O=Let's+20Encrypt/CN=Let's+20Encrypt+20Authority+20X3") for ; Thu, 26 Dec 2019 03:07:42 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from alph.d.allbsd.org ([IPv6:2409:11:a740:4700:16:ceff:fe34:2700]) by mail-d.allbsd.org (8.15.2/8.15.2) with ESMTPS id xBPI7P11030279 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Thu, 26 Dec 2019 03:07:25 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (localhost [[UNIX: localhost]]) (authenticated bits=0) by alph.d.allbsd.org (8.15.2/8.15.2) with ESMTPA id xBPI7NZf030275 for ; Thu, 26 Dec 2019 03:07:25 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Thu, 26 Dec 2019 03:05:38 +0900 (JST) Message-Id: <20191226.030538.1289329960092343506.hrs@allbsd.org> To: x11@FreeBSD.org Subject: catalogue fontpath From: Hiroki Sato X-Old-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-PGPkey-fingerprint: 6C0D 2353 27CF 80C7 901E FDD2 DBB0 7DC6 6F1F 737F X-Mailer: Mew version 6.8 on Emacs 26.2 Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha512; boundary="--Security_Multipart0(Thu_Dec_26_03_05_38_2019_589)--" Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (mail.allbsd.org [IPv6:2001:2f0:104:e001:0:0:0:41]); Thu, 26 Dec 2019 03:07:50 +0900 (JST) X-Rspamd-Queue-Id: 47jh015NKwz47DN X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-1.89 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-0.90)[-0.899,0]; NEURAL_HAM_LONG(-1.00)[-0.995,0]; ASN(0.00)[asn:7514, ipnet:2001:2f0::/32, country:JP] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Dec 2019 18:08:02 -0000 ----Security_Multipart0(Thu_Dec_26_03_05_38_2019_589)-- Content-Type: Multipart/Mixed; boundary="--Next_Part(Thu_Dec_26_03_05_38_2019_659)--" Content-Transfer-Encoding: 7bit ----Next_Part(Thu_Dec_26_03_05_38_2019_659)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I would like to add a "catalogue" directory as one of the default fontpaths for xorg-server. A symlink in the directory is automatically recognized as a fontpath. It makes ports which install a new fontset possible to create a new entry there automatically. This means that the end users do not need to manually configure FontPath in xorg.conf or use "xset fp". Note that this affects only the legacy XLFD-based font management, not newer systems such as fontconfig. I believe this does not break backward compatibility because the patch will add it at the tail of the fontpath list. -- Hiroki ----Next_Part(Thu_Dec_26_03_05_38_2019_659)-- Content-Type: Text/X-Patch; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xorg-server-fontpath.20191226-1.diff" Index: x11-servers/xorg-server/Makefile =================================================================== --- x11-servers/xorg-server/Makefile (revision 520878) +++ x11-servers/xorg-server/Makefile (working copy) @@ -3,7 +3,7 @@ PORTNAME?= xorg-server PORTVERSION?= 1.18.4 -PORTREVISION?= 12 +PORTREVISION?= 13 PORTEPOCH?= 1 CATEGORIES= x11-servers MASTER_SITES= XORG/individual/xserver @@ -32,11 +32,24 @@ .include +FONTPATH_ROOT?= ${LOCALBASE}/share/fonts +FONTPATHD?= ${LOCALBASE}/etc/X11/fontpath.d +DEFAULT_FONTPATH_LIST= \ + ${FONTPATH_ROOT}/misc/ \ + ${FONTPATH_ROOT}/TTF/ \ + ${FONTPATH_ROOT}/OTF/ \ + ${FONTPATH_ROOT}/Type1/ \ + ${FONTPATH_ROOT}/100dpi/ \ + ${FONTPATH_ROOT}/75dpi/ \ + catalogue:${FONTPATHD} +DEFAULT_FONTPATH_CMD=${ECHO_CMD} ${DEFAULT_FONTPATH_LIST} | ${TR} ' ' , + USES= gmake gl libtool perl5 ssl tar:bzip2 xorg xorg-cat:xserver USE_PERL5= build USE_GL+= gl USE_XORG+= pixman xau xdmcp xfont xkbfile xorgproto xshmfence xtrans CONFIGURE_ARGS+=--without-doxygen --without-xmlto --without-fop \ + --with-default-font-path="$$(${DEFAULT_FONTPATH_CMD})" \ --localstatedir=/var --with-shared-memory-dir=/tmp \ --disable-config-udev --disable-config-udev-kms \ --without-dtrace --enable-glamor ----Next_Part(Thu_Dec_26_03_05_38_2019_659)---- ----Security_Multipart0(Thu_Dec_26_03_05_38_2019_589)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iMkEABMKAC4WIQRsDSNTJ8+Ax5Ae/dLbsH3Gbx9zfwUCXgOk8hAcaHJzQGZyZWVi c2Qub3JnAAoJENuwfcZvH3N/KOUCCQFggUpVbNFZDHYTbJT9127+dzcJ5EKe0kxE CF8t+taNMU6I0JIGAYVSozBJBgRHDtudgjXc18IwyMzVOYcCWlRyKwIHSciXDF+Y AqwN/9KeRokFnjv8r+OOCvjLet2ha+A1z+3RIgPFlGzPDYjKg40hBNRFHp2+uRlC xLUKXoJusIIeWBg= =dGOl -----END PGP SIGNATURE----- ----Security_Multipart0(Thu_Dec_26_03_05_38_2019_589)----