Commit c9895c6 1 parent 29c4c76 commit c9895c6 Copy full SHA for c9895c6
File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -3133,8 +3133,10 @@ wbWorkbook <- R6::R6Class(
3133
3133
3134
3134
sel <- panose $ family == font_name & panose $ type == font_type
3135
3135
if (! any(sel )) {
3136
- warning(" Could not find font in panose table. Ignoring panose entry." )
3137
3136
panose_hex <- NULL
3137
+ } else if (exists(" font_panose" )) {
3138
+ # the input provides a panose value
3139
+ panose_hex <- font_panose
3138
3140
} else {
3139
3141
panose_hex <- panose [sel , " panose" ]
3140
3142
}
Original file line number Diff line number Diff line change @@ -469,10 +469,11 @@ write_data2 <- function(
469
469
470
470
wb $ add_font(
471
471
sheet = sheetno ,
472
- dims = dim_sel ,
472
+ dims = dim_sel ,
473
473
color = wb_color(hex = " FF0000FF" ),
474
- name = wb_get_base_font(wb )$ name $ val ,
475
- u = " single"
474
+ name = wb_get_base_font(wb )$ name $ val ,
475
+ size = wb_get_base_font(wb )$ size $ val ,
476
+ u = " single"
476
477
)
477
478
}
478
479
You can’t perform that action at this time.
0 commit comments