Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upPossible to export google_font_list? #7
Comments
|
Thank you for the comments. I'll think about how to add this feature in the next release. |
|
I have added a new function |
First off, I really appreciate this and
showtext! I'm trying to test different google fonts for aggplottheme, and want to see a list of available sans-serif ones. I know I can filter on the Google fonts website, but some fonts there aren't available forshowtextbecause of licensing and other issues (is that correct?)Looking through the package code, I see that
google_font_listreturns a data frame that includes categories, so I recreated part ofgoogle_font_dbin order to get a nested data frame as follows:Some of the meta data about the fonts is handy to have, such as filtering for fonts that have more than one variant, or have an italic face, etc.
I could write a function to do this when I need it, but I was wondering if
google_font_listcould be exported from the package. I don't know if there's a reason why it currently isn't exported, but it might be useful to other users as well.Thanks in advance!