I am no expert either, but as far as I remember, there is special field in
XFontStruct to indicate font direction. I guess, even with left-to-right font
there may be characters with negative width. At least, that's what Fteetype
based TTF rasterizer thinks in XFree86 4.0.
I have no idea if the formula is correct, but I think it should be right thing
to use _absolute_ values for {max|min}_bounds.width values.
I will try to raise this question with xfsft author.
> I'm no expert here, but somehow I would have expected that
> both widths have the same sign - doesn't this specify the
> direction of the font writing?
> Is the first formula correct, even with a few signs conditionally
> being changed!?
>
> --
> Alexander Mai
> [EMAIL PROTECTED]
----------------------------------
E-Mail: Alexander N. Kabaev <[EMAIL PROTECTED]>
Date: 28-Apr-00
Time: 12:18:56
----------------------------------