Re: [Rd] proposal: 'dev.capabilities()' can also query Unicode capabilities of current graphics device

2023-09-25 Thread Paul Murrell
Hi Yes, you can set up your own font and TeX installations are a good source of Type 1 fonts. Here is an example (paths obviously specific to my [Ubuntu 20.04] OS and TeX installation) ... cmlgc <- Type1Font("cmlgc", rep("/usr/share/texlive/texmf-dist/fonts/afm/public/cm-lgc/fcmr6z.afm", 4

Re: [Rd] Tight bounding box around text in graphics?

2023-09-25 Thread Paul Murrell
Hi strheight(), which is based GEStrHeight(), is pretty crude, not only ignoring descenders, but also only considering the ascent of the overall font (capital "M"). There is a GEStrMetric(), which returns character-specific ascent and descent, but that is only currently exposed via grid::str

[Rd] Tight bounding box around text in graphics?

2023-09-25 Thread Duncan Murdoch
I've mentioned in previous messages that I'm trying to redo rgl text. Part of what I need is to measure the size of strings in pixels when they are drawn by base graphics. It appears that strwidth(texts, "user", cex = cex, font = font, family = family) gives accurate measurements of the wi

Re: [Rd] Recent changes to as.complex(NA_real_)

2023-09-25 Thread Hervé Pagès
On 9/25/23 07:05, Martin Maechler wrote: >> Hervé Pagès >> on Sat, 23 Sep 2023 16:52:21 -0700 writes: > > Hi Martin, > > On 9/23/23 06:43, Martin Maechler wrote: > >>> Hervé Pagès > >>> on Fri, 22 Sep 2023 16:55:05 -0700 writes: > >> > The problem is

[Rd] is.atomic(NULL) will become FALSE

2023-09-25 Thread Martin Maechler
Some of you may remember posts and/or e-mails about this topic many months ago.. "Atomic vector" is a very well defined term for somewhat advanced R users. E.g., from 'The R Language Manual' (in the development version; i.e. made from latest R source code): https://cran.r-project.org/doc/manua

Re: [Rd] Recent changes to as.complex(NA_real_)

2023-09-25 Thread Martin Maechler
> Hervé Pagès > on Sat, 23 Sep 2023 16:52:21 -0700 writes: > Hi Martin, > On 9/23/23 06:43, Martin Maechler wrote: >>> Hervé Pagès >>> on Fri, 22 Sep 2023 16:55:05 -0700 writes: >> > The problem is that you have things that are >> > **semantically** dif

Re: [Rd] NROW and NCOL on NULL

2023-09-25 Thread Martin Maechler
> Simone Giannerini > on Sun, 24 Sep 2023 16:57:00 +0200 writes: > Thank you for your comment, On Sat, Sep 23, 2023 at > 9:51 PM Ben Bolker wrote: >> >> This is certainly worth discussing, but there's always a >> heavy burden of back-compatibility; how much bette