unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Font issues with recent emacs
@ 2014-01-09  3:13 Vin Shelton
  2014-01-09  6:49 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Vin Shelton @ 2014-01-09  3:13 UTC (permalink / raw)
  To: emacs-devel


[-- Attachment #1.1: Type: text/plain, Size: 1324 bytes --]

Greetings -

With an emacs I built from the latest bzr sources (configured without
options), I'm observing some font issues.  When I start a emacs by
replacing the default font, I get an error in the modeline:

1. xlsfonts shows the font exists:

xlsfonts -fn "-*-dejavu sans mono-medium-r-normal--12-*-*-*-m-*-iso8859-1"
-misc-dejavu sans mono-medium-r-normal--12-87-100-100-m-0-iso8859-1

2. Then I start the emacs using that font as the default:
emacs -Q -fn "-misc-dejavu sans
mono-medium-r-normal--12-87-100-100-m-0-iso8859-1"

3. emacs starts with the modeline as displayed in the attached
modeline.png.  Notice that the buffer name '*scratch* ' is spelled out
in ascii blocks.

Similarly, if I invoke emacs and evaluate the following forms in the
*scratch* buffer:

emacs -Q
(set-face-font 'default "-*-dejavu sans
mono-medium-r-normal--12-*-*-*-m-*-iso8859-1")
(set-face-font 'mode-line "-microsoft-comic sans
ms-medium-r-normal-*-12-*-*-*-*-*-iso8859-1")

The default font changes correctly and the modeline displays
correctly, but if I enter info:
C-h i

Then the top of the *info* (dir) buffer looks like the attached
info.png.  Note the same ascii block characters.

I hope you find this useful. Please let me know if you need me to try
any experiments to identify the root cause of these issues.

  Vin Shelton

[-- Attachment #1.2: Type: text/html, Size: 1527 bytes --]

[-- Attachment #2: modeline.png --]
[-- Type: image/png, Size: 1361 bytes --]

[-- Attachment #3: info.png --]
[-- Type: image/png, Size: 1475 bytes --]

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

* Re: Font issues with recent emacs
  2014-01-09  3:13 Font issues with recent emacs Vin Shelton
@ 2014-01-09  6:49 ` Eli Zaretskii
  2014-01-09 18:26   ` Vin Shelton
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2014-01-09  6:49 UTC (permalink / raw)
  To: Vin Shelton; +Cc: emacs-devel

> Date: Wed, 8 Jan 2014 22:13:47 -0500
> From: Vin Shelton <acs@alumni.princeton.edu>
> 
> 1. xlsfonts shows the font exists:
> 
> xlsfonts -fn "-*-dejavu sans mono-medium-r-normal--12-*-*-*-m-*-iso8859-1"
> -misc-dejavu sans mono-medium-r-normal--12-87-100-100-m-0-iso8859-1
> 
> 2. Then I start the emacs using that font as the default:
> emacs -Q -fn "-misc-dejavu sans
> mono-medium-r-normal--12-87-100-100-m-0-iso8859-1"
> 
> 3. emacs starts with the modeline as displayed in the attached
> modeline.png.  Notice that the buffer name '*scratch* ' is spelled out
> in ascii blocks.

The buffer name uses the bold variant of the font.  If the font you
specified doesn't have a bold variant, Emacs will not be able to
display it.

> Similarly, if I invoke emacs and evaluate the following forms in the
> *scratch* buffer:
> 
> emacs -Q
> (set-face-font 'default "-*-dejavu sans
> mono-medium-r-normal--12-*-*-*-m-*-iso8859-1")
> (set-face-font 'mode-line "-microsoft-comic sans
> ms-medium-r-normal-*-12-*-*-*-*-*-iso8859-1")
> 
> The default font changes correctly and the modeline displays
> correctly, but if I enter info:
> C-h i
> 
> Then the top of the *info* (dir) buffer looks like the attached
> info.png.  Note the same ascii block characters.

Again, because that part of the display needs the italics variant of
the font.

Why do you insist on forcing on Emacs a specific fully qualified font
definition?



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

* Re: Font issues with recent emacs
  2014-01-09  6:49 ` Eli Zaretskii
@ 2014-01-09 18:26   ` Vin Shelton
  0 siblings, 0 replies; 3+ messages in thread
From: Vin Shelton @ 2014-01-09 18:26 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

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

Greetings -

On Thu, Jan 9, 2014 at 1:49 AM, Eli Zaretskii <eliz@gnu.org> wrote:
>
> Why do you insist on forcing on Emacs a specific fully qualified font
> definition?
>

Fair point, although in the first case the modeline gets healed after:
    C-h i
    C-x k RET
so emacs apparently knows how to change the default medium font to bold
under some circumstances.  Perhaps the bold font is being instantiated
prior to the default font getting re-instantiated based on my command-line
definition.  It seems to me that changing the default font on the command
line should change all the derivative fonts.

Anyway, I tried to use customize-face to set the default font, but I'm
having some difficulty.

Starting again from "emacs -Q":

After I invoke M-x customize-face default, the customize buffer says the
Font Family is courier and the Font Foundry is adobe.  I click in the
courier box and replace "courier" with "dejavu sans mono" (w/o the quotes).
 I click in the adobe box and replace "adobe" with "misc".  Next I held
State button to set the font for the current session and instead of
changing to "dejavu sans mono" the font changes to some kind of Times font.
 Showing the lisp expression confirms this:

Lisp expression:
((t
  (:family "times" :foundry "adobe" :width normal :height 129 :weight
normal :slant normal :underline nil :overline nil :strike-through nil :box
nil :inverse-video nil :foreground "black" :background "white" :stipple nil
:inherit nil)))

  - Vin

[-- Attachment #2: Type: text/html, Size: 2524 bytes --]

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

end of thread, other threads:[~2014-01-09 18:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-09  3:13 Font issues with recent emacs Vin Shelton
2014-01-09  6:49 ` Eli Zaretskii
2014-01-09 18:26   ` Vin Shelton

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