Comments (3)
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.
> 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.
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)
- Respect RNG seed for SVG IDs HOT 3
- girafe and piping HOT 2
- Transparent background HOT 2
- ggiraph fails to install error code 1 HOT 1
- Could geom_*_interactive support trailing comma's? HOT 1
- Specifying svg_width/height changes legend pattern HOT 1
- geom_col_interactive() ignoring specified order of stacked bars (duplicate of #265) HOT 2
- y-axis alignment issue when changing fonts HOT 2
- geom_hline_interactive with coord_polar not working HOT 4
- Toolbar elements initial state HOT 2
- ggiraph is not working with R 4.4.0 for Windows HOT 7
- geom_boxplot_interactive() doesn't work. HOT 1
- Set display=none as default for automaticall created divs HOT 7
- apply default css properties to data_id elements HOT 1
- Responsive sizing of text elements HOT 4
- Hover effect not behaving as expected on spaghetti plots since ggiraph 0.8.9
- geom_line_interactive wrong labels with few data points
- tooltip on mobile
- Support for Crosstalk? HOT 1
- option to default to activated pan/zoom
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ggiraph.