all messages for Emacs-related lists mirrored at yhetil.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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.