Skip to content

Commit

Permalink
v0.1.0
Browse files Browse the repository at this point in the history
Switch to Roboto Condensed
  • Loading branch information
jimjam-slam committed Oct 20, 2023
1 parent 3fa7574 commit 3e893cf
Show file tree
Hide file tree
Showing 90 changed files with 15,655 additions and 16 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.DS_Store
docs
README.html
inst/doc
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: themes360info
Title: Create graphics with ggplot2 that align with 360info style guides
Version: 0.0.3
Version: 0.1.0
Authors@R:
person("James", "Goldie",
email = "james.goldie@360info.org",
Expand All @@ -10,7 +10,7 @@ Description: This package provides ggplot2 helper functions that help users crea
License: CC BY 4.0
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.1
RoxygenNote: 7.2.3
Imports:
cli,
ggplot2,
Expand Down
7 changes: 6 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# themes360info 0.0.3
# themes360info 0.1.0

* Move to using Roboto Condensed as the only supported theme font
- Roboto Condensed is now distributed with the package

# 0.0.3

* Move to using Public Sans as the only supported theme font
- Public Sans is now distributed with the package
Expand Down
3 changes: 1 addition & 2 deletions R/fonts.r
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
#' 360info fonts without having them installed.
fontfaces_360fonts <- function() {
list(paste0(
"https://fonts.googleapis.com/css2?family=Public+Sans:",
"ital,wght@0,400;0,700;0,900;1,400&display=swap"))
"https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,300;0,700;0,800;1,300;1,700&display=swap"))
}
12 changes: 6 additions & 6 deletions R/zzz.r
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@
.onLoad <- function(libname, pkgname) {
systemfonts::register_font(
name = "Headline 360info",
plain = system.file("extdata", "PublicSans-Black.ttf",
plain = system.file("extdata", "RobotoCondensed-ExtraBold.ttf",
package = "themes360info"))
systemfonts::register_font(
name = "Subhead 360info",
plain = system.file("extdata", "PublicSans-Bold.ttf",
plain = system.file("extdata", "RobotoCondensed-Bold.ttf",
package = "themes360info"))
systemfonts::register_font(
name = "Body 360info",
plain = system.file("extdata", "PublicSans-Regular.ttf",
plain = system.file("extdata", "RobotoCondensed-Light.ttf",
package = "themes360info"),
italic = system.file("extdata", "PublicSans-Italic.ttf",
italic = system.file("extdata", "RobotoCondensed-LightItalic.ttf",
package = "themes360info"),
bold = system.file("extdata", "PublicSans-Bold.ttf",
bold = system.file("extdata", "RobotoCondensed-Bold.ttf",
package = "themes360info"),
bolditalic = system.file("extdata", "PublicSans-BoldItalic.ttf",
bolditalic = system.file("extdata", "RobotoCondensed-BoldItalic.ttf",
package = "themes360info"))
}
4 changes: 2 additions & 2 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ url: ~
template:
bootstrap: 5
bslib:
base_font: {google: "Public Sans"}
heading_font: {google: "Public Sans"}
base_font: {google: "Roboto Condensed"}
heading_font: {google: "Roboto Condensed"}
navbar:
bg: dark
90 changes: 90 additions & 0 deletions docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3e893cf

Please sign in to comment.