unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Left Right <olegsivokon@gmail.com>
To: Chong Yidong <cyd@gnu.org>
Cc: 11850@debbugs.gnu.org, 11813@debbugs.gnu.org,
	"Yotam Medini יותם מדיני" <yotam.medini@gmail.com>
Subject: bug#11813: bug#11850: crash (null font) running emacs built from git
Date: Sun, 8 Jul 2012 19:29:16 +0300	[thread overview]
Message-ID: <CAJQBtgn-jXGYHevXhEtXyqOfgUFuHzfLBM0kQrQpJz=vqR5nWw@mail.gmail.com> (raw)
In-Reply-To: <87txxi1gj2.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 5605 bytes --]

Well, the thing is, it is not "my" font - I have absolutely no idea
what font it is, no other program beside Emacs is trying to use it,
and, of course, I didn't install it myself.

I regenerated the font cache - but that had no effect. Unfortunately
font configuration, at least in the Linuxes I had to work with is
spread over few dozens of files... so, I might be as well missing
something. However, There are few changes to configuration that I made
myself, I've posted my fonts.conf before, but it doesn't look like it
may at all be a problem. I'll copy its content yet again for clarity:


<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
 <match target="font">
  <edit mode="assign" name="rgba">
   <const>none</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hinting">
   <bool>true</bool>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hintstyle">
   <const>hintmedium</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="antialias">
   <bool>false</bool>
  </edit>
 </match>
 <dir>~/.fonts</dir>
</fontconfig>

Below are the "profiles" of different "font groups" in  /etc/fonts/conf.d

  -rw-r--r-- 1 root root  124 Mar 30 21:0900 kde.conf
  lrwxrwxrwx 1 root root   39 Mar 14 03:24 20-fix-globaladvance.conf
-> ../conf.avail/20-fix-globaladvance.conf
  lrwxrwxrwx 1 root root   39 Mar 14 03:24 20-unhint-small-vera.conf
-> ../conf.avail/20-unhint-small-vera.conf
  lrwxrwxrwx 1 root root   39 Mar 14 03:29 30-defoma.conf ->
/var/lib/defoma/fontconfig.d/fonts.conf
  lrwxrwxrwx 1 root root   36 Mar 14 03:24 30-metric-aliases.conf ->
../conf.avail/30-metric-aliases.conf
  lrwxrwxrwx 1 root root   33 Mar 14 03:24 30-urw-aliases.conf ->
../conf.avail/30-urw-aliases.conf
  lrwxrwxrwx 1 root root   30 Mar 14 03:24 40-nonlatin.conf ->
../conf.avail/40-nonlatin.conf
  lrwxrwxrwx 1 root root   27 Mar 14 03:24 45-latin.conf ->
../conf.avail/45-latin.conf
  lrwxrwxrwx 1 root root   31 Mar 14 03:24 49-sansserif.conf ->
../conf.avail/49-sansserif.conf
  lrwxrwxrwx 1 root root   26 Mar 14 03:24 50-user.conf ->
../conf.avail/50-user.conf
  lrwxrwxrwx 1 root root   27 Mar 14 03:24 51-local.conf ->
../conf.avail/51-local.conf
  lrwxrwxrwx 1 root root   27 Mar 14 03:24 60-latin.conf ->
../conf.avail/60-latin.conf
  lrwxrwxrwx 1 root root   35 Mar 14 03:24 65-fonts-persian.conf ->
../conf.avail/65-fonts-persian.conf
  lrwxrwxrwx 1 root root   30 Mar 14 03:24 65-nonlatin.conf ->
../conf.avail/65-nonlatin.conf
  lrwxrwxrwx 1 root root   29 Mar 14 03:24 69-unifont.conf ->
../conf.avail/69-unifont.conf
  lrwxrwxrwx 1 root root   40 Mar 14 03:29 70-no-bitmaps.conf ->
/etc/fonts/conf.avail/70-no-bitmaps.conf
  lrwxrwxrwx 1 root root   31 Mar 14 03:24 80-delicious.conf ->
../conf.avail/80-delicious.conf
  lrwxrwxrwx 1 root root   31 Mar 14 03:24 90-synthetic.conf ->
../conf.avail/90-synthetic.conf

The rest of the files in /etc/fonts/ directory are exactly the same as
they would be on other similar systems - I never modified them.

The date is the date of this system was installed. kde.conf is a bit
older - this is because after installing the defaults I've struggled
for a while with anti-aliasing, but, finally, it seems like I've found
a way to remove it completely. Sorry, most of my life I've been a
graphic artist, with books and fonts being my primary occupation. This
is why I think that computer AA fonts are a mistake (but I don't want
to go into this dispute)...

