help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Cannot load font?


From: Tim X
Subject: Re: Cannot load font?
Date: Tue, 25 Nov 2008 09:26:52 +1100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

"George Roman" <glroman@gmail.com> writes:

> On Monday, November 17, 2008 7:06 AM, Peter Dyballa wrote:
>> > Emacs is silently ignoring the Dina fonts and picking something else
>> > instead.  Why?
>>
>> Does it also happen with the *-frame-alist's? Does it happen also when
>> you copy the font names from the *Completions* buffer? If so and if so
>> in an Emacs launched with -Q then it's worth a bug report (from Help
>> menu).
>
> Here's the output from a *scratch* buffer in a session launched with -Q
>
>
> (cdr (assoc 'font (frame-parameters)))
> "-Adobe-Courier-Medium-R-Normal--12-120-75-75-M-70-ISO8859-1"
>
>
> (x-list-fonts "*dina-medium-r-*-100-*")
> ("-windows-dina-medium-r-normal--16-100-96-96-c-80-microsoft-cp1252")
>
>
> (set-default-font
>  "-windows-dina-medium-r-normal--16-100-96-96-c-80-microsoft-cp1252" nil)
> nil
> ;; My screen resets (font changes, but it's not Dina)
>
>
> (cdr (assoc 'font (frame-parameters)))
> "-Adobe-Courier-Medium-R-Normal--17-120-100-100-M-100-ISO8859-1"
>
>
> (setq initial-frame-alist
>       '(
>         (mouse-color             . "midnightblue")
>         (foreground-color        . "grey20")
>         (background-color        . "alice blue")
>         (internal-border-width   . 2)
>         (line-spacing            . 1)
>         (active-alpha            . 0.875)
>         (inactive-alpha  . 0.75)
>         (font . 
> "-windows-dina-medium-r-normal--16-100-96-96-c-80-microsoft-cp1252")
>         (top . 25) (left . 650) (width . 91) (height . 50)))
> ((mouse-color . "midnightblue") (foreground-color . "grey20") 
> (background-color . "alice blue")
> (internal-border-width . 2) (line-spacing . 1) (active-alpha . 0.875) 
> (inactive-alpha . 0.75) (font
> . "-windows-dina-medium-r-normal--16-100-96-96-c-80-microsoft-cp1252") (top . 
> 25) (left . 650)
> (width . 91) (height . 50))
>
>
> (setq default-frame-alist
>       '(
>         (border-color            . "#4e3831")
>         (foreground-color        . "grey10")
>         (background-color        . "ghost white")
>         (vertical-scroll-bars    . left)
>         (cursor-color            . "purple")
>         (cursor-type             . box)
>         (active-alpha            . 0.75)
>         (inactive-alpha  . 0.875)
>         (font . 
> "-windows-dina-medium-r-normal--16-100-96-96-c-80-microsoft-cp1252")
>         (top . 50) (left . 150) (width . 89) (height . 56)))
> ((border-color . "#4e3831") (foreground-color . "grey10") (background-color . 
> "ghost white")
> (vertical-scroll-bars . left) (cursor-color . "purple") (cursor-type . box) 
> (active-alpha . 0.75)
> (inactive-alpha . 0.875) (font .
> "-windows-dina-medium-r-normal--16-100-96-96-c-80-microsoft-cp1252") (top . 
> 50) (left . 150) (width
> . 89) ...)
>
>
> (cdr (assoc 'font (frame-parameters)))
> "-Adobe-Courier-Medium-R-Normal--17-120-100-100-M-100-ISO8859-1"
>
>
> ;; Trying to open a new window via "C-x 5 b" yields a window with the
> ;; above Adobe font (...--17-120-100-...)
>
>
> (set-default-font
>  "-dec-terminal-medium-r-normal--14-140-75-75-c-80-iso8859-1" nil)
> nil
> ;; My screen resets (new font being used)
>
>
> (cdr (assoc 'font (frame-parameters)))
> "-DEC-Terminal-Medium-R-Normal--14-140-75-75-C-80-ISO8859-1"
>
>

Are you running emacs 23? Was it working and then stopped after an emacs
upgrade?

If so, the problem may be you need to tell emacs which font backend to
use. I had a similar problem some weeks  back and solved it by putting

Emacs.fontBackend: xft

in my .Xresources file

Tim


-- 
tcross (at) rapttech dot com dot au


reply via email to

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