[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help with my Squeeze upgrade! (missing fonts)



Chris Jones <cjns1989@gmail.com> wrote:

> That's odd.. I would've thought the ‘-fn’ flag would not support .ttf
> fonts. I don't use emacs, but other X programs such as XTerm, xfd, etc.
> use the ‘-fa’ flag when using the ‘typeface’ syntax. Maybe emacs doesn't
> make such sublte distinctions.

The normal way I do it is in my .emacs file:

(set-face-attribute 'default nil :font "LMTypewriter10-18")

But for whatever reason, this TeX font is just gone! I had reinstalled the "context" pacakge and ran the "fc-cache -fv" command, and can't get any apps to show this font at all. There are some other fonts with the same problem too. I use fontmatrix to preview my fonts and they don't appear there. This tells me that somehow the font server, xfstt, Defoma, or whatever is used to manage X fonts (I don't even know!) must have removed all the old settings from lenny, and it does not have these fonts added yet in squeeze ... and I don't know how to add them!


> > Do I have to do something new to get the /usr/share/texmf/ fonts to go
> > in X now?
> 
> Since I would imagine X knows nothing about these directories (unless
> you have them in an xorg.conf file for instance).. I would take a look
> at fontconfig:
> 
> $ fc-list | less
> 
> Check the name under which fontconfig has it listed.. Is it
> LMTypewriter-10, LMTypewriter10, LMtypewriter10.. etc. Since you spelled
> the typeface differently above and below, could be a typo..?

It used to be LMTypewriter-10. But fontconfig doesn't know about it now! Doing "fc-list" gives me 1300+ fonts, including a lot of LM fonts (LMMonoLt10, LMMathItal8, etc), but not LMTypewriter-10!



> Also I tried "xlsfonts" to see if it's there, and this is weird:
> 
> $ xlsfonts | grep typewriter
> ...
> -unregistered-latin modern typewriter variable width-dark-o-normal--0-0-0-0-p-0-iso8859-1
> -unregistered-latin modern typewriter variable width-dark-o-normal--0-0-0-0-p-0-iso8859-1
> -unregistered-latin modern typewriter variable width-dark-o-normal--0-0-0-0-p-0-iso8859-15
> -unregistered-latin modern typewriter variable width-dark-o-normal--0-0-0-0-p-0-iso8859-15

> Since he does not know about ‘LMTypewriter-10’, you could try the ‘emacs
> -fn "-unregistered-latin modern typewriter variable width-*" syntax..
> see what happens.

Same thing:

$ emacs -fn '-unregistered-latin modern typewriter variable width-dark-r-normal--0-0-0-0-p-0-iso8859-1'
Font `-unregistered-latin modern typewriter variable width-dark-r-normal--0-0-0-0-p-0-iso8859-1' is not defined
$

Also, I looked at my shell history and had all kinds of fonts that I was able to load this way:

112210  emacs -fn 'LMTypewriterVarWd10-Regular'
112211  emacs -fn 'LMTypewriterVarWd10-Regular-10'
112212  emacs -fn 'LMTypewriterVarWd10-10'
112213  emacs -fn 'LMTypewriterVarWd10-36'
112214  emacs -fn 'ZurichExBT-36'
112215  emacs -fn 'ZurichExBTRegular-36'
112216  emacs -fn 'ZurichExtended-36'
112217  emacs -fn 'ZurichExtendedBT-36'
112218  emacs -fn 'Zurich Ex BT-36'

None of these fonts are available on my system at all now!

Erin





Reply to: