unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Default Info face
@ 2024-12-18 10:00 Manuel Giraud via Emacs development discussions.
  2024-12-18 10:22 ` tomas
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Manuel Giraud via Emacs development discussions. @ 2024-12-18 10:00 UTC (permalink / raw)
  To: emacs-devel

Hi,

If I'm not mistaken, currently, the face used for the text body of Info
nodes is `default'.  I was wondering if there would be any interest in
having an `info' face defined for this usage.  I imagine that it could
inherit for `variable-pitch-text' as "shr.el" is doing.  I also guess
that it would have an impact on some sub-faces (like `info-title*' for
example).  WDYT?
-- 
Manuel Giraud



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

* Re: Default Info face
  2024-12-18 10:00 Default Info face Manuel Giraud via Emacs development discussions.
@ 2024-12-18 10:22 ` tomas
  2024-12-18 12:18   ` Eric S Fraga
  2024-12-18 12:46   ` Manuel Giraud via Emacs development discussions.
  2024-12-18 14:05 ` Eli Zaretskii
  2024-12-18 17:17 ` Juri Linkov
  2 siblings, 2 replies; 13+ messages in thread
From: tomas @ 2024-12-18 10:22 UTC (permalink / raw)
  To: Manuel Giraud; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 876 bytes --]

On Wed, Dec 18, 2024 at 11:00:54AM +0100, Manuel Giraud via Emacs development discussions. wrote:
> Hi,
> 
> If I'm not mistaken, currently, the face used for the text body of Info
> nodes is `default'.  I was wondering if there would be any interest in
> having an `info' face defined for this usage.  I imagine that it could
> inherit for `variable-pitch-text' as "shr.el" is doing.  I also guess
> that it would have an impact on some sub-faces (like `info-title*' for
> example).  WDYT?

As long as I can define variable-pitch to be a fixed-pitch font ;-P

More seriously: I explicitly set as much as I can to be a fixed pitch
font. It works best with my combo of screen and sight. I think it's
a bad idea to encode a font property into a base font's name. It feels
like forcing others to swallow one's own esthetic preferences.

Thanks & cheers
-- 
t

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

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

* Re: Default Info face
  2024-12-18 10:22 ` tomas
@ 2024-12-18 12:18   ` Eric S Fraga
  2024-12-18 13:34     ` tomas
  2024-12-18 12:46   ` Manuel Giraud via Emacs development discussions.
  1 sibling, 1 reply; 13+ messages in thread
From: Eric S Fraga @ 2024-12-18 12:18 UTC (permalink / raw)
  To: emacs-devel

Response below/inline for email tomas@tuxteam.de wrote:
> (original email sent 18 Dec 2024 at 11:22)
> 
> I think it's a bad idea to encode a font property into a base font's
> name.

+1

But the OP's suggestion of a different face for Info mode may be a good
idea, with the default being to simply inherit from default?

-- 
Eric S Fraga via gnus (Emacs 31.0.50 2024-12-17) on Debian 12.6




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

* Re: Default Info face
  2024-12-18 10:22 ` tomas
  2024-12-18 12:18   ` Eric S Fraga
@ 2024-12-18 12:46   ` Manuel Giraud via Emacs development discussions.
  2024-12-18 12:54     ` tomas
  1 sibling, 1 reply; 13+ messages in thread
From: Manuel Giraud via Emacs development discussions. @ 2024-12-18 12:46 UTC (permalink / raw)
  To: tomas; +Cc: emacs-devel

<tomas@tuxteam.de> writes:

> On Wed, Dec 18, 2024 at 11:00:54AM +0100, Manuel Giraud via Emacs development discussions. wrote:
>> Hi,
>> 
>> If I'm not mistaken, currently, the face used for the text body of Info
>> nodes is `default'.  I was wondering if there would be any interest in
>> having an `info' face defined for this usage.  I imagine that it could
>> inherit for `variable-pitch-text' as "shr.el" is doing.  I also guess
>> that it would have an impact on some sub-faces (like `info-title*' for
>> example).  WDYT?
>
> As long as I can define variable-pitch to be a fixed-pitch font ;-P
>
> More seriously: I explicitly set as much as I can to be a fixed pitch
> font. It works best with my combo of screen and sight. I think it's
> a bad idea to encode a font property into a base font's name. It feels
> like forcing others to swallow one's own esthetic preferences.

