hrbrmstr / waffle

:maple_leaf: Make waffle (square pie) charts in R
779 stars 95 forks source link

"FontAwesome" font family not found #48

Open markhwhiteii opened 6 years ago

markhwhiteii commented 6 years ago

When I try to use use_glyph, I get the following warnings (one warning for each of the glyphs that should have been plotted):

In grid.Call.graphics(C_text, as.graphicsAnnot(x$label), ... : no font could be found for family "FontAwesome"

How I got here:

  1. I downloaded the free .zip from https://use.fontawesome.com/releases/v5.1.1/fontawesome-free-5.1.1-web.zip and installed all of the .ttf files in the webfonts folder.

  2. I installed waffle (waffle_0.7.0) and extrafont (extrafont_0.17) and loaded them both in my session.

  3. I ran font_import(), which returned some warnings:

5: In grepl("^FamilyName", text) : input string 4 is invalid in this locale
6: In grepl("^FontName", text) : input string 4 is invalid in this locale
7: In grepl("^FullName", text) : input string 4 is invalid in this locale
8: In grepl("^Weight", text) : input string 4 is invalid in this locale
  1. I ran loadfonts().

  2. Running fonts() lists "Font Awesome 5 Brands" and "Font Awesome 5 Free"

  3. Running fa_list() shows a character vector of length 593

  4. Whenever I use the use_glyphs argument using any of those characters in the aforementioned vector, I get the warnings:

In grid.Call.graphics(C_text, as.graphicsAnnot(x$label), ... : no font could be found for family "FontAwesome"

And what appears is just a dot where the glyphs should be.

I'm on R 3.5.0 in RStudio on macOS High Sierra 10.13.5.

jricardoNMR commented 6 years ago

Following the same steps as above, I see the following error

Error: FontAwesome not found. Install via: https://github.com/FortAwesome/Font-Awesome/tree/master/fonts

R version 3.4.4 (2018-03-15)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] bindrcpp_0.2.2        waffle_0.7.0          corrr_0.2.1           cowplot_0.9.2         ggrepel_0.8.0         ggalluvial_0.6.0     
 [8] ggplot2_3.0.0         scales_0.5.0.9000     data.table_1.11.0     stringr_1.3.1         tidyr_0.8.0           forcats_0.3.0         purrr_0.2.5          
[15] dplyr_0.7.6           magrittr_1.5          extrafontdb_1.0       extrafont_0.17       

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.17       RColorBrewer_1.1-2 compiler_3.4.4     pillar_1.3.0       plyr_1.8.4         bindr_0.1.1        tools_3.4.4        digest_0.6.15     
 [9] evaluate_0.10.1    tibble_1.4.2       gtable_0.2.0       pkgconfig_2.0.1    rlang_0.2.1        rstudioapi_0.7     yaml_2.1.19        gridExtra_2.3     
[17] Rttf2pt1_1.3.6     withr_2.1.2        knitr_1.20         rprojroot_1.3-2    grid_3.4.4         tidyselect_0.2.4   glue_1.2.0         R6_2.2.2          
[25] rmarkdown_1.9      backports_1.1.2    htmltools_0.3.6    assertthat_0.2.0   colorspace_1.3-2   stringi_1.1.7      lazyeval_0.2.1     munsell_0.5.0     
[33] crayon_1.3.4   
aziafrin commented 2 years ago

same issues!

Running fonts() does not list "Font Awesome 5 Brands" and "Font Awesome 5 Free", it shows "NULL" But running fa_list() shows the character vector. Any solutions?

jfpalacio commented 2 years ago

I have the same problem, when I use the parameter use_glyph the message appears "Error: FontAwesome not found. Install via: https://github.com/FortAwesome/Font-Awesome/tree/master/fonts" but this address does not work, however the font is already installed