[comp.windows.x] question about XDrawText and fonts

rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (06/14/90)

    Then it says that the delta for the second string begins at the
    *rbearing* of the last character in the first string.

This statement is incorrect.  The delta is added to the next-character-
origin computed from drawing the previous character.

    Also are there any examples of fonts distributed with X whose draw
    direction is FontRightToLeft?

We don't distribute any.

    I got an Arabic font (thanks anoosh@mips)
    called krivo, and using dbx and xfd I discovered that its draw
    direction is left-to-right.

There is a difference of opinion about how right-to-left text should
be handled.  The protocol was designed to allow doing it with negative
metrics, but there are those who believe it should be the client's
responsibility to reverse the characters before rendering, and so use
positive metrics.  Maybe this is because ...

    If draw direction is not a font property, how is it specified in bdf
    files?

Hmm, it isn't.  The direction is just a hint, and could be computed
from the majority direction of the glyphs, but bdftosnf doesn't even
seem to do this.  Bug ...