[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Font Problem with 23.0.92.1 - wrong font used
From: |
Kenichi Handa |
Subject: |
Re: Font Problem with 23.0.92.1 - wrong font used |
Date: |
Tue, 14 Apr 2009 12:49:48 +0900 |
In article <address@hidden>, Taylor Venable <address@hidden> writes:
> > Ummm, weird. Please define this function:
> >
> > (defun font-file-at ()
> > (interactive)
> > (message "%s" (aref (query-font (font-at (point))) 1)))
> >
> > and run it while putting cursor on "abc..." of `default',
> > `mode-line-inactive', and `tooltip' lines in *Faces* buffer
> > that is shown by M-x list-faces-display RET.
> First, when the Japanese font is present:
> default: /usr/X11R6/lib/X11/fonts/misc/7x13-ISO8859-1.pcf.gz
> mode-line-inactive: [the same]
> tooltip: [the same]
> Strangely enough, the font shown as the example for 'default' is not
> the font used in the buffer display; again it appears to be the semi-
> condensed variant, whereas the font used in the buffer display appears
> to be the correct normal variant.
What is reported when you run font-file-at on a character
displayed by that normal variant?
And, the XLFD of 7x13-ISO8859-1.pcf.gz is:
-misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-1
Please run this and check if it is the font you mean by
semicondensed variant?
% xfd -fn -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-1
Also please check if the font shown by this is what you mean
by normal variant:
% xfd -fn -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso8859-1
> If I do M-x customize-face default I notice that the value
> has been set outside customize, and telling it to set for
> the current session redisplays the buffer using the semi-
> condensed face.
> When I run this function on 'bold' I get nil. Finding a face that
> looks like what I want and see in the buffer display, the function
> reports the value as /usr/X11R6/lib/X11/fonts/misc/7x13.pcf.gz - but
> the font for the 'bold-italic' face which also looks correct (there is
> no italic slant variant for the -misc-fixed font I'm using) is
> /usr/X11R6/lib/X11/fonts/misc/8x13B-ISO8859-1.pcf.gz
> ========================================
> Without the Japanese font in the font path, I get these:
> default: /usr/X11R6/lib/X11/fonts/misc/7x13.pcf.gz
> bold: /usr/X11R6/lib/X11/fonts/misc/8x13B-ISO8859-1.pcf.gz
I still can't reproduce that phenomenon; i.e. the existence
of Japanese fonts affects the font selection.
By the way, I now have a bad feeling that there's no way for
fontconfig to distinguish these fonts:
/usr/share/fonts/X11/misc/7x13.pcf.gz
-misc-fixed-medium-r-normal--13-120-75-75-c-70-iso10646-1
/usr/share/fonts/X11/misc/8x13.pcf.gz
-misc-fixed-medium-r-normal--13-120-75-75-c-80-iso10646-1
They differ only in AVERAGE_WIDTH, but fontconfig doesn't
report that value.
---
Kenichi Handa
address@hidden
- Re: Font Problem with 23.0.92.1 - wrong font used, (continued)
- Re: Font Problem with 23.0.92.1 - wrong font used, Kenichi Handa, 2009/04/07
- Re: Font Problem with 23.0.92.1 - wrong font used, Taylor Venable, 2009/04/07
- Re: Font Problem with 23.0.92.1 - wrong font used, Kenichi Handa, 2009/04/07
- Re: Font Problem with 23.0.92.1 - wrong font used, Taylor Venable, 2009/04/08
- Re: Font Problem with 23.0.92.1 - wrong font used, Kenichi Handa, 2009/04/10
- Re: Font Problem with 23.0.92.1 - wrong font used, Taylor Venable, 2009/04/10
- Re: Font Problem with 23.0.92.1 - wrong font used, Kenichi Handa, 2009/04/13
- Re: Font Problem with 23.0.92.1 - wrong font used, Taylor Venable, 2009/04/13
- Re: Font Problem with 23.0.92.1 - wrong font used, Kenichi Handa, 2009/04/13
- Re: Font Problem with 23.0.92.1 - wrong font used, Taylor Venable, 2009/04/13
- Re: Font Problem with 23.0.92.1 - wrong font used,
Kenichi Handa <=
- Re: Font Problem with 23.0.92.1 - wrong font used, Taylor Venable, 2009/04/14
- Re: Font Problem with 23.0.92.1 - wrong font used, Taylor Venable, 2009/04/14
- Re: Font Problem with 23.0.92.1 - wrong font used, Kenichi Handa, 2009/04/15
- Re: Font Problem with 23.0.92.1 - wrong font used, Chong Yidong, 2009/04/16
- Re: Font Problem with 23.0.92.1 - wrong font used, Kenichi Handa, 2009/04/16
- Re: Font Problem with 23.0.92.1 - wrong font used, Chong Yidong, 2009/04/16
- Re: Font Problem with 23.0.92.1 - wrong font used, Kenichi Handa, 2009/04/16
- Re: Font Problem with 23.0.92.1 - wrong font used, Taylor Venable, 2009/04/16
- Re: Font Problem with 23.0.92.1 - wrong font used, Kenichi Handa, 2009/04/17
- Re: Font Problem with 23.0.92.1 - wrong font used, Taylor Venable, 2009/04/09