From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#39656: 27.0.60; ordering of fonts in fontset is ignored Date: Wed, 19 Feb 2020 11:02:44 +0000 Message-ID: <20200219110244.GA39672@breton.holly.idiocy.org> References: <86pnec6nsk.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="25623"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 39656@debbugs.gnu.org To: ynyaaa@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 19 12:03:16 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j4N8M-0006UD-6M for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Feb 2020 12:03:14 +0100 Original-Received: from localhost ([::1]:49250 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4N8L-00019E-7l for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Feb 2020 06:03:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35108) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4N8B-000138-SK for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2020 06:03:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j4N8A-0003fl-EL for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2020 06:03:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35718) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j4N89-0003f8-Q2 for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2020 06:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j4N89-0001pY-MK for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2020 06:03:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Feb 2020 11:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39656 X-GNU-PR-Package: emacs Original-Received: via spool by 39656-submit@debbugs.gnu.org id=B39656.15821101767024 (code B ref 39656); Wed, 19 Feb 2020 11:03:01 +0000 Original-Received: (at 39656) by debbugs.gnu.org; 19 Feb 2020 11:02:56 +0000 Original-Received: from localhost ([127.0.0.1]:41691 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j4N83-0001pE-OF for submit@debbugs.gnu.org; Wed, 19 Feb 2020 06:02:55 -0500 Original-Received: from mail-wr1-f44.google.com ([209.85.221.44]:46829) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j4N81-0001p1-A5 for 39656@debbugs.gnu.org; Wed, 19 Feb 2020 06:02:53 -0500 Original-Received: by mail-wr1-f44.google.com with SMTP id z7so27654841wrl.13 for <39656@debbugs.gnu.org>; Wed, 19 Feb 2020 03:02:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=CmBpazlHcpAI2M8jfjLJPk99VfnQukhrlZd8wPfe0hg=; b=ECoXFvR97966EDStSjxIrKA5+IobT+oww8ukCgW90TjnPuFoNToQtT/WcjY3YLAMI8 ucJ+erbgYukz61ISk+sCEF1WAZH/0hUfd+NVxIYdvi22RkLHTw1b87ANyuU2YEc7WNAt GZV5CREsTwqqXAGWvWbdSjKxgyj33SPJ0ytrbl0/JWS2Rh87TXlSUX0o5beDcmnQ3lwH Q+d8gnp/c/OZMpqzU5nUjzU/7xcCJDvYtSG7yStNgcBJV7AHk168WyOn/tMxZpsrF7ni pJdeFpZn68GA/Gc3uxEwgVEDtFhXWiaHZulwE4C/8/mWn660UINsxtIp8DgpX+lWY7eN MpgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to; bh=CmBpazlHcpAI2M8jfjLJPk99VfnQukhrlZd8wPfe0hg=; b=EiGVHN0o8Pd+0w820wFpfQ3E9I9on1yQ2EFRK+zb/bEj+B5ZM1N1deWlrDWivWjd/T K0qz0megqxbwJdqHBF8HBW4Ps5kNqRfRQi/Z/dhLTT8YEGpsAlaN2IXMlY6IxjZY2IYW M6j4B14CRjkZrMHpEdP2FBq8QzlxI9NkOUPPwyyVeWEKATiDIwJLvluHEnR44AZ7kTlh jiUVSNTFNUf9Walv31xd+yVVWXZ4sHNtlqtcuZaf2yLbzIBxvaS8YLbIzs2Z1OyeQTSJ au8/25iCHTyHe9wsbo1yaorV6lhuZjS4j5CsD5Q1FRDjPGcAOFTJXIdyQRmc4tQUWVpG Esaw== X-Gm-Message-State: APjAAAXvWDU2SMM6V1BQ+9sSH2geuaoh9eqMUvw9mutBCc0zskWsYJgD wRXXRubqEXkvLUATv7I9gGI= X-Google-Smtp-Source: APXvYqyTq6PRo8lOYXuQm3pzsiwahorLe2lDhNvlr7hkugcgD9lkZgo7/dp724pvfupD2Ohs9ANnOw== X-Received: by 2002:adf:c3d0:: with SMTP id d16mr33755012wrg.376.1582110167332; Wed, 19 Feb 2020 03:02:47 -0800 (PST) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-8996-8c22-b40f-230f.holly.idiocy.org. [2001:8b0:3f8:8129:8996:8c22:b40f:230f]) by smtp.gmail.com with ESMTPSA id h128sm2686778wmh.33.2020.02.19.03.02.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Feb 2020 03:02:46 -0800 (PST) Content-Disposition: inline In-Reply-To: <86pnec6nsk.fsf@gmail.com> 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: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:176241 Archived-At: On Tue, Feb 18, 2020 at 10:13:47PM +0900, ynyaaa@gmail.com wrote: > > If font list in fontset includes the font for ASCII, > the ordering may be ignored and the font for ASCII is used prior to > front fonts. > > I tried to setup fontset to display "MS Gothic" as a primary font, > and "SimHei" as a secondary font, except for ASCII characters. > And "SimHei" is used for ASCII characters. > ("MS Gothic" has YEN SIGN glyph for #x5C(\).) > > Evaluating the form below, every character is displayed with "SimHei" > if glyphs are defined in both "SImHei" and "MS Gothic". > For example, most of CJK Ideographs are displayed with "SimHei". > "MS Gothic" is not used between U+3400 and U+9FA5. > > (let* ((ascii "SimHei") > (primary "MS Gothic") > (secondary ascii)) > (setq use-default-font-for-symbols nil) > (set-frame-font ascii) > (set-fontset-font nil '(#x80 . #x10FFFF) primary) > (set-fontset-font nil '(#x80 . #x10FFFF) secondary nil 'append)) As I understand it the fontsets are used as fallbacks if the default font doesn’t contain the desired glyph. Since SimHei DOES contain the glyph and has been set as the default (set-frame-font) we would expect to see it displayed with SimHei. -- Alan Third