Community
Participate
Working Groups
I have debugged it a bit and found out this: 1) 'ScriptItemize' WINAPI allocates spaces preceding the hieroglyphs into the same "run". 2) 'TextLayout.shape' fails, because hieroglyphs are not found in selected font. 3) Fallback font 'Microsoft Sans Serif' is selected. 4) Preceding spaces are using this font, therefore the size is different. A possible solution: When "run" is composed of "good" and "bad" characters, split them into separate "runs", so that "good" characters can continue to use non-fallback font.
Created attachment 278888 [details] Repro snippet