Re: [Rd] Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?

2020-05-25 Thread Kenny Bell
Hi all, I have found after upgrading to R 4.0.0 (among other upgrades so this may not be the cause) that the degree symbol doesn't work correctly on Ubuntu 18.04. Googling brought me to this thread that appears related. I tried running: cairo_pdf() plot.new(); text(0.5,0.5, bquote(120*degree*N),

Re: [Rd] Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?

2020-04-09 Thread Nicolas Mailhot via R-devel
Le mercredi 08 avril 2020 à 02:55 -0700, Gabriel Becker a écrit : > Hi Paul, Hi Gabriel, Thanks a lot for the testing. > The various font family settings seem to work too, from what I can > tell. Both font families you suggested, however, Helvetica and Apple > Symbols (the s is important) have s

Re: [Rd] Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?

2020-04-08 Thread Paul Murrell
Thanks for this Gabriel - extremely useful. Those results look pretty good. Paul On 8/04/20 9:55 pm, Gabriel Becker wrote: Hi Paul, So I've run the tests (and am  attaching all numerous pdfs here) but the takeaway from what I can see is as follows: raw, without specifying font family, "lo

Re: [Rd] Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?

2020-04-08 Thread Paul Murrell
Thanks Gabriel. Simon and Brian are also helping out. I will start a speparate thread for the four of us to coordinate. Paul On 8/04/20 3:59 pm, Gabriel Becker wrote: Paul et al, I will try to do this tonight or tomorrow, though it will not be built with th system tools because I have y

Re: [Rd] Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?

2020-04-07 Thread Gabriel Becker
Paul et al, I will try to do this tonight or tomorrow, though it will not be built with th system tools because I have yet to get that tto work locally (spent a good chunk of this morning trying). I will send a separate messaage regarding those difficulties as well so that we can at least confirm

Re: [Rd] Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?

2020-04-07 Thread Paul Murrell
The R-symfam branch (r78176) is now working, for my basic tests, on ... Ubuntu (pango < 1.44) Ubuntu (no pango) Fedora (pango > 1.44) Windows I need help to confirm that this builds on macOS and that the basic tests work ... https://github.com/pmur002/R-symfam-testing Brian has been helpin

Re: [Rd] Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?

2020-04-06 Thread Paul Murrell
On 6/04/20 8:21 pm, Iñaki Ucar wrote: On Mon, 6 Apr 2020 at 04:59, Paul Murrell wrote: Hi The R branch ... https://svn.r-project.org/R/branches/R-symfam/ ... is now set up so that it works "out of the box" on Fedora by setting the default to be 'symbolfamily=cairoSymbolFont(family, usePU

Re: [Rd] Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?

2020-04-06 Thread Iñaki Ucar
On Mon, 6 Apr 2020 at 04:59, Paul Murrell wrote: > > Hi > > The R branch ... > > https://svn.r-project.org/R/branches/R-symfam/ > > ... is now set up so that it works "out of the box" on Fedora by setting > the default to be 'symbolfamily=cairoSymbolFont(family, usePUA=FALSE)' > when grSoftVersion

Re: [Rd] Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?

2020-04-05 Thread Paul Murrell
Hi The R branch ... https://svn.r-project.org/R/branches/R-symfam/ ... is now set up so that it works "out of the box" on Fedora by setting the default to be 'symbolfamily=cairoSymbolFont(family, usePUA=FALSE)' when grSoftVersion()["pango"] is greater than "1.44". This means that on Fedora

Re: [Rd] Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?

2020-03-31 Thread Paul Murrell
On 1/04/20 8:24 am, Martin Maechler wrote: Paul Murrell on Tue, 31 Mar 2020 09:41:30 +1300 writes: > Hi > On 30/03/20 10:43 pm, Iñaki Ucar wrote: >> On Mon, 30 Mar 2020 at 04:24, Paul Murrell wrote: >>> >>> Hi >>> >>> I have created an R branch that

