0

按照此处的示例(自定义字体),我选择了一种足够不同的字体,我可以很容易地看到它是否有效。纠正了

为什么此表的正文不使用 Google 的“Redressed”字体?

library("reactable")

# Add a custom font from Google Fonts
# https://fonts.google.com/specimen/Redressed?selection.family=Redressed&query=redress&preview.text=1234567890&preview.text_type=custom
# https://glin.github.io/reactable/articles/cookbook/cookbook.html

htmltools::tags$link(href = "https://fonts.googleapis.com/css?family=Redressed:400&display=fallback",
                     rel = "stylesheet")

reactable(
  iris[1:5, ],
  style = list(fontFamily = "Redressed", fontSize = "44px"),
  defaultSorted = "Species"
)
4

0 回答 0