Some shapers (i.e. Khmer) will produce cluster logs which report that /no/ code points contributed to certain glyphs. Because of this, we take any code point which contributed to the glyph in question, or any subsequent glyph. If we run off the end, then we take the last code point.
Created attachment 32187 [details] patch
Comment on attachment 32187 [details] patch Needs a layout test, or explanation as to why one is impossible. I assume one is impossible because this requires special fonts to be installed?
Created attachment 32202 [details] patch
Comment on attachment 32202 [details] patch Fantastic.