File tree Expand file tree Collapse file tree 5 files changed +15
-5
lines changed Expand file tree Collapse file tree 5 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,9 @@ library(htmltools)
77#  Register font for use with showtext and ragg
88#  NOTE: these were downloaded via `gfonts::download_font("pacifico", "www/fonts")`
99sysfonts :: font_add(" Pacifico" " fonts/pacifico-v16-latin-regular.ttf" 
10- systemfonts :: register_font(" Pacifico" " fonts/pacifico-v16-latin-regular.ttf" 
10+ if  (! " Pacifico" %in%  systemfonts :: system_fonts()$ family ) {
11+   systemfonts :: register_font(" Pacifico" " fonts/pacifico-v16-latin-regular.ttf" 
12+ }
1113
1214#  Now enable showtext so that font can render with a non-ragg renderPlot()
1315showtext :: showtext_auto()
Original file line number Diff line number Diff line change @@ -7,7 +7,9 @@ library(htmltools)
77#  Register font for use with showtext and ragg
88#  NOTE: these were downloaded via `gfonts::download_font("pacifico", "www/fonts")`
99sysfonts :: font_add(" Pacifico" " fonts/pacifico-v16-latin-regular.ttf" 
10- systemfonts :: register_font(" Pacifico" " fonts/pacifico-v16-latin-regular.ttf" 
10+ if  (! " Pacifico" %in%  systemfonts :: system_fonts()$ family ) {
11+   systemfonts :: register_font(" Pacifico" " fonts/pacifico-v16-latin-regular.ttf" 
12+ }
1113
1214#  Now enable showtext so that font can render with a non-ragg renderPlot()
1315showtext :: showtext_auto()
Original file line number Diff line number Diff line change @@ -7,7 +7,9 @@ library(htmltools)
77#  Register font for use with showtext and ragg
88#  NOTE: these were downloaded via `gfonts::download_font("pacifico", "www/fonts")`
99sysfonts :: font_add(" Pacifico" " fonts/pacifico-v16-latin-regular.ttf" 
10- systemfonts :: register_font(" Pacifico" " fonts/pacifico-v16-latin-regular.ttf" 
10+ if  (! " Pacifico" %in%  systemfonts :: system_fonts()$ family ) {
11+   systemfonts :: register_font(" Pacifico" " fonts/pacifico-v16-latin-regular.ttf" 
12+ }
1113
1214#  Now enable showtext so that font can render with a non-ragg renderPlot()
1315showtext :: showtext_auto()
Original file line number Diff line number Diff line change @@ -7,7 +7,9 @@ library(htmltools)
77#  Register font for use with showtext and ragg
88#  NOTE: these were downloaded via `gfonts::download_font("pacifico", "www/fonts")`
99sysfonts :: font_add(" Pacifico" " fonts/pacifico-v16-latin-regular.ttf" 
10- systemfonts :: register_font(" Pacifico" " fonts/pacifico-v16-latin-regular.ttf" 
10+ if  (! " Pacifico" %in%  systemfonts :: system_fonts()$ family ) {
11+   systemfonts :: register_font(" Pacifico" " fonts/pacifico-v16-latin-regular.ttf" 
12+ }
1113
1214#  Now enable showtext so that font can render with a non-ragg renderPlot()
1315showtext :: showtext_auto()
Original file line number Diff line number Diff line change @@ -7,7 +7,9 @@ library(htmltools)
77#  Register font for use with showtext and ragg
88#  NOTE: these were downloaded via `gfonts::download_font("pacifico", "www/fonts")`
99# sysfonts::font_add("Pacifico", "fonts/pacifico-v16-latin-regular.ttf")
10- # systemfonts::register_font("Pacifico", "fonts/pacifico-v16-latin-regular.ttf")
10+ #  if (!"Pacifico" %in% systemfonts::system_fonts()$family) {
11+ #    systemfonts::register_font("Pacifico", "fonts/pacifico-v16-latin-regular.ttf")
12+ #  }
1113
1214#  Now enable showtext so that font can render with a non-ragg renderPlot()
1315# showtext::showtext_auto()
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments