From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3FEA2158020 for ; Sat, 15 Oct 2022 03:34:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C82F7E08FA; Sat, 15 Oct 2022 03:34:03 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8279BE08F2 for ; Sat, 15 Oct 2022 03:34:03 +0000 (UTC) Content-Type: multipart/signed; boundary="Apple-Mail=_CA0DDF4A-21C1-4677-BEA8-FB96A0D802D0"; protocol="application/pgp-signature"; micalg=pgp-sha512 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: [gentoo-dev] [PATCH 1/5] font.eclass: introduce FONT_CONVERT_SFNT for converting old bitmap fonts From: Sam James In-Reply-To: <20221015030958.2422501-1-sam@gentoo.org> Date: Sat, 15 Oct 2022 04:33:57 +0100 Cc: x11@gentoo.org, fonts@gentoo.org, gnome@gentoo.org, Kerin Millar Message-Id: References: <20221015030958.2422501-1-sam@gentoo.org> To: gentoo-dev@lists.gentoo.org X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Archives-Salt: ae56e532-8977-4159-8911-9db14b05d092 X-Archives-Hash: 38b65b020628c4f21ef2cd155c22d8da --Apple-Mail=_CA0DDF4A-21C1-4677-BEA8-FB96A0D802D0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On 15 Oct 2022, at 04:09, Sam James wrote: >=20 >> =3Dx11-libs/pango-1.44 dropped support for old bitmap fonts. We can = convert > fonts from the legacy .bdf and .pcf formats into the OTB wrapper = format > using x11-apps/fonttosfnt. >=20 > This commit adds FONT_CONVERT_SFNT which packages installing bitmap = fonts > can set to opt-in to conversion. >=20 > Note that the font conversion isn't perfect -- it's good enough > in many cases, but in some cases they may require tweaking > via fontconfig to get pixel size right, antialiasing settings, ... >=20 > Adds IUSE=3D+convert-sfnt to any ebuilds which set FONT_CONVERT_SFNT; > enabled by default given discoverability of this issue may be = difficult > and presumably any font package enabling FONT_CONVERT_SFNT will be > useless without it anyway. >=20 > See also https://fedoraproject.org/wiki/BitmapFontConversion. >=20 > Bug: https://bugs.gentoo.org/698922 > Thanks-to: Kerin Millar > Signed-off-by: Sam James > --- > eclass/font.eclass | 35 +++++++++++++++++++++++++++++++++++ > 1 file changed, 35 insertions(+) >=20 > diff --git a/eclass/font.eclass b/eclass/font.eclass > index 83636ac3fed5..4b7021ee0599 100644 > --- a/eclass/font.eclass > +++ b/eclass/font.eclass > [snip] > +# @FUNCTION: font_convert_sfnt > +# @DESCRIPTION: > +# Converts .bdf and .pcf fonts detected within ${ED} to the OTB = wrapper format > +# using x11-apps/fonttosfnt. Handles optional .gz extension. > +font_convert_sfnt() { > + local file tmpfile > + > + while IFS=3D read -rd '' file; do > + if [[ ${file} !=3D *.gz ]] ; then =3D=3D, which I'll fix locally. --Apple-Mail=_CA0DDF4A-21C1-4677-BEA8-FB96A0D802D0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iNUEARYKAH0WIQQlpruI3Zt2TGtVQcJzhAn1IN+RkAUCY0oqJV8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MjVB NkJCODhERDlCNzY0QzZCNTU0MUMyNzM4NDA5RjUyMERGOTE5MAAKCRBzhAn1IN+R kGn6AQCMw0LPSw/XAYj7MKQ6QgWEX0NoH0XNRSaqxQ7SmfRCBgD/VbO77ohKfiJP u0bJQ2bROTUmBC4QEirVd8PK6RakMwU= =WBQJ -----END PGP SIGNATURE----- --Apple-Mail=_CA0DDF4A-21C1-4677-BEA8-FB96A0D802D0--