Re: [Rd] Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?

2020-03-31 Thread Martin Maechler
> Paul Murrell > on Tue, 31 Mar 2020 09:41:30 +1300 writes: > Hi > On 30/03/20 10:43 pm, Iñaki Ucar wrote: >> On Mon, 30 Mar 2020 at 04:24, Paul Murrell wrote: >>> >>> Hi >>> >>> I have created an R branch that contains a potential fix ... >>>

Re: [Rd] Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?

2020-03-31 Thread Iñaki Ucar
On Tue, 31 Mar 2020 at 03:32, Paul Murrell wrote: > > I think R will retain the idea of a separate symbol font in at least the > short term because of backward compatibility and cross-platform support > and support for a range of graphics devices. So this fix is just for > cairo-based devices on

Re: [Rd] Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?

2020-03-30 Thread Paul Murrell
On 31/03/20 10:12 am, Iñaki Ucar wrote: On Mon, 30 Mar 2020 at 22:41, Paul Murrell wrote: Hi On 30/03/20 10:43 pm, Iñaki Ucar wrote: On Mon, 30 Mar 2020 at 04:24, Paul Murrell wrote: Hi I have created an R branch that contains a potential fix ... https://svn.r-project.org/R/branches/

Re: [Rd] Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?

2020-03-30 Thread Nicolas Mailhot via R-devel
Le mardi 31 mars 2020 à 10:14 +1300, Paul Murrell a écrit : > Hi > > On 30/03/20 11:12 pm, Nicolas Mailhot wrote: > > Le lundi 30 mars 2020 à 15:24 +1300, Paul Murrell a écrit : > > > Hi > > > > > > I have created an R branch that contains a potential fix ... > > > > > > https://svn.r-project.or

Re: [Rd] Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?

2020-03-30 Thread Paul Murrell
Hi On 30/03/20 11:12 pm, Nicolas Mailhot wrote: Le lundi 30 mars 2020 à 15:24 +1300, Paul Murrell a écrit : Hi I have created an R branch that contains a potential fix ... https://svn.r-project.org/R/branches/R-symfam/ This allows, for example, ... cairo_pdf(symbolfamily="OpenSymbol") ...

Re: [Rd] Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?

2020-03-30 Thread Iñaki Ucar
On Mon, 30 Mar 2020 at 22:41, Paul Murrell wrote: > > Hi > > On 30/03/20 10:43 pm, Iñaki Ucar wrote: > > On Mon, 30 Mar 2020 at 04:24, Paul Murrell wrote: > >> > >> Hi > >> > >> I have created an R branch that contains a potential fix ... > >> > >> https://svn.r-project.org/R/branches/R-symfam/ >

Re: [Rd] Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?

2020-03-30 Thread Paul Murrell
Hi On 30/03/20 10:43 pm, Iñaki Ucar wrote: On Mon, 30 Mar 2020 at 04:24, Paul Murrell wrote: Hi I have created an R branch that contains a potential fix ... https://svn.r-project.org/R/branches/R-symfam/ This allows, for example, ... cairo_pdf(symbolfamily="OpenSymbol") ... to specify th

Re: [Rd] Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?

2020-03-30 Thread Paul Murrell
Thanks Gabriel. Sounds like both you and Brian can build the branch on Mac. Just need to check that Windows builds before I commit to r-devel. Paul On 30/03/20 7:43 pm, Gabriel Becker wrote: I do my devel/patch work on Mac so I can take a shot at testing your branch in the next couple day

Re: [Rd] Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?

2020-03-30 Thread Nicolas Mailhot via R-devel
Le lundi 30 mars 2020 à 15:24 +1300, Paul Murrell a écrit : > Hi > > I have created an R branch that contains a potential fix ... > > https://svn.r-project.org/R/branches/R-symfam/ > > This allows, for example, ... > > cairo_pdf(symbolfamily="OpenSymbol") > > ... to specify that the OpenSymbol

Re: [Rd] Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?

