From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sebastian Miele Newsgroups: gmane.emacs.bugs Subject: bug#42240: Interpretation of 'size' Property in Fontconfig Pattern Strings Date: Tue, 07 Jul 2020 13:25:15 +0200 Message-ID: <87pn97r2hw.fsf@gmail.com> Reply-To: sebastian.miele@gmail.com Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20605"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.4.10; emacs 27.0.91 To: 42240@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 07 13:26:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1jsljm-0005El-DO for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Jul 2020 13:26:10 +0200 Original-Received: from localhost ([::1]:45430 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jsljk-0005yd-OO for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Jul 2020 07:26:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43792) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jslje-0005yC-PI for bug-gnu-emacs@gnu.org; Tue, 07 Jul 2020 07:26:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52269) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jslje-0005sE-Gg for bug-gnu-emacs@gnu.org; Tue, 07 Jul 2020 07:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jslje-0008Ou-Cq for bug-gnu-emacs@gnu.org; Tue, 07 Jul 2020 07:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sebastian Miele Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Jul 2020 11:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42240 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.159412112332237 (code B ref -1); Tue, 07 Jul 2020 11:26:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Jul 2020 11:25:23 +0000 Original-Received: from localhost ([127.0.0.1]:35581 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jslj1-0008Ns-6O for submit@debbugs.gnu.org; Tue, 07 Jul 2020 07:25:23 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:44110) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jsliz-0008Nk-1V for submit@debbugs.gnu.org; Tue, 07 Jul 2020 07:25:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43744) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jsliy-0005sc-Ru for bug-gnu-emacs@gnu.org; Tue, 07 Jul 2020 07:25:20 -0400 Original-Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:39394) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jslix-0005hQ-7T for bug-gnu-emacs@gnu.org; Tue, 07 Jul 2020 07:25:20 -0400 Original-Received: by mail-wr1-x42d.google.com with SMTP id q5so44718409wru.6 for ; Tue, 07 Jul 2020 04:25:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:reply-to:message-id:date:mime-version; bh=fVbY3SAo8H/PMBoWJNWgUwYzGTEI+/ZczFMOzSX92sQ=; b=hfsCgTQhu726stpvdGffKAKv6NcFt4xT7ISJ2hcU/iJI6V/BAzi8wNR06jfXgunyak a/Aeh2FldYhMBEIhPmnCgozO6ldxvpYb9h0kq424GoyrAYp/eexd6SbN396bfnDhJYst dPgM6SwjN1EhC/XtBRaZauHteCoqmNcLka74lqfXMogDPPW+6gx36z0npqVXOVMw0BY/ 86Z7VoQY8Xm+xy6OvOiQVuJOSffsy/DimB+jvxuYWbbPe3iRDf/I3lWTPi38KhpgWCcw DPmV8tl/DGQVmz1Km1peYozA5bxDneg2nxSxl7OZkOsAMKkUfRdHO6xqZO3+dicpYIc2 5+YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:reply-to:message-id :date:mime-version; bh=fVbY3SAo8H/PMBoWJNWgUwYzGTEI+/ZczFMOzSX92sQ=; b=Wzzn6HXn58KutuUUdyurYecWSrBIA+rifTWVN7zE9sqChv4msWNSeI2S27836jWMTp rrjC0+AQbkmswgvPtaDIwt2P+o05kRjb9WpnY7w6jaVW2C4EXbTtr6TUJkWB6U2+Wp8N NoV1OWnCRtSZ1Meoxk3sH5d48+72SDf08b5mn6KK65kjAVFJEvBWAvSSFv3aAcOjHWHA BOiEiPvnBzandvBsFh2X9vcovBCqB42h2lZf8MYsAXcSZpadooIDOkTvVvYA4Z1nZWn2 M4d0zR3XONxkifGDY2ohKobYwuTDUHDKw34B8kNif6K7dgM4VAE+LPxQoHtB58OPQrIr EghA== X-Gm-Message-State: AOAM531JUSNRYTjDu4oZmpk526I/5BeJX+zfOVvGf+1R2hnpxf8VuRmG W4JfXs4TcpLTD+GUL6ZIvUrLLq8N X-Google-Smtp-Source: ABdhPJwgGRVQXRoQiz63DShLNQDJv2XJTicq1iLozku06+NRUDAQop9/cjByCDwUTXfZDATSrgMPPA== X-Received: by 2002:a5d:6ac1:: with SMTP id u1mr52165892wrw.123.1594121116877; Tue, 07 Jul 2020 04:25:16 -0700 (PDT) Original-Received: from huette ([5.146.118.181]) by smtp.gmail.com with ESMTPSA id w17sm707827wra.42.2020.07.07.04.25.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2020 04:25:16 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=sebastian.miele@gmail.com; helo=mail-wr1-x42d.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:182780 Archived-At: GNU Emacs 27.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20) of 2020-06-28 According to 'man 5 fonts-conf' the Fontconfig property 'size' is a double and represents the point size. The property 'pixelsize', too, is a double and represents the pixel size. In FC_DEBUG=1 emacs -Q --font=:family=Hack:size=11 the 'size=11' is interpreted as 'pixelsize=11'. fc-match :family=Hack:size=11 size pixelsize does interpret it as point size. Apart from that both emacs -Q --font=:family=Hack:size=11.1 and emacs -Q --font=:family=Hack:pixelsize=11.1 both yield the same error: "invalid font property: (:size . 11\.1)", although according to fontconfig the pixel size is a double, too. However, fractional pixel sizes may not make sense for Emacs at all. I do not know. The following does work as expected: emacs -Q --font=Hack-11.1