all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: ynyaaa@gmail.com
Cc: 39482@debbugs.gnu.org
Subject: bug#39482: 26.3; set-fontset-font with emacs charset does not work correctly
Date: Fri, 07 Feb 2020 18:04:16 +0200	[thread overview]
Message-ID: <83sgjme64f.fsf@gnu.org> (raw)
In-Reply-To: <86imki4elg.fsf@gmail.com> (ynyaaa@gmail.com)

> From: ynyaaa@gmail.com
> Date: Sat, 08 Feb 2020 00:11:23 +0900
> 
> (let* ((base "Courier New")
>        (size 18)
>        (un-spec "SimHei")
>        (tc-spec '("MingLiU"   . "big5"))
>        (sc-spec '("SimSun"    . "gb2312.1980"))
>        (jp-spec '("MS Mincho" . "jisx0208"))
>        (kr-spec '("BatangChe" . "ksc5601.1987"))
>        )
>   (set-charset-priority 'ascii)
>   (set-frame-font (format "%s-%g" base size t))
>   (set-frame-size nil 80 28)
>   (set-fontset-font t '(#x80 . #x10FFFF) un-spec)
>   (set-fontset-font t 'chinese-gb2312    sc-spec nil 'append)
>   (set-fontset-font t 'big5              tc-spec nil 'append)
>   (set-fontset-font t 'japanese-jisx0208 jp-spec nil 'append)
>   (set-fontset-font t 'korean-ksc5601    kr-spec nil 'append)

Why are you using 'append here?  AFAIU, that means the default fontset
settings, which are set up in fontset.el, are used first, and your
settings are only used as fallback, when the defaults fail to find a
glyph for a charcater.  That could explain why you see what you see.

Also, since we've already established that Uniscribe on Windows 10
sometimes fails in strange ways, please switch to Emacs 27 with
HarfBuzz, because otherwise investigating these problems could be a
huge waste of our time for no good reason.  You can find a relatively
recent build of the Emacs 27 snapshot here:

  https://alpha.gnu.org/gnu/emacs/pretest/windows/emacs-27/

Thanks.





  reply	other threads:[~2020-02-07 16:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-07 15:11 bug#39482: 26.3; set-fontset-font with emacs charset does not work correctly ynyaaa
2020-02-07 16:04 ` Eli Zaretskii [this message]
2020-02-08  2:27   ` ynyaaa
2020-02-08  8:16     ` Eli Zaretskii
2020-02-08 10:50       ` ynyaaa
2020-02-08 11:36         ` Eli Zaretskii
2020-02-08 14:20           ` ynyaaa
2020-02-08 15:06             ` Eli Zaretskii
2022-02-02 18:26               ` Lars Ingebrigtsen
2022-03-03 21:38                 ` Lars Ingebrigtsen
2020-02-09 17:19     ` Eli Zaretskii

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=83sgjme64f.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=39482@debbugs.gnu.org \
    --cc=ynyaaa@gmail.com \
    /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.