[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#12000: 24.1.50; do not hard-code `bold' font for help output

From: Drew Adams
Subject: bug#12000: 24.1.50; do not hard-code `bold' font for help output
Date: Fri, 20 Jul 2012 11:37:26 -0700

Please, please, please stop hard-coding faces.  You take power and
control away from users, and such an approach is short-sighted (if not
Look at the attached screenshot, which shows the links to minor-mode
sections of the *Help* buffer in the output of `describe-mode'.  Do you
find it readable with all that bold text?  No, of course not.  And the
annoyance is multiplied by the fact that a huge, run-on paragraph of
consecutive links is all in bold.  (That run-on paragraph of links is
itself bad design, but that's another story.)
Yet the font used in the screenshot is a very good one in general - just
contrast the non-bold words in the screenshot with the NOISYUGLINESS of
the rest.  The font is good, but it does not support boldness well.  And
that is actually pretty common.
Bold is a bad choice even for a default face, because many good fonts do
not support it well.  But especially is it horrible to hard-code the
choice.  Hard-coding faces in Emacs code should be verboten, requiring a
special dispensation from the UN Secretary General or RMS.
This is the font used in the screen shot, FYI:
Please give users a new face intended to be appropriate to the
particular use, so they can customize just that use case.  Here, the use
is as a link in *Help* text, and the hard-coded face is `bold'.
Providing specific faces for given use cases means more faces, in
general.  But that does not stop you from providing a default appearance
for a new face that, say, inherits from an existing face.  Even (GNU
forbid!) from face `bold'.
The important thing is for users to be able to customize one use case,
without affecting other use cases all over the place.  You should not
require a user to customize face `bold' just for this particular use,
with the attendant side effect that it also changes the appearance in
other, unrelated contexts.

In GNU Emacs (i386-mingw-nt5.1.2600)
 of 2012-07-16 on MARVIN
Bzr revision: 109106 address@hidden
Windowing system distributor `Microsoft Corp.', version 5.1.2600
Configured using:
 `configure --with-gcc (4.6) --no-opt --enable-checking --cflags

Attachment: throw-ugly-bold.png
Description: PNG image

reply via email to

[Prev in Thread] Current Thread [Next in Thread]