unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Xft support (freetype, anti-aliasing) in X11 emacs
@ 2002-10-02 22:27 Ami Fischman
  2002-10-03  9:10 ` Colin Walters
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Ami Fischman @ 2002-10-02 22:27 UTC (permalink / raw)


Hi there,

Is anyone working on adding Xft/freetype/anti-alias support to emacs?
Equivalently, is there any work being done on a gtk/qt-specific port of the
windowing code?  ("equivalent" because both toolkits support Xft natively
in their most recent incarnations (2.0 and 3.0, resp).

In case the answer to both previous questions is negative, is there a
roadmap description of the emacs source tree or do new developers just jump
in head first?

Cheers,
-- 
  Ami Fischman
  usenet@fischman.org

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Xft support (freetype, anti-aliasing) in X11 emacs
  2002-10-02 22:27 Xft support (freetype, anti-aliasing) in X11 emacs Ami Fischman
@ 2002-10-03  9:10 ` Colin Walters
  2002-10-04 15:46   ` Richard Stallman
  2002-10-03 14:53 ` Richard Stallman
  2002-10-03 18:11 ` Jan D.
  2 siblings, 1 reply; 10+ messages in thread
From: Colin Walters @ 2002-10-03  9:10 UTC (permalink / raw)


On Wed, 2002-10-02 at 18:27, Ami Fischman wrote:

> Is anyone working on adding Xft/freetype/anti-alias support to emacs?

I worked on this for a bit a few months ago.  However, it became very
complicated, and I mostly abandoned the project.  If you're interested
in picking up where I left off, I've put up the files I modified here:
http://web.verbum.org/~walters/files/emacs-xrender

> Equivalently, is there any work being done on a gtk/qt-specific port of the
> windowing code?  ("equivalent" because both toolkits support Xft natively
> in their most recent incarnations (2.0 and 3.0, resp).

A GTK+/GNOME 2 port would be significant effort.  One big issue would be
dealing with the fact that GTK+ 2's "TextView" widget also implements a
fair portion of Emacs' display capabilities.  For example, it has the
equivalent of text properties.  It also supports more than Emacs does;
specifically full Unicode and bidirectional text.

So maybe the way to do it would be to just ignore GtkTextView, and just
use the scrollbar, menu, and dialog stuff.  I think that's what XEmacs
does.  Even then you're talking about a whole lot of work.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Xft support (freetype, anti-aliasing) in X11 emacs
  2002-10-02 22:27 Xft support (freetype, anti-aliasing) in X11 emacs Ami Fischman
  2002-10-03  9:10 ` Colin Walters
@ 2002-10-03 14:53 ` Richard Stallman
  2002-10-03 18:11 ` Jan D.
  2 siblings, 0 replies; 10+ messages in thread
From: Richard Stallman @ 2002-10-03 14:53 UTC (permalink / raw)
  Cc: emacs-devel

    Is anyone working on adding Xft/freetype/anti-alias support to emacs?
    Equivalently, is there any work being done on a gtk/qt-specific port of the
    windowing code?

We are looking for someone to make Emacs work with GTK.
Someone said a few months ago that he was interested, but later
he said he did not have much time.  If you want to work on it
more actively, that would be very good.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Xft support (freetype, anti-aliasing) in X11 emacs
  2002-10-02 22:27 Xft support (freetype, anti-aliasing) in X11 emacs Ami Fischman
  2002-10-03  9:10 ` Colin Walters
  2002-10-03 14:53 ` Richard Stallman
@ 2002-10-03 18:11 ` Jan D.
  2002-10-03 19:28   ` Ami Fischman
  2 siblings, 1 reply; 10+ messages in thread
From: Jan D. @ 2002-10-03 18:11 UTC (permalink / raw)
  Cc: emacs-devel

