diff --git a/lib/prawn/svg/elements/text_component.rb b/lib/prawn/svg/elements/text_component.rb index 1beb012..13caed2 100644 --- a/lib/prawn/svg/elements/text_component.rb +++ b/lib/prawn/svg/elements/text_component.rb @@ -47,9 +47,9 @@ def apply size: computed_properties.numerical_font_size, style: font && font.subfamily, text_anchor: computed_properties.text_anchor, - dominant_baseline: computed_properties.dominant_baseline, } + opts[:dominant_baseline] = computed_properties.dominant_baseline unless computed_properties.dominant_baseline == 'auto' opts[:decoration] = computed_properties.text_decoration unless computed_properties.text_decoration == 'none' if state.text.parent