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")
... to specify that the OpenSymbol family should be used as the
"symbol" font (e.g., for "plotmath") in R.
Thanks for looking at it!
But, really, there is no such thing as a Symbol font on Linux
anymore.
Symbol is pre-unicode thinking. Most modern general-purpose unicode
fonts will include every codepoint Symbol ever shipped, and
fontconfig
will fallback gracefully when that?s not the case (unless your
fontconfig integration is broken).
Yep, the "symbol" font is an (outdated) R "plotmath" concept, but
one
that would take a fair bit of surgery to remove. R plotmath
converts
certain R expressions (in certain contexts) to code points in the
Adobe
Symbol Encoding (ASM), but for cairo-based devices, those are
converted
to UTF8 code points.
Just use the sans-serif or monospace fontconfig defaults. You don?t
need Symbol, or OpenSymbol, or any special font setup.
Agreed. I got reasonable coverage from DejaVu Sans and FreeSerif.
There are still a number of ASM code points that are not covered
though,
for example, ...
F8EB E6 # LEFT PAREN TOP # parenlefttp (CUS)
F8EC E7 # LEFT PAREN EXTENDER # parenleftex (CUS)
F8ED E8 # LEFT PAREN BOTTOM # parenleftbt (CUS)
Even OpenSymbol is missing a few (though perhaps not very common
ones) ...