GNU bug report logs -
#402
23.0.60; GTK style font selection interferes with Fontconfig style font selection
Previous Next
Reported by: James Cloos <cloos <at> jhcloos.com>
Date: Thu, 12 Jun 2008 21:40:06 UTC
Severity: normal
Done: Chong Yidong <cyd <at> stupidchicken.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 402 in the body.
You can then email your comments to 402 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded to
bug-submit-list <at> lists.donarmstrong.com, don <at> donarmstrong.com
:
bug#402
; Package
gnu emacs
.
Full text and
rfc822 format available.
Acknowledgement sent to
James Cloos <cloos <at> jhcloos.com>
:
New bug report received and forwarded. Copy sent to
don <at> donarmstrong.com
.
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
Package: GNU Emacs
Version: 23.0.60
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.
Your bug report will be posted to the bug-gnu-emacs <at> gnu.org mailing list.
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:
Last night’s CVS uses the wrong font size when given a resource like:
emacs.font: DejaVu Sans Mono:pixelsize=14:minspace=true
which is the correct way to specify a fontconfig pattern with a specific
pixelsize.
I presume the GTK vs Fontconfig code assumes there must be a
(name)-(ptsize) sequence in a fontconfig pattern, but ptsize is optional
and is normally absent when specifying a pixelsize.
With the above resource I get a tiny font. Leaving off the
minspace=true results in a huge font.
I had to used xfd(1x) to figure out the equiv point size (7.4) and
change my Xdefaults to use that for now, but I strongly perfer to
specify an explicit pixelsize for text editors, terminals and other
UI usages, leaving points for documents.
If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
`bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/usr/share/emacs/23.0.60/etc/DEBUG for instructions.
In GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2008-06-12 on lugabout
Windowing system distributor `The X.Org Foundation', version 11.0.10599001
configured using `configure '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--program-suffix=-emacs-23' '--infodir=/usr/share/info/emacs-23' '--without-carbon' '--with-sound' '--with-x' '--with-toolkit-scroll-bars' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xpm' '--enable-font-backend' '--with-freetype' '--with-xft' '--with-libotf' '--with-m17n-flt' '--with-x-toolkit=athena' '--without-hesiod' '--with-kerberos' '--with-kerberos5' '--with-gpm' '--with-dbus' '--build=i686-pc-linux-gnu' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CC=i686-pc-linux-gnu-gcc' 'CFLAGS=-march=pentium3 -O2 -Wno-error' 'LDFLAGS= -Wl,--as-needed ''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: C
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: C
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: nil
locale-coding-system: utf-8-unix
default-enable-multibyte-characters: t
Major mode: Lisp Interaction
Minor modes in effect:
show-paren-mode: t
display-time-mode: t
tooltip-mode: t
mouse-wheel-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
global-auto-composition-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
column-number-mode: t
line-number-mode: t
Recent input:
M-x r e <tab> p <tab> o <tab> <tab> r <tab> <tab> C-g
C-h a r e p o r t <return> M-x d e b b <tab> <retu
rn>
Recent messages:
Loading /usr/share/emacs/site-lisp/site-gentoo.d/70ngnus-gentoo.el (source)...done
Loading /usr/share/emacs/site-lisp/site-gentoo.d/70svn-gentoo.el (source)...done
Loading /usr/share/emacs/site-lisp/70xrdb-mode-gentoo.el (source)...done
Loading delsel...done
Loading time...done
Loading paren...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list... [3 times]
Quit
Type C-x 1 to remove help window.
Reply sent to
Chong Yidong <cyd <at> stupidchicken.com>
:
You have taken responsibility.
Full text and
rfc822 format available.
Notification sent to
James Cloos <cloos <at> jhcloos.com>
:
bug acknowledged by developer.
Full text and
rfc822 format available.
Message #10 received at 402-close <at> emacsbugs.donarmstrong.com (full text, mbox):
James Cloos <cloos <at> jhcloos.com> writes:
> Yuan> I think the only problem here is :pixelsize=14
> Yuan> Fontconfig has the format:
>
> Yuan> <families>-<point sizes>:<name1>=<values1>:<name2>=<values2>
>
> The -<pointsize> part is optional; the comment and the code in font.c
> acknowledge that fact. But it clearly doesn't work.
I've checked in a fix. I believe this should work correctly now.
Thanks.
Message #11 received at 402-close <at> emacsbugs.donarmstrong.com (full text, mbox):
In article <8763sat9xb.fsf <at> stupidchicken.com>, Chong Yidong <cyd <at> stupidchicken.com> writes:
> James Cloos <cloos <at> jhcloos.com> writes:
> > Yuan> I think the only problem here is :pixelsize=14
> > Yuan> Fontconfig has the format:
> >
> > Yuan> <families>-<point sizes>:<name1>=<values1>:<name2>=<values2>
> >
> > The -<pointsize> part is optional; the comment and the code in font.c
> > acknowledge that fact. But it clearly doesn't work.
> I've checked in a fix. I believe this should work correctly now.
Still there's something wrong. Now ":pixelsize=NN" is
correctly parsed, but the resulting font-spec has peculiar
(almost garbage) :fc-unknown-spec property.
---
Kenichi Handa
handa <at> ni.aist.go.jp
Message #12 received at 402-close <at> emacsbugs.donarmstrong.com (full text, mbox):
Hi,
On Mon, Jun 16, 2008 at 5:01 AM, Chong Yidong <cyd <at> stupidchicken.com> wrote:
> James Cloos <cloos <at> jhcloos.com> writes:
>
>> Yuan> I think the only problem here is :pixelsize=14
>> Yuan> Fontconfig has the format:
>>
>> Yuan> <families>-<point sizes>:<name1>=<values1>:<name2>=<values2>
>>
>> The -<pointsize> part is optional; the comment and the code in font.c
>> acknowledge that fact. But it clearly doesn't work.
>
> I've checked in a fix. I believe this should work correctly now.
Trunk build is broken now:
font.c: In function 'Ffont_face_attributes':
font.c:3788: error: argument 'frame' doesn't match prototype
font.c:3773: error: prototype declaration
This is with GTK+ frontend on GNU/Linux.
Regards,
ismail
--
Never learn by your mistakes, if you do you may never dare to try again.
Message #13 received at 402-close <at> emacsbugs.donarmstrong.com (full text, mbox):
Kenichi Handa <handa <at> m17n.org> writes:
>> I've checked in a fix. I believe this should work correctly now.
>
> Still there's something wrong. Now ":pixelsize=NN" is
> correctly parsed, but the resulting font-spec has peculiar
> (almost garbage) :fc-unknown-spec property.
This should be fixed now, too.
Message #14 received at 402-close <at> emacsbugs.donarmstrong.com (full text, mbox):
In article <87abhl4fcb.fsf <at> stupidchicken.com>, Chong Yidong <cyd <at> stupidchicken.com> writes:
> Kenichi Handa <handa <at> m17n.org> writes:
>>> I've checked in a fix. I believe this should work correctly now.
> >
> > Still there's something wrong. Now ":pixelsize=NN" is
> > correctly parsed, but the resulting font-spec has peculiar
> > (almost garbage) :fc-unknown-spec property.
> This should be fixed now, too.
Not yet.
(font-spec :name "mono-10:abc=d:efg") should return
#<font-spec nil nil mono nil nil nil nil nil 10.0 nil nil nil ((:fc-unknown-spec . ":abc=d:efg") (:name . "mono-10:abc=d:efg"))>
but now it returns
#<font-spec nil nil mono nil nil nil nil nil 10.0 nil nil nil ((:fc-unknown-spec . "abc=defg") (:name . "mono-10:abc=d:efg"))>
---
Kenichi Handa
handa <at> ni.aist.go.jp
Message #15 received at 402-close <at> emacsbugs.donarmstrong.com (full text, mbox):
>>>>> "Handa" == Kenichi Handa <handa <at> m17n.org> writes:
>> This should be fixed now, too.
Handa> Not yet.
Handa> (font-spec :name "mono-10:abc=d:efg") [looses the colon]
A good example of where this will show up, other than pixelsize, is a
synthetic bold oblique, such as:
(font-spec :name "monospace-9:matrix=1 0.2 0 1:embolden=true")
which returns:
#<font-spec nil nil monospace nil nil nil nil nil 9.0 nil nil nil
((:fc-unknown-spec . "matrix=1 0.2 0 1embolden=true") (:name
. "monospace-9:matrix=1 0.2 0 1:embolden=true"))>
(My compile is from the 14th.)
-JimC
--
James Cloos <cloos <at> jhcloos.com> OpenPGP: 1024D/ED7DAEA6
Message #16 received at 402-close <at> emacsbugs.donarmstrong.com (full text, mbox):
Kenichi Handa <handa <at> m17n.org> writes:
> (font-spec :name "mono-10:abc=d:efg") should return
> #<font-spec nil nil mono nil nil nil nil nil 10.0 nil nil nil ((:fc-unknown-spec . ":abc=d:efg") (:name . "mono-10:abc=d:efg"))>
>
> but now it returns
>
> #<font-spec nil nil mono nil nil nil nil nil 10.0 nil nil nil ((:fc-unknown-spec . "abc=defg") (:name . "mono-10:abc=d:efg"))>
Okay, now it returns the former.
bug archived.
Request was from
Debbugs Internal Request <don <at> donarmstrong.com>
to
internal_control <at> emacsbugs.donarmstrong.com
.
(Tue, 15 Jul 2008 14:24:02 GMT)
Full text and
rfc822 format available.
bug unarchived.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Tue, 19 Jan 2010 23:36:02 GMT)
Full text and
rfc822 format available.
bug reassigned from package 'gnu emacs' to 'emacs'.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Tue, 19 Jan 2010 23:36:02 GMT)
Full text and
rfc822 format available.
bug No longer marked as found in versions 23.0.60.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Tue, 19 Jan 2010 23:36:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Tue, 19 Jan 2010 23:36:02 GMT)
Full text and
rfc822 format available.
This bug report was last modified 15 years and 149 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.