Re: [R] [Rd] italic font on cairo devices in R 3.4

2017-07-08 Thread Ilia Kats
Cool, thanks, I didn't know about that. I'll give it a try. This still doesn't fix the root cause, though. Cheers, Ilia Original Message Subject: Re: [R] [Rd] italic font on cairo devices in R 3.4 Date: 2017-07-08 07:11:10 +0200 From: Yixuan Qiu To: ilia-ka

Re: [R] [Rd] italic font on cairo devices in R 3.4

2017-07-07 Thread Yixuan Qiu
Hi Ilia, You may want to have a try of the showtext package (https://github.com/yixuan/showtext). Below is a quick example: library(showtext) showtext.auto() pdf("test.pdf") ## Use the "sans" font family provided by the showtext package ## font == 3 means italic font face plot(1, xlab = "Unicode

Re: [R] [Rd] italic font on cairo devices in R 3.4

2017-07-07 Thread Ilia Kats
Interesting. I did not have the package installed, but I did at some point extract Helvetica from some MacOSX font files and R was using that just fine until 3.3. This is how the plot looks in 3.4 (still using Helvetica): https://ptpb.pw/HikX.pdf . After removing Helvetica, installing the ttf-m

Re: [R] [Rd] italic font on cairo devices in R 3.4

2017-07-07 Thread frederik
On Fri, Jul 07, 2017 at 07:08:52PM +0200, Ilia Kats wrote: > Interesting. I did not have the package installed, but I did at some point > extract Helvetica from some MacOSX font files and R was using that just fine > until 3.3. This is how the plot looks in 3.4 (still using Helvetica): > https://pt

Re: [R] [Rd] italic font on cairo devices in R 3.4

2017-07-07 Thread frederik
Hi Ilia, I'm running Arch Linux, R 3.4.0. Here's my test.pdf from your minimal example: https://ptpb.pw/HxsA.pdf It doesn't look pixelated to me... Here's a post that I wrote when I solved my last font problem in R, almost 2 years ago: https://stackoverflow.com/a/40940331/5087283 I had to ins