2020-03-30 Thread Iñaki Ucar
On Mon, 30 Mar 2020 at 04:24, Paul Murrell wrote: > > Hi > > I have created an R branch that contains a potential fix ... > > https://svn.r-project.org/R/branches/R-symfam/ > > This allows, for example, ... > > cairo_pdf(symbolfamily="OpenSymbol") > > ... to specify that the OpenSymbol family shou

Re: [Rd] Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?

2020-03-29 Thread Gabriel Becker
I do my devel/patch work on Mac so I can take a shot at testing your branch in the next couple days. ~G On Sun, Mar 29, 2020 at 7:24 PM Paul Murrell wrote: > Hi > > I have created an R branch that contains a potential fix ... > > https://svn.r-project.org/R/branches/R-symfam/ > > This allows, f

Re: [Rd] Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?

2020-03-29 Thread Paul Murrell
Hi I have created an R branch that contains a potential fix ... https://svn.r-project.org/R/branches/R-symfam/ This allows, for example, ... cairo_pdf(symbolfamily="OpenSymbol") ... to specify that the OpenSymbol family should be used as the "symbol" font (e.g., for "plotmath") in R. This

Re: [Rd] Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?

2020-03-29 Thread Iñaki Ucar
Thanks, Paul. I've created a bug report to keep track of this (https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17748), and taken the liberty of adding you to CC. We'll need to cherry-pick the fix for R 3.6.3 in Fedora 31. Iñaki On Sun, 29 Mar 2020 at 21:15, Paul Murrell wrote: > > Hi > > Tha

Re: [Rd] Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?

2020-03-29 Thread Paul Murrell
Hi Thanks for your input on this Iñaki and Nicolas. I am starting testing an R fix for this problem today. As suggested, the plan is to allow the R user to specify a font family other than "symbol" for plotmath output (or, more generally, in R parlance, for 'font=5' or 'fontface=5') on a Cair

Re: [Rd] Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?

2020-03-27 Thread Iñaki Ucar
On Wed, 25 Mar 2020 at 12:25, Nicolas Mailhot wrote: > > > > R brought this all on itself by hardcoding a Windows-only “Symbol” font > family name in its default conf. Linux systems are UTF-8 by default for > ~20 years now, they don’t need the forcing of magic font families to > handle symbols no

Re: [Rd] Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?

2020-03-25 Thread Gavin Simpson
Thanks Iñaki, that worked a treat. Gavin On Wed, 25 Mar 2020 at 04:28, Iñaki Ucar wrote: > > On Wed, 25 Mar 2020 at 01:14, Gavin Simpson wrote: > > > > Dear list > > > > On Fedora 31 the pango library has recently updated to version >= 1.44 > > and in doing so has switched to using the HarfBuzz

Re: [Rd] Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?

2020-03-25 Thread Nicolas Mailhot via R-devel
Le mercredi 25 mars 2020 à 11:28 +0100, Iñaki Ucar a écrit : > On Wed, 25 Mar 2020 at 01:14, Gavin Simpson > wrote: Hi, > Adding de...@lists.fp.o to CC. A workaround is to avoid using PS > fonts for symbols. PS fonts are dead mid-term everywhere, and already forbidden in new Fedora font package

Re: [Rd] Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?

2020-03-25 Thread Iñaki Ucar
On Wed, 25 Mar 2020 at 01:14, Gavin Simpson wrote: > > Dear list > > On Fedora 31 the pango library has recently updated to version >= 1.44 > and in doing so has switched to using the HarfBuzz library (from > FreeType) and dropped Adobe Type 1 font support. This causes problems > with plotmath as

[Rd] Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?

2020-03-24 Thread Gavin Simpson
Dear list On Fedora 31 the pango library has recently updated to version >= 1.44 and in doing so has switched to using the HarfBuzz library (from FreeType) and dropped Adobe Type 1 font support. This causes problems with plotmath as all bar one of the glyphs doesn't render (see attached PNG image