GNU bug report logs - #42240
Interpretation of 'size' Property in Fontconfig Pattern Strings

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: sebastian.miele@HIDDEN; dated Tue, 7 Jul 2020 11:26:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 7 Jul 2020 11:25:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 07 07:25:23 2020
Received: from localhost ([127.0.0.1]:35581 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jslj1-0008Ns-6O
	for submit <at> debbugs.gnu.org; Tue, 07 Jul 2020 07:25:23 -0400
Received: from lists.gnu.org ([209.51.188.17]:44110)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sebastian.miele@HIDDEN>) id 1jsliz-0008Nk-1V
 for submit <at> debbugs.gnu.org; Tue, 07 Jul 2020 07:25:21 -0400
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 <sebastian.miele@HIDDEN>)
 id 1jsliy-0005sc-Ru
 for bug-gnu-emacs@HIDDEN; Tue, 07 Jul 2020 07:25:20 -0400
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 <sebastian.miele@HIDDEN>)
 id 1jslix-0005hQ-7T
 for bug-gnu-emacs@HIDDEN; Tue, 07 Jul 2020 07:25:20 -0400
Received: by mail-wr1-x42d.google.com with SMTP id q5so44718409wru.6
 for <bug-gnu-emacs@HIDDEN>; 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)
Received: from huette ([5.146.118.181])
 by smtp.gmail.com with ESMTPSA id w17sm707827wra.42.2020.07.07.04.25.16
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 07 Jul 2020 04:25:16 -0700 (PDT)
User-agent: mu4e 1.4.10; emacs 27.0.91
From: Sebastian Miele <sebastian.miele@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: Interpretation of 'size' Property in Fontconfig Pattern Strings
Message-ID: <87pn97r2hw.fsf@HIDDEN>
Date: Tue, 07 Jul 2020 13:25:15 +0200
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2a00:1450:4864:20::42d;
 envelope-from=sebastian.miele@HIDDEN; 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-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: sebastian.miele@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

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




Acknowledgement sent to sebastian.miele@HIDDEN:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#42240; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 7 Jul 2020 11:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.