The input string for this test case is
BABBAABX. If your
rendering system correctly implements
Apple Advanced
Typography, the finite-state machine should have marked the
last
A (the third-last glyph in the input string) before
taking the final end-of-text transition. When processing
end-of-text, your implementation should first extend the
marked
glyph sequence to the trailing
ABX, and then perform a
rearrangement for moving
X to the front of the marked
sequence. See also
fontkit bug 145.