From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: ynyaaa@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#33019: 26.1; can not set fontset as frame font by set-frame-font Date: Sat, 13 Oct 2018 23:43:38 +0900 Message-ID: <867eilsy91.fsf@gmail.com> References: <86bm80a5ip.fsf@gmail.com> <83pnwfwtkh.fsf@gnu.org> <86sh1bro7t.fsf@gmail.com> <834ldrvt8k.fsf@gnu.org> <86o9byslsf.fsf@gmail.com> <831s8uwfwl.fsf@gnu.org> <86k1mmrv1z.fsf@gmail.com> <83h8hqungs.fsf@gnu.org> <86ftxarsxg.fsf@gmail.com> <83d0seukdr.fsf@gnu.org> <86bm7yrnx4.fsf@gmail.com> <83a7niugnc.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp X-Trace: blaine.gmane.org 1539441728 3690 195.159.176.226 (13 Oct 2018 14:42:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 13 Oct 2018 14:42:08 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (windows-nt) Cc: 33019@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 13 16:42:03 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gBL7D-0000rv-Dj for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Oct 2018 16:42:03 +0200 Original-Received: from localhost ([::1]:45224 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gBL9J-0001OX-IK for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Oct 2018 10:44:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gBL9C-0001O8-9l for bug-gnu-emacs@gnu.org; Sat, 13 Oct 2018 10:44:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gBL98-0004Ik-Vs for bug-gnu-emacs@gnu.org; Sat, 13 Oct 2018 10:44:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44290) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gBL98-0004IS-Rz for bug-gnu-emacs@gnu.org; Sat, 13 Oct 2018 10:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gBL98-0003V5-HJ for bug-gnu-emacs@gnu.org; Sat, 13 Oct 2018 10:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: ynyaaa@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Oct 2018 14:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33019 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33019-submit@debbugs.gnu.org id=B33019.153944183713436 (code B ref 33019); Sat, 13 Oct 2018 14:44:02 +0000 Original-Received: (at 33019) by debbugs.gnu.org; 13 Oct 2018 14:43:57 +0000 Original-Received: from localhost ([127.0.0.1]:48548 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gBL93-0003Ue-1c for submit@debbugs.gnu.org; Sat, 13 Oct 2018 10:43:57 -0400 Original-Received: from mail-pg1-f175.google.com ([209.85.215.175]:39746) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gBL91-0003UQ-EQ for 33019@debbugs.gnu.org; Sat, 13 Oct 2018 10:43:55 -0400 Original-Received: by mail-pg1-f175.google.com with SMTP id r9-v6so7158739pgv.6 for <33019@debbugs.gnu.org>; Sat, 13 Oct 2018 07:43:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=H9Mbru3qbYkp3zaugK8j7yZvlHer9umUUz9W6pd6tuI=; b=uEUivqTEPorql2aTg1o4/Dx9sfb3StzEH4cY4OPLZQIj3NESoVWq8g2mUMyGuMcDH5 CA+g4J246Dy4XYfUQNh1nnC/0cRKX0uY1M2pmgIgTPTEZcqxIZorZMyc0lYzRTf5La0V WxYS8yqvoDUUJU/U34+Zv32Bbti03L9Vrdg8v+nDbBZ7xasfaaXdo75+wPJRIwOsMA+9 XBxefhA5AqLII/MuGyUEMa3bw/HTkVF9G1f905moNGgL8s7yvcnZSqJy/ZXxiiNmbgqE z7MG2vnAVrHDOOCN0dOUUDs4iZIyNw1px900lcHe3V2SFwQcdd4s4zBTTMHkgMNSO7DK 9XqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=H9Mbru3qbYkp3zaugK8j7yZvlHer9umUUz9W6pd6tuI=; b=dEWK2QE2u2kW+timHTE8GascTp4E7xYOnewP8EPP9vuZyugrBys7pZlysyiFOva+S2 eYDspTEwy+b1HrDMJYDjWS3OJsXneWllHzJNDflOLGmdB7zYfZz3K/soNnyF+ROANdD2 Kmx18u6sKJX7ltS2haAzYgxAxFrIj1hX2vs9fRlID57CoxH+XzsonrHvqJQ/3zORZgKA kqPpz74ndi3VM3TtY5v4TCk9btq8hGOUlw3ap+yWXMfCbew6UAqe7G6G8Uyv4JJvuxC9 SKUAnlVsFtzcoSFMnxqFkDcux85ES0EatdO/YFTmfV3smKDUCk1MUrm+ixgiJbyYnAuC lFUg== X-Gm-Message-State: ABuFfoj8cBwbKEKAfa+pRHOv5ME0tGJ8oa7dMa8KuB/Nzrw5sdcrjrZY W5rReVQXduEryNMBTJyaiZNqhDhu X-Google-Smtp-Source: ACcGV62fHCg14gLiJ7gKVsmXnGxgGmBcl6aHtGSa9eWxrTMmBzvv64OtrDgryn8bS7QYa3r2HylrJw== X-Received: by 2002:a63:e645:: with SMTP id p5-v6mr9150033pgj.218.1539441829287; Sat, 13 Oct 2018 07:43:49 -0700 (PDT) Original-Received: from HP (east49-p55.eaccess.hi-ho.ne.jp. [219.105.5.56]) by smtp.gmail.com with ESMTPSA id a79-v6sm7074342pfa.124.2018.10.13.07.43.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 13 Oct 2018 07:43:48 -0700 (PDT) In-Reply-To: <83a7niugnc.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 13 Oct 2018 16:20:55 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:151225 Archived-At: Eli Zaretskii writes: > If you use a font instead of :family, does the face work as expected? Evaluating the form below, five U+4E00s are inserted with same glyphs. C-u C-x = on each character shows the same information. > display: by this font (glyph code) > uniscribe:-outline-Noto Sans CJK JP Regular-normal-normal-normal-sans-17-*-*-*-p-*-iso8859-1 (#x2667) (let ((prefix "-outline-Noto Serif CJK JP-normal-normal-normal-serif-*-*-*-*-p-*-")) (set-frame-font "Noto Mono") (set-fontset-font "fontset-default" '(#x4E00 . #x9FFF) "Noto Sans CJK JP Regular") (insert "\x4E00" (propertize "\x4E00" 'face '(:family "Noto Serif CJK JP")) (propertize "\x4E00" 'face '(:font "Noto Serif CJK JP")) (propertize "\x4E00" 'face (list :font (concat prefix "iso10646-1"))) (propertize "\x4E00" 'face (list :font (concat prefix "jisx0208-sjis"))) )) If set-frame-font and set-fontset-font are disabled, only the second U+4E00 with :family face is shown by "Noto Serif CJK JP". The rest four U+4E00s are shown by "游ゴシック", same as no font settings. (let ((prefix "-outline-Noto Serif CJK JP-normal-normal-normal-serif-17-*-*-*-p-*-")) (insert "\x4E00" (propertize "\x4E00" 'face '(:family "Noto Serif CJK JP")) (propertize "\x4E00" 'face '(:font "Noto Serif CJK JP")) (propertize "\x4E00" 'face (list :font (concat prefix "iso10646-1"))) (propertize "\x4E00" 'face (list :font (concat prefix "jisx0208-sjis"))) )) Face with :font property seems not working. Then I tried with ascii characters. (let ((prefix "-outline-Verdana-normal-normal-normal-sans-*-*-*-*-p-*-")) (insert "A" (propertize "A" 'face '(:family "Verdana")) (propertize "A" 'face '(:font "Verdana")) (propertize "A" 'face (list :font (concat prefix "iso8859-1"))) (propertize "A" 'face (list :font (concat prefix "iso10646-1"))) )) Only the second A is shown by "Verdana", the rest are shown by "Courier New".