@@ -110,7 +110,11 @@ element_props <- list(
110
110
arrow = property_nullable(S7 :: new_S3_class(" arrow" ) | S7 :: class_logical ),
111
111
arrow.fill = property_nullable(S7 :: class_character | S7 :: class_logical ),
112
112
debug = property_boolean(allow_null = TRUE , default = NULL ),
113
- inherit.blank = property_boolean(default = FALSE )
113
+ inherit.blank = property_boolean(default = FALSE ),
114
+ # These are reserved for future use
115
+ italic = property_nullable(S7 :: class_character ),
116
+ fontweight = property_nullable(S7 :: class_numeric ),
117
+ fontwidth = property_nullable(S7 :: class_numeric | S7 :: class_character )
114
118
)
115
119
116
120
# ' @export
@@ -193,7 +197,8 @@ element_line <- S7::new_class(
193
197
element_text <- S7 :: new_class(
194
198
" element_text" , parent = element ,
195
199
properties = element_props [c(
196
- " family" , " face" , " colour" , " size" , " hjust" , " vjust" , " angle" , " lineheight" ,
200
+ " family" , " face" , " italic" , " fontweight" , " fontwidth" ,
201
+ " colour" , " size" , " hjust" , " vjust" , " angle" , " lineheight" ,
197
202
" margin" , " debug" , " inherit.blank"
198
203
)],
199
204
constructor = function (family = NULL , face = NULL , colour = NULL ,
@@ -216,7 +221,8 @@ element_text <- S7::new_class(
216
221
S7 :: S7_object(),
217
222
family = family , face = face , colour = colour , size = size ,
218
223
hjust = hjust , vjust = vjust , angle = angle , lineheight = lineheight ,
219
- margin = margin , debug = debug , inherit.blank = inherit.blank
224
+ margin = margin , debug = debug , inherit.blank = inherit.blank ,
225
+ italic = NA_character_ , fontweight = NA_real_ , fontwidth = NA_real_
220
226
)
221
227
}
222
228
)
0 commit comments