From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: Cannot load font?
Date: Tue, 25 Nov 2008 09:26:52 +1100 [thread overview]
Message-ID: <87y6z8kbf7.fsf@lion.rapttech.com.au> (raw)
In-Reply-To: mailman.1084.1227504373.26697.help-gnu-emacs@gnu.org
"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
next prev parent reply other threads:[~2008-11-24 22:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-16 4:57 Cannot load font? George Roman
2008-11-16 11:04 ` Peter Dyballa
2008-11-16 20:40 ` George Roman
2008-11-17 12:06 ` Peter Dyballa
2008-11-24 5:08 ` George Roman
2008-11-24 9:37 ` Peter Dyballa
[not found] ` <mailman.1084.1227504373.26697.help-gnu-emacs@gnu.org>
2008-11-24 22:26 ` Tim X [this message]
[not found] <mailman.503.1226823175.26697.help-gnu-emacs@gnu.org>
2008-11-16 17:02 ` Marc Tfardy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y6z8kbf7.fsf@lion.rapttech.com.au \
--to=timx@nospam.dev.null \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).