unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: ynyaaa@gmail.com
To: Eli Zaretskii <eliz@gnu.org>
Cc: 39339@debbugs.gnu.org
Subject: bug#39339: 26.3; set-fontset-font does not replace some glyphs
Date: Thu, 30 Jan 2020 15:06:55 +0900	[thread overview]
Message-ID: <86tv4djx4w.fsf@gmail.com> (raw)
In-Reply-To: <83mua6m86m.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 29 Jan 2020 20:25:21 +0200")

Eli Zaretskii <eliz@gnu.org> writes:

>> From: ynyaaa@gmail.com
>> Date: Wed, 29 Jan 2020 12:55:31 +0900
>> 
>> I installed Noto fonts, and tried to set up fontset composed of
>> "Noto Sans Mono" and "Noto Sans Mono CJK JP Regular".
>> For some characters "Noto Sans Mono CJK JP Regular" has wide glyphs.
>> 
>> Evaluating the form below, only characters
>>   #x00A7 #x00B1 #x00B6 #x00D7 #x00F7 #x02C7 #x02C9 #x02CA #x02CB #x02D9
>> are displayed with wide glyphs,
>> and other characters listed in the form are displayed with narrow glyphs.
>> 
>> (let ((base-font "Noto Sans Mono")
>>       (alt-font "Noto Sans Mono CJK JP Regular")
>>       (l '(#x00A7 #x00B1 #x00B6 #x00D7 #x00F7
>>                   #x02C7 #x02C9 #x02CA #x02CB #x02D9
>>                   #x2015 #x2016 #x2020 #x2021 #x2025 #x2027 #x2030
>>                   #x2035 #x203B #x2042 #x2051
>>                   #x2100 #x2103 #x2105 #x2109 #x210A #x210F #x2116
>>                   #x2121 #x2126 #x2127 #x212B #x2135 #x213B
>>                   #x221A #x221E #x2229 #x2248 #x2261 #x2264 #x2265
>>                   (#x2500 . #x25A0))))
>>   (set-frame-font base-font)
>>   (dolist (c l) (set-fontset-font t c alt-font)))
>
> This makes "Noto Sans Mono" the default face's font, so it will be
> used for any character supported by the font.  If that's what you see,
> then it's the intended behavior, AFAIK.

With '(setq use-default-font-for-symbols nil)', the glyphs are displayed
as I intended.

How can I find this variable?
And what characters are considered to be symbols and punctuation?





  reply	other threads:[~2020-01-30  6:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-29  3:55 bug#39339: 26.3; set-fontset-font does not replace some glyphs ynyaaa
2020-01-29 18:25 ` Eli Zaretskii
2020-01-30  6:06   ` ynyaaa [this message]
2020-01-30 14:45     ` Eli Zaretskii
2020-02-10 15:35       ` Stefan Kangas

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=86tv4djx4w.fsf@gmail.com \
    --to=ynyaaa@gmail.com \
    --cc=39339@debbugs.gnu.org \
    --cc=eliz@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).