* ttf can't work on GNU Emacs(X-window)?
@ 2005-09-08 5:46 Richie
2005-09-08 8:54 ` Peter Dyballa
[not found] ` <mailman.6262.1126170654.20277.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 14+ messages in thread
From: Richie @ 2005-09-08 5:46 UTC (permalink / raw)
Hi guys,
I have this problem for a long time. I want to use andale mono ttf font
in Emacs, but I don't know how to do in order to let emacs know this
font exists. When I put the andale mono font file into the
/usr/share/fonts/blahblah, other software can recognize it ( the reason
is that they support gtk2?). However, my favourite editor don't accept
it no matter where I set it(in .Xdefaults or .emacs). From some web, I
know emacs(xwindow) can only use the fonts which the "xlsfonts" command
shows. So my question now is how to let xlsfonts accept the ttf fonts.
Now I only use emacs -nw, for I can set the term font to andale,-.-.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: ttf can't work on GNU Emacs(X-window)?
2005-09-08 5:46 ttf can't work on GNU Emacs(X-window)? Richie
@ 2005-09-08 8:54 ` Peter Dyballa
[not found] ` <mailman.6262.1126170654.20277.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 14+ messages in thread
From: Peter Dyballa @ 2005-09-08 8:54 UTC (permalink / raw)
Cc: help-gnu-emacs
Am 08.09.2005 um 07:46 schrieb Richie:
> From some web, I
> know emacs(xwindow) can only use the fonts which the "xlsfonts" command
> shows. So my question now is how to let xlsfonts accept the ttf fonts.
Put the font into, for example, /usr/X11R6/lib/X11/fonts/TTF.
Invoke (sudo) ttfmkfontdir in this directory to create the fonts.dir
and fonts.scale files.
Add /usr/X11R6/lib/X11/fonts/TTF/ to the X server's search path for
fonts, by
either invoking 'xset +fp /usr/X11R6/lib/X11/fonts/TTF/ ; xset fp
rehash' (check with xlsfonts)
or putting /usr/X11R6/lib/X11/fonts/TTF/ into your .xinitrc file where
xset is used to adapt the search path for fonts (valid with X11's next
launch).
Andale Mono is a Unicode encoded font, so there shouldn't be any
problem with missing encodings. OTOH there are versions of ttfmkfontdir
and mkfontdir (for PostScript Type 1 and bitmapped fonts) that can
create many font encodings for X from one font file:
-monotype-andale mono-medium-r-normal--0-0-0-0-c-0-adobe-standard
-monotype-andale mono-medium-r-normal--0-0-0-0-c-0-ibm-cp437
-monotype-andale mono-medium-r-normal--0-0-0-0-c-0-iso10646-1
-monotype-andale mono-medium-r-normal--0-0-0-0-c-0-iso8859-1
-monotype-andale mono-medium-r-normal--0-0-0-0-c-0-iso8859-10
-monotype-andale mono-medium-r-normal--0-0-0-0-c-0-iso8859-13
-monotype-andale mono-medium-r-normal--0-0-0-0-c-0-iso8859-15
-monotype-andale mono-medium-r-normal--0-0-0-0-c-0-iso8859-2
-monotype-andale mono-medium-r-normal--0-0-0-0-c-0-iso8859-3
-monotype-andale mono-medium-r-normal--0-0-0-0-c-0-iso8859-4
-monotype-andale mono-medium-r-normal--0-0-0-0-c-0-iso8859-5
-monotype-andale mono-medium-r-normal--0-0-0-0-c-0-iso8859-9
-monotype-andale mono-medium-r-normal--0-0-0-0-c-0-koi8-e
-monotype-andale mono-medium-r-normal--0-0-0-0-c-0-koi8-r
-monotype-andale mono-medium-r-normal--0-0-0-0-c-0-koi8-u
-monotype-andale mono-medium-r-normal--0-0-0-0-c-0-microsoft-cp1252
-monotype-andale mono-medium-r-normal--0-0-0-0-m-0-ascii-0
-monotype-andale mono-medium-r-normal--0-0-0-0-m-0-fcd8859-15
-monotype-andale mono-medium-r-normal--0-0-0-0-m-0-iso10646-1
-monotype-andale mono-medium-r-normal--0-0-0-0-m-0-iso8859-1
-monotype-andale mono-medium-r-normal--0-0-0-0-m-0-iso8859-10
-monotype-andale mono-medium-r-normal--0-0-0-0-m-0-iso8859-15
-monotype-andale mono-medium-r-normal--0-0-0-0-m-0-iso8859-2
-monotype-andale mono-medium-r-normal--0-0-0-0-m-0-iso8859-3
-monotype-andale mono-medium-r-normal--0-0-0-0-m-0-iso8859-4
-monotype-andale mono-medium-r-normal--0-0-0-0-m-0-iso8859-5
-monotype-andale mono-medium-r-normal--0-0-0-0-m-0-iso8859-7
-monotype-andale mono-medium-r-normal--0-0-0-0-m-0-iso8859-9
-monotype-andale mono-medium-r-normal--0-0-0-0-m-0-koi8-r
-monotype-andale mono-medium-r-normal--0-0-0-0-m-0-koi8-ru
If you have GTK2+ enabled X clients be aware that they'll launch quite
late: GTK2 first produces fonts.cache files ...
--
Mit friedvollen Grüßen
Pete
"Eternity is a terrible thought. I mean, where's it going to end?"
- Tom Stoppard
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: ttf can't work on GNU Emacs(X-window)?
[not found] ` <mailman.6262.1126170654.20277.help-gnu-emacs@gnu.org>
@ 2005-09-08 11:39 ` Richie
2005-09-09 4:45 ` Stefan Monnier
[not found] ` <1126180306.543073.89850@g43g2000cwa.googlegroups.com>
1 sibling, 1 reply; 14+ messages in thread
From: Richie @ 2005-09-08 11:39 UTC (permalink / raw)
Hi Peter,
Thank you for your help. Now I can use the andale ttf font, but new
problem bring out : the font is too ugly on my screen for it is not so
smoothing as in my terminal.
Is there any way to anti alias the font?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: ttf can't work on GNU Emacs(X-window)?
[not found] ` <1126180306.543073.89850@g43g2000cwa.googlegroups.com>
@ 2005-09-08 12:18 ` Peter Dyballa
[not found] ` <f1ba81f0050908053499f88e5@mail.gmail.com>
` (2 more replies)
0 siblings, 3 replies; 14+ messages in thread
From: Peter Dyballa @ 2005-09-08 12:18 UTC (permalink / raw)
Cc: emacs list
Am 08.09.2005 um 13:51 schrieb Richie:
> Is there any way to anti alias the font?
>
Change the X server! You need one that uses libfreetype2.
What are xfontsel and xfd doing with this font? Since you're probably
using GNOME: there should be some means to advise the X server or an X
font server to handle vector fonts better.
Could be that you're selecting that font incorrectly. xfontsel should
help you to find the right set of parameters.
(I prefer to use the Lucida fonts, although faulty, that come with Java)
--
Greetings
Pete
If all else fails read the instructions. - Donald Knuth
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: ttf can't work on GNU Emacs(X-window)?
[not found] ` <f1ba81f0050908053499f88e5@mail.gmail.com>
@ 2005-09-08 13:18 ` Peter Dyballa
[not found] ` <mailman.6281.1126185875.20277.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 14+ messages in thread
From: Peter Dyballa @ 2005-09-08 13:18 UTC (permalink / raw)
Cc: emacs list
Am 08.09.2005 um 14:34 schrieb RichardLeo:
> xfce4
That's a window manager.
Actually Andale Mono looks for me pixilated too, no anti-aliasing. But
my X server is pretty old and it comes from Apple and they never
mentioned it could anti-alias fonts ... (which is reserved for Aqua)
--
Greetings
Pete
Either this man is dead or my watch has stopped. - Groucho Marx
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: ttf can't work on GNU Emacs(X-window)?
[not found] ` <mailman.6281.1126185875.20277.help-gnu-emacs@gnu.org>
@ 2005-09-08 14:16 ` Richie
0 siblings, 0 replies; 14+ messages in thread
From: Richie @ 2005-09-08 14:16 UTC (permalink / raw)
seems there is no good way now.
let me continue to use emacs -nw instead and use luci da font in x.
Thank you all the same.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: ttf can't work on GNU Emacs(X-window)?
2005-09-08 12:18 ` Peter Dyballa
[not found] ` <f1ba81f0050908053499f88e5@mail.gmail.com>
@ 2005-09-08 14:33 ` Henrik Enberg
2005-09-08 15:20 ` Peter Dyballa
[not found] ` <mailman.6288.1126191114.20277.help-gnu-emacs@gnu.org>
2 siblings, 1 reply; 14+ messages in thread
From: Henrik Enberg @ 2005-09-08 14:33 UTC (permalink / raw)
> From: Peter Dyballa <Peter_Dyballa@Web.DE>
> Date: Thu, 8 Sep 2005 14:18:56 +0200
>
> Am 08.09.2005 um 13:51 schrieb Richie:
>
> > Is there any way to anti alias the font?
>
> Change the X server! You need one that uses libfreetype2.
Changing X server won't help. You need application support for
antialiased fonts, something Emacs currently lacks.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: ttf can't work on GNU Emacs(X-window)?
2005-09-08 14:33 ` Henrik Enberg
@ 2005-09-08 15:20 ` Peter Dyballa
0 siblings, 0 replies; 14+ messages in thread
From: Peter Dyballa @ 2005-09-08 15:20 UTC (permalink / raw)
Cc: help-gnu-emacs
Am 08.09.2005 um 16:33 schrieb Henrik Enberg:
> Changing X server won't help. You need application support for
> antialiased fonts, something Emacs currently lacks.
>
Oh yes! That's it of course! I remember we had a discussion about that
in spring ...
--
Greetings
Pete
The day Microsoft makes something that doesn't suck is the day they
start selling vacuum cleaners.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: ttf can't work on GNU Emacs(X-window)?
[not found] ` <mailman.6288.1126191114.20277.help-gnu-emacs@gnu.org>
@ 2005-09-08 16:06 ` Richie
0 siblings, 0 replies; 14+ messages in thread
From: Richie @ 2005-09-08 16:06 UTC (permalink / raw)
What is the "something"?
Since I use the sid Debian, I use x org as the X. And my xfce4 window
manger including some software
such as firefox, gvim can use the antialias font ( due to GTK2?)
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: ttf can't work on GNU Emacs(X-window)?
2005-09-08 11:39 ` Richie
@ 2005-09-09 4:45 ` Stefan Monnier
2005-09-09 10:24 ` Richie
2005-09-11 13:34 ` Ian Zimmerman
0 siblings, 2 replies; 14+ messages in thread
From: Stefan Monnier @ 2005-09-09 4:45 UTC (permalink / raw)
> Thank you for your help. Now I can use the andale ttf font, but new
> problem bring out : the font is too ugly on my screen for it is not so
> smoothing as in my terminal.
> Is there any way to anti alias the font?
It's being worked on. Check out the XFT_JHD_BRANCH in Emacs-CVS if you're
courageous enough.
Stefan
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: ttf can't work on GNU Emacs(X-window)?
2005-09-09 4:45 ` Stefan Monnier
@ 2005-09-09 10:24 ` Richie
2005-09-09 13:22 ` Stefan Monnier
2005-09-11 13:34 ` Ian Zimmerman
1 sibling, 1 reply; 14+ messages in thread
From: Richie @ 2005-09-09 10:24 UTC (permalink / raw)
Thank you
where to get it, I'm willing to try.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: ttf can't work on GNU Emacs(X-window)?
2005-09-09 10:24 ` Richie
@ 2005-09-09 13:22 ` Stefan Monnier
0 siblings, 0 replies; 14+ messages in thread
From: Stefan Monnier @ 2005-09-09 13:22 UTC (permalink / raw)
> where to get it, I'm willing to try.
Google for Emacs-CVS should point you to
http://savannah.gnu.org/projects/emacs/
Stefan
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: ttf can't work on GNU Emacs(X-window)?
2005-09-09 4:45 ` Stefan Monnier
2005-09-09 10:24 ` Richie
@ 2005-09-11 13:34 ` Ian Zimmerman
2005-09-12 6:00 ` James Cloos
1 sibling, 1 reply; 14+ messages in thread
From: Ian Zimmerman @ 2005-09-11 13:34 UTC (permalink / raw)
> Is there any way to anti alias the font?
Stefan> It's being worked on. Check out the XFT_JHD_BRANCH in Emacs-CVS
Stefan> if you're courageous enough.
I hope it is still possible to use bitmapped fonts bypassing xft.
I like my Emacs font the way it is.
--
Optimist: We're only two weeks behind schedule.
Pessimist: The schedule is a whole two weeks ahead of us.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: ttf can't work on GNU Emacs(X-window)?
2005-09-11 13:34 ` Ian Zimmerman
@ 2005-09-12 6:00 ` James Cloos
0 siblings, 0 replies; 14+ messages in thread
From: James Cloos @ 2005-09-12 6:00 UTC (permalink / raw)
>>>>> "Ian" == Ian Zimmerman <itz@buug.org> writes:
>> Is there any way to anti alias the font?
Stefan> It's being worked on. Check out the XFT_JHD_BRANCH in
Stefan> Emacs-CVS if you're courageous enough.
On that front, the last I tried it still didn't support changing the
display font, and the font specified on the command line was only
used for latin1; everything else fell back to Sans-12. It also had
problems keeping each buffer's text within said buffer's borders.
Ian> I hope it is still possible to use bitmapped fonts bypassing xft.
Ian> I like my Emacs font the way it is.
Fontconfig (and therefore both Xft and cairo) supports any font
freetype supports, including bdf, pcf{,.gz} and other bitmap formats.
So, even when using client-side fonts you'll be able to use the bitmap
fonts you currently do.
In addition, it is highly unlikely that Emacs itself will abandon
support for server-side fonts. Cross-platform support is just too
inherent in its design principles.
-JimC
--
James H. Cloos, Jr. <cloos@jhcloos.com>
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2005-09-12 6:00 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-08 5:46 ttf can't work on GNU Emacs(X-window)? Richie
2005-09-08 8:54 ` Peter Dyballa
[not found] ` <mailman.6262.1126170654.20277.help-gnu-emacs@gnu.org>
2005-09-08 11:39 ` Richie
2005-09-09 4:45 ` Stefan Monnier
2005-09-09 10:24 ` Richie
2005-09-09 13:22 ` Stefan Monnier
2005-09-11 13:34 ` Ian Zimmerman
2005-09-12 6:00 ` James Cloos
[not found] ` <1126180306.543073.89850@g43g2000cwa.googlegroups.com>
2005-09-08 12:18 ` Peter Dyballa
[not found] ` <f1ba81f0050908053499f88e5@mail.gmail.com>
2005-09-08 13:18 ` Peter Dyballa
[not found] ` <mailman.6281.1126185875.20277.help-gnu-emacs@gnu.org>
2005-09-08 14:16 ` Richie
2005-09-08 14:33 ` Henrik Enberg
2005-09-08 15:20 ` Peter Dyballa
[not found] ` <mailman.6288.1126191114.20277.help-gnu-emacs@gnu.org>
2005-09-08 16:06 ` Richie
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).