FreeRDP/FreeRDP — pull request #1435 by dpoe (2013-08-20 18:09:30+00:00)
Title: Apply glyph fragment offset after fragment

It appears the server expects the offset for a glyph fragment to be applied after the fragment rather than before it. Note that this is different than individual glyph offsets, which are expected to be applied before the glyph.

You can see the addressed defect by connecting to a pre-RemoteFX server, opening a very wide text window (e.g. an Outlook Express window) and typing a long set of words including spaces. Around the 120th letter the space will start jumping around in the string. The space character is implemented as a fragment offset, and without this fix it is being prepended to the second fragment rather than postpended (e.g. at the cursor), so the space jumps foward in the string to the fragment boundary.