From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#42240: Interpretation of 'size' Property in Fontconfig Pattern Strings Date: Thu, 16 Jul 2020 17:03:35 +0200 Message-ID: References: <87pn97r2hw.fsf@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="35282"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 42240@debbugs.gnu.org To: Sebastian Miele Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 16 17:04:53 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 1jw5RN-00090W-4d for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 Jul 2020 17:04:53 +0200 Original-Received: from localhost ([::1]:58158 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jw5RM-0004h8-5d for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 Jul 2020 11:04:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55646) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jw5QY-0003u4-BW for bug-gnu-emacs@gnu.org; Thu, 16 Jul 2020 11:04:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44182) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jw5QX-00058w-V2 for bug-gnu-emacs@gnu.org; Thu, 16 Jul 2020 11:04:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jw5QX-0007sS-R9 for bug-gnu-emacs@gnu.org; Thu, 16 Jul 2020 11:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Jul 2020 15:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42240 X-GNU-PR-Package: emacs Original-Received: via spool by 42240-submit@debbugs.gnu.org id=B42240.159491183030260 (code B ref 42240); Thu, 16 Jul 2020 15:04:01 +0000 Original-Received: (at 42240) by debbugs.gnu.org; 16 Jul 2020 15:03:50 +0000 Original-Received: from localhost ([127.0.0.1]:55728 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jw5QL-0007s0-Uz for submit@debbugs.gnu.org; Thu, 16 Jul 2020 11:03:50 -0400 Original-Received: from mail-wm1-f42.google.com ([209.85.128.42]:53197) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jw5QH-0007ri-2D for 42240@debbugs.gnu.org; Thu, 16 Jul 2020 11:03:49 -0400 Original-Received: by mail-wm1-f42.google.com with SMTP id q15so10620053wmj.2 for <42240@debbugs.gnu.org>; Thu, 16 Jul 2020 08:03:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version; bh=ez8sFFRHn6DHLoFMpWmfCnP1ngFPL//C8cXsGj1iDAA=; b=kWJtaj6mEcnzzwUYHYkmUHZaLmpeH511q+tx7JIrFmt1W5lprotZT7Khn/zj6wWW4n M+Em6LNzs0mN4rTZG7ep8w8IYSZ7gvXM9LdK8+bxwoVirpN0wQhFsLcfIopAnOcz9hj0 0DkytzgUjW/aKYH2c3ZC0TpmFMdKanl4J1L7x9Nk5nrW57maR9DYw3BIU9VAaDUixwwf Sc0URV+BZ3ngZqudgoQrPJ8MtDIzSD5dUgv+LJRC6NZBSsIoiwyHpwg6JtOdEqL1efRT XWh4ai4b/ADM8OLsRIOBAH6GrGBe/MUbwA5KKTR/NSzDscpYVD4tWhmKTts01GnsB5kN VALA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version; bh=ez8sFFRHn6DHLoFMpWmfCnP1ngFPL//C8cXsGj1iDAA=; b=j6lppPZ+uc2+9hSyeBoLTKgUo4/5ueViXZBJdHC376e4tMS1Kh2DBK1jb+SKXUOrvA EXiYvFWbVoteccPMF7TJnm2Kylrf+adIwE3QrZpLCXxLVoGYJNEcFNfB6+DUW/A2rXiH PcYdTRdHiC8zLm92nMz0+2QpTe8+9KsbjnoXZEFozUb2gkS/TbOKaGZ1srQZ0bWtpUyp 28a0poVd9kJvztJoiRRHJDIoWm9Y8XSfnMsqxzshIIVqbY/EYUJhNf1eG9NDTWN30wtM jAh0cygC7zj3NuvJjVA0P738GzeHKp2gwwcpkpJp9aG+wORm5AK1WBYWj26J9RRJ1/n8 3QHQ== X-Gm-Message-State: AOAM532sjQZKpqzfAdhKwp3ZGSt+kO2EXKjCkAqio3yU8jEHUdOpLdG9 Lgniavbaf3bJQK2PCXqlHxwU79yy X-Google-Smtp-Source: ABdhPJynO+Jm8DNJ/wH8b5TSpiWd3jlhT4Kh2pbsh7ofNdwpVBD3HdE1Y4m3TNAhr6XeWijA7jULUg== X-Received: by 2002:a1c:ba0b:: with SMTP id k11mr4621504wmf.140.1594911818589; Thu, 16 Jul 2020 08:03:38 -0700 (PDT) Original-Received: from rpluim-mac (vav06-1-78-207-202-134.fbx.proxad.net. [78.207.202.134]) by smtp.gmail.com with ESMTPSA id v15sm8491891wmh.24.2020.07.16.08.03.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 08:03:37 -0700 (PDT) In-Reply-To: <87pn97r2hw.fsf@gmail.com> (Sebastian Miele's message of "Tue, 07 Jul 2020 13:25:15 +0200") 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:183066 Archived-At: >>>>> On Tue, 07 Jul 2020 13:25:15 +0200, Sebastian Miele said: Sebastian> GNU Emacs 27.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20) Sebastian> of 2020-06-28 Sebastian> According to 'man 5 fonts-conf' the Fontconfig property 'size' is a Sebastian> double and represents the point size. The property 'pixelsize', too, is Sebastian> a double and represents the pixel size. Is this a build with or without Cairo? (you snipped the part of the bug report that would have told us) Sebastian> In Sebastian> FC_DEBUG=1 emacs -Q --font=:family=Hack:size=11 Sebastian> the 'size=11' is interpreted as 'pixelsize=11'. Sebastian> fc-match :family=Hack:size=11 size pixelsize Sebastian> does interpret it as point size. Sebastian> Apart from that both Sebastian> emacs -Q --font=:family=Hack:size=11.1 Sebastian> and Sebastian> emacs -Q --font=:family=Hack:pixelsize=11.1 Sebastian> both yield the same error: "invalid font property: (:size . 11\.1)", Sebastian> although according to fontconfig the pixel size is a double, too. Sebastian> However, fractional pixel sizes may not make sense for Emacs at all. I Sebastian> do not know. Sebastian> The following does work as expected: Sebastian> emacs -Q --font=Hack-11.1