From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: Cannot load font? Date: Tue, 25 Nov 2008 09:26:52 +1100 Organization: Rapt Technologies Message-ID: <87y6z8kbf7.fsf@lion.rapttech.com.au> References: <96DA94E4FA5341BC9E9DC2676C8690EA@franc> <814C0AE9-959C-44D5-8494-96111568B627@Web.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1227566459 16260 80.91.229.12 (24 Nov 2008 22:40:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Nov 2008 22:40:59 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 24 23:42:01 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L4k7m-0000gB-Oe for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Nov 2008 23:41:47 +0100 Original-Received: from localhost ([127.0.0.1]:52429 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L4k6d-0006za-Fu for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Nov 2008 17:40:35 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!news.astraweb.com!border1.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:8+kJNtww0WLydhDmjpOFs9xLlgg= Original-Lines: 102 Original-NNTP-Posting-Host: 5ad7c1d0.news.astraweb.com Original-X-Trace: DXC=SIlk2XHA@So5ljRKX^a8BhL?0kYOcDh@j; >GTR`=ZX:b^`f@aaF73Re`GmLhT; `Yfib@Ia@= List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:60072 Archived-At: "George Roman" 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