help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Can you recommand some good fonts for emacs22 ?


From: Thierry Volpiatto
Subject: Re: Can you recommand some good fonts for emacs22 ?
Date: Mon, 20 Jul 2009 18:13:31 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux)

Harry Putnam <reader@newsguy.com> writes:

> Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:
>
>> Harry Putnam <reader@newsguy.com> writes:
>>
>>>> You can see all the xfonts available in emacs with:
>>>>
>>>> (x-list-fonts "*")
>>>
>>> What I get is only a tiny fraction of fonts on the system.
>>> 12 are listed.
>>
>> How did you count the number of fonts found?
>
> Captured the output of EVAL: (x-list-fonts "*")
> ("-sony-fixed-medium-r-normal--24-*-75-75-c-120-jisx0201.1976-0" 
> "-sony-fixed-medium-r-normal--24-*-75-75-c-120-iso8859-1" 
> "-sony-fixed-medium-r-normal--24-*-100-100-c-120-jisx0201.1976-0" 
> "-sony-fixed-medium-r-normal--24-*-100-100-c-120-iso8859-1" 
> "-sony-fixed-medium-r-normal--16-*-75-75-c-80-jisx0201.1976-0" 
> "-sony-fixed-medium-r-normal--16-*-75-75-c-80-iso8859-1" 
> "-sony-fixed-medium-r-normal--16-*-100-100-c-80-jisx0201.1976-0" 
> "-sony-fixed-medium-r-normal--16-*-100-100-c-80-iso8859-1" 
> "-schumacher-clean-medium-r-normal--12-*-75-75-c-60-koi8-r" 
> "-schumacher-clean-medium-r-normal--12-*-75-75-c-60-iso8859-15" 
> "-schumacher-clean-medium-r-normal--12-*-75-75-c-60-iso8859-1" 
> "-schumacher-clean-medium-r-normal--12-*-75-75-c-60-iso10646-1" ...)
>
> I guess the `...' means a whole herd was elided

Put point on "..." and press RET

>>> xlsfonts shows 5681 with names beginning `^-'
>>
>> What is the output of:
>>
>> (length (x-list-fonts "*"))
>
>> For me it is 4968.
>
> Here it's 1287
>
> But when the item was introduced into the thread it was presented as a way
> to see `all' fonts.

All fonts usable in emacs.

> Thierry V. wrote in Message-ID: <87eitdqyvg.fsf@tux.homenetwork>
>
>  > You can see all the xfonts available in emacs with:
>
>  > (x-list-fonts "*")
>
> Did you mean to be used some other way than eval?

Anything (and icicle also AFAIK) use this function.
If you want a nice display of this list, use one of them.
If you don't want to use them, you can print the output of this function
with your own function:

loop in (x-list-fonts "*")
print in current buffer or in a specialized buffer each elements
generated by the loop.
Don't forget to add a "\n" after each elements to print.

 
> Using completion as Bernardo suggests:
>> M-x set-default-font RET TAB TAB
>
> Does appear to list them all... and with nice newlines.

As his name say, set-default-font ... set font, and is not intended to
display font, even if you can do it with completion.
If you press RET while browsing font like that, you will set a font.
If it is a readable font you can come back to your default font, else,
you will be good to restart emacs.

>
>
>

-- 
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France





reply via email to

[Prev in Thread] Current Thread [Next in Thread]