-
Notifications
You must be signed in to change notification settings - Fork 11
/
create_font.Rd
74 lines (58 loc) · 1.28 KB
/
create_font.Rd
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wb_styles.R
\name{create_font}
\alias{create_font}
\title{Create font format}
\usage{
create_font(
b = "",
charset = "",
color = wb_color(hex = "FF000000"),
condense = "",
extend = "",
family = "2",
i = "",
name = "Aptos Narrow",
outline = "",
scheme = "minor",
shadow = "",
strike = "",
sz = "11",
u = "",
vert_align = "",
...
)
}
\arguments{
\item{b}{bold}
\item{charset}{charset}
\item{color}{rgb color: default "FF000000"}
\item{condense}{condense}
\item{extend}{extend}
\item{family}{font family: default "2"}
\item{i}{italic}
\item{name}{font name: default "Aptos Narrow"}
\item{outline}{outline}
\item{scheme}{font scheme: default "minor"}
\item{shadow}{shadow}
\item{strike}{strike}
\item{sz}{font size: default "11",}
\item{u}{underline}
\item{vert_align}{vertical alignment}
\item{...}{...}
}
\description{
Create font format
}
\examples{
font <- create_font()
# openxml has the alpha value leading
hex8 <- unlist(xml_attr(read_xml(font), "font", "color"))
hex8 <- paste0("#", substr(hex8, 3, 8), substr(hex8, 1, 2))
# # write test color
# col <- crayon::make_style(col2rgb(hex8, alpha = TRUE))
# cat(col("Test"))
}
\seealso{
\code{\link[=wb_add_font]{wb_add_font()}}
}