Comments (22)
I was dealing with this issue on Windows 10 until yesterday.
I found this solution and now the package {extrafont} works fine.
Problem with function "font_import()" was solved this way:
library(remotes)
remotes::install_version("Rttf2pt1", version = "1.3.8")
library(extrafont)
loadfonts(device = "win")
fonts()
from extrafont.
I was dealing with this issue on Windows 10 until yesterday.
I found this solution and now the package {extrafont} works fine.
Problem with function "font_import()" was solved this way:
library(remotes)
remotes::install_version("Rttf2pt1", version = "1.3.8")
library(extrafont)
loadfonts(device = "win")
fonts()
worked for me too, but you will have to add
import_fonts()
before loadfonts(device = "win")
from extrafont.
@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 extrafont
on previous version of Ubuntu and R.
@wch What are the limitations of ttf2pt1
and how could this problem resurface if the ttf2pt1
hasn't changed?
from extrafont.
library(remotes)
remotes::install_version("Rttf2pt1", version = "1.3.8")
worked fine for me as well, on Unix (R v4.1.1).
Thanks for the fix @Bustami !
from extrafont.
Problem occuring in Windows as well. All fonts are affected as well.
from extrafont.
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 .ttf
file. Using the open-source software FontForge to re-save the .ttf
file did the trick for me.
from extrafont.
Realise this issue is now over 3 years old, but I encountered a similar problem with a font with 'No FontName'.
Turned out the .tff
file permissions were different from the other fonts on my system (Mac, for reference). Setting the font file to be rwx
for the 'other' user with $ chmod +orwx [font file]
fixed the issue for me.
from extrafont.
I was dealing with this issue on Windows 10 until yesterday.
I found this solution and now the package {extrafont} works fine.
Problem with function "font_import()" was solved this way:
library(remotes)
remotes::install_version("Rttf2pt1", version = "1.3.8")
library(extrafont)
loadfonts(device = "win")
fonts()
worked for me too, but you will have to add
import_fonts()
beforeloadfonts(device = "win")
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
from extrafont.
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 font_import(paths=<folder>)
.
from extrafont.
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
from extrafont.
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.
from extrafont.
I was dealing with this issue on Windows 10 until yesterday.
I found this solution and now the package {extrafont} works fine.
Problem with function "font_import()" was solved this way:
library(remotes)
remotes::install_version("Rttf2pt1", version = "1.3.8")
library(extrafont)
loadfonts(device = "win")
fonts()
worked for me too, but you will have to add
import_fonts()
beforeloadfonts(device = "win")
This worked for me but I had to use font_import()
before loadfonts(device = "win")
instead of import_fonts()
Using Windows 11
from extrafont.
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")
from extrafont.
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.
from extrafont.
Unfortunately, it also means I can't import the font I want using
ttf_import(), it seems to gets skipped
On Fri, Oct 18, 2013 at 12:07 PM, Winston Chang [email protected]:
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.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/32#issuecomment-26608070
.
from extrafont.
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
from extrafont.
I was dealing with this issue on Windows 10 until yesterday.
I found this solution and now the package {extrafont} works fine.
Problem with function "font_import()" was solved this way:
library(remotes)
remotes::install_version("Rttf2pt1", version = "1.3.8")
library(extrafont)
loadfonts(device = "win")
fonts()
worked for me too, but you will have to add
import_fonts()
beforeloadfonts(device = "win")
I tried these recommendations on a mac (iOS 10.15.7). Didn't work for me.
from extrafont.
I have the same problems in Windows.
require(extrafontdb)
require(Rttf2pt1)
library(extrafont)
font_import()
And I always get this message for all fonts:
C:\Windows\Fonts\ARIALNBI.TTF : No FontName. Skipping.
from extrafont.
I'm having the same problems and I had to install Rtools 4.0 from https://cran.r-project.org/bin/windows/Rtools/ first
And I followed the above recs and it worked. Thanks so much
from extrafont.
I was dealing with this issue on Windows 10 until yesterday.
I found this solution and now the package {extrafont} works fine.
Problem with function "font_import()" was solved this way:
library(remotes)
remotes::install_version("Rttf2pt1", version = "1.3.8")
library(extrafont)
loadfonts(device = "win")
fonts()
worked for me too, but you will have to add
import_fonts()
beforeloadfonts(device = "win")
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
@psychtek Were you able to figure out a solution, I have the same issue and work on macOS Big Sur
from extrafont.
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
The suggestion above by @michaellatter works seamlessly! I work with Mac OS Monterey 12.0.1. Thank you.
from extrafont.
Thank you very much for fixing this issue!
The fix works for me on
R version 4.2.2 (2022-10-31)
MacOS 13.1, Apple M1
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.
from extrafont.
Related Issues (20)
- Easy speed-up possible? HOT 1
- R 4.4.0 breaks some user-installed fonts in PDFs
- font_import() fails if extrafont is installed read-only
- `argument is of length zero` error in `afm_scan_files`
- wish: sort `fonts()` alphabetically HOT 1
- new font is ignored
- Using extrafont within knitr to pdf HOT 1
- windowFonts() not recognized in .Rprofile HOT 3
- how to install the font of "Young" in Mac?
- "GhostScript was not found" on M1 Big Sur Mac HOT 2
- Correctly finds font directory, but says "No FontName. Skipping" for all fonts HOT 29
- font_import segfaults. HOT 3
- a problem when I ues font_import
- Installing a font from .otf/.ttf files
- Seek replacement for `ttf2pt1` for extracting font metrics HOT 2
- "Found FontName for 0 fonts." on 64-bit Windows OS
- Type1 importing not working
- Can´t load dinpro light
- Font embedding not working due to GhostScript `-I` switch
- Font is embeded, but i can not document properly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from extrafont.