Overlapping text when adding annotation in Okular

Issue description

The attached image above showed that:

When adding an annotation in Okular by annotation >> typewriter, the text is overlapped (the box with cluttered text on the right-hand side), but as I double-clicked the text, it showed that the text is saved properly (as could see in the yellow sticky note).

System info

The output of qdbus org.kde.KWin /KWin org.kde.KWin.supportInformation is as below:

qdbus output

KWin Support Information:
The following information should be used when requesting support on e.g. https://discuss.kde.org.
It provides information about the currently running instance, which options are used,
what OpenGL driver and which effects are running.
Please post the information provided underneath this introductory text to a paste bin service
like https://paste.kde.org instead of pasting into support threads.

==========================

Version

KWin version: 6.5.5
Qt Version: 6.10.2
Qt compile version: 6.10.2
XCB compile version: 1.17.0

Operation Mode: X11

Build Options

KWIN_BUILD_DECORATIONS: yes
KWIN_BUILD_TABBOX: yes
KWIN_BUILD_ACTIVITIES: yes
HAVE_X11_XCB: yes
HAVE_GLX: yes

X11

Vendor: The X.Org Foundation
Vendor Release: 12101021
Protocol Version/Revision: 11/0
SHAPE: yes; Version: 0x11
RANDR: yes; Version: 0x14
DAMAGE: yes; Version: 0x11
Composite: yes; Version: 0x4
RENDER: yes; Version: 0xb
XFIXES: yes; Version: 0x50
SYNC: yes; Version: 0x31
GLX: yes; Version: 0x0

Decoration

Plugin: org.kde.breeze
Theme: Breeze
Plugin recommends border size: None
onAllDesktopsAvailable: false
alphaChannelSupported: true
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 0, 2
decorationButtonsRight: 6, 3, 4, 5
borderSize: 0
gridUnit: 14
font: Noto Sans,14,-1,5,400,0,0,0,0,0,0,0,0,0,0,1
smallSpacing: 3
largeSpacing: 14

Output backend

Name: KWin::X11StandaloneBackend

Cursor

themeName: breeze_cursors
themeSize: 24

Options

focusPolicy: ClickToFocus
xwaylandCrashPolicy: 1
xwaylandMaxCrashCount: 3
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 0
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: true
placement: 5
activationDesktopPolicy: SwitchToOtherDesktop
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
edgeBarrier: 100
cornerBarrier: 1
rollOverDesktops: false
focusStealingPreventionLevel: 1
operationTitlebarDblClick: 5000
operationMaxButtonLeftClick: 5000
operationMaxButtonMiddleClick: 5015
operationMaxButtonRightClick: 5014
commandActiveTitlebar1: MouseRaise
commandActiveTitlebar2: MouseNothing
commandActiveTitlebar3: MouseOperationsMenu
commandInactiveTitlebar1: MouseActivateAndRaise
commandInactiveTitlebar2: MouseNothing
commandInactiveTitlebar3: MouseOperationsMenu
commandWindow1: MouseActivateRaiseOnReleaseAndPassClick
commandWindow2: MouseActivateAndPassClick
commandWindow3: MouseActivateAndPassClick
commandWindowWheel: MouseNothing
commandAll1: MouseUnrestrictedMove
commandAll2: MouseToggleRaiseAndLower
commandAll3: MouseUnrestrictedResize
keyCmdAllModKey: 16777250
doubleClickBorderToMaximize: true
condensedTitle: false
electricBorderMaximize: true
electricBorderTiling: true
electricBorderCornerRatio: 0.25
borderlessMaximizedWindows: false
killPingTimeout: 5000
compositingMode: 1
useCompositing: true
hiddenPreviews: 1
glSmoothScale: 2
glStrictBinding: false
glStrictBindingFollowsDriver: true
glPreferBufferSwap: AutoSwapStrategy
glPlatformInterface: 1
windowsBlockCompositing: false
allowTearing: true
interactiveWindowMoveEnabled: true

Screen Edges

desktopSwitching: false
desktopSwitchingMovingClients: false
cursorPushBackDistance: 1x1
actionTopLeft: 0
actionTop: 0
actionTopRight: 0
actionRight: 0
actionBottomRight: 0
actionBottom: 0
actionBottomLeft: 0
actionLeft: 0

Screens

Number of Screens: 2

Screen 0:

Name: DP-0

