Re: Some comments on Xr on Xc

Joaquín Cuenca Abela <[email protected]> 24 Nov 2002 16:15:19 +0100
Newsgroups gmane.comp.xfree86.render
Message-ID <1038150919.1084.3.camel@cuenca>
On Fri, 2002-11-22 at 16:38, Carl Worth wrote:
>
> Beyond that, we need variations of each that allow explicit
> offsets. I'm inclined to have a single structure for storing the
> offsets for either a string or glyphs rather than separate
> CharSpec/GlyphSpec structures ala Xft. Maybe something like:
> 
> 	XrShowTextOffsets
> 	XrShowGlyphsOffsets
> 
> each accepting an array of XPointDouble?

Why not two arrays of doubles, one of them for the X offsets and the
other one for the Y offsets (NULL means "everything's 0").

Usually you only care about the X offsets, so that way you don't have to
allocate/initialize the Y array if you don't need it.

Cheers,

-- 
Joaquín Cuenca Abela
[email protected]