emacs-devel
[Top][All Lists]
Advanced

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

[PATCH] font problem in 23.0.60


From: Chip Coldwell
Subject: [PATCH] font problem in 23.0.60
Date: Thu, 29 May 2008 14:59:13 -0400 (EDT)
User-agent: Alpine 1.10 (LFD 962 2008-03-14)

I should have sent this to address@hidden, not
address@hidden  Sorry for the duplicate.

A recent CVS snapshot (May 27) exhibits the following bug:

$ xfd -fn -adobe-courier-medium-r-normal--*-120-75-75-m-70-iso10646-1

works as expected, shows the font exists on my system as
-adobe-courier-medium-r-normal--12-120-75-75-m-70-iso10646-1.

$ emacs -fn -adobe-courier-medium-r-normal--*-120-75-75-m-70-iso10646-1
Fatal error (11)Segmentation fault (core dumped)

I did a little debugging, and found that the SIGSEGV is caused by
taking the CDR of an integer.  This patch fixes the SIGSEGV

--- src/font.c~ 2008-05-25 07:00:52.000000000 -0400
+++ src/font.c  2008-05-29 11:44:24.000000000 -0400
@@ -266,7 +266,7 @@ font_pixel_size (f, spec)
   point_size = XFLOAT_DATA (size);
   val = AREF (spec, FONT_DPI_INDEX);
   if (INTEGERP (val))
-    dpi = XINT (XCDR (val));
+    dpi = XINT (val);
   else
     dpi = f->resy;
   pixel_size = POINT_TO_PIXEL (point_size, dpi);

However, now I get

src/emacs-23.0.60.3 -fn 
-adobe-courier-medium-r-normal--12-120-75-75-m-70-iso10646-1
Font `-adobe-courier-medium-r-normal--*-120-75-75-m-70-iso10646-1' is not 
defined

even though it is defined.  I will continue to debug that problem as
time permits.

Chip

-- 
Charles M. "Chip" Coldwell
Senior Software Engineer
Red Hat, Inc
978-392-2426

GPG ID:  852E052F
GPG FPR: 77E5 2B51 4907 F08A 7E92  DE80 AFA9 9A8F 852E 052F






reply via email to

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