Coder Social home page Coder Social logo

Fontconfig error on mac OS about ggiraph HOT 3 CLOSED

davidgohel avatar davidgohel commented on August 23, 2024
Fontconfig error on mac OS

from ggiraph.

Comments (3)

davidgohel avatar davidgohel commented on August 23, 2024

You can see what are available fonts by running the following command:

gdtools::sys_fonts()

The column family contains family names.

Then in the ggiraph call, add the parameter fonts as below (see rvg::dsvg for more details):

ggiraph(..., fonts = list(sans = "a_sansserif_font", serif = "a_serif_font", mono = "mono_font", symbol = "symbol_font"))

The following vignette is explaining things better than I do: https://CRAN.R-project.org/package=svglite/vignettes/fonts.html (dsvg do not handle user font aliases for now).

David

from ggiraph.

ThoDuyNguyen avatar ThoDuyNguyen commented on August 23, 2024
> gdtools::sys_fonts()
Fontconfig error: Cannot load default config file
[1] foundry family  file    slant   weight 
<0 rows> (or 0-length row.names)

After googling for a while, this could be caused by the OS not on R side.
I haven't found the solution yet but closed the case.

Thank for your help.

from ggiraph.

davidgohel avatar davidgohel commented on August 23, 2024

OK

That thread may help:
https://groups.google.com/forum/#!topic/reporters-package/9WP5uqP2hr8

In short: "I had to update HomeBrew and install the cairo package manually"

++
David

from ggiraph.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.