> Hi there,
> 
> Is anyone working on adding Xft/freetype/anti-alias support to emacs?
> Equivalently, is there any work being done on a gtk/qt-specific port of the
> windowing code?  ("equivalent" because both toolkits support Xft natively
> in their most recent incarnations (2.0 and 3.0, resp).

I'm working on a Gtk port (not much time to spend on this lately, but
moving forward somewhat faster this month).  But that won't give you
anti-alias support "for free".  In Gtk at least, it would mean a total
conversion of all display code in Emacs to use Gtk primitives
for text.  This duplication of code is undesirable.

Putting in anti-alias code that works with X regardless of toolkit would
be nice.

> In case the answer to both previous questions is negative, is there a
> roadmap description of the emacs source tree or do new developers just jump
> in head first?

Head first I guess :-)

	Jan D.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Xft support (freetype, anti-aliasing) in X11 emacs
  2002-10-03 18:11 ` Jan D.
@ 2002-10-03 19:28   ` Ami Fischman
  2002-10-03 20:03     ` Jan D.
  0 siblings, 1 reply; 10+ messages in thread
From: Ami Fischman @ 2002-10-03 19:28 UTC (permalink / raw)
  Cc: emacs-devel

"Jan D." <jan.h.d@swipnet.se> writes:

[...]

> I'm working on a Gtk port (not much time to spend on this lately, but
> moving forward somewhat faster this month).  But that won't give you
> anti-alias support "for free".  In Gtk at least, it would mean a total
> conversion of all display code in Emacs to use Gtk primitives
> for text.  This duplication of code is undesirable.

My impression was that if the code uses pango, then you can relatively
simply select between having pango use Xft/ft2/std.X calls.  Is this
incorrect or were you not including using pango under the heading of a "Gtk
port"?

> Putting in anti-alias code that works with X regardless of toolkit would
> be nice.

I think having emacs use Xft2 directly instead of standard X font interface
would do it.  

Cheers,
-- 
  Ami Fischman
  usenet@fischman.org

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Xft support (freetype, anti-aliasing) in X11 emacs
  2002-10-03 19:28   ` Ami Fischman
@ 2002-10-03 20:03     ` Jan D.
  2002-10-04 11:32       ` Werner LEMBERG
  0 siblings, 1 reply; 10+ messages in thread
From: Jan D. @ 2002-10-03 20:03 UTC (permalink / raw)
  Cc: emacs-devel


torsdagen den 3 oktober 2002 kl 21.28 skrev Ami Fischman:

> "Jan D." <jan.h.d@swipnet.se> writes:
>
> [...]
>
>> I'm working on a Gtk port (not much time to spend on this lately, but
>> moving forward somewhat faster this month).  But that won't give you
>> anti-alias support "for free".  In Gtk at least, it would mean a total
>> conversion of all display code in Emacs to use Gtk primitives
>> for text.  This duplication of code is undesirable.
>
> My impression was that if the code uses pango, then you can relatively
> simply select between having pango use Xft/ft2/std.X calls.  Is this
> incorrect or were you not including using pango under the heading of a "Gtk
> port"?

Yes, pango can use X calls, but Emacs have to convert to using pango, and 
that is a lot of code.  Basically you would have one pango version and one 
X version of the code, or just one pango version.  I don't know if the 
requirement to have pango to run Emacs is OK.  Also, Emacs would probably 
have to be converted to Unicode, since that is what pango uses.


>
>> Putting in anti-alias code that works with X regardless of toolkit would
>> be nice.
>
> I think having emacs use Xft2 directly instead of standard X font interface
> would do it.

If you say so, I haven't looked at Xft2.  I don't even like antialiased 
fonts, they make my eyes hurt :-)

	Jan D.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Xft support (freetype, anti-aliasing) in X11 emacs
  2002-10-03 20:03     ` Jan D.
@ 2002-10-04 11:32       ` Werner LEMBERG
  2002-10-05 23:44         ` Jan D.
  0 siblings, 1 reply; 10+ messages in thread
From: Werner LEMBERG @ 2002-10-04 11:32 UTC (permalink / raw)
  Cc: usenet, emacs-devel


> If you say so, I haven't looked at Xft2.  I don't even like
> antialiased fonts, they make my eyes hurt :-)

Please explain.  Recent FreeType versions (used in Xft2) support
various hinting modes.


    Werner

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Xft support (freetype, anti-aliasing) in X11 emacs
  2002-10-03  9:10 ` Colin Walters
