* Probelm starting emacs snapshot - "Font `lucidasanstypewriter-10' is not defined"
@ 2012-06-20 7:58 Rainer M Krug
2012-06-20 8:09 ` Rainer M Krug
0 siblings, 1 reply; 14+ messages in thread
From: Rainer M Krug @ 2012-06-20 7:58 UTC (permalink / raw)
To: help-gnu-emacs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
I am on Ubuntu Precise and have a strange problem with emacs snapshot (from ppa):
I have emacs and emacs snapshot installed, and emacs 23.3.1 works, but when trying to start
emacs-snapshot-x or emacs-snapshot-gtk, I get the error message "Font `lucidasanstypewriter-10' is
not defined". Nevertheless, I can start it with -Q just fine.
Any ideas why emacs 23.3.1 finds the font and emacs-snapshot doesnt? and how I can solve it?
Thanks,
Rainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk/hgqoACgkQoYgNqgF2egqPWwCfftq/wtYZllVDAMhgQ8oeLDI7
Qr0AniGm0t6vBtrXPwuFwSQR6mVmGVm9
=AXno
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Probelm starting emacs snapshot - "Font `lucidasanstypewriter-10' is not defined"
2012-06-20 7:58 Probelm starting emacs snapshot - "Font `lucidasanstypewriter-10' is not defined" Rainer M Krug
@ 2012-06-20 8:09 ` Rainer M Krug
2012-06-20 9:22 ` Peter Dyballa
2012-06-20 9:25 ` Peter Dyballa
0 siblings, 2 replies; 14+ messages in thread
From: Rainer M Krug @ 2012-06-20 8:09 UTC (permalink / raw)
To: help-gnu-emacs; +Cc: help-gnu-emacs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 20/06/12 09:58, Rainer M Krug wrote:
> Hi
>
> I am on Ubuntu Precise and have a strange problem with emacs snapshot (from ppa):
>
> I have emacs and emacs snapshot installed, and emacs 23.3.1 works, but when trying to start
> emacs-snapshot-x or emacs-snapshot-gtk, I get the error message "Font `lucidasanstypewriter-10'
> is not defined". Nevertheless, I can start it with -Q just fine.
>
> Any ideas why emacs 23.3.1 finds the font and emacs-snapshot doesnt? and how I can solve it?
Some more info:
rkrug@ecolmod:~$ locate lmtypewriter
/home/rkrug/texlive/2011/texmf-dist/fonts/truetype/hoekwater/lmextra/lmtypewriter10-regular.ttf
>
> Thanks,
>
> Rainer
>
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk/hhUcACgkQoYgNqgF2egr4SwCeIW9lPNO/4MPs+HeuIwHRufbL
V2AAn1MrMfklOBNytfgv/TrdjTEAR+yc
=0Ejf
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Probelm starting emacs snapshot - "Font `lucidasanstypewriter-10' is not defined"
2012-06-20 8:09 ` Rainer M Krug
@ 2012-06-20 9:22 ` Peter Dyballa
2012-06-20 9:49 ` Rainer M Krug
2012-06-20 9:25 ` Peter Dyballa
1 sibling, 1 reply; 14+ messages in thread
From: Peter Dyballa @ 2012-06-20 9:22 UTC (permalink / raw)
To: Rainer M Krug; +Cc: help-gnu-emacs
Am 20.06.2012 um 10:09 schrieb Rainer M Krug:
> Some more info:
Is fc-list listing this font with exactly the same name? Could be you're mixing XLFD names (lucidasanstypewriter) and libfontconfig names (-10).
I am using a complicated "-fn 'Lucida Sans Typewriter:autohint=true:antialias=true:size=9'" with Mac OS X...
--
Mit friedvollen Grüßen
Pete
Kommt eine Termite in die Bar und fragt: „Ist der Bartender da?“
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Probelm starting emacs snapshot - "Font `lucidasanstypewriter-10' is not defined"
2012-06-20 8:09 ` Rainer M Krug
2012-06-20 9:22 ` Peter Dyballa
@ 2012-06-20 9:25 ` Peter Dyballa
2012-06-20 9:41 ` Rainer M Krug
1 sibling, 1 reply; 14+ messages in thread
From: Peter Dyballa @ 2012-06-20 9:25 UTC (permalink / raw)
To: Rainer M Krug; +Cc: help-gnu-emacs
Am 20.06.2012 um 10:09 schrieb Rainer M Krug:
> /home/rkrug/texlive/2011/texmf-dist/fonts/truetype/hoekwater/lmextra/lmtypewriter10-regular.ttf
This is a TeX font: Latin Modern; "lm" for short.
--
Mit friedvollen Grüßen
Pete
Know thyself. Need help, call GOOGLE.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Probelm starting emacs snapshot - "Font `lucidasanstypewriter-10' is not defined"
2012-06-20 9:25 ` Peter Dyballa
@ 2012-06-20 9:41 ` Rainer M Krug
0 siblings, 0 replies; 14+ messages in thread
From: Rainer M Krug @ 2012-06-20 9:41 UTC (permalink / raw)
To: help-gnu-emacs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 20/06/12 11:25, Peter Dyballa wrote:
>
> Am 20.06.2012 um 10:09 schrieb Rainer M Krug:
>
>> /home/rkrug/texlive/2011/texmf-dist/fonts/truetype/hoekwater/lmextra/lmtypewriter10-regular.ttf
>
>>
> This is a TeX font: Latin Modern; "lm" for short.
Sorry - just realised wrong locate.
>
> -- Mit friedvollen Grüßen
>
> Pete
>
> Know thyself. Need help, call GOOGLE.
>
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk/hmrAACgkQoYgNqgF2egqjrACghkJ5HBJZ2DYtxxrx5sM3/8sN
dxoAnjnpXoanQIYK3hlaASZE3avGQ467
=2xNS
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Probelm starting emacs snapshot - "Font `lucidasanstypewriter-10' is not defined"
2012-06-20 9:22 ` Peter Dyballa
@ 2012-06-20 9:49 ` Rainer M Krug
2012-06-20 13:57 ` Peter Dyballa
0 siblings, 1 reply; 14+ messages in thread
From: Rainer M Krug @ 2012-06-20 9:49 UTC (permalink / raw)
To: help-gnu-emacs; +Cc: help-gnu-emacs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 20/06/12 11:22, Peter Dyballa wrote:
>
> Am 20.06.2012 um 10:09 schrieb Rainer M Krug:
>
>> Some more info:
>
> Is fc-list listing this font with exactly the same name? Could be you're mixing XLFD names
> (lucidasanstypewriter) and libfontconfig names (-10).
fc-list | grep lucida
does not yield anything.
locate lucida
/home/rkrug/texlive/2011/texmf-dist/tex/context/fonts/lucida-math.lfg
also only the LaTeX font.
My question is: why does emacs-snapshot need lucida, and emacs 23 not? Or did it just ignore the
missing font? And: How can I install the font on Ubuntu Precise?
Rainer
>
> I am using a complicated "-fn 'Lucida Sans Typewriter:autohint=true:antialias=true:size=9'"
> with Mac OS X...
>
> -- Mit friedvollen Grüßen
>
> Pete
>
> Kommt eine Termite in die Bar und fragt: „Ist der Bartender da?“
>
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk/hnJcACgkQoYgNqgF2egqKSwCeL6ZWB+4itpY7HcHvUdBMoA0U
vsUAn3kblDIwM/I4sWuBEQ+BfUnREDVB
=FrmU
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Probelm starting emacs snapshot - "Font `lucidasanstypewriter-10' is not defined"
2012-06-20 9:49 ` Rainer M Krug
@ 2012-06-20 13:57 ` Peter Dyballa
2012-06-21 7:25 ` Rainer M Krug
0 siblings, 1 reply; 14+ messages in thread
From: Peter Dyballa @ 2012-06-20 13:57 UTC (permalink / raw)
To: Rainer M Krug; +Cc: help-gnu-emacs
Am 20.06.2012 um 11:49 schrieb Rainer M Krug:
> My question is: why does emacs-snapshot need lucida, and emacs 23 not? Or did it just ignore the
> missing font? And: How can I install the font on Ubuntu Precise?
GNU Emacs never needs a particular font. It can work (display) with whatever it finds on the system. And if it does not find anything suitable, then it uses empty boxes. It is possible that the different "releases" were differently packaged and therefore used different init files, maybe also different X resources. If this is not documented, then you can check the contents of the packages and answer your questions (I can't, because I don't use Ubuntu at the moment and I don't want to install it in the near future in a virtual instance.)
Before you install anything you should remember that you have two services that provide fonts for X clients: on the X server side you have the old system that used 'xset fp ...' and xlsfonts/xfontsel/xfd and font names in the XLFD (X11 Logical Font Description) format, and on the "user side" you have libfontconfig with fc-cache/fc-match/fc-list and configuration files like (/etc/)fonts.conf or ~/.fonts.conf.
When your GNU Emacs executable uses libfontconfig you can use libfontconfig names to name the font(s) you want to use. When your GNU Emacs executable uses libotf you can even use OTF fonts.
In any case you have to set up your font services accordingly. I take my Lucida Sans Typewriter fonts off Java. Off your TeX installation you can use for example Latin Modern Mono, as found in files named lmmono*.otf. (I use them in the NS/NextSTEP/Cocoa variant of GNU Emacs.) There is also UM Typewriter, UMTypewriter-*.otf.
--
Mit friedvollen Grüßen
Pete
There's no sense in being precise when you don't even know what you're talking about.
– John von Neumann
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Probelm starting emacs snapshot - "Font `lucidasanstypewriter-10' is not defined"
2012-06-20 13:57 ` Peter Dyballa
@ 2012-06-21 7:25 ` Rainer M Krug
2012-06-21 8:20 ` Peter Dyballa
0 siblings, 1 reply; 14+ messages in thread
From: Rainer M Krug @ 2012-06-21 7:25 UTC (permalink / raw)
To: Peter Dyballa; +Cc: help-gnu-emacs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 20/06/12 15:57, Peter Dyballa wrote:
>
> Am 20.06.2012 um 11:49 schrieb Rainer M Krug:
>
>> My question is: why does emacs-snapshot need lucida, and emacs 23 not? Or did it just ignore
>> the missing font? And: How can I install the font on Ubuntu Precise?
>
> GNU Emacs never needs a particular font. It can work (display) with whatever it finds on the
> system. And if it does not find anything suitable, then it uses empty boxes. It is possible
> that the different "releases" were differently packaged and therefore used different init
> files, maybe also different X resources. If this is not documented, then you can check the
> contents of the packages and answer your questions (I can't, because I don't use Ubuntu at the
> moment and I don't want to install it in the near future in a virtual instance.)
>
> Before you install anything you should remember that you have two services that provide fonts
> for X clients: on the X server side you have the old system that used 'xset fp ...' and
> xlsfonts/xfontsel/xfd and font names in the XLFD (X11 Logical Font Description) format, and on
> the "user side" you have libfontconfig with fc-cache/fc-match/fc-list and configuration files
> like (/etc/)fonts.conf or ~/.fonts.conf.
>
> When your GNU Emacs executable uses libfontconfig you can use libfontconfig names to name the
> font(s) you want to use. When your GNU Emacs executable uses libotf you can even use OTF
> fonts.
>
> In any case you have to set up your font services accordingly. I take my Lucida Sans Typewriter
> fonts off Java. Off your TeX installation you can use for example Latin Modern Mono, as found
> in files named lmmono*.otf. (I use them in the NS/NextSTEP/Cocoa variant of GNU Emacs.) There
> is also UM Typewriter, UMTypewriter-*.otf.
OK - as I can start it with the -Q option, I will gothrough my .emacs file and see which part
actually causes the problem.
Cheers,
Rainer
>
> -- Mit friedvollen Grüßen
>
> Pete
>
> There's no sense in being precise when you don't even know what you're talking about. – John
> von Neumann
>
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk/izF4ACgkQoYgNqgF2egoAIQCfTicJxyjMboNUxJ/iwin6BeFt
/f0An3wgufSupvFElu9uWyGlFKIK7i6x
=6Psk
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Probelm starting emacs snapshot - "Font `lucidasanstypewriter-10' is not defined"
2012-06-21 7:25 ` Rainer M Krug
@ 2012-06-21 8:20 ` Peter Dyballa
2012-06-21 8:29 ` Rainer M Krug
0 siblings, 1 reply; 14+ messages in thread
From: Peter Dyballa @ 2012-06-21 8:20 UTC (permalink / raw)
To: Rainer M Krug; +Cc: help-gnu-emacs
Am 21.06.2012 um 09:25 schrieb Rainer M Krug:
> OK - as I can start it with the -Q option, I will gothrough my .emacs file and see which part
> actually causes the problem.
I suspect it's not your user init file but some system init file which came with some GNU Emacs package (this is a service) – and might be removed by a new package.
--
Mit friedvollen Grüßen
Pete
Maske: Der einzige Teil des Gesichts, den sich der Mensch selbst aussucht.
(Gabriel Laub)
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Probelm starting emacs snapshot - "Font `lucidasanstypewriter-10' is not defined"
2012-06-21 8:20 ` Peter Dyballa
@ 2012-06-21 8:29 ` Rainer M Krug
2012-06-21 8:49 ` Peter Dyballa
0 siblings, 1 reply; 14+ messages in thread
From: Rainer M Krug @ 2012-06-21 8:29 UTC (permalink / raw)
To: help-gnu-emacs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 21/06/12 10:20, Peter Dyballa wrote:
>
> Am 21.06.2012 um 09:25 schrieb Rainer M Krug:
>
>> OK - as I can start it with the -Q option, I will gothrough my .emacs file and see which
>> part actually causes the problem.
>
> I suspect it's not your user init file but some system init file which came with some GNU Emacs
> package (this is a service) – and might be removed by a new package.
This is now getting weired: according to the help:
--quick, -Q equivalent to -q --no-site-file --no-splash
but:
$ emacs-snapshot -q --no-site-file --no-splash --no-init-file
Font `lucidasanstypewriter-10' is not defined
and
$ emacs-snapshot -Q
and
$ emacs-snapshot --quick
do work?
Are there ay undocumented differences between the two options?
Obviously:
$ emacs-snapshot -fn courier
also works.
Rainer
>
> -- Mit friedvollen Grüßen
>
> Pete
>
> Maske: Der einzige Teil des Gesichts, den sich der Mensch selbst aussucht. (Gabriel Laub)
>
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk/i21IACgkQoYgNqgF2egpCHQCfXzJsswjhFaHqj+khDrbnwF0x
0V0An3SQjXd3cVS6qA9wEJKO8ixdM/Uj
=uWUI
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Probelm starting emacs snapshot - "Font `lucidasanstypewriter-10' is not defined"
2012-06-21 8:29 ` Rainer M Krug
@ 2012-06-21 8:49 ` Peter Dyballa
2012-06-21 9:06 ` Rainer M Krug
0 siblings, 1 reply; 14+ messages in thread
From: Peter Dyballa @ 2012-06-21 8:49 UTC (permalink / raw)
To: Rainer M Krug; +Cc: help-gnu-emacs@gnu.org List
Am 21.06.2012 um 10:29 schrieb Rainer M Krug:
> Are there ay undocumented differences between the two options?
It's possible, but it's more likely that you are using different variants of GNU Emacs: GTK2, GTK3, Athena/Lucid/Xaw3(d), Motif. They use different X resources and can sometimes read additional and different "init" files for their "decoration", i.e., setups of the widgets you see on screen.
Such details are revealed when you choose "Send Bug Report…" from the Help menu. By using a trace command from Linux you can find out which files the Emacsen open and read.
--
Mit friedvollen Grüßen
Pete
Im Übrigen muss Israel untergehen!
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Probelm starting emacs snapshot - "Font `lucidasanstypewriter-10' is not defined"
2012-06-21 8:49 ` Peter Dyballa
@ 2012-06-21 9:06 ` Rainer M Krug
2012-06-21 9:26 ` Peter Dyballa
0 siblings, 1 reply; 14+ messages in thread
From: Rainer M Krug @ 2012-06-21 9:06 UTC (permalink / raw)
To: help-gnu-emacs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 21/06/12 10:49, Peter Dyballa wrote:
>
> Am 21.06.2012 um 10:29 schrieb Rainer M Krug:
>
>> Are there ay undocumented differences between the two options?
>
> It's possible, but it's more likely that you are using different variants of GNU Emacs: GTK2,
> GTK3, Athena/Lucid/Xaw3(d), Motif. They use different X resources and can sometimes read
> additional and different "init" files for their "decoration", i.e., setups of the widgets you
> see on screen.
>
Sorry, I am confused. This is on the same machine, one command after the other. Why should these
two commands, which are supposed to be identical, use different variants of gnu-emacs?
OK - emacs-snapshot uses
- --with-x-toolkit=gtk3
while emacs 23.3 uses
- --with-x-toolkit=gtk
But how does this help? Where should I look? What gtk3 modules am I missing in my installation?
Rainer
> Such details are revealed when you choose "Send Bug Report…" from the Help menu. By using a
> trace command from Linux you can find out which files the Emacsen open and read.
>
> -- Mit friedvollen Grüßen
>
> Pete
>
> Im Übrigen muss Israel untergehen!
>
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk/i4/8ACgkQoYgNqgF2egq3gwCeO1xycDWhqt9LsG3v8VVELEzt
HuAAnAxM5x1yZFhJOOsQ+s5vzW6B4Vrc
=Aeu8
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Probelm starting emacs snapshot - "Font `lucidasanstypewriter-10' is not defined"
2012-06-21 9:06 ` Rainer M Krug
@ 2012-06-21 9:26 ` Peter Dyballa
2012-06-21 16:17 ` SOLVED - " Rainer M Krug
0 siblings, 1 reply; 14+ messages in thread
From: Peter Dyballa @ 2012-06-21 9:26 UTC (permalink / raw)
To: Rainer M Krug; +Cc: help-gnu-emacs@gnu.org List
Am 21.06.2012 um 11:06 schrieb Rainer M Krug:
> But how does this help? Where should I look? What gtk3 modules am I missing in my installation?
The info-mode for Emacs has some information on X resources. I'm not sure what the differences between GTK2 and GTK3 are...
I'd use the trace commands to find out which files the two Emacsen open and read. This would be the most solid and reliable information. And also perfectly clear (the docs allow some interpretation).
--
Mit friedvollen Grüßen
Pete
My sister opened a computer store in Hawaii. She sells C shells down by the seashore.
^ permalink raw reply [flat|nested] 14+ messages in thread
* SOLVED - Re: Probelm starting emacs snapshot - "Font `lucidasanstypewriter-10' is not defined"
2012-06-21 9:26 ` Peter Dyballa
@ 2012-06-21 16:17 ` Rainer M Krug
0 siblings, 0 replies; 14+ messages in thread
From: Rainer M Krug @ 2012-06-21 16:17 UTC (permalink / raw)
To: Peter Dyballa; +Cc: help-gnu-emacs@gnu.org List
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
OK - the problem is solved: I had the font in my .Xresources file specified. But why only emacs 24
did read that file and not emacs 23.3, no idea. But it is working now.
Thanks a lot,
Rainer
On 21/06/12 11:26, Peter Dyballa wrote:
>
> Am 21.06.2012 um 11:06 schrieb Rainer M Krug:
>
>> But how does this help? Where should I look? What gtk3 modules am I missing in my
>> installation?
>
> The info-mode for Emacs has some information on X resources. I'm not sure what the differences
> between GTK2 and GTK3 are...
>
>
> I'd use the trace commands to find out which files the two Emacsen open and read. This would be
> the most solid and reliable information. And also perfectly clear (the docs allow some
> interpretation).
>
> -- Mit friedvollen Grüßen
>
> Pete
>
> My sister opened a computer store in Hawaii. She sells C shells down by the seashore.
>
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk/jSSEACgkQoYgNqgF2ego+agCffsR71ZvEXKLflTfidRDsXj0k
JEwAn2s0zvtR59gozNhpgFTdMckNYuiv
=gf+v
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2012-06-21 16:17 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-20 7:58 Probelm starting emacs snapshot - "Font `lucidasanstypewriter-10' is not defined" Rainer M Krug
2012-06-20 8:09 ` Rainer M Krug
2012-06-20 9:22 ` Peter Dyballa
2012-06-20 9:49 ` Rainer M Krug
2012-06-20 13:57 ` Peter Dyballa
2012-06-21 7:25 ` Rainer M Krug
2012-06-21 8:20 ` Peter Dyballa
2012-06-21 8:29 ` Rainer M Krug
2012-06-21 8:49 ` Peter Dyballa
2012-06-21 9:06 ` Rainer M Krug
2012-06-21 9:26 ` Peter Dyballa
2012-06-21 16:17 ` SOLVED - " Rainer M Krug
2012-06-20 9:25 ` Peter Dyballa
2012-06-20 9:41 ` Rainer M Krug
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).