git: 27358245644c - main - freebsd-tips: Add fortune to find font providing Unicode character

From: Joseph Mingrone <jrm_at_FreeBSD.org>
Date: Mon, 13 May 2024 23:02:23 UTC
The branch main has been updated by jrm:

URL: https://cgit.FreeBSD.org/src/commit/?id=27358245644c2a8bf2b57182e2fcd8cdf18d6b8d

commit 27358245644c2a8bf2b57182e2fcd8cdf18d6b8d
Author:     Joseph Mingrone <jrm@FreeBSD.org>
AuthorDate: 2024-05-13 18:38:13 +0000
Commit:     Joseph Mingrone <jrm@FreeBSD.org>
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/datfiles/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 (verbose), e.g.:
 
 		-- Michael Gmelin <grembo@FreeBSD.org>
 %
+
+Under X Windows, you can determine which fonts provide a particular Unicode
+character using fc-list from the fontconfig package.  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=0x1F4A1'
+/usr/local/share/fonts/noto/NotoColorEmoji.ttf: Noto Color Emoji:style=Regular
+
+$ pkg which /usr/local/share/fonts/noto/NotoColorEmoji.ttf
+/usr/local/share/fonts/noto/NotoColorEmoji.ttf was installed by package noto-emoji-2.042_1
+
+		-- Joe Mingrone <jrm@FreeBSD.org>
+%