Anyway, if you have any suggestion about where should I look for the
font (I wouldn't mind fixing the font file itself!) I certainly will.
My problem is, however - I have absolutely no idea why and where does
Emacs find the settings that it is using. If I could suggest... there
is an option to set default font, and it lists some values that cannot
be interpreted as a font name. To be honest, I don't even know what
they mean, at first, I assumed those are the sizes in pixels of the
piece of screen allocated to draw a single glyph in the monospace
font, but that doesn't hold, those are neither em-squares, no height
of the roman majuscule or minuscule characters, nor with accents or
descents nor any other such combination... What I mean is these
"names": Default, fixed, 6x10, 6x12, 6x13, 7x13, 7x14, 8x13, 9x15,
10x20, 11x18, 12x24, clean 5x8, clean 6x8, clean 8x8, clean 8x10,
clean 8x14, clean 8x16, sony 8x16, lucidasanstypewriter-12,
lucidasanstypewriter-bold-14, lucidasanstypewriter-bold-24. I also
don't have Lucida font installed on my system and never had.

One more thing, not sure if it helps clarify anything: Emacs doesn't
use the same fonts as all other KDE applications do when rendering the
menus (it uses some elongated sans-serif font, which, proportionally,
resembles Helvetica, i.e. it is taller then Arial, and because of this
letters stand closer to each other some times hiding pieces of the
next letter. Also, because it uses the same font it uses for regular
text for hints (tips), the text in tips is trimmed from the bottom by
few pixels. Screenshot attached.

By the way, something similar happened to me with Emacs 23 too. It
didn't crash though, but it used some fonts I couldn't identify / find
on my system, but using some color scheme fixed that in a mysterious
way.

Inside attachment:
emacs-23-menu-bar.png - this is how menu bar looks in Emacs 23 on the
same desktop, the rest of KDE applications look just like that too.
emacs-24-menu-bar.png - this is how menu bar looks in Emacs 24.
emacs-missing-font-1.png - the tip (hint) with the font trimmed.

Best.

Oleg

[-- Attachment #2: emac-23-menu-bar.png --]
[-- Type: image/png, Size: 1446 bytes --]

[-- Attachment #3: emac-24-menu-bar.png --]
[-- Type: image/png, Size: 1149 bytes --]

[-- Attachment #4: emac-missing-font-1.png --]
[-- Type: image/png, Size: 3721 bytes --]

  parent reply	other threads:[~2012-07-08 16:29 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-03 11:27 bug#11850: crash (null font) running emacs built from git Yotam Medini יותם מדיני
2012-07-03 16:35 ` Eli Zaretskii
2012-07-03 16:49   ` Eli Zaretskii
2012-07-04 14:31     ` Yotam Medini יותם מדיני
2012-07-04 16:32       ` Eli Zaretskii
2012-07-04 20:49         ` bug#11850: bug#11813: " Eli Zaretskii
2012-07-05  7:34           ` Left Right
2012-07-05 13:17             ` bug#11850: " Eli Zaretskii
2012-07-05 13:33               ` Left Right
2012-07-05 16:54                 ` Eli Zaretskii
2012-07-07 22:42                   ` Left Right
2012-07-07 22:58                     ` bug#11850: " Left Right
2012-07-08  3:00                       ` Eli Zaretskii
2012-07-08 14:20                   ` Chong Yidong
2012-07-08 15:56                     ` bug#11850: " Eli Zaretskii
2012-07-08 16:29                     ` Left Right [this message]
2012-07-08 18:40                       ` Jan Djärv
2012-07-09  4:21                       ` Chong Yidong
2012-07-11 17:36                         ` Left Right
2012-07-12  7:18                           ` Chong Yidong
2012-08-16  3:25                             ` Chong Yidong
2012-08-16 10:51                               ` bug#11813: " Left Right
2012-08-26  4:36                                 ` Chong Yidong
2012-09-19 13:01                                   ` Left Right
     [not found]         ` <CAAE-6rb+efByT+um7KB-MfvmN2QbOiq_GRRmuwN7drsDu8TC_A@mail.gmail.com>
     [not found]           ` <837guj4ffq.fsf@gnu.org>
2012-07-08 15:58             ` Yotam Medini יותם מדיני
2012-07-08 16:43               ` Eli Zaretskii
2012-07-03 17:15   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJQBtgn-jXGYHevXhEtXyqOfgUFuHzfLBM0kQrQpJz=vqR5nWw@mail.gmail.com' \
    --to=olegsivokon@gmail.com \
    --cc=11813@debbugs.gnu.org \
    --cc=11850@debbugs.gnu.org \
    --cc=cyd@gnu.org \
    --cc=yotam.medini@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).