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: [ELPA] Add new 'show-font' package? Date: Fri, 06 Sep 2024 10:16:30 +0300 Message-ID: <86plph1cc1.fsf@gnu.org> References: <87msknu635.fsf@protesilaos.com> <87jzfqjtdh.fsf@posteo.net> <867cbq4cun.fsf@gnu.org> <87zfol4a5t.fsf@protesilaos.com> <86ttet1fbe.fsf@gnu.org> <874j6tgv0w.fsf@protesilaos.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7154"; mail-complaints-to="usenet@ciao.gmane.io" Cc: philipk@posteo.net, emacs-devel@gnu.org To: Protesilaos Stavrou Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 06 09:16:51 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 1smTD9-0001hK-Ak for ged-emacs-devel@m.gmane-mx.org; Fri, 06 Sep 2024 09:16:51 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smTCx-0006c9-7Z; Fri, 06 Sep 2024 03:16:39 -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 1smTCs-0006JA-Cj for emacs-devel@gnu.org; Fri, 06 Sep 2024 03:16: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 1smTCr-0006UE-Ad; Fri, 06 Sep 2024 03:16:33 -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=mZ3LKlAMDZo0YPqIkgpEvOBeWlX0TsAlApJ5sCDrPB0=; b=jBb4PbhJpJt/ WWN5fkfn+1c5YCuANqMWarCGVfCgVYvk7TnDIB+INeK/h9yiYe0IBrH4sR7LDhRK3Wb82XaTOyXBn t3HHeLheNRi80c4+wes4nXIYwhHUP2TrTacCHzqb85W6IP5QTLsP2E6ANsKrBp983Avv6paHrBVr0 U5jU8N6JZgCZZX4YCndqknlXfSHWCK/qLJQReuX0CM9M/ya80nnkWrrEEzeLMkvrVoVH2keUod7YG wW5KtjqPSrd1cAFKfbowrz2qNgNgQyw3DZiAlIZNRl5NCqhArjqmfsOzU68nInHk7Q8qdSqm6HaHT /JRCUxnGCYXudX3Pof/9aQ==; In-Reply-To: <874j6tgv0w.fsf@protesilaos.com> (message from Protesilaos Stavrou on Fri, 06 Sep 2024 09:23:43 +0300) 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:323455 Archived-At: > From: Protesilaos Stavrou > Cc: philipk@posteo.net, emacs-devel@gnu.org > Date: Fri, 06 Sep 2024 09:23:43 +0300 > > > x-family-fonts is defined in xfaces.c, which is not specific to X. > > That function is supported by every font back-end that Emacs can use, > > so it is platform-independent. > > Very well! I am experimenting with it right now. It seems to do what I > want. All I need is to figure out how to get/guess the name of a font > based on the file name (ideally without depending on an external program > that may not be installed on the user's end). Why do you need that? IME, users don't care about file names of the fonts.