-
Notifications
You must be signed in to change notification settings - Fork 48
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
"No FontName. Skipping" during font_import() #32
Comments
Unfortunately, these warnings are due to limitations in the ttf2pt1 program (the program hasn't been updated in many years) which extrafont uses via the Rttf2pt1 package. |
Unfortunately, it also means I can't import the font I want using On Fri, Oct 18, 2013 at 12:07 PM, Winston Chang notifications@github.comwrote:
|
Ran into the same problem. Ttf2pt1 seemed to have encoding issues. Fixed it by renaming the font with the freeware CR8 Type Light: I left all the names as they were, saved a copy of the font in a folder, and installed it with |
Realise this issue is now over 3 years old, but I encountered a similar problem with a font with 'No FontName'. Turned out the |
I have encountered the same issue on Windows, is there any solution to this? The file permissions are in order. I provided further details on a Stackoverflow post |
I have tried to provide a workaround in the Stackoverflow post. I'm guessing that the issue is connected to a faulty |
@moritzpschwarz I have this problem for all font files, using Ubuntu 20.04. I don't think the problem is the files themselves, as they were working with @wch What are the limitations of |
Problem occuring in Windows as well. All fonts are affected as well. |
I was dealing with this issue on Windows 10 until yesterday.
|
worked for me too, but you will have to add
|
worked fine for me as well, on Unix (R v4.1.1). Thanks for the fix @Bustami ! |
I tried these recommendations on a mac (iOS 10.15.7). Didn't work for me. |
Having same issue today: R version 4.1.1 (2021-08-10)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur 11.5.2 |
Try the showtext package for adding fonts to r, its an alternative to extrafont that I have had a lot more success with. https://cran.rstudio.com/web/packages/showtext/vignettes/introduction.html |
I have the same problems in Windows.
And I always get this message for all fonts: |
I'm having the same problems and I had to install Rtools 4.0 from https://cran.r-project.org/bin/windows/Rtools/ first |
@psychtek Were you able to figure out a solution, I have the same issue and work on macOS Big Sur |
For those of you who have problems with this on a mac, try installing the xcode command line tools (and approve): xcode-select --install
sudo xcodebuild -license accept This works with extrafont 0.17 on macOS 12.0.1. |
The suggestion above by @michaellatter works seamlessly! I work with Mac OS Monterey 12.0.1. Thank you. |
This worked for me but I had to use Using Windows 11 |
I have a possible fix in the Rttf2pt1 package (wch/Rttf2pt1#20). If you would like to try it out, please install this build of Rttf2pt1 the following and let me know how it goes: library(remotes)
remotes::install_github("wch/Rttf2pt1#20") |
Thank you very much for fixing this issue! The fix works for me on A strange observation for a pdf export: The "preview" application on Mac OS X does not use the correct fonts, while Inkscape (and poppler) display the plot correctly. |
e.g.:
and (more spectacularly):
I also received a number of warnings (this is an excerpt):
Mac OS X 10.7.5, R 3.0.1
R version 3.0.1 (2013-05-16)
Platform: x86_64-apple-darwin10.8.0 (64-bit)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] splines stats graphics grDevices utils datasets methods base
other attached packages:
[1] extrafont_0.15 devtools_1.3 NADA_1.5-5 survival_2.37-4
loaded via a namespace (and not attached):
[1] colorspace_1.2-3 dichromat_2.0-0 digest_0.6.3 evaluate_0.4.7 extrafontdb_1.0
[6] ggplot2_0.9.3.1.99 grid_3.0.1 gtable_0.1.2 httr_0.2 labeling_0.2
[11] MASS_7.3-29 memoise_0.1 munsell_0.4.2 parallel_3.0.1 plyr_1.8
[16] proto_0.3-10 RColorBrewer_1.0-5 RCurl_1.95-4.1 reshape2_1.2.2 Rttf2pt1_1.2
[21] scales_0.2.3 stringr_0.6.2 tools_3.0.1 whisker_0.3-2
The text was updated successfully, but these errors were encountered: