-
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
Correctly finds font directory, but says "No FontName. Skipping" for all fonts #88
Comments
See #32 . I have the same problem on Ubuntu 20.04. In #32 the problem is traced to @wch this renders |
Interestingly, it works fine on my office machine which is also running Windows 10 and R 4.1.0. SessionInfo for this machine:
The two differences I notice are that my office machine is running Windows 10 x64 build 19043 (as opposed to 19042) and |
I installed |
I had the same issue: everything was working fine until I installed R 4.1.0, and |
Confirmed! Downgrading to 1.3.8 fixed my problem on Ubuntu as well. Thanks @wz-billings ! |
Had the same issue on my office machine, @wz-billings´ solution fixed the problem. Thank you very much, dude! |
how to downgrade to 1.3.8 ? @wz-billings´
|
when I run remotes::install_version("Rttf2pt1", version = "1.3.8") Warning messages: |
then i installed Rtools and run remotes::install_version("Rttf2pt1", version = "1.3.8") ,but another problem occured :@wz-billings´, can you help me? Error in download_version_url(package, version, repos, type) : |
then I try to install 1.3.7,the same warning accured: Warning messages: |
Did you add Rtools to the PATH? You can follow the instructions here |
it worked,wow,thanks very much,so kind of you!!! |
Excuse me, I tried to downgrade the version of Rttf2pt 1, but then another issues coming which says
I used R 4.10 on Windows 10-64 build 19043. Thank you! |
Solved. I tried to reinstall extrafont package first, and then installed the downgraded version of Rttf2pt1. |
I used R 4.11 on Windows 10-64. |
@wzbillings Downloading package from url: https://cran.rstudio.com//src/contrib/Archive/Rttf2pt1/Rttf2pt1_1.3.8.tar.gz
Could you kindly offer me any suggestions? In great need of extra fonts! |
The error message says you should install Rtools and add it to the path, so I would try doing that.
|
Just confirming the same problem (and work-around) for macOS 12.1 (Monterey with Apple Silicon) and R 4.1.1
Using the work-around mentioned in previous comments
to downgrade |
Quoting from the README at https://github.com/wch/Rttf2pt1
That repo has an issue filed about this specific problem. wch/Rttf2pt1#10 |
Can this please be fixed? StackOverflow also has multiple mentions now. Reference: |
For a little context around Rttf2pt1, which is a wrapper around ttf2pt1: ttf2pt1 itself has not had any development activity in 19 years, and compiling ttf2pt1 results many compiler warnings. Most of them are innocuous. Every so often, the CRAN maintainers change their standards about which warnings count as "significant warnings". If a package has significant warnings, they will remove that package from CRAN. I occasionally get messages from them saying they will remove Rttf2pt1 from CRAN unless various significant warnings are fixed. I fix them to the best of my ability, but it is possible that some of the fixes have introduced bugs. If someone wants to step up and take over maintenance of Rttf2pt1, I would welcome that change. |
In that case, it might be worth something to rely on the {showtext} pkg as part of phasing out? It seems to provide this exact function as well. |
Are you sure that However, I cannot assess whether this also holds true for |
@msberends showtext works well if you don't care about editing the text afterwards (with Inkscape, for example) as it converts text to vector graphics. extrafont keeps it as text in a PDF export which allows further editing. |
version 1.3.8 of Rttf2pt1 still does exactly what it needs to, so unless someone is willing to take over maintenance of that package or of ttf2pt1, I don't see the utility of this discussion. |
将Rttf2pt1降级到1.3.8后,导入字体就没有问题啦 我在win10上用的R 4.2.0
Matrix products: default locale: attached base packages: loaded via a namespace (and not attached): |
建议收到,非常感谢!祝好 :)-------- 原始邮件 --------发件人: denghb001 ***@***.***>日期: 2022年11月17日周四 16:44收件人: wch/extrafont ***@***.***>抄送: HamsomeWANG ***@***.***>, Comment ***@***.***>主 题: Re: [wch/extrafont] Correctly finds font directory, but says "No FontName. Skipping" for all fonts (#88)
将Rttf2pt1降级到1.3.8后,导入字体就没有问题啦
remove.packages("Rttf2pt1")
remotes::install_version("Rttf2pt1", version = "1.3.8")
extrafont::font_import()
我在win10上用的R 4.2.0
最后成功了
Found FontName for 220 fonts.
Scanning afm files in C:/Users/86182/AppData/Local/R/win-library/4.2/extrafontdb/metrics
Writing font table in C:/Users/86182/AppData/Local/R/win-library/4.2/extrafontdb/fontmap/fonttable.csv
Writing Fontmap to C:/Users/86182/AppData/Local/R/win-library/4.2/extrafontdb/fontmap/Fontmap...
sessionInfo()
R version 4.2.0 (2022-04-22 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)
Matrix products: default
locale:
[1] LC_COLLATE=Chinese (Simplified)_China.utf8 LC_CTYPE=Chinese (Simplified)_China.utf8
[3] LC_MONETARY=Chinese (Simplified)_China.utf8 LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_China.utf8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] pillar_1.7.0 compiler_4.2.0 BiocManager_1.30.18 prettyunits_1.1.1 remotes_2.4.2
[6] tools_4.2.0 extrafont_0.18 pkgbuild_1.3.1 lifecycle_1.0.1 tibble_3.1.7
[11] gtable_0.3.0 pkgconfig_2.0.3 rlang_1.0.2 DBI_1.1.2 cli_3.3.0
[16] Rttf2pt1_1.3.8 withr_2.5.0 dplyr_1.0.9 stringr_1.4.0 generics_0.1.2
[21] vctrs_0.4.1 grid_4.2.0 tidyselect_1.1.2 glue_1.6.2 R6_2.5.1
[26] processx_3.5.3 fansi_1.0.3 ggplot2_3.3.6 purrr_0.3.4 callr_3.7.0
[31] extrafontdb_1.0 magrittr_2.0.3 scales_1.2.0 ps_1.7.0 ggthemes_4.2.4
[36] ellipsis_0.3.2 assertthat_0.2.1 colorspace_2.0-3 utf8_1.2.2 stringi_1.7.6
[41] munsell_0.5.0 crayon_1.5.1
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
Please don’t spam here, and explain what you do when posting code. Thanks. |
@wch is it possible to lock this thread? the solution still works and I don't see any reason to continue discussion if no one is volunteering to maintain the package. |
I've installed extrafont and all of the dependencies, but whenever I try to run
font_import()
, my font directory is detected asC:\Windows\Fonts
, but every font in the list just says "No FontName. Skipping" instead of being imported. I have no idea what the issue here is, as I have rtools40 and I have tried uninstalling and then reinstalling the package and its dependencies, as well as running Rstudio as administrator (my account also has admin status). My session info printout is below. Any help is appreciated.The text was updated successfully, but these errors were encountered: