Bug 514784

Summary: RK()-device: Text-misalignment when using some symbols
Product: [Applications] rkward Reporter: Thomas Friedrichsmeier <thomas.friedrichsmeier>
Component: generalAssignee: RKWard Team <rkward-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Thomas Friedrichsmeier 2026-01-18 09:42:27 UTC
Graphics text misalignment with some symbols.

Try the following code example with RK() and grDevices::X11() devices:
  plot(1, 1, sub="☀️ ☀️\nx x\n௵ ௵")

For the RK()-device the first pair of symbols is off-center, somehow.

First found in rkward 0.8.2, but probably the issue has been around for much longer.
Comment 1 Thomas Friedrichsmeier 2026-01-18 10:20:47 UTC
Git commit a43bb289ee58d9560581bcbaffd43a45ec0f128a by Thomas Friedrichsmeier.
Committed on 18/01/2026 at 10:20.
Pushed by tfry into branch 'master'.

Fix horizontal text offset in RK() device

M  +1    -0    ChangeLog
M  +7    -8    rkward/rbackend/rkwarddevice/rkgraphicsdevice.cpp
M  +1    -1    rkward/rbackend/rkwarddevice/rkgraphicsdevice.h
M  +1    -1    rkward/rbackend/rkwarddevice/rkgraphicsdevice_frontendtransmitter.cpp

https://invent.kde.org/education/rkward/-/commit/a43bb289ee58d9560581bcbaffd43a45ec0f128a