From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Soham Gumaste Newsgroups: gmane.emacs.devel Subject: Re: Q: Custom fontsets and using a non-default fontset Date: Tue, 3 Sep 2024 12:50:29 -0500 Message-ID: References: <86seuh6icy.fsf@gnu.org> Mime-Version: 1.0 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="4545"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , emacs-devel@gnu.org To: Ship Mints Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 03 19:51:58 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 1slXh8-00010B-Jk for ged-emacs-devel@m.gmane-mx.org; Tue, 03 Sep 2024 19:51:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1slXgN-0001RS-LC; Tue, 03 Sep 2024 13:51:11 -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 1slXgL-0001Qj-IW for emacs-devel@gnu.org; Tue, 03 Sep 2024 13:51:09 -0400 Original-Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1slXgJ-0007Qu-Ui; Tue, 03 Sep 2024 13:51:09 -0400 Original-Received: by mail-pg1-x52c.google.com with SMTP id 41be03b00d2f7-7cd83a973bdso280004a12.0; Tue, 03 Sep 2024 10:51:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725385866; x=1725990666; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=IFW26XfwryKvg7WvPyKRMnpa5gmyXOedzW7dJVvl99M=; b=OObWO8rFeYhGGE0n4w5ek6/PTBcpZbLlTfArNjPX1fB7Lp5VOTy8swcVJ4GjRp0R3V gHg6llykQ368XkhiHrtTyTovX+x1Qzpeor+MxuOoJEGUby2tcDGITXrcdvtKQDObtYXL 64CJYTToGtv6N5k7gxI6IFklzmMgBuNLuBOflFDWWhRKdfbzI9kKFklwoenY53Ruxi12 6ezn+3YUdleKEXEmLHpppUu2pohT4g0MelewdNw3IgBubW/DNKuA206JkOjoxO0pRh5M lmpjwISy024aQgE3+3Gi/L4P5TWOABtn5xN4mPIpj/moDsyX+UjvlirRWUFt/ft/Y6dp tPwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725385866; x=1725990666; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IFW26XfwryKvg7WvPyKRMnpa5gmyXOedzW7dJVvl99M=; b=bGp1ntSg32G3J51ZZsGZUBi5dvVgxhgLkMhHawUwu55qyuypF9+vS0N1hiPWxOLO0D kE9WwDV9rOteuQU4caRLadetwN3xE7W/xwwv1w4d9FunAw/9+VGJRbnQQfuV5MwHE1NV n882/Pu5sGqfoBvvnCGfy3Eu2u220wDUCFEqTJTfMPgBgFyAX6Np8TFfGgYtEi/0b8Di +8vAGMjcvA4luK+6S/OBK12gOvR6wnkOuff1PWuYO1w6EH2nAdOAFiynbt5M7ZbQZJt7 FQNUiFX0L8p2vyjSgR+V/MkPrAZs4/yQxFGXann94WGfd7k8AwhxnbeMWeygQBKNEJOh Y/3A== X-Forwarded-Encrypted: i=1; AJvYcCUIanO2qJEBuXXjNxKGbvNyem0f/oAMtJAJyuKhkkNCNedoeNCRFaCCbDSGqu0Eynms703DFRj6zFCXwQ==@gnu.org X-Gm-Message-State: AOJu0YxwyBWVFuK3Weujs+62VexwYhSMyE4gQP77SHTz9HNd/CBSdJeC fjyVrW9hznzZ32huVhbdVR/IkvNX22qltda1lcXJRu2bDCO37/Lq6DEoum32GGGn7nnhef2Nvle sEQsVt8UvrvlHcBZ7rfHMxNtRCMA= X-Google-Smtp-Source: AGHT+IFSG5SWd5shAseGQCiBZLq64Nw5hoxuNVoTJ2flT57Y9DnLE8/xGgdoVX9XPlslbnbhFs3VgN/BYkxi/Lo3gpY= X-Received: by 2002:a17:902:e5cf:b0:206:8dca:1b30 with SMTP id d9443c01a7336-2068dca1d2cmr24059965ad.4.1725385865682; Tue, 03 Sep 2024 10:51:05 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::52c; envelope-from=sohamg2@gmail.com; helo=mail-pg1-x52c.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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:323340 Archived-At: Thanks for the reply, Eli! > > On Tue, Sep 3, 2024 at 8:19=E2=80=AFAM Eli Zaretskii wrote= : >> >> >> > I did notice I am unable to set my own fontset as the default or the >> > one in use as given by the frame-parameter 'font. >> >> If you tried to use the fontset you created as the 'font' parameter of >> a frame, please show the simplest test case to reproduce this >> (preferably as a bug report), and let's take it from there. It should >> work, but without knowing what you tried and how it failed, it is >> impossible to answer your questions intelligently. >> 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. [1]: (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"))) Thanks