From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Q: Custom fontsets and using a non-default fontset Date: Sun, 08 Sep 2024 07:48:20 +0300 Message-ID: <86wmjmwy23.fsf@gnu.org> References: <86seuh6icy.fsf@gnu.org> <86y1476559.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22349"; mail-complaints-to="usenet@ciao.gmane.io" Cc: sohamg2@gmail.com, shipmints@gmail.com, emacs-devel@gnu.org To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Sep 08 06:49:26 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 1sn9ra-0005fb-KG for ged-emacs-devel@m.gmane-mx.org; Sun, 08 Sep 2024 06:49:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sn9qp-00046S-5w; Sun, 08 Sep 2024 00:48:40 -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 1sn9qn-00046I-NT for emacs-devel@gnu.org; Sun, 08 Sep 2024 00:48:37 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sn9qm-0000kU-TL; Sun, 08 Sep 2024 00:48:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=slGoBSd0ZePK2a4jqHtJZHc6m01h0sPBXyDjyfMm1I0=; b=OS4qe/WvuLiP iB+BP+Le5JGeOmzM0f8lFVKAwj3ZkGTMCR1aDom5rrApchh+UJzgbM6KUn+DXQZiAZtvfu15oBjSL whn9BaTFAQi9PosWCpqn4EMsupQw8Wubn7jyzL5IsPDhunzYZOzsLu2Cb0G9O83wcuUSGV8UHh9cp k1HsTlK7e0cpkRZqTwsYB3c9ET61fvFBGZrdgF3J+3X6P006nW4j/WQye6mJPTMrUFkuJVLkw2xNy U+WBDj45Qsm4836vxCTQ1/bNyGsT48u4cGPMfrRm8/adpQk3vZg6bozV8YvBhtPd4hK1ZjV1OQyzy PkRoDwW/npyf7U3k+yMFHA==; In-Reply-To: (message from Yuan Fu on Sat, 7 Sep 2024 20:44:01 -0700) 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:323499 Archived-At: > From: Yuan Fu > Date: Sat, 7 Sep 2024 20:44:01 -0700 > Cc: Soham Gumaste , > shipmints@gmail.com, > emacs-devel@gnu.org > > >> (create-fontset-from-fontset-spec > >> (font-xlfd-name > >> (font-spec > >> :name "Fira Code" :height 130 :weight 'medium > >> :registry "fontset-mine"))) > >> > >> (set-fontset-font "fontset-mine" 'emoji > >> (font-spec :family "Noto Color Emoji" :foundry "NONE")) > >> > >> (setq default-frame-alist '((font . "fontset-mine"))) > > > > 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. That's for a face, not for a frame. IOW, it will not affect all the faces used on a frame, only that single face.