Enabled: 1
Geometry: 0,183,2560x1440
Physical size: 597x336mm
Scale: 1
Refresh Rate: 100000
Adaptive Sync: incapable
Screen 1:

Name: HDMI-0
Enabled: 1
Geometry: 2560,0,1080x1920
Physical size: 296x527mm
Scale: 1
Refresh Rate: 100000
Adaptive Sync: incapable

Compositing

Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce RTX 5060 Ti/PCIe/SSE2
OpenGL version string: 3.1.0 NVIDIA 590.48.01
OpenGL platform interface: GLX
OpenGL shading language version string: 1.40 NVIDIA via Cg compiler
Driver: NVIDIA
Driver version: 590.48.1
GPU class: Unknown
OpenGL version: 3.1
GLSL version: 1.40
X server version: 1.21.1
Linux kernel version: 6.12.68
Direct rendering: Requires strict binding: no
Virtual Machine: no
OpenGL 2 Shaders are used

Loaded Effects:

screenshot
outputlocator
colorpicker
zoom
screenedge
blur
contrast
login
logout
sessionquit
slidingpopups
windowaperture
slide
fadingpopups
maximize
frozenapp
fullscreen
scale
squash
dialogparent
windowview
tileseditor
overview
highlightwindow
blendchanges
startupfeedback
systembell
kscreen

Currently Active Effects:

blur
contrast
slidingpopups
dialogparent

Effect Settings:

screenshot:

outputlocator:

colorpicker:

zoom:
zoomFactor: 1.2
mousePointer: 0
mouseTracking: 0
focusTrackingEnabled: false
textCaretTrackingEnabled: false
focusDelay: 350
moveFactor: 20
targetZoom: 1

screenedge:

blur:

contrast:

login:
pluginId: login
isActiveFullScreenEffect: false

logout:
pluginId: logout
isActiveFullScreenEffect: false

sessionquit:
pluginId: sessionquit
isActiveFullScreenEffect: false

slidingpopups:
slideInDuration: 200
slideOutDuration: 200

windowaperture:
pluginId: windowaperture
isActiveFullScreenEffect: false

slide:
horizontalGap: 45
verticalGap: 20
slideBackground: true

fadingpopups:
pluginId: fadingpopups
isActiveFullScreenEffect: false

maximize:
pluginId: maximize
isActiveFullScreenEffect: false

frozenapp:
pluginId: frozenapp
isActiveFullScreenEffect: false

fullscreen:
pluginId: fullscreen
isActiveFullScreenEffect: false

scale:
pluginId: scale
isActiveFullScreenEffect: false

squash:
pluginId: squash
isActiveFullScreenEffect: false

dialogparent:
pluginId: dialogparent
isActiveFullScreenEffect: false

windowview:
activeView:
delegate:
animationDuration: 300
ignoreMinimized: false
mode:
partialActivationFactor: 0
gestureInProgress: false
searchText:
selectedIds:

tileseditor:
activeView:
delegate:
animationDuration: 200

overview:
activeView:
delegate:
animationDuration: 300
ignoreMinimized: false
filterWindows: true
organizedGrid: true
overviewPartialActivationFactor: 0
overviewGestureInProgress: false
transitionPartialActivationFactor: 0
transitionGestureInProgress: false
gridPartialActivationFactor: 0
gridGestureInProgress: false
desktopOffset:
searchText:

highlightwindow:

blendchanges:

startupfeedback:
type: 1

systembell:

kscreen:

Loaded Plugins:

krunnerintegration
nightlight

Available Plugins:

krunnerintegration
nightlight

This text will be hidden

Additional info

The following image are the outputs of some commands that I think might be related:

Suspected causes & try

I found a reddit post: Nvidia Drivers ruins my resolution and dpi, which suggested that it might due to dpi settings, I then do the suggested fix shown in the following image:

It really worked! I can properly annotate in Okular, but after a short period, it then failed again.

At first I thought that this might due to for some reason, the changes that I have made are overwritten, but from the image that I attached in the previous “additional info“ section, it showed that the dpi is really properly set.

Similar issue that I’ve made changes and solved before

Few months ago, I encountered font issue similar to the post: similar issue on linux mint forum (text overlapped / garbled text for applications like warp and spotify), I then:

  • changed from wayland to x11
  • downgraded my kernel to 6.12.68-1-lts

I’m not quite sure whether these are all things that I have tried to fix, but then the issue is solved. I’m not sure whether these changes has anything to do with the current problem.