all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Toni Schmidbauer <toni+help-gnu-emacs@stderr.at>
To: Help-gnu Emacs <help-gnu-emacs@gnu.org>
Subject: Unicode fonts not correctly displayed
Date: Tue, 17 Oct 2023 10:48:07 +0200	[thread overview]
Message-ID: <87h6mptymc.fsf@schmidbauer.cc> (raw)

hi,

i'm currently struggling with my font config in emacs:

========
(when (member "JetBrainsMono Nerd Font" (font-family-list))
  (set-face-attribute 'default nil :font "JetBrainsMonoNerdFont")
  (set-frame-font 'default "JetBrainsMonoNerdFont 20")
  (set-face-font 'default "JetBrainsMonoNerdFont 20")
  (set-face-font 'variable-pitch "JetBrainsMonoNerdFont 20"))

;; Emoji: 😄, 🤦, 🏴󠁧󠁢󠁳󠁣󠁴󠁿
(set-fontset-font t 'symbol "Segoe UI Emoji" nil 'append)
(set-fontset-font t 'symbol "Segoe UI Symbol" nil 'append)
(set-fontset-font t 'symbol "Noto Color Emoji" nil 'append)

;; should include 2b22
(set-fontset-font t 'symbol "Symbola" nil 'append)

;; added just for testing, does not work
(set-fontset-font t ?⬢ "Symbola")
========

this is the minimal config i tried (commented out everything else in
init.el).

emoji's are rendered ok but the unicode glyph u002b22, which should be
part of the Symbola font does not render (emacs displays 2b22).

when i run what-cursor-position with a prefix arg i get the following
information:

========
             position: 874 of 1186 (74%), restriction: <40-1187>, column: 21
            character: ⬢ (displayed as ⬢) (codepoint 11042, #o25442, #x2b22)
              charset: unicode (Unicode (ISO10646))
code point in charset: 0x2B22
               script: symbol
               syntax: _ 	which means: symbol
             category: .:Base
             to input: type "C-x 8 RET 2b22" or "C-x 8 RET BLACK HEXAGON"
          buffer code: #xE2 #xAC #xA2
            file code: #xE2 #xAC #xA2 (encoded by coding system utf-8-unix)
              display: no font available

Character code properties: customize what to show
  name: BLACK HEXAGON
  general-category: So (Symbol, Other)
  decomposition: (11042) ('⬢')

There is an overlay here:
 From 853 to 887
  face                 hl-line
  priority             -50
  window               #<window 97 on *mu4e-draft*>


There are text properties here:
  fontified            t
========

so it tells me "no font available". i'm really struggling to understand
why...

any hints how this could be solved or debugged?

thanks for your valuable time

toni



             reply	other threads:[~2023-10-17  8:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-17  8:48 Toni Schmidbauer [this message]
2023-10-17 11:07 ` Unicode fonts not correctly displayed Eli Zaretskii
2023-10-18 13:50   ` Toni Schmidbauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h6mptymc.fsf@schmidbauer.cc \
    --to=toni+help-gnu-emacs@stderr.at \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.