On Tue, 15 Mar 2005 09:33:08 -0500, Adrian Robert
<[EMAIL PROTECTED]> 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 Terminal.app 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;
void
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
_______________________________________________
Gnustep-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnustep-dev