unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* What is a default font?
@ 2019-12-03 18:36 martin rudalics
  2019-12-04 16:12 ` Eli Zaretskii
  0 siblings, 1 reply; 22+ messages in thread
From: martin rudalics @ 2019-12-03 18:36 UTC (permalink / raw)
  To: emacs-devel

I just noticed that my implementation of 'window-default-font-height'
is likely wrong.  The fault is all mine but I think that, in a sense,
'default-font-height', 'default-font-width', 'default-line-height' and
'face-font' are to blame as well.

In particular, the 'face-font' doc-string should tell that it returns
a value for the current buffer if FRAME is nil or omitted and a value
for FRAME if it is non-nil, disregarding the current buffer in that
case entirely.  If that's the correct interpretation of that function.
So far I can't make heads or tails of it.

The other functions are IMO ill-specified for the case where the
current buffer does not appear on the selected frame.  Using values
returned by 'frame-parameter', 'frame-char-height' and
'frame-char-width' in that case can be misleading and present simple
guesses at the best.

Personally, I would prefer two types of functions.  One for getting
the default face font of a buffer alone (including remapping) and one
for the default face font of a frame.  But I don't know enough about
fonts, their remapping and their relationship to frames to tell what
really makes sense here.

martin



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

end of thread, other threads:[~2019-12-08 15:39 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-03 18:36 What is a default font? martin rudalics
2019-12-04 16:12 ` Eli Zaretskii
2019-12-04 18:04   ` martin rudalics
2019-12-04 19:38     ` Štěpán Němec
2019-12-05  7:50       ` martin rudalics
2019-12-05 15:03       ` Eli Zaretskii
2019-12-04 21:21     ` Stefan Monnier
2019-12-05 17:54       ` martin rudalics
2019-12-05 18:04         ` Eli Zaretskii
2019-12-05 18:24           ` martin rudalics
2019-12-05 18:51             ` Eli Zaretskii
2019-12-05 18:59               ` martin rudalics
2019-12-05 19:13                 ` Eli Zaretskii
2019-12-06  8:35                   ` martin rudalics
2019-12-06 15:14                     ` Eli Zaretskii
2019-12-07  9:39                       ` martin rudalics
2019-12-07 10:24                         ` Eli Zaretskii
2019-12-06 15:45                   ` Eli Zaretskii
2019-12-07  9:39                     ` martin rudalics
2019-12-07 10:29                       ` Eli Zaretskii
2019-12-08  9:03                         ` martin rudalics
2019-12-08 15:39                           ` Eli Zaretskii

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