From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: Q: Custom fontsets and using a non-default fontset Date: Sat, 7 Sep 2024 20:44:01 -0700 Message-ID: References: <86seuh6icy.fsf@gnu.org> <86y1476559.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15262"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Soham Gumaste , shipmints@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Sep 08 05:44:35 2024 Return-path: Envelope-to: ged-emacs-devel@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 1sn8qp-0003sx-Gy for ged-emacs-devel@m.gmane-mx.org; Sun, 08 Sep 2024 05:44:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sn8qZ-0006D4-00; Sat, 07 Sep 2024 23:44:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sn8qX-0006Ca-0K for emacs-devel@gnu.org; Sat, 07 Sep 2024 23:44:17 -0400 Original-Received: from mail-oi1-x229.google.com ([2607:f8b0:4864:20::229]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sn8qV-0003HB-D1; Sat, 07 Sep 2024 23:44:16 -0400 Original-Received: by mail-oi1-x229.google.com with SMTP id 5614622812f47-3e03b6d99c3so389122b6e.0; Sat, 07 Sep 2024 20:44:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725767053; x=1726371853; darn=gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Xo9bRV126gx5FaF9zADDVolGfssiB0uEo/8s7AaSTqc=; b=mwn7tc6Q2rQ7jO1y5XF7oaFfgwWDhNG8ShpsSCmJPAza3A3vcUcjv6CCmqvJe3Eu3X kdpsBnQ9bQBF2eyttOk/P0gnmdWxDQ1UPyuu+Is9A6cZcp/1hYh5kwJLBIyMKioXS7Nu XvqugJaerghb0uQPy7wKckqccWNpxi1Qz5GXopSk2fFFzGrJCr60x+ulqLUcM50CyqR5 Wjx0xVEgQz70ciJ+6oKeNkpRaVxG4wgQe4oFOnYaOH0Y0Zoi5YB+GU86+TEHCHqqoU0D 1hurNrO3X6H5F4eK8ZQfiCRrBQibK9gDMcy8R9gZxjmNokWRnZtqkbKd5gYSafDalHrd fQBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725767053; x=1726371853; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Xo9bRV126gx5FaF9zADDVolGfssiB0uEo/8s7AaSTqc=; b=JMfR9PC+ucaGQnDospi59tPhuhvkVXgRQgTpCx/4XqYmdqaFXg1Fo2snB6LlsV/E98 mbHfb5UjvbUHr8QIEjuz8w0Od2ubPnMfL630tOPArLjSB/3kVC7H66bkJi5JKWDH9J+e zENXdEG8WKMjZAlbSb+vVE7hE05gE0S3M81wJJA+ZkhKZYQcekVaPZUNZwVVjGvQaeoI 2smj1tMENYHVWBul+Ur+vyk0ZokgCe2D1BaiGrBZx5cs80AFEergtvBOhKN/eWoHomQQ gvTCUaOhgoA1/eUgKRQHWSkw54Q666R5l3nN9gR2BizdwGKlVZ3i7soRJHdi/6/1E1uD IsGg== X-Forwarded-Encrypted: i=1; AJvYcCXAf2o+d2RJPspUjB4oZ6qR8kfcY8kYxlRVtUfojxS75LV/VT+ijL7ozv7FIXppCu3mpK8UAtSpryp4EQ==@gnu.org X-Gm-Message-State: AOJu0YyduxrP7SR08GoIEqqEP6Ty/sSzsgP4p6Tp8f/ktpYXt8LdOhn6 Wuu+hS2TXt8xaMnMuxxBiqPxDYa3lDhcRCc1zO/yEchAIZb2RzqcfzT+vQ== X-Google-Smtp-Source: AGHT+IEaq6E9B5PMD0FpNDjDA3cOurFzOS8AxLBobTv82X8nec2+f2t+82CR+e8Rlt3vdX+WCCtCSA== X-Received: by 2002:a05:6808:1709:b0:3df:144f:9ef9 with SMTP id 5614622812f47-3e02a02d73cmr8445390b6e.41.1725767053079; Sat, 07 Sep 2024 20:44:13 -0700 (PDT) Original-Received: from smtpclient.apple ([2601:646:8f81:6120:9947:7537:5948:e5a0]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-718e5982efcsm1509017b3a.166.2024.09.07.20.44.12 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 Sep 2024 20:44:12 -0700 (PDT) In-Reply-To: <86y1476559.fsf@gnu.org> X-Mailer: Apple Mail (2.3776.700.51) Received-SPF: pass client-ip=2607:f8b0:4864:20::229; envelope-from=casouri@gmail.com; helo=mail-oi1-x229.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:323497 Archived-At: > On Sep 4, 2024, at 4:16=E2=80=AFAM, Eli Zaretskii = wrote: >=20 >> From: Soham Gumaste >> Date: Tue, 3 Sep 2024 12:50:29 -0500 >> Cc: Eli Zaretskii , emacs-devel@gnu.org >>=20 >> I used this [1] as init.el and ran `emacs --init-directory=3D.`. I >> checked the frame font with (frame-parameter nil 'font) and the = output >> was NOT "fontset-mine" but rather a XLFD string representing the = ascii >> font I chose. My 'emoji script font worked. Please let me know if = this >> is a bug report or an error in my expectation of the output. >>=20 >> [1]: >> (create-fontset-from-fontset-spec >> (font-xlfd-name >> (font-spec >> :name "Fira Code" :height 130 :weight 'medium >> :registry "fontset-mine"))) >>=20 >> (set-fontset-font "fontset-mine" 'emoji >> (font-spec :family "Noto Color Emoji" :foundry = "NONE")) >>=20 >> (setq default-frame-alist '((font . "fontset-mine"))) >=20 > What you see is the expected behavior. That's what setting a frame's > 'font' parameter does when the value is a fontset. You need to use the (undocumented) :fontset keyword. Also the :fontset = keyword doesn=E2=80=99t work for =E2=80=98default face. You need to use = (set-fontset-font "fontset-default" =E2=80=A6). Yuan