From pdalgd at gmail.com  Sun Jul 23 23:04:25 2017
From: pdalgd at gmail.com (Peter Dalgaard)
Date: Sun, 23 Jul 2017 23:04:25 +0200
Subject: [Rd] italic font on cairo devices in R 3.4
In-Reply-To: <4f527daa-9959-4d42-b92b-9457e1c402db@gmx.net>
References: <2093e0fa-f923-0822-60d2-7509d38224af@gmx.net>
 <61d483b0-b6a5-7811-9a80-34dcaed55c81@stat.auckland.ac.nz>
 <4f527daa-9959-4d42-b92b-9457e1c402db@gmx.net>
Message-ID: <93D3E8FC-0432-4699-ADBF-53940FCE1DB7@gmail.com>


> On 12 Jul 2017, at 18:41 , Ilia Kats <ilia-kats at gmx.net> wrote:
> 
> FYI, I now have a second confirmed Mac OS system (with R 3.4.1) where the text is not rendered as italic.

Me three,

It affects cairo_pdf() only, plain pdf() renders the example just fine.

-pd

> 
> Ilia
> 
> 
> 
> -------- Original Message --------
> Subject: Re: [Rd] italic font on cairo devices in R 3.4
> Date: 2017-07-12 05:48:24 +0200
> From: Paul Murrell
> To: ilia-kats, r-devel
>> Hi
>> 
>> Do you have the 'fonts-texgyre' (Debian) package installed?
>> If not, does installing that help?
>> 
>> Paul
>> 
>> On 07/07/17 20:30, Ilia Kats wrote:
>>> [cross-post from R-help]
>>> 
>>> Hi all,
>>> 
>>> I have the following problem: Since R 3.4.0, italic fonts rendered on Cairo devices appear pixelated. Here's a minimal example:
>>> cairo_pdf('test.pdf')
>>> plot(1:10, ylab=expression(italic(test)))
>>> dev.off()
>>> 
>>> The same problem occurs with bolditalic, but not bold. I am using Debian Stretch. Several friends tried the same on their machines, another Debian machine has the same problem. On MacOSX the output was not pixelated, but it wasn't italic either. Ubuntu 16.04.2 xenial works fine. My impression is that R somehow can't find the proper font to use and falls back to something weird. Ideas?
>>> 
>>> Note that I'm not subscribed to the list, so please CC me in replies.
>>> 
>>> Cheers, Ilia
>>> 
>>> ______________________________________________
>>> R-devel at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-devel
>> 
> 
> -- 
> Linux - Where do you want to fly today?
> -- Unknown source
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



[Rd] italic font on cairo devices in R 3.4
Peter Dalgaard