File: fontset-bitstream-vera.R

package info (click to toggle)
r-cran-fontquiver 0.2.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 3,460 kB
  • sloc: sh: 13; makefile: 2
file content (30 lines) | stat: -rw-r--r-- 1,077 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#' @references \url{https://www.gnome.org/fonts/}
#' @import fontBitstreamVera
#' @include fontset.R
fontset_bitstream_vera <- function(variant = "sans", style = "roman") {
  font_get("Bitstream Vera", variant, style, pkg = "fontBitstreamVera")
}

fontset_bitstream_vera_files <- list(
  sans = list(
    roman = sans("Vera", face = "plain", weight = 80),
    oblique = sans("VeraIt", face = "italic", weight = 80),
    bold = sans("VeraBd", face = "bold", weight = 200),
    `bold-oblique` = sans("VeraBI", face = "bolditalic", weight = 200)
  ),
  `sans-mono` = list(
    roman = mono("VeraMono", face = "plain", weight = 80),
    oblique = mono("VeraMoIt", face = "italic", weight = 80),
    bold = mono("VeraMoBd", face = "bold", weight = 200),
    `bold-oblique` = mono("VeraMoBI", face = "bolditalic", weight = 200)
  ),
  serif = list(
    roman = serif("VeraSe", face = "plain", weight = 80),
    bold = serif("VeraSeBd", face = "bold", weight = 200)
  )
)

fontset_register("Bitstream Vera",
  getter = fontset_bitstream_vera,
  files = fontset_bitstream_vera_files
)