This will, of course, still be possible to have everything using a fixed
font.  But OTOH, currently, besides "M-x variable-pitch-mode" I don't
think there is a way to have Info pages (only) to be displayed as
variable-pitch.

Thanks for your input.
-- 
Manuel Giraud



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

* Re: Default Info face
  2024-12-18 12:46   ` Manuel Giraud via Emacs development discussions.
@ 2024-12-18 12:54     ` tomas
  2024-12-18 14:42       ` Manuel Giraud via Emacs development discussions.
  0 siblings, 1 reply; 13+ messages in thread
From: tomas @ 2024-12-18 12:54 UTC (permalink / raw)
  To: Manuel Giraud; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 619 bytes --]

On Wed, Dec 18, 2024 at 01:46:11PM +0100, Manuel Giraud wrote:
> <tomas@tuxteam.de> writes:
> 
> > On Wed, Dec 18, 2024 at 11:00:54AM +0100, Manuel Giraud via Emacs development discussions. wrote:

[...]
> > As long as I can define variable-pitch to be a fixed-pitch font ;-P

> This will, of course, still be possible to have everything using a fixed
> font.

Phew :-)

>  But OTOH, currently, besides "M-x variable-pitch-mode" I don't
> think there is a way to have Info pages (only) to be displayed as
> variable-pitch.

By making the new "info" font inherit from something else?

Cheers
-- 
t

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

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

* Re: Default Info face
  2024-12-18 12:18   ` Eric S Fraga
@ 2024-12-18 13:34     ` tomas
  0 siblings, 0 replies; 13+ messages in thread
From: tomas @ 2024-12-18 13:34 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 469 bytes --]

On Wed, Dec 18, 2024 at 12:18:27PM +0000, Eric S Fraga wrote:
> Response below/inline for email tomas@tuxteam.de wrote:
> > (original email sent 18 Dec 2024 at 11:22)
> > 
> > I think it's a bad idea to encode a font property into a base font's
> > name.
> 
> +1
> 
> But the OP's suggestion of a different face for Info mode may be a good
> idea,

Absolutely.

> with the default being to simply inherit from default?

yes, perhaps.

Cheers
-- 
t

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

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

* Re: Default Info face
  2024-12-18 10:00 Default Info face Manuel Giraud via Emacs development discussions.
  2024-12-18 10:22 ` tomas
