From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ship Mints Newsgroups: gmane.emacs.devel Subject: Re: Q: Custom fontsets and using a non-default fontset Date: Tue, 3 Sep 2024 10:00:50 -0400 Message-ID: References: <86seuh6icy.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d1659f0621377c90" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8282"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Soham Gumaste , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 03 16:09:40 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 1slUDz-0001wm-84 for ged-emacs-devel@m.gmane-mx.org; Tue, 03 Sep 2024 16:09:39 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1slUDK-0003Qi-7t; Tue, 03 Sep 2024 10:08:58 -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 1slUDI-0003II-7f for emacs-devel@gnu.org; Tue, 03 Sep 2024 10:08:56 -0400 Original-Received: from mail-ot1-x32d.google.com ([2607:f8b0:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1slUDG-0008Mz-8E; Tue, 03 Sep 2024 10:08:55 -0400 Original-Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-7093ba310b0so2205414a34.2; Tue, 03 Sep 2024 07:08:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725372532; x=1725977332; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=SmWEiL01bk7BX99C5qvjzoZbafX2w66XDYACK0xwOgs=; b=hF5tkeXVdMAPKJH59nfEspvmtv4cEydA35l1CJegCo4UxwklDuwGg2lgcSlFjgsXDe mB/u6+7X5l5obsXAE7faeEiMeAaBMNMw8sJa/N9Trs9j8wbphq8lRH/NGcKiJ7gZARBw BPrqMSUqruBDdKQ50Mp8hRcYIi6/dkClsX2MYg8sG1knavr3gj/RvsaHScug7Znnrr0G KxkzX8UeGy8iHxrUkKSvfxLoeLr9oXi0SMNIHvpoYmQ0d24A7DugZp3IvFoAZXuJVtJ8 Py2pP42LpS9dMvbkei951EOopz8f3/PrLdp6GRGZNcUE1Ytx1rHyDRaDQ3KsD7ID2mLO E2CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725372532; x=1725977332; h=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=SmWEiL01bk7BX99C5qvjzoZbafX2w66XDYACK0xwOgs=; b=OBEpi8atYc6aBDY2O5H+WOlCNp2E7356mCUbqFGwDq5y2HXBm09XfxIbAUpZ40rkWT tB7kEET+p78uBcVql1wB8MKk8nf6TOnS71/8QUA3q1Gh1u5IMKuDLpwno9yKZVRxyUwN I2/xroBX6x4LNzL7AUcR6mBmvC/VJOIfIXervruOd/7mUfxtHLcvnJ4OMOyS5No1PMW2 yhEqpBwvNM3aUdfz7L6MgZI7kaWVnl+kC2gmroBvFp65Qv0KTNiVxmn2nspD8KDC5sKY eZ50RSMfRX3vqTqLd3nmXXtZ4RAmGoEWuae2rk0od8kR/NamD9+ymxU+fqG/s6WESEmU qDtw== X-Forwarded-Encrypted: i=1; AJvYcCVa1+RqtKzU+F6n8HNsowfIZlw0FQRCjjZGTj9ydT6ml9jGhAODEpNgyjGzhdL1fIf+8/Kw1TZXXgv1Pg==@gnu.org X-Gm-Message-State: AOJu0YzUX4r9ds4IUsZfEJ3eXso02ZOOU6Mobc+S7/5pP9iJEJ9xHNHs 3zlFvGhqsbKKL7LfiDCXXAS7StlRQqRWPJfao7k7Ip5S11TxWjhEtnlVFnU/2GvgoLDmq8dRv2d SDOl9zbL0t28HGWYM5GHM9bucXV1HpCxi X-Google-Smtp-Source: AGHT+IFth97wUa33+s7p193yv2nSPBwiedbi/MuwTjlg6m3yAuwnkzWMIyGCo70FO2zawCHSxcEjXauhCXaH86WHFzA= X-Received: by 2002:a05:6122:925:b0:4fd:591:e30d with SMTP id 71dfb90a1353d-5009dad7e37mr12084864e0c.2.1725372061277; Tue, 03 Sep 2024 07:01:01 -0700 (PDT) In-Reply-To: <86seuh6icy.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::32d; envelope-from=shipmints@gmail.com; helo=mail-ot1-x32d.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, HTML_MESSAGE=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:323328 Archived-At: --000000000000d1659f0621377c90 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Yuan Fu wrote about fontsets on his blog and this article might be helpful: https://archive.casouri.cc/note/2021/fontset/ On Tue, Sep 3, 2024 at 8:19=E2=80=AFAM Eli Zaretskii wrote: > > 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. > > --000000000000d1659f0621377c90 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yuan Fu wrote about fontsets on his blog and this article might be helpf= ul:

On Tue, Sep 3, 2024 at 8:19=E2=80=AFAM E= li Zaretskii <eliz@gnu.org> wrote= :
> From: Soh= am Gumaste <soham= g2@gmail.com>
> 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-defau= lt".

I wrote that for the case that the user wants to customize the fonts
Emacs choses for different scripts.=C2=A0 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.=C2=A0 It sh= ould
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.=C2=A0 Assuming you already read what<= br> 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?<= br>
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<= br> > 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.

--000000000000d1659f0621377c90--