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: Tue, 03 Sep 2024 15:18:21 +0300 Message-ID: <86seuh6icy.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20848"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Soham Gumaste Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 03 14:19:14 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 1slSV8-0005Hf-Am for ged-emacs-devel@m.gmane-mx.org; Tue, 03 Sep 2024 14:19:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1slSUR-0000HX-Jo; Tue, 03 Sep 2024 08:18:31 -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 1slSUO-0000G4-5e for emacs-devel@gnu.org; Tue, 03 Sep 2024 08:18:28 -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 1slSUL-0004N4-Ih; Tue, 03 Sep 2024 08:18:27 -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=vuXryGL37R0xg4bNJIvzTyoTE9G008sYQD3Vv9V9Sbw=; b=krBzPguRbVPY NMSayCPG5rywmEb9zOkoBodN/0b00WCi31TiiuxoT9pzeaob6WIZl3Xl4dgFyjjzOL5gDjQ/LfUbd mIEYrAALehIfN/XA2txerWvpTdOwVVCsVcmjHpaHGCzxXwhpH1EZNHP1CQjZwOapv8WWiSvracEeN 1LrVhLJuQ4EcaKhQclUyMugQMRoxZjwKJbvDAQzSvGNHxn9X54e3375S8HS+BXUtx0ix8ue/NNYAT vCIjSAA06ME25zrm6xtubarA4blD48i8LTuxdPAqqNLTzd/14YiUV6M+QlV9F3u7svJNdYAjOQe2E +ZmzKeuTISRfXpC+Ds+qBQ==; In-Reply-To: (message from Soham Gumaste on Mon, 2 Sep 2024 15:49:41 -0500) 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:323320 Archived-At: > From: Soham Gumaste > Date: Mon, 2 Sep 2024 15:49:41 -0500 > > Recently I got too curious for my own good while messing with emacs > (as one does) and discovered fontsets and transparent usage of > multiple fonts for different unicode points/scripts/ranges. > > I discovered this [1] reply by Eli about *not* messing with creating > your own fontset and rather just using the default "fontset-default". I wrote that for the case that the user wants to customize the fonts Emacs choses for different scripts. In that case, customizing the default font is the best alternative. > 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. > How do I learn more about emacs fontsets? It depends on what you want to learn. Assuming you already read what we have about fontsets in the Emacs user manual and in the ELisp reference manual, further info is only in the sources, I'm afraid. > Is support for user defined > fontsets something thats in the works, or is it just an internal API? It is a working API that should just work. > The reply in [1] is around 6y old which is why I am curious about the > current state of this. A use-case I have in mind is switching to a > non-programmer fontset for presenting Org mode documents with > org-present. Fontsets were added to Emacs a long time ago, much longer than 6 years, so I don't think there were any significant changes.