使用官员创建的 Powerpoint 中的标题字体没有变化。
我尝试将 fp_text 添加到 ph_with 中,虽然它不运行任何内容,但它从中生成任何内容。
library(officer)
library(magrittr)
title.font <- fp_text(font.size = 28)
example_pp <- read_pptx() %>%
# LMS slide ----
add_slide(layout = "Title and Content", master = "Office Theme") %>%
ph_with(paste("Title font test"),
location = ph_location_type(type = "title"),
fp_text(font.size = 28))
Run Code Online (Sandbox Code Playgroud)