Date: Wed, 15 May 2024 06:35:52 +0200 From: Baptiste Daroussin <bapt@FreeBSD.org> To: Joseph Mingrone <jrm@FreeBSD.org> 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?= Message-ID: <294DDE88-70C4-4180-87B0-DD43892C5738@FreeBSD.org> In-Reply-To: <86jzjvvrqp.fsf@phe.ftfl.ca> References: <202405132302.44DN2NX6009088@gitrepo.freebsd.org> <4bocuyegvknxvo3rjxnwdkdsx3qwx7nsra3hgyrznk53b4ah5c@rvhtufyftkqi> <86jzjvvrqp.fsf@phe.ftfl.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
Le 15 mai 2024 02:33:18 GMT+02:00, Joseph Mingrone <jrm@FreeBSD=2Eorg> a = =C3=A9crit=C2=A0: >On Tue, 2024-05-14 at 08:55, Baptiste Daroussin <bapt@freebsd=2Eorg> 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 <jrm@FreeBSD=2Eorg> >>> AuthorDate: 2024-05-13 18:38:13 +0000 >>> Commit: Joseph Mingrone <jrm@FreeBSD=2Eorg> >>> 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 <grembo@FreeBSD=2Eorg> >>> % >>> + >>> +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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?294DDE88-70C4-4180-87B0-DD43892C5738>