@ 2024-12-18 14:05 ` Eli Zaretskii
  2024-12-18 14:50   ` Manuel Giraud via Emacs development discussions.
  2024-12-18 17:17 ` Juri Linkov
  2 siblings, 1 reply; 13+ messages in thread
From: Eli Zaretskii @ 2024-12-18 14:05 UTC (permalink / raw)
  To: Manuel Giraud; +Cc: emacs-devel

> Date: Wed, 18 Dec 2024 11:00:54 +0100
> From:  Manuel Giraud via "Emacs development discussions." <emacs-devel@gnu.org>
> If I'm not mistaken, currently, the face used for the text body of Info
> nodes is `default'.  I was wondering if there would be any interest in
> having an `info' face defined for this usage.  I imagine that it could
> inherit for `variable-pitch-text' as "shr.el" is doing.  I also guess
> that it would have an impact on some sub-faces (like `info-title*' for
> example).  WDYT?

Info manuals don't look nice with variable-pitch fonts because
'makeinfo' fills and justifies lines assuming a fixed-pitch font, then
inserts hard newlines between lines.  Try making your default face use
a variable-pitch font, and you will see that Info manuals look ugly:
some lines are too long, others too short.

Variable-pitch fonts could make sense if our documentation was
refilled, like we do in shr.el for HTML content.  But that will not
work with Info, I think, at least not in the near future.

If variable-pitch face is out, what other advantages could we have by
using a specialized face in Info?



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

* Re: Default Info face
  2024-12-18 12:54     ` tomas
@ 2024-12-18 14:42       ` Manuel Giraud via Emacs development discussions.
  0 siblings, 0 replies; 13+ messages in thread
From: Manuel Giraud via Emacs development discussions. @ 2024-12-18 14:42 UTC (permalink / raw)
  To: tomas; +Cc: emacs-devel

tomas@tuxteam.de writes:

> On Wed, Dec 18, 2024 at 01:46:11PM +0100, Manuel Giraud wrote:
>> <tomas@tuxteam.de> writes:
>> 
>> > On Wed, Dec 18, 2024 at 11:00:54AM +0100, Manuel Giraud via Emacs development discussions. wrote:
>
> [...]
>> > As long as I can define variable-pitch to be a fixed-pitch font ;-P
>
>> This will, of course, still be possible to have everything using a fixed
>> font.
>
> Phew :-)

;-)

>>  But OTOH, currently, besides "M-x variable-pitch-mode" I don't
>> think there is a way to have Info pages (only) to be displayed as
>> variable-pitch.
>
> By making the new "info" font inherit from something else?

Yes that was my idea, this new "info" face would inherit from
`variable-pitch-text'.
-- 
Manuel Giraud



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

* Re: Default Info face
  2024-12-18 14:05 ` Eli Zaretskii
@ 2024-12-18 14:50   ` Manuel Giraud via Emacs development discussions.
  2024-12-18 15:28     ` Eli Zaretskii
  0 siblings, 1 reply; 13+ messages in thread
From: Manuel Giraud via Emacs development discussions. @ 2024-12-18 14:50 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

>> Date: Wed, 18 Dec 2024 11:00:54 +0100
>> From:  Manuel Giraud via "Emacs development discussions." <emacs-devel@gnu.org>
>> If I'm not mistaken, currently, the face used for the text body of Info
>> nodes is `default'.  I was wondering if there would be any interest in
>> having an `info' face defined for this usage.  I imagine that it could
>> inherit for `variable-pitch-text' as "shr.el" is doing.  I also guess
>> that it would have an impact on some sub-faces (like `info-title*' for
>> example).  WDYT?
>
> Info manuals don't look nice with variable-pitch fonts because
> 'makeinfo' fills and justifies lines assuming a fixed-pitch font, then
> inserts hard newlines between lines.  Try making your default face use
> a variable-pitch font, and you will see that Info manuals look ugly:
> some lines are too long, others too short.

I've just tried and I don't see more ugliness when using a
variable-pitch font in Info-mode.  The lines "too long" and "too short"
are already there when using a fixed-pitch font anyway.

[...]

> If variable-pitch face is out, what other advantages could we have by
> using a specialized face in Info?

Yes, if you rule out variable-pitch, there is not much left to this case
then.
-- 
Manuel Giraud



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

* Re: Default Info face
  2024-12-18 14:50   ` Manuel Giraud via Emacs development discussions.
@ 2024-12-18 15:28     ` Eli Zaretskii
  2024-12-18 16:50       ` Manuel Giraud via Emacs development discussions.
  0 siblings, 1 reply; 13+ messages in thread
From: Eli Zaretskii @ 2024-12-18 15:28 UTC (permalink / raw)
  To: Manuel Giraud; +Cc: emacs-devel

> From: Manuel Giraud <manuel@ledu-giraud.fr>
> Cc: emacs-devel@gnu.org
> Date: Wed, 18 Dec 2024 15:50:06 +0100
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Info manuals don't look nice with variable-pitch fonts because
> > 'makeinfo' fills and justifies lines assuming a fixed-pitch font, then
> > inserts hard newlines between lines.  Try making your default face use
> > a variable-pitch font, and you will see that Info manuals look ugly:
> > some lines are too long, others too short.
> 
> I've just tried and I don't see more ugliness when using a
> variable-pitch font in Info-mode.  The lines "too long" and "too short"
> are already there when using a fixed-pitch font anyway.

That's specific to the font your system uses when you say
"variable-pitch".  The results are not very predictable, and depend on
the OS and the fonts actually installed.

> > If variable-pitch face is out, what other advantages could we have by
> > using a specialized face in Info?
> 
> Yes, if you rule out variable-pitch, there is not much left to this case
> then.

So why is it so important to use variable-pitch face for Info?  What
are the advantages of that?



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

* Re: Default Info face
  2024-12-18 15:28     ` Eli Zaretskii
@ 2024-12-18 16:50       ` Manuel Giraud via Emacs development discussions.
  2024-12-18 17:06         ` Eli Zaretskii
  0 siblings, 1 reply; 13+ messages in thread
From: Manuel Giraud via Emacs development discussions. @ 2024-12-18 16:50 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

[...]

>> I've just tried and I don't see more ugliness when using a
>> variable-pitch font in Info-mode.  The lines "too long" and "too short"
>> are already there when using a fixed-pitch font anyway.
>
> That's specific to the font your system uses when you say
> "variable-pitch".  The results are not very predictable, and depend on
> the OS and the fonts actually installed.

Ok.

>> > If variable-pitch face is out, what other advantages could we have by
>> > using a specialized face in Info?
>> 
>> Yes, if you rule out variable-pitch, there is not much left to this case
>> then.
>
> So why is it so important to use variable-pitch face for Info?  What
> are the advantages of that?

Well, I'm far from an expert on the matter but it is said™ that for
reading long text a proportional font is easier on the eyes.  I think
most books are printed with a proportional font.
-- 
Manuel Giraud



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

* Re: Default Info face
  2024-12-18 16:50       ` Manuel Giraud via Emacs development discussions.
@ 2024-12-18 17:06         ` Eli Zaretskii
  0 siblings, 0 replies; 13+ messages in thread
From: Eli Zaretskii @ 2024-12-18 17:06 UTC (permalink / raw)
  To: Manuel Giraud; +Cc: emacs-devel

> From: Manuel Giraud <manuel@ledu-giraud.fr>
> Cc: emacs-devel@gnu.org
> Date: Wed, 18 Dec 2024 17:50:48 +0100
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > So why is it so important to use variable-pitch face for Info?  What
> > are the advantages of that?
> 
> Well, I'm far from an expert on the matter but it is said™ that for
> reading long text a proportional font is easier on the eyes.  I think
> most books are printed with a proportional font.

Well, that's true, but we in Emacs are staring at fixed-pitch text all
day long, and are supposed to be used to it.

I don't think I'd object to something like Info-variable-pitch-mode,
as an optional minor mode, but it could be quite a lot of work, since
we have other faces in Info manuals that should look well with such a
default.



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

* Re: Default Info face
  2024-12-18 10:00 Default Info face Manuel Giraud via Emacs development discussions.
  2024-12-18 10:22 ` tomas
  2024-12-18 14:05 ` Eli Zaretskii
@ 2024-12-18 17:17 ` Juri Linkov
  2 siblings, 0 replies; 13+ messages in thread
From: Juri Linkov @ 2024-12-18 17:17 UTC (permalink / raw)
  To: Manuel Giraud via Emacs development discussions.; +Cc: Manuel Giraud

> If I'm not mistaken, currently, the face used for the text body of Info
> nodes is `default'.  I was wondering if there would be any interest in
> having an `info' face defined for this usage.  I imagine that it could
> inherit for `variable-pitch-text' as "shr.el" is doing.  I also guess
> that it would have an impact on some sub-faces (like `info-title*' for
> example).  WDYT?

Can you achieve this by face remapping?
For example, in the Info buffer:

  (face-remap-add-relative 'default 'variable-pitch)



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

end of thread, other threads:[~2024-12-18 17:17 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-18 10:00 Default Info face Manuel Giraud via Emacs development discussions.
2024-12-18 10:22 ` tomas
2024-12-18 12:18   ` Eric S Fraga
2024-12-18 13:34     ` tomas
2024-12-18 12:46   ` Manuel Giraud via Emacs development discussions.
2024-12-18 12:54     ` tomas
2024-12-18 14:42       ` Manuel Giraud via Emacs development discussions.
2024-12-18 14:05 ` Eli Zaretskii
2024-12-18 14:50   ` Manuel Giraud via Emacs development discussions.
2024-12-18 15:28     ` Eli Zaretskii
2024-12-18 16:50       ` Manuel Giraud via Emacs development discussions.
2024-12-18 17:06         ` Eli Zaretskii
2024-12-18 17:17 ` Juri Linkov

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