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

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



On Wed, Feb 09, 2011 at 11:40:30AM EST, Erin Brinkley wrote:

[..]

> $ locate lmtypewriter
> /usr/share/texmf/fonts/truetype/hoekwater/lm/lmtypewriter10-regular.ttf
> $ emacs -fn LMTypewriter-10
> Font `LMTypewriter-10' is not defined
> $
> 
> This used to work just fine!

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.

> 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..?

> 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.

> ...
> lucidasanstypewriter-10
> lucidasanstypewriter-10
> lucidasanstypewriter-10
> lucidasanstypewriter-10
> lucidasanstypewriter-10
> lucidasanstypewriter-10
> lucidasanstypewriter-10
> lucidasanstypewriter-10
> lucidasanstypewriter-12
> lucidasanstypewriter-12
> lucidasanstypewriter-12
> lucidasanstypewriter-12
> lucidasanstypewriter-12
> lucidasanstypewriter-12
> lucidasanstypewriter-12
> lucidasanstypewriter-12
> ...
> $

> I don't remember "latin modern typewriter" being listed like that.
> I thought it used to list out as "lmtypewriter-10" ... and also, why
> are there tons of the same listings like "lucidasanstypewriter-12"?

Presumably you never noticed it before.. I'm sure I had not. These are
bitmap font aliases and since there are different font.aliases files in
the /usr/share/fonts/X11/misc/{75,100}dpi/ directories, there are
multiple definitions, and it appears xlsfonts lists them all.. 

> Doesn't make sense.

cj


Reply to: