Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error adding fonts using font.add.google() #14

Closed
noelnamai opened this issue Aug 7, 2017 · 7 comments
Closed

Error adding fonts using font.add.google() #14

noelnamai opened this issue Aug 7, 2017 · 7 comments

Comments

@noelnamai
Copy link

> library("showtext")
>
> font.add.google("Avenir Next", "avenir")
Error in search_db(name) : font not found
> 
@yixuan
Copy link
Owner

yixuan commented Aug 7, 2017

It seems that this font was recently added by Google, and I need to update the font database. I'll fix this late today.

@yixuan
Copy link
Owner

yixuan commented Aug 8, 2017

OK, it turns out that this font is not open source and thus cannot be loaded from Google Fonts. See the information here.

@yixuan yixuan closed this as completed Aug 8, 2017
@noelnamai
Copy link
Author

@road2stat

@Jrakru
Copy link

Jrakru commented Dec 18, 2018

I have the same issue but the font is supposed to have an open font license.

> library(showtext)
> font_add_google("Staatliches","Staatliches")
Error in search_db(name, db_cache, handle) : font not found

@yixuan
Copy link
Owner

yixuan commented Dec 26, 2018

@Jrakru Can you try font_add_google("Staatliches", "Staatliches", db_cache = FALSE)?

@Cami1992
Copy link

Cami1992 commented Oct 9, 2022

font_add(family = "Gill Sans Nova Book", regular = "C:/Users/Linus/Documents/District_Profiles/Gill Sans Nova Book.ttf")
font_families()
Error in check_font_path(regular, "regular") :
font file not found for 'regular' type
font_add_google("Gill Sans Nova", "gill", db_cache = FALSE)
Error in search_db(name, db_cache = TRUE, handle = handle) :
font not found

@yixuan
Copy link
Owner

yixuan commented Oct 10, 2022

Hi @Cami1992, please consider to open a new issue as this was marked closed. For your second question, it is because "Gill Sans Nova" is not in the Google Fonts collection. I cannot debug your first question since I do not have the "Gill Sans Nova Book.ttf" file. You can try to upload the file so I can take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants