From: Sebastian Miele <sebastian.miele@gmail.com>
To: 42240@debbugs.gnu.org
Subject: bug#42240: Interpretation of 'size' Property in Fontconfig Pattern Strings
Date: Tue, 07 Jul 2020 13:25:15 +0200 [thread overview]
Message-ID: <87pn97r2hw.fsf@gmail.com> (raw)
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
next reply other threads:[~2020-07-07 11:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-07 11:25 Sebastian Miele [this message]
2020-07-16 15:03 ` bug#42240: Interpretation of 'size' Property in Fontconfig Pattern Strings Robert Pluim
2020-07-16 15:56 ` Sebastian Miele
2020-07-16 16:07 ` Sebastian Miele
2020-07-16 17:03 ` Robert Pluim
2020-07-16 18:10 ` Sebastian Miele
2020-07-16 18:11 ` Sebastian Miele
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pn97r2hw.fsf@gmail.com \
--to=sebastian.miele@gmail.com \
--cc=42240@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).