unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#42240: Interpretation of 'size' Property in Fontconfig Pattern Strings
@ 2020-07-07 11:25 Sebastian Miele
  2020-07-16 15:03 ` Robert Pluim
  0 siblings, 1 reply; 7+ messages in thread
From: Sebastian Miele @ 2020-07-07 11:25 UTC (permalink / raw)
  To: 42240

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





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-07-16 18:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-07 11:25 bug#42240: Interpretation of 'size' Property in Fontconfig Pattern Strings Sebastian Miele
2020-07-16 15:03 ` 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

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).