From nobody Wed May 15 00:33:18 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VfDjD3sg5z5LGv0; Wed, 15 May 2024 00:33:20 +0000 (UTC) (envelope-from jrm@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VfDjD1kj1z4q7d; Wed, 15 May 2024 00:33:20 +0000 (UTC) (envelope-from jrm@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715733200; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3CxPJKNBYV6N47kuhv9u5lv5qb7H9iDE62bjM2DOEO0=; b=kV0j784l8LjaJSxNs5gPtwsjTgqou/zR97UhqyDy+YdQN9x8nZvCby8jVm1P7rW7x2b9Mp PdyGs3fUwMQWsGXEOL9KziBtOHxGvcVZUeld8BYbtaXfYsTHsJ4c7u2rr0tzZyJOruOXp7 Tckrb4hu/PIWQBGMT4eTFfd0Hn3zsNHSkttoj/t8A0ebbMqYdvSCvNpVsqtiJt/t0CEu8T rTMQKyQMO+4gjUdsqeuht8JzMZ9UQDsTzVbsruxSegFy59AEA/6QnPfsODPez/tMJv8Nbf QlJLtYaiKJfVyKTAtyKwPBpUtbCBzi0vCPDIOMYOk/EtPO2vvCYlJybY4Wy9wA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715733200; a=rsa-sha256; cv=none; b=UZLDtB5WpEGys6YXXaGI4kovvWCn8JHey/+bmpVQPnz0QVUP7Hw41TThbRsloHV43me17p FTFVr+/tnw4J/FZ1pyq75/iIuqVVmJE0kGx0DlQx1lOM6wYYc/PJ7vuQfFV9MLCqHyvzQy dMw+3tgDYcWX7BqWeVBxuf2QgwuoNv4yJI+bIMcak7vAfgR+ZiPHs4prP4FWEjDwhvFzxJ VoFkjg53h/tGjQV1yuSoMUxSWgADu62WOlEDjnT8GsAUB9EJu3y4iXCYw8XHOvwAMSAgEM GSkYfooJj1iKje619QyuJvRZkbQGAQ5XzggSQ/UV2lQ0sJvz3T/gKcQiy2HaUA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715733200; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3CxPJKNBYV6N47kuhv9u5lv5qb7H9iDE62bjM2DOEO0=; b=ozq5zHvId52/35EGO3Hea7n+BM5AgMiw/w5hvm+S0JG3QKGIrCsmjEKeqZfbojXHMR9dUL nnmlCR/8SR8/Vy3/4+OjqKwaM+Ieb2axkIGXsnfwz5566BftVFFLowWZ3XrpseJoCZZbBq BPMdcLI9UxPh+Rae2vT/iTu4Hd2l+T/X11d1fgRNTLle463UiqF9sg17VhW3X+hbW9LkKR wU6GbX1yju/u9dxxO8JWLzk3UNr0GcyNJgXMwjdDgv7VqJyjga/tHH+259k1Yzw2Iywr35 UjuARN0NQRxTZb7wx77MOlhgfjncZjsp++A6P1gdVcn+tZ8ORqPgoiYx8VHmHA== Received: from phe.ftfl.ca.ftfl.ca (drmons0544w-156-34-250-113.dhcp-dynamic.fibreop.ns.bellaliant.net [156.34.250.113]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: jrm/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4VfDjC6LPyz1CB2; Wed, 15 May 2024 00:33:19 +0000 (UTC) (envelope-from jrm@freebsd.org) From: Joseph Mingrone To: Baptiste Daroussin Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: 27358245644c - main - freebsd-tips: Add fortune to find font providing Unicode character In-Reply-To: <4bocuyegvknxvo3rjxnwdkdsx3qwx7nsra3hgyrznk53b4ah5c@rvhtufyftkqi> (Baptiste Daroussin's message of "Tue, 14 May 2024 08:55:21 +0200") References: <202405132302.44DN2NX6009088@gitrepo.freebsd.org> <4bocuyegvknxvo3rjxnwdkdsx3qwx7nsra3hgyrznk53b4ah5c@rvhtufyftkqi> Date: Tue, 14 May 2024 21:33:18 -0300 Message-ID: <86jzjvvrqp.fsf@phe.ftfl.ca> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2024-05-14 at 08:55, Baptiste Daroussin wrote: > On Mon 13 May 23:02, Joseph Mingrone wrote: >> The branch main has been updated by jrm: >> URL: https://cgit.FreeBSD.org/src/commit/?id=3D27358245644c2a8bf2b57182e= 2fcd8cdf18d6b8d >> commit 27358245644c2a8bf2b57182e2fcd8cdf18d6b8d >> Author: Joseph Mingrone >> AuthorDate: 2024-05-13 18:38:13 +0000 >> Commit: Joseph Mingrone >> CommitDate: 2024-05-13 23:02:17 +0000 >> freebsd-tips: Add fortune to find font providing Unicode character >> Reviewed by: emaste >> Sponsored by: The FreeBSD Foundation >> Differential Revision: https://reviews.freebsd.org/D45183 >> --- >> usr.bin/fortune/datfiles/freebsd-tips | 14 ++++++++++++++ >> 1 file changed, 14 insertions(+) >> diff --git a/usr.bin/fortune/datfiles/freebsd-tips b/usr.bin/fortune/dat= files/freebsd-tips >> index 028a9e9b1430..e24d3640b8c6 100644 >> --- a/usr.bin/fortune/datfiles/freebsd-tips >> +++ b/usr.bin/fortune/datfiles/freebsd-tips >> @@ -845,3 +845,17 @@ kern.tty_info_kstacks to 0 (off), 1 (on), or 2 (ver= bose), e.g.: >> -- Michael Gmelin >> % >> + >> +Under X Windows, you can determine which fonts provide a particular Uni= code >> +character using fc-list from the fontconfig package. For example, if y= our >> +friend complains that the emoji you sent won't display, run fc-list wit= h the hex >> +value of the character to determine which font your friend should insta= ll. > This has nothing to do with X window, it is valid for anything that can u= se > fontconfig, which does not include xorg, but the toolkits or the librarie= s which > needs to deal with fonts, for instance many non "X windows" applications, > depends on fontconfig and this tips is valide for them, for example for > libraries producing podofo or poppler can use fontconfig to decide which = font to > embeded in the pdf document. > In my opinion the "Under X Windows" should be removed from this tips. The objective was to strike a balance between utmost precision and succinctness, so the tip is helpful. Indeed, fontconfig is not directly tied to X windows, but for practical purposes, I presumed the vast majority of user-facing applications using fontconfig run under X Windows (now that Wayland is a thing, I should have used a more generic phrase like "Under a graphical environment..."). Removing the qualifier seems to imply fc-list will always be useful, which isn't the case. Does the tweaked text that includes 'may be helpful' work for you? Joe ### To determine which fonts provide a particular Unicode character, fc-list from the fontconfig package may be helpful. For example, if your friend complains that the emoji you sent won't display, run fc-list with the hex value of the character to determine which font your friend should install. $ fc-list ':charset=3D0x1F4A1' /usr/local/share/fonts/noto/NotoColorEmoji.ttf: Noto Color Emoji:style=3DRe= gular $ pkg which /usr/local/share/fonts/noto/NotoColorEmoji.ttf /usr/local/share/fonts/noto/NotoColorEmoji.ttf was installed by package not= o-emoji-2.042 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKkBAEBCgCOFiEEVbCTpybDiFVxIrrVNqQMg7DW754FAmZEAs5fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDU1 QjA5M0E3MjZDMzg4NTU3MTIyQkFENTM2QTQwQzgzQjBENkVGOUUQHGpybUBmcmVl YnNkLm9yZwAKCRA2pAyDsNbvnrwgEACkQQfDAXKGoB36clHRpxQmhlW6NcPMMnHP ZW0Y3kSFEOtocV1LxR1PrynpYTlwHGfBX6/PUmI4SWHr9sb1Cbk9chn3flSX4T6T SQ18pjhPAD7VJZQ1lr9PHMUgqqI9XjvMxHfk558JhjhXKKPA4F4JLODFmbLMV50h +iUPpMXvum0k54PkYguUp9RJChPq0GmxJRrffON4R4uYCMBRtFEfuzLl9UvT+Akr iCtQzKJAbJZ6MQBSuvFcviSelPkTtASiS1x0DIlT1ZfEDtvGoCJJ2IKSg7jp2xqH IiT2EcH4eRtx0918dPb+JEGz6wXsxDrFhTWH3Mx+kEDOP8FBKs524WF7bLrX3rPw Hj4xhGnEpJT6cvoki6ktdlvgCAA5xsiexGALwrZMgOeaKjPlInWuR58N8cEERbLY rmoytD0+v9q66DjobnjPBG0cANjHydQ46wagnU/35gzGveltoL6FEw9muQvHA+sB VhknFEiON6LzAIeJ//9xn349YXPG76K3kPY9jOL+yaHv7WZabqp9yoZ+JT0Ywnce fixWn66FbqoA1GNuU1LoeWfP2OC5Tt0ie+ulW8FiFMslB0XJHJ0X5iwmHJx6ZQLD ZKKvjgw5ouV8iXzaX7ZXiyoil60owJKsbmRgFneMwxmxbDhUPpdAecS104iqtyth Ekz3Fwnnhw== =X23v -----END PGP SIGNATURE----- --=-=-=--