* [PATCH] font problem in 23.0.60
@ 2008-05-29 15:55 Chip Coldwell
0 siblings, 0 replies; 2+ messages in thread
From: Chip Coldwell @ 2008-05-29 15:55 UTC (permalink / raw)
To: emacs-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] font problem in 23.0.60
@ 2008-05-29 18:59 Chip Coldwell
0 siblings, 0 replies; 2+ messages in thread
From: Chip Coldwell @ 2008-05-29 18:59 UTC (permalink / raw)
To: emacs-pretest-bug
I should have sent this to emacs-pretest-bug@gnu.org, not
emacs-devel@gnu.org. 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-29 18:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-29 15:55 [PATCH] font problem in 23.0.60 Chip Coldwell
-- strict thread matches above, loose matches on Subject: below --
2008-05-29 18:59 Chip Coldwell
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.