Bug 462177

Summary: Greek letters are not displayed in plots
Product: [Applications] rkward Reporter: Francisco Cribari <cribari>
Component: generalAssignee: RKWard Team <rkward-devel>
Status: RESOLVED FIXED    
Severity: normal CC: cribari, thomas.friedrichsmeier
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot

Description Francisco Cribari 2022-11-23 16:34:55 UTC
Created attachment 153977 [details]
Screenshot

SUMMARY
***
I run RKWad version 0.7.5-1 under Arch Linux + KDE. Greek letters do not show up in R plots in RKward 
***

STEPS TO REPRODUCE
1.  Start RKWard
2.  Execute: a = rnorm(10000); hist(a, main = expression(paste(mu,"=0")))
3. I see a blank square instead of the Greek letter "mu" in the title of the plot

OBSERVED RESULT

A black square is shown instead of the Greek letter "mu"  (see the attached screenshot)

EXPECTED RESULT

The Greek letter "mu" should be displayed in the title of the plot 

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Arch Linux + KDE 
(available in About System)
KDE Plasma Version: 5.26.3
KDE Frameworks Version: 5.100.1
Qt Version: 5.15.7

ADDITIONAL INFORMATION
--- Please fill in ---
--- IMPORTANT NOTE: If possible at all, please use the "Report bug" feature from the "Help" menu inside RKWard. Otherwise, please make sure to read http://rkward.kde.org/bugs for guidelines on what information to include in your report. ---
Comment 1 Francisco Cribari 2022-11-23 16:37:09 UTC
Greek letters are not included in R plots. To reproduce the issue, start RKward and execute: 

a = rnorm(10000); hist(a, main = expression(paste(mu,"=0")))
Comment 2 Thomas Friedrichsmeier 2022-11-24 12:45:59 UTC
Confirmed, I will investigate. However, as a quick workaround, simply:
   a = rnorm(10000); hist(a, main = "μ=0")
will work just fine, nowadays.
Comment 3 Bug Janitor Service 2024-08-03 14:46:22 UTC
A possibly relevant merge request was started @ https://invent.kde.org/education/rkward/-/merge_requests/51
Comment 4 Thomas Friedrichsmeier 2024-08-03 21:57:57 UTC
Git commit 5cc1dd4de49c1754c411ef8bcd0a92990d8b7357 by Thomas Friedrichsmeier.
Committed on 03/08/2024 at 21:57.
Pushed by tfry into branch 'master'.

QPainter does not paint using "Symbol" font

M  +1    -0    ChangeLog
M  +1    -1    rkward/rbackend/rkwarddevice/rkgraphicsdevice_frontendtransmitter.cpp
M  +7    -2    rkward/rbackend/rkwarddevice/rkgraphicsdevice_stubs.cpp

https://invent.kde.org/education/rkward/-/commit/5cc1dd4de49c1754c411ef8bcd0a92990d8b7357