all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yuan Fu <casouri@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Custom font sets doesn't fully work
Date: Sat, 31 Jul 2021 13:29:15 -0400	[thread overview]
Message-ID: <24574B10-8265-458F-8655-ECFE24A0C8F5@gmail.com> (raw)
In-Reply-To: <0579249D-AF94-437E-8ABE-37F83A1537B7@gmail.com>

> 
> AFAICT fontsets work as expected. Could it be the face not picking up the correct font to use? It seems to only pick up the default font of the fontset.

Suspecting this, I tried the following, and indeed latin characters don’t show the expected SF Mono font either, even though the fondest seems to be correct.

(create-fontset-from-fontset-spec
 (font-xlfd-name
  (font-spec :registry "fontset-lunamono")))
(set-fontset-font "fontset-lunamono" 'latin (font-spec :family "SF Mono"))
(set-face-attribute 'default nil :font "fontset-lunamono”)

Fontset: -*-*-*-*-*-*-*-*-*-*-*-*-fontset-lunamono
CHAR RANGE (CODE RANGE)
    FONT NAME (REQUESTED and [OPENED])
C-@ .. DEL
    -*-SF Mono-*-*-*-*-*-*-*-*-*-*-*-*
  .. ɏ (#xA0 .. #x24F)
    -*-SF Mono-*-*-*-*-*-*-*-*-*-*-*-*
ʰ .. ͯ (#x2B0 .. #x36F)
    -*-SF Mono-*-*-*-*-*-*-*-*-*-*-*-*
᪰ .. ᫿ (#x1AB0 .. #x1AFF)
    -*-SF Mono-*-*-*-*-*-*-*-*-*-*-*-*
᷀ .. ỿ (#x1DC0 .. #x1EFF)
    -*-SF Mono-*-*-*-*-*-*-*-*-*-*-*-*
Ⱡ .. Ɀ (#x2C60 .. #x2C7F)
    -*-SF Mono-*-*-*-*-*-*-*-*-*-*-*-*
꜀ .. ꟿ (#xA700 .. #xA7FF)
    -*-SF Mono-*-*-*-*-*-*-*-*-*-*-*-*
ꬰ .. ꭯ (#xAB30 .. #xAB6F)
    -*-SF Mono-*-*-*-*-*-*-*-*-*-*-*-*
ff .. st (#xFB00 .. #xFB06)
    -*-SF Mono-*-*-*-*-*-*-*-*-*-*-*-*
︠ .. ︯ (#xFE20 .. #xFE2F)
    -*-SF Mono-*-*-*-*-*-*-*-*-*-*-*-*

  ---<fallback to the default fontset>—
...

Yuan


      parent reply	other threads:[~2021-07-31 17:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-31  1:14 Custom font sets doesn't fully work Yuan Fu
2021-07-31  6:42 ` Eli Zaretskii
2021-07-31 17:19   ` Yuan Fu
2021-07-31 17:26     ` Eli Zaretskii
2021-07-31 21:41       ` Yuan Fu
2021-08-01  6:04         ` Eli Zaretskii
2021-07-31 17:29     ` Yuan Fu [this message]

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=24574B10-8265-458F-8655-ECFE24A0C8F5@gmail.com \
    --to=casouri@gmail.com \
    --cc=eliz@gnu.org \
    --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.