### MORX–11: “End of Text” Rearrangement with MarkLast Flag

The font for this test case has an AAT Extended Glyph Metamorphosis Table with a single Rearrangement Subtable. Its finite-state machine contains one single state with the following transitions:

- For glyph A, the machine sets both start and end of the marked glyph sequence to the current glyph position.
- For “end of text”, the machine changes the end of the marked glyph sequence to the current position and executes a rearrangement action of type 2, which moves the last marked glyph to the front of the marked sequence.
- For any other glyphs, the machine performs no action.

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.

Expected |
Observed |
Conformance |