add support of font settings

Closes #3
This commit is contained in:
Dmitriy Pleshevskiy 2023-04-03 18:34:42 +03:00
parent bb99c5585b
commit c4f9e3ea26
Signed by: pleshevskiy
GPG key ID: 79C4487B44403985
2 changed files with 13 additions and 1 deletions

View file

@ -59,6 +59,9 @@ x -> y -> z
- force-appendix
- center
- animated-interval
- font-regular
- font-italic
- font-bold
# Limitation

11
wd2
View file

@ -25,6 +25,9 @@ cli and overwrite cli parameters with the same name.
- force-appendix
- center
- animated-interval
- font-regular
- font-italic
- font-bold
-------------------------------------------------------------------------------
@ -84,6 +87,9 @@ d2_port=$(get_attr_value "port")
d2_force_appendix=$(get_attr_value "force-appendix")
d2_center=$(get_attr_value "center")
d2_animated_interval=$(get_attr_value "animated-interval")
d2_font_regular=$(get_attr_value "font-regular")
d2_font_italic=$(get_attr_value "font-italic")
d2_font_bold=$(get_attr_value "font-bold")
set -e
d2 "${d2_args[@]}" \
@ -95,5 +101,8 @@ d2 "${d2_args[@]}" \
${d2_port:+--port=${d2_port}} \
${d2_force_appendix:+--force-appendix=${d2_force_appendix}}
${d2_center:+--center=${d2_center}} \
${d2_animated_interval:+--animated-interval=${d2_animated_interval}}
${d2_animated_interval:+--animated-interval=${d2_animated_interval}} \
${d2_font_regular:+--font-regular=${d2_font_regular}} \
${d2_font_italic:+--font-italic=${d2_font_italic}} \
${d2_font_bold:+--font-bold=${d2_font_bold}}