Created attachment 137068 [details] Missing underscores in Ruby constant Underscores are not visible on text elements with boldface decoration (for ex. constants in Ruby) using default Kate font settings on Windows. SOFTWARE/OS VERSIONS Windows: Windows 10 20H2 KDE Frameworks Version: 5.79.0 Qt Version: 5.15.2
Created attachment 137085 [details] Underscores visible (with Hack font) Does changing the font resolve the issue? I can see the underscores here (with the Hack font and I also tested with Courier which IIRC is the default font) but I remember experiencing the same bug some other time before.
Yes, changing the default font (Courier New) to other one, resolves the issue. Also changing the font size resolves it. However, with Courier New there are certain other sizes that causes the underscores to disappear or to be displayed with incorrect thickness (too thin).
Is this still reproducible?
(In reply to Waqar Ahmed from comment #3) > Is this still reproducible? Yes, it is still reproducible in latest Kate 22.04.1 in Windows, with both Courier and Courier New fonts. When you press Ctrl + Scroll the mouse wheel, you could easily notice that on some font sizes the underscores disappear.
Does it improve if you increase the line height? See (Configure Kate... -> Appearance -> General -> Line Height Multiplier)
Yes, increasing from 1.0 -> 1.1 or more, seems to solve the problem.
can you try one more thing, set the following environment variable before launching kate via cmd line set QT_QPA_PLATFORM=windows:fontengine=freetype On linux freetype font engine is used, so maybe the fault is in whatever fontengine that is being used on Windows.
Using: set QT_QPA_PLATFORM=windows:fontengine=freetype does not seem to have effect on that issue
This can't be fixed anymore on our side. One can always use a different font height to avoid the issue. The real issue must be fixed elsewhere