> @nuitlejour: 1.png shows characters in normal position,

Please specify the text as text instead of just a picture. Sometimes problems 
are sensitive to the actual text. Since I don't speak Chinese, it would likely 
take me half an hour to reconstruct that text and it is easy to make mistakes.

> @nuitlejour: on Windows 11

That adds to the complexity compared to Linux+Wayland and makes it less likely 
that this will be fixed.

There is a good chance that choosing a different font will avoid this problem.

> @elextr: @nyamatongwe you were thinking of a horizontal movement I suspect.

Yes, but vertical movement is also possible. The Chinese portion of the text 
appears a little wider (1 pixel extra per character) in the second image.

Text drawing functions may choose from a wide range of shaping and font 
selection options to match contextual drawing conventions. In this case, it may 
be following the conventions for a fully Chinese document when it only sees 
Chinese characters in an isolated string but modifies the positions for mixed 
language text.

> @elextr: Font is Deja Vu Sans Book and Deja Vu Sans Mono Book.

I don't think these fonts include Chinese characters so a substitute font will 
be used for those characters and the choice of substitute font may be 
significant. Switching (or not switching) between fonts is a potential cause of 
these sorts of issues.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3803#issuecomment-2026297777
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/issues/3803/[email protected]>

Reply via email to