From nobody Wed May 15 04:35:52 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 4VfL5509gTz5K7Vk; Wed, 15 May 2024 04:35:53 +0000 (UTC) (envelope-from bapt@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 4VfL546dp1z4CmW; Wed, 15 May 2024 04:35:52 +0000 (UTC) (envelope-from bapt@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715747752; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PxejGD6uoLf7tUHU+prvUvtZiwQ6OmUom7rgVOkKNeE=; b=cut+B4wK0h/REfxUNu+Le9trgGg0QXzfEt12jnSQZR6OGVCOXRZTVJnrvUMcl75A2/gqBf 0cbMSk7qBoI5mHgc2nFV3gUtQosSK/luAcJ+ibEWDFnk/awUnJfW7ybAkNDU+t6/Jgt0VN D2dRQm0UOQ1yCsFpY3gpjTS3bo4ecefkG45imCpG2li52ZMrNrX6HoDg3CDlmzS+/Wzbkc cw0CPR16MTuW7nNvJ63/cy40OChtTKljzg07WXJLB45ci9rWIjNYOO4V6hT8tqujPmolI7 CK7cargwePgSdfN5dv8qQfG7AbWJ0hKqxhofGpp2mO9LO+vZfK9h9NJwoWwr0w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715747752; a=rsa-sha256; cv=none; b=wz+k0mfF97JKxSqCRITsdNWbljWMSPbftNU1C3mC5cXTxAglQ+tGh90qB8YsFZHRRoQzit 644r0e2szynqQic4K/T1gBAYLiT0seZ8b9GhESXQqHac+rm1etRDIu4cenrFeX0CtzqFeC d6zEFzUaPR3XyG0tQjXg0dszLKoIhUSocvQckOTWLegv9UWCYvQ+AIPaGrTniqT6Sm9lhT jRhGZbA4kp3yNC6te3GKik+Ucot1GdUxnvJRNsgAZpqgm1maGp3J/+w3U2VxTopX+m/uiG N4dV2aDa5lM1tRnPMXUL9FZZ5c1JEAZ6/zronToUVf717Zz/rUb6Aux/GJjg2g== 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=1715747752; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PxejGD6uoLf7tUHU+prvUvtZiwQ6OmUom7rgVOkKNeE=; b=ExoFcezMm/TI+5P+gW93vbAncZWavkTGHwANhwk1+4SClNEBv7gZ5qhtUtyoEcsO94QxSl tcB5SGLed52rZNk30KWFVXidkRYmQRRejrChyBfByh8+4p0+UrzqOwt249W2cE3ViWsWnv 8BQ11V2Qs8e8TCvRQehnLwNpW8iQdHo2u9eqTMzrl0YCiRxDgAP4cfQ8ehGS4a+fRkWGJu j8SrKZ7sfR4II+bsi7+sHYcelEAkb6/zucWYqHb+Ek1PQDCVZZnHXyqxCe+vzM3x/CciYW GimZEb83hseJSNNWnIjL9pXEEuF0/AHQsSxBIC6ArN3CHja2waYNpby+QtjdRw== Received: from aniel.nours.eu (nours.eu [176.31.115.77]) (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 did not present a certificate) (Authenticated sender: bapt) by smtp.freebsd.org (Postfix) with ESMTPSA id 4VfL545YwZz1HWd; Wed, 15 May 2024 04:35:52 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from [IPv6:::1] (2a02-8428-078f-2200-1e01-327f-4130-aa07.rev.sfr.net [IPv6:2a02:8428:78f:2200:1e01:327f:4130:aa07]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aniel.nours.eu (Postfix) with ESMTPSA id 894DE76172; Wed, 15 May 2024 06:35:50 +0200 (CEST) Date: Wed, 15 May 2024 06:35:52 +0200 From: Baptiste Daroussin To: Joseph Mingrone CC: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: =?US-ASCII?Q?Re=3A_git=3A_27358245644c_-_main_-_freebsd-tips=3A_Add?= =?US-ASCII?Q?_fortune_to_find_font_providing_Unicode_character?= User-Agent: K-9 Mail for Android In-Reply-To: <86jzjvvrqp.fsf@phe.ftfl.ca> References: <202405132302.44DN2NX6009088@gitrepo.freebsd.org> <4bocuyegvknxvo3rjxnwdkdsx3qwx7nsra3hgyrznk53b4ah5c@rvhtufyftkqi> <86jzjvvrqp.fsf@phe.ftfl.ca> Message-ID: <294DDE88-70C4-4180-87B0-DD43892C5738@FreeBSD.org> 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: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Le 15 mai 2024 02:33:18 GMT+02:00, Joseph Mingrone a = =C3=A9crit=C2=A0: >On Tue, 2024-05-14 at 08:55, Baptiste Daroussin wrot= e: > >> On Mon 13 May 23:02, Joseph Mingrone wrote: >>> The branch main has been updated by jrm: > >>> URL: https://cgit=2EFreeBSD=2Eorg/src/commit/?id=3D27358245644c2a8bf2b= 57182e2fcd8cdf18d6b8d > >>> 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=2Efreebsd=2Eorg/D45183 >>> --- >>> usr=2Ebin/fortune/datfiles/freebsd-tips | 14 ++++++++++++++ >>> 1 file changed, 14 insertions(+) > >>> diff --git a/usr=2Ebin/fortune/datfiles/freebsd-tips b/usr=2Ebin/fortu= ne/datfiles/freebsd-tips >>> index 028a9e9b1430=2E=2Ee24d3640b8c6 100644 >>> --- a/usr=2Ebin/fortune/datfiles/freebsd-tips >>> +++ b/usr=2Ebin/fortune/datfiles/freebsd-tips >>> @@ -845,3 +845,17 @@ kern=2Etty_info_kstacks to 0 (off), 1 (on), or 2 = (verbose), e=2Eg=2E: > >>> -- Michael Gmelin >>> % >>> + >>> +Under X Windows, you can determine which fonts provide a particular U= nicode >>> +character using fc-list from the fontconfig package=2E For example, = if your >>> +friend complains that the emoji you sent won't display, run fc-list w= ith the hex >>> +value of the character to determine which font your friend should ins= tall=2E > >> This has nothing to do with X window, it is valid for anything that can= use >> fontconfig, which does not include xorg, but the toolkits or the librar= ies which >> needs to deal with fonts, for instance many non "X windows" application= s, >> depends on fontconfig and this tips is valide for them, for example for >> libraries producing podofo or poppler can use fontconfig to decide whic= h font to >> embeded in the pdf document=2E > >> In my opinion the "Under X Windows" should be removed from this tips=2E > >The objective was to strike a balance between utmost precision and >succinctness, so the tip is helpful=2E Indeed, fontconfig is not directl= y >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=2E=2E=2E")=2E Removing the qu= alifier >seems to imply fc-list will always be useful, which isn't the case=2E >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=2E For example, if your frien= d >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=2E > >$ fc-list ':charset=3D0x1F4A1' >/usr/local/share/fonts/noto/NotoColorEmoji=2Ettf: Noto Color Emoji:style= =3DRegular > >$ pkg which /usr/local/share/fonts/noto/NotoColorEmoji=2Ettf >/usr/local/share/fonts/noto/NotoColorEmoji=2Ettf was installed by package= noto-emoji-2=2E042 Looks good to me Bapt