@ 2002-10-04 15:46   ` Richard Stallman
  0 siblings, 0 replies; 10+ messages in thread
From: Richard Stallman @ 2002-10-04 15:46 UTC (permalink / raw)
  Cc: emacs-devel

    A GTK+/GNOME 2 port would be significant effort.  One big issue would be
    dealing with the fact that GTK+ 2's "TextView" widget also implements a
    fair portion of Emacs' display capabilities.

There is no particular reason to use that widget.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Xft support (freetype, anti-aliasing) in X11 emacs
  2002-10-04 11:32       ` Werner LEMBERG
@ 2002-10-05 23:44         ` Jan D.
  2002-10-06  1:08           ` Miles Bader
  0 siblings, 1 reply; 10+ messages in thread
From: Jan D. @ 2002-10-05 23:44 UTC (permalink / raw)
  Cc: usenet, emacs-devel

> 
> > If you say so, I haven't looked at Xft2.  I don't even like
> > antialiased fonts, they make my eyes hurt :-)
> 
> Please explain.  Recent FreeType versions (used in Xft2) support
> various hinting modes.
> 

It is not specific to Xft2, it is anti-aliased fonts in general.  For
example, I can not work with MaxOSX 10.2 more than an hour at a time.
I tried to change the settings for antialias, but it had no effect.
I am seriously considering reverting to 10.1.
I have the same problem with KDE anti aliasing, so I turn it off.

To me anti aliased fonts don't look smoother, they just look out of focus.
My stupid eyes tries to focus, but to no avail, since the "out of focus"
isn't really real.  I get a headache instead.

It isn't monitors either, I tried 5 different monitors.  CRT is a bit
better than TFT here.  So my interest in Xft and anti aliased text is
pretty low.

	Jan D.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Xft support (freetype, anti-aliasing) in X11 emacs
  2002-10-05 23:44         ` Jan D.
@ 2002-10-06  1:08           ` Miles Bader
  0 siblings, 0 replies; 10+ messages in thread
From: Miles Bader @ 2002-10-06  1:08 UTC (permalink / raw)
  Cc: Werner LEMBERG, usenet, emacs-devel

On Sun, Oct 06, 2002 at 01:44:43AM +0200, Jan D. wrote:
> To me anti aliased fonts don't look smoother, they just look out of focus.
> My stupid eyes tries to focus, but to no avail, since the "out of focus"
> isn't really real.  I get a headache instead.

Isn't it generally held that only very large and very small type sizes should
be anti-aliased?  I find that in both these cases, it helps quite a bit,
though with large fonts I suppose it's more of an aesthetic improvement than
anything else.  I'd think that any decent system would allow you to set the
thresholds where antialiasing kicks in...

Part of the problem, of course, is when you simply don't have a good range of
hand-made bitmap fonts, and have to use scalable fonts -- and scalable fonts
at small sizes are often almost unreadable without anti-aliasing, and usually
pretty ugly even at `normal' sizes.  [also, complicated characters like those
in Chinese/Japanese are often unreadable even at `normal' sizes in scalable
fonts; maybe all the fonts I use have sucky hinting or something though]

-Miles
-- 
P.S.  All information contained in the above letter is false,
      for reasons of military security.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2002-10-06  1:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-02 22:27 Xft support (freetype, anti-aliasing) in X11 emacs Ami Fischman
2002-10-03  9:10 ` Colin Walters
2002-10-04 15:46   ` Richard Stallman
2002-10-03 14:53 ` Richard Stallman
2002-10-03 18:11 ` Jan D.
2002-10-03 19:28   ` Ami Fischman
2002-10-03 20:03     ` Jan D.
2002-10-04 11:32       ` Werner LEMBERG
2002-10-05 23:44         ` Jan D.
2002-10-06  1:08           ` Miles Bader

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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