Created attachment 190745 [details] Full screenshot of krita window showing a cursor editing vertical chinese text SUMMARY Using the new text tool, when the Writing Mode property is added and set to "Vertical, Right to Left", the cursor on the page is rendered extremely malformed, which makes the text difficult to edit. STEPS TO REPRODUCE 1. Create text using the text tool 2. Type any text, english or CJK works 3. Open the text properties tool window, and add the "Writing Mode" property 4. Set it to vertical-rl 5. Note that the cursor is rendered diagonally in a strange way (this only happens when the text field is non-empty) OBSERVED RESULT The cursor is rendered far larger than the bounds of the text box, in a slanted diagonal, and hence does not indicate position EXPECTED RESULT The text cursor should be horizontal at the correct position SOFTWARE/OS VERSIONS Windows: 10 Qt Version: 5 ADDITIONAL INFORMATION
Can you share the font with me? I've tested vertical text endlessly, so my suspicion is that there's something odd with the font.
Created attachment 190759 [details] attachment-3992942-0.html Sure, it's 京華老宋体 KingHwa_OldSong The official download for it is in this zhihu post https://zhuanlan.zhihu.com/p/677725322 Jun On Tue, 17 Mar 2026, 22:14 wolthera, <bugzilla_noreply@kde.org> wrote: > https://bugs.kde.org/show_bug.cgi?id=517717 > > wolthera <griffinvalley@gmail.com> changed: > > What |Removed |Added > > ---------------------------------------------------------------------------- > Status|REPORTED |NEEDSINFO > CC| |griffinvalley@gmail.com > Resolution|--- |WAITINGFORINFO > > --- Comment #1 from wolthera <griffinvalley@gmail.com> --- > Can you share the font with me? I've tested vertical text endlessly, so my > suspicion is that there's something odd with the font. > > -- > You are receiving this mail because: > You reported the bug.
Ok, I can reproduce. I'll have to see what causes it.
Git commit 23c976ecd28fc526fefae1c69bcc83343e122a65 by Wolthera van Hövell, on behalf of Wolthera van Hövell tot Westerflier. Committed on 06/07/2026 at 18:30. Pushed by woltherav into branch 'master'. Force non-var vertical metrics to use default vertical caret. Some of these fonts have nonsense values for the vertical caret, so we just disable it. Variable fonts are probably modern enough that they don't have this issue. M +7 -0 libs/flake/text/KoFontRegistry.cpp https://invent.kde.org/graphics/krita/-/commit/23c976ecd28fc526fefae1c69bcc83343e122a65
Git commit 7ddf6d938dcbc44adf7572a342f12e0eeb1be4f9 by Wolthera van Hövell tot Westerflier. Committed on 06/07/2026 at 18:32. Pushed by woltherav into branch 'krita/6.0'. Force non-var vertical metrics to use default vertical caret. Some of these fonts have nonsense values for the vertical caret, so we just disable it. Variable fonts are probably modern enough that they don't have this issue. M +7 -0 libs/flake/text/KoFontRegistry.cpp https://invent.kde.org/graphics/krita/-/commit/7ddf6d938dcbc44adf7572a342f12e0eeb1be4f9