Questions tagged [showtext]

23 questions
0
votes
0 answers

R showtext font_add issue "cannot open resource, error code 1"

Trying to do some isotype charts in Rstudio, I've encountered some issues when adding the founts which are required to include icons in the final plots. I've followed the steps from this guide, which is quoted as a reference by many for such charts.…
0
votes
0 answers

Unicode characters not showing when exporting to pdf in R

I am trying to export some unicode characters in the U+1xxxx format from R to pdf using ggplot2 (this is one example: https://unicode-table.com/en/1F321/). In R, the output is great when I have it in the ggtitle as ggtitle("Temperature range…
Darren LSH
  • 35
  • 7
0
votes
1 answer

Using bold font with GoogleFonts

I'm a bit lost at the moment: I have added a font to my R script via GoogleFonts and would now like to use the "bold" version. However, I can't find a way! I've already tried various things and it doesn't work - I'm expecting a simple solution, but…
LePyka
  • 181
  • 8
0
votes
1 answer

Rendering of Devanagari font while using ggplot2

here is the reproducible example library(ggplot2) library(showtext) ## Sahitya font for Devanagari characters font_add_google("Sahitya") showtext_auto() p = ggplot(NULL, aes(x = 1, y = 1)) + ylim(0.8, 1.2) + theme(axis.title = element_blank(),…
kel
  • 1
0
votes
1 answer

ggplot2 legend title not respecting bold for Google Font

Not sure why, but when I import "Montserrat" font with showtext::font_add_google, the legend title will not be bold…
mattador
  • 421
  • 4
  • 12
0
votes
1 answer

Adding Fonts to R using extrafont or showtext libraries (on Mac via FontBook)

Two years ago I posted a related post: Add font to R that is not in extrafonts library. With a better understanding of how fonts works, I now have a new set of fonts that I need to upload into R to use with ggplot. Despite the useful answers in the…
Canovice
  • 9,012
  • 22
  • 93
  • 211
-3
votes
1 answer

display text from plain text in textView on button click

I want that after pressing the button with the "create" id, the text from the textview that was manually entered in plaintext is displayed I have plaintext and button. In plaintext I write "test" or something like this and then I click button, this…
Wex
  • 1
  • 1
1
2