Using custom fonts in R examples and exercises
This lesson is called Using custom fonts in R examples and exercises, part of the The Glamour of Graphics course. This lesson is called Using custom fonts in R examples and exercises, part of the The Glamour of Graphics course.
Transcript
Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.
Loading transcript...
Your Turn
Take one of the charts we’ve made and add your own fonts to it
Adjust the size or style of your text using theme elements
Save your chart with the custom fonts
Make sure you’ve installed the ragg package.
Learn More
This blog post talks about modern text features in R using the ragg and systemfonts packages.
Have any questions? Put them below and we will help you out!
Course Content
37 Lessons
You need to be signed-in to comment on this post. Login.
Blayne Beacham • February 21, 2023
I got one variation of the font that I want to work by using this:
systemfonts::register_variant( name = "Segoe UI Custom Semibold", family = "Segoe UI", weight = "semibold" )
However, I tried to do the same for a semilight version and it didn't work: systemfonts::register_variant( name = "Segoe UI Custom Semilight", family = "Segoe UI", weight = "semilight" )
For the latter I get "Error: No font with the given family name and weight/width settings available".
Am I missing something?
soundarya soundararajan • March 9, 2023
I am getting a similar error reported by someone earlier. This is my code register_variant( "Rockwell_custom", Rockwell, weight = "semibold", features = font_feature(ligatures = "discretionary") ) and this is my error: Error: No font with the given family name and weight/width settings available