[Top][All Lists]

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

Re: Rendering of fixed-width fonts

From: Banlu Kemiyatorn
Subject: Re: Rendering of fixed-width fonts
Date: Wed, 16 Mar 2005 17:42:57 +0700

On Tue, 15 Mar 2005 09:33:08 -0500, Adrian Robert
<address@hidden> wrote:

> First, I can't find any reference to this on the web.  Is everyone
> rendering this font character-by-character manually?  Leaving the
> question of what's happening in Gnome/Gtk aside, if I render in GNUstep
> using a call to DPSmoveto() followed by DPSshow() for every character,
> the problem goes away.  It looks like this is what does.
> Surprisingly, on Art this is actually reasonably fast, but on Xlib
> performance is unacceptable.

Since pango is integrating with cairo.. Owen may wanna do like this..

typedef struct {
  unsigned long        index;
  double               x;
  double               y;
} cairo_glyph_t;

cairo_show_glyphs (cairo_t *cr, cairo_glyph_t *glyphs, int num_glyphs);

I think GS normally use GSShowGlyphs, so it needs to do moveto only once
to render some glyphs. Though it didn't passed point values so you need
one moveto for each call. May be passing addition informations on x,y along
with the glyph stream in some cases is a good idea esp for future typesetters
(eg. vertical) to be less depending on back-end? Please correct me.

    _----_     Banlu Kemiyatorn
  /   /\   \   Free Software Yogi
 |   /  \   |  -_-~-_-~-_-~-_-~-_-~-_-~-_-~-_
 |  /----\  |  QSTORAD, Qing  Shan Tian Xia
  \/      \/   136 Nivesana 7, Jangwattana 14
   QingShan    Laksi, Bangkok, Thailand 10210

reply via email to

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