Skip to content
Back to formatted view

Raw Message

Message-ID: <20260115233936.002ae847@Tarkus>
Date: 2026-01-15T20:39:36Z
From: Ivan Krylov
Subject: [Windows] grDevices::cairo_pdf fails to map certain font families (vs Cairo::CairoPDF)
In-Reply-To: <CA+6hu7c7Fay_QVOzBaeo05yVRrWfgHWOJa=8r1LkJxegV4cpkQ@mail.gmail.com>

Dear Jan Net?k,

Thank you for providing an easily reproduced example!

? Thu, 15 Jan 2026 15:15:56 +0100
Jan Net?k <netikja at gmail.com> ?????:

> On Windows, grDevices::cairo_pdf() fails to render specific installed
> fonts (falling back to Helvetica/Arial), whereas Cairo::CairoPDF()
> locates and renders the exact same font correctly.

This seems to be fixed in both R-devel and the Cairo package on CRAN:
https://bugs.r-project.org/show_bug.cgi?id=18955

(I've tried your example and it works in R-to-be-4.6.0, but not R-4.5.)

-- 
Best